/*
Theme Name: TohidDesign Portfolio
Theme URI: https://tohiddesign.com
Author: Towhidul Islam
Description: A modern, premium portfolio theme for UI/UX Designers.
Version: 1.0
Text Domain: tohiddesign
*/

:root {
    --bg-color: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --primary-gradient: linear-gradient(135deg, #8b5cf6, #3b82f6, #06b6d4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background-color: var(--bg-color); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
.gradient-text { background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; color: transparent; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }

/* Navbar */
header { position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; background: rgba(15, 15, 15, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); transition: all 0.3s ease; }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 700; text-decoration: none; color: var(--text-main); letter-spacing: 1px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s ease; }
.nav-links a:hover { color: var(--text-main); }

/* Buttons */
.btn { display: inline-block; padding: 14px 32px; border-radius: 12px; font-weight: 500; text-decoration: none; transition: all 0.3s ease; cursor: pointer; border: none; font-size: 1rem; }
.btn-primary { background: var(--primary-gradient); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4), inset 0 2px 0 rgba(255,255,255,0.2); position: relative; transform: translateY(0); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), inset 0 2px 0 rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid rgba(255,255,255,0.2); backdrop-filter: blur(5px); }
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.05); transform: translateY(-3px); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 80px; position: relative; }
.hero::before { content: ''; position: absolute; top: 20%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(0,0,0,0) 70%); z-index: -1; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 60px; width: 100%; margin-top: 40px; }
.hero-text { flex: 1; max-width: 600px; }
.hero-text h1 { font-size: 3.5rem; margin-bottom: 24px; letter-spacing: -1px; }
.hero-text p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 40px; max-width: 500px; }
.hero-buttons { display: flex; gap: 20px; }
.hero-image-wrapper { flex: 1; display: flex; justify-content: flex-end; position: relative; }
.hero-image-container { position: relative; width: 400px; height: 400px; border-radius: 30px; padding: 10px; background: var(--glass-bg); border: 1px solid var(--glass-border); box-shadow: var(--glow-shadow); animation: float 6s ease-in-out infinite; }
.hero-image-container::after { content: ''; position: absolute; inset: -20px; background: var(--primary-gradient); filter: blur(40px); opacity: 0.3; z-index: -1; border-radius: 40px; }
.hero-image { width: 100%; height: 100%; object-fit: cover; border-radius: 20px; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-20px); } 100% { transform: translateY(0px); } }

/* Section Headers */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; display: inline-block; position: relative; }
.section-header h2::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background: var(--primary-gradient); border-radius: 2px; }

/* About */
.about-text { text-align: center; max-width: 800px; margin: 0 auto; font-size: 1.2rem; color: var(--text-muted); background: var(--glass-bg); padding: 40px; border-radius: 20px; border: 1px solid var(--glass-border); box-shadow: var(--card-shadow); }

/* Skills */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.skill-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 40px 24px; border-radius: 16px; text-align: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; }
.skill-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: var(--primary-gradient); opacity: 0; transition: opacity 0.4s ease; z-index: 0; }
.skill-icon { width: 48px; height: 48px; color: #06b6d4; transition: all 0.4s ease; transform: translateY(15px); z-index: 1; }
.skill-icon svg { width: 100%; height: 100%; }
.skill-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: var(--glow-shadow); border-color: rgba(255,255,255,0.2); }
.skill-card:hover::before { opacity: 0.05; }
.skill-card:hover .skill-icon { transform: translateY(-15px) scale(1.1); color: #3b82f6; filter: drop-shadow(0 0 15px rgba(59, 130, 246, 0.6)); }
.skill-card h3 { position: absolute; bottom: 30px; z-index: 1; font-size: 1.1rem; font-weight: 500; opacity: 0; transform: translateY(20px); transition: all 0.4s ease; color: var(--text-main); }
.skill-card:hover h3 { opacity: 1; transform: translateY(0); }

/* Experience */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; height: 100%; width: 2px; background: var(--glass-border); }
.timeline-item { position: relative; padding-left: 60px; margin-bottom: 40px; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot { position: absolute; left: 11px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg-color); border: 3px solid #3b82f6; box-shadow: 0 0 10px rgba(59, 130, 246, 0.5); }
.experience-card { background: var(--glass-bg); border: 1px solid var(--glass-border); padding: 30px; border-radius: 16px; transition: all 0.3s ease; }
.experience-card:hover { transform: translateX(10px); border-color: rgba(59, 130, 246, 0.3); box-shadow: var(--card-shadow); }
.experience-card h3 { font-size: 1.3rem; margin-bottom: 5px; color: var(--text-main); }
.experience-card .company { color: #3b82f6; font-weight: 500; margin-bottom: 15px; font-size: 1rem; }
.experience-card ul { list-style-type: none; color: var(--text-muted); }
.experience-card ul li { margin-bottom: 10px; position: relative; padding-left: 20px; }
.experience-card ul li::before { content: '▹'; position: absolute; left: 0; color: #3b82f6; }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); gap: 40px; }
.project-card { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 24px; overflow: hidden; transition: all 0.4s ease; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-15px); box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.3); }
.project-image-wrapper { overflow: hidden; height: 250px; }
.project-image { width: 100%; height: 100%; object-fit: cover; border-bottom: 1px solid var(--glass-border); transition: transform 0.5s ease; }
.project-card:hover .project-image { transform: scale(1.05); }
.project-content { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.project-content h3 { font-size: 1.5rem; margin-bottom: 10px; }
.project-content p { color: var(--text-muted); margin-bottom: 24px; flex-grow: 1; }

/* Contact */
.contact-content { text-align: center; max-width: 600px; margin: 0 auto; background: var(--glass-bg); padding: 50px; border-radius: 24px; border: 1px solid var(--glass-border); position: relative; overflow: hidden; }
.contact-content::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(0,0,0,0) 70%); z-index: -1; }
.contact-text { font-size: 1.2rem; margin-bottom: 30px; }
.contact-info { margin-bottom: 40px; }
.contact-info p { font-size: 1.1rem; margin-bottom: 10px; color: var(--text-muted); }
.contact-info a { color: #06b6d4; text-decoration: none; transition: color 0.3s ease; }
.contact-info a:hover { color: #3b82f6; }
.social-links { display: flex; justify-content: center; gap: 20px; margin-top: 40px; }
.social-links a { color: var(--text-muted); text-decoration: none; font-size: 1.1rem; transition: all 0.3s ease; padding: 10px 20px; border-radius: 8px; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); }
.social-links a:hover { color: white; background: rgba(255,255,255,0.1); transform: translateY(-3px); border-color: rgba(255,255,255,0.2); }

/* Footer */
footer { text-align: center; padding: 30px 0; border-top: 1px solid var(--glass-border); color: var(--text-muted); font-size: 0.9rem; }

/* Responsive */
@media (max-width: 900px) {
    .hero-content { flex-direction: column-reverse; text-align: center; margin-top: 40px; }
    .hero-text h1 { font-size: 2.5rem; }
    .hero-buttons { justify-content: center; }
    .hero-image-wrapper { justify-content: center; }
    .hero-image-container { width: 300px; height: 300px; }
    .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .nav-links { display: none; }
    .timeline::before { left: 15px; }
    .timeline-dot { left: 6px; }
    .timeline-item { padding-left: 40px; }
    .projects-grid { grid-template-columns: 1fr; }
}