@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* NEXT LEVEL DARK TECH THEME */
:root {
    --bg-color: #0b1121; /* Deep space dark */
    --bg-alt: #121b2e; /* Slightly lighter dark */
    --text-color: #f8fafc; /* Crisp white */
    --text-muted: #94a3b8; /* Cool slate gray */
    --primary-color: #6366f1; /* Neon Indigo */
    --secondary-color: #0ea5e9; /* Cyber Cyan */
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary-glow: rgba(14, 165, 233, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
    scroll-behavior: smooth;
}

html, body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden; 
    position: relative;
    width: 100%;
}

/* Premium Tech Grid Background (Dark Mode) */
.tech-grid {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Glowing Background Blobs */
.bg-shape {
    position: absolute; filter: blur(140px); z-index: -1;
    border-radius: 50%; opacity: 0.4; pointer-events: none;
}
.shape-1 { top: -100px; left: -100px; width: 500px; height: 500px; background-color: var(--primary-color); }
.shape-2 { top: 600px; right: -150px; width: 450px; height: 450px; background-color: var(--secondary-color); }
.shape-3 { bottom: 100px; left: 10%; width: 400px; height: 400px; background-color: #8b5cf6; }

.reveal {
    opacity: 0; transform: translateY(40px);
    transition: all 0.8s ease-out;
}
.reveal.active { opacity: 1; transform: translateY(0); }

a { text-decoration: none; color: var(--text-color); transition: var(--transition); }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 5%; width: 100%; }
.section-padding { padding: 120px 0; }

.section-title {
    text-align: center; font-size: 3rem; margin-bottom: 60px;
    color: var(--text-color); font-weight: 800; font-family: 'Poppins', sans-serif;
    letter-spacing: -1px;
}
.section-title span {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px var(--primary-glow);
}

/* 3D Hover Classes for Dark Mode */
.3d-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    transform-style: preserve-3d;
}
.3d-card:hover {
    transform: translateY(-10px) perspective(1000px) rotateX(2deg) rotateY(-2deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-glow);
    border-color: rgba(99, 102, 241, 0.5);
}

/* Premium Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 34px; border-radius: 30px; font-weight: 700; cursor: pointer; 
    transition: var(--transition); border: none; font-size: 1.05rem; gap: 10px; font-family: 'Poppins', sans-serif;
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white; box-shadow: 0 10px 25px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 15px 35px var(--secondary-glow); color: white;
}
.btn-secondary {
    background: rgba(255,255,255,0.05); color: var(--secondary-color);
    border: 1px solid var(--secondary-color); backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: rgba(14, 165, 233, 0.1); border-color: white; color: white; transform: translateY(-4px);
}
.w-100 { width: 100%; }

/* Navbar (Dark Glassmorphism) */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; 
    background: rgba(11, 17, 33, 0.7); backdrop-filter: blur(20px); 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); transition: var(--transition);
}
.nav-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 5%; max-width: 1200px; margin: 0 auto; width: 100%;
}
.nav-logo h2 { font-size: 2.2rem; font-weight: 800; font-family: 'Poppins', sans-serif; letter-spacing: -1px; color: white;}
.nav-logo span { color: var(--secondary-color); }
.nav-menu { display: flex; gap: 35px; align-items: center;}
.nav-link { font-weight: 600; font-size: 1.05rem; position: relative; color: var(--text-color);}
.nav-link::after {
    content: ''; position: absolute; width: 0; height: 3px;
    bottom: -6px; left: 0; background: var(--secondary-color);
    transition: var(--transition); border-radius: 5px; box-shadow: 0 0 10px var(--secondary-glow);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--secondary-color); text-shadow: 0 0 10px rgba(14,165,233,0.5); }
.btn-contact-nav { background: rgba(255,255,255,0.1); color: white; padding: 10px 24px; border-radius: 25px; border: 1px solid rgba(255,255,255,0.2);}
.btn-contact-nav:hover { background: var(--primary-color); color: white; transform: translateY(-2px); box-shadow: 0 8px 20px var(--primary-glow); border-color: transparent;}
.btn-contact-nav::after { display: none; }
.nav-toggle { display: none; font-size: 1.8rem; cursor: pointer; color: white; }

/* Hero Section */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 100px; }
.hero-container {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; gap: 50px;
}
.hero-content { flex: 1.2; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 20px; 
    background: rgba(99, 102, 241, 0.1); color: var(--secondary-color); border-radius: 20px; font-weight: 800;
    font-size: 0.95rem; margin-bottom: 25px; font-family: 'Poppins', sans-serif;
    border: 1px solid rgba(99, 102, 241, 0.3); letter-spacing: 1px; text-transform: uppercase;
}
.text-primary { color: var(--secondary-color); }
.greeting { font-weight: 700; font-size: 1.4rem; color: var(--text-muted); margin-bottom: 5px;}
.hero h1 { font-size: 4.8rem; line-height: 1.1; margin-bottom: 15px; font-weight: 800; font-family: 'Poppins', sans-serif; letter-spacing: -2px;}
.highlight { 
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero h2 { font-size: 1.8rem; color: var(--text-muted); margin-bottom: 25px; font-weight: 600; }
.typed-text { color: var(--secondary-color); font-weight: 800; }
.cursor { display: inline-block; width: 4px; height: 1.8rem; background-color: var(--secondary-color); animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-desc { color: var(--text-muted); margin-bottom: 40px; font-size: 1.15rem; line-height: 1.9; max-width: 600px; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* 3D Morphing Image Dark Mode */
.hero-image { flex: 1; display: flex; justify-content: center; position: relative; perspective: 1000px; }
.image-wrapper {
    width: 420px; height: 420px; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    border: 4px solid rgba(255, 255, 255, 0.1); overflow: hidden;
    box-shadow: 0 0 60px var(--primary-glow), inset 0 0 20px rgba(255,255,255,0.2); 
    animation: morphFloat 8s ease-in-out infinite; background: var(--bg-alt);
    transform: rotateY(-10deg) rotateX(5deg);
}
.profile-photo { width: 100%; height: 100%; object-fit: cover; opacity: 0.95;}
@keyframes morphFloat {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; transform: rotateY(-10deg) rotateX(5deg) translateY(0); }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; transform: rotateY(-5deg) rotateX(2deg) translateY(-20px); }
}

/* Glass Cards Dark */
.glass-card {
    background: rgba(30, 41, 59, 0.4); backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05); border-radius: 30px;
    padding: 50px; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

/* About Section */
.about-text p { margin-bottom: 25px; color: var(--text-muted); font-size: 1.15rem; line-height: 1.9; }
.about-text strong { color: white; font-weight: 800; }
.about-stats { display: flex; gap: 20px; margin-top: 40px; flex-wrap: wrap;}
.stat-box {
    background: rgba(255,255,255,0.03); padding: 25px 20px; border-radius: 20px; text-align: center; flex: 1; min-width: 150px;
    border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.stat-box:hover { transform: translateY(-8px); box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--secondary-glow); border-color: var(--secondary-color);}
.stat-icon { font-size: 2.2rem; color: var(--secondary-color); margin-bottom: 15px; }
.stat-box h3 { font-size: 1.25rem; color: white; font-weight: 800; margin-bottom: 5px; font-family: 'Poppins', sans-serif;}
.stat-box p { color: var(--text-muted); font-size: 1rem; font-weight: 700; margin: 0;}

/* Skills Section */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.skill-card {
    background: rgba(30, 41, 59, 0.5); padding: 45px 35px; border-radius: 30px; text-align: center;
    border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; backdrop-filter: blur(10px);
}
.wide-card { grid-column: 1 / -1; }
.icon-box {
    font-size: 2.5rem; color: var(--secondary-color); margin: 0 auto 25px auto;
    background: rgba(255,255,255,0.05); width: 85px; height: 85px;
    display: flex; align-items: center; justify-content: center; border-radius: 25px; 
    box-shadow: inset 0 0 20px rgba(255,255,255,0.02); transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}
.skill-card:hover .icon-box { background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); color: white; transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px var(--primary-glow); }
.skill-card h3 { margin-bottom: 15px; font-size: 1.6rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: white;}
.skill-card p { color: var(--text-muted); font-size: 1.1rem; line-height: 1.8; }

/* Dual Certificate Grid */
.cert-grid { display: flex; flex-direction: row; gap: 30px; margin-top: 35px; justify-content: center; align-items: stretch; width: 100%;}
.cert-item { flex: 1; text-align: left; min-width: 0; display: flex; flex-direction: column;}
.cert-item h4 { font-size: 1.15rem; color: white; margin-bottom: 15px; font-weight: 800; display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif;}
.cert-item h4 i { color: var(--secondary-color); font-size: 1.3rem;}
.cert-wrapper {
    position: relative; border-radius: 20px; overflow: hidden; height: 260px;
    border: 2px solid rgba(255,255,255,0.1); cursor: pointer; background: rgba(0,0,0,0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); transition: var(--transition); flex: 1;
}
.cert-wrapper img { width: 100%; height: 100%; object-fit: contain; padding: 15px; transition: transform 0.6s ease; filter: brightness(0.9); }
.cert-wrapper:hover { border-color: var(--secondary-color); box-shadow: 0 0 20px var(--secondary-glow); }
.cert-wrapper:hover img { transform: scale(1.05); filter: brightness(1); }
.cert-overlay {
    position: absolute; inset: 0; background: rgba(11, 17, 33, 0.7); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition);
}
.cert-overlay i { 
    color: white; font-size: 1.8rem; background: var(--primary-color); padding: 20px; 
    border-radius: 50%; box-shadow: 0 0 25px var(--primary-glow); transform: scale(0.5); transition: var(--transition); 
}
.cert-wrapper:hover .cert-overlay { opacity: 1; }
.cert-wrapper:hover .cert-overlay i { transform: scale(1); }

/* Projects Section Dark */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.project-card {
    background: rgba(30, 41, 59, 0.5); border-radius: 30px; border: 1px solid rgba(255,255,255,0.05); 
    width: 100%; height: 100%; padding: 45px; display: flex; flex-direction: column; backdrop-filter: blur(10px);
}
.project-content { display: flex; flex-direction: column; height: 100%; }
.proj-badge {
    background: rgba(255, 255, 255, 0.05); color: var(--text-color);
    padding: 8px 18px; border-radius: 20px; font-weight: 800; font-size: 0.9rem;
    display: inline-block; margin-bottom: 25px; align-self: flex-start; border: 1px solid rgba(255,255,255,0.1);
}
.ai-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(14, 165, 233, 0.15));
    color: var(--secondary-color); border: 1px solid var(--secondary-glow);
    text-shadow: 0 0 10px rgba(14, 165, 233, 0.3);
}
.project-content h3 { margin-bottom: 18px; font-size: 2.2rem; font-weight: 800; font-family: 'Poppins', sans-serif; letter-spacing: -1px; color: white;}
.project-content p { color: var(--text-muted); margin-bottom: 30px; font-size: 1.15rem; line-height: 1.8; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 35px; }
.tags span {
    background: rgba(0,0,0,0.3); color: var(--text-muted); padding: 8px 18px;
    border-radius: 12px; font-size: 0.95rem; font-weight: 700; border: 1px solid rgba(255,255,255,0.05);
}
.project-links { margin-top: auto; }

/* Timeline Dark */
.timeline {
    max-width: 900px; margin: 0 auto; border-left: 3px dashed rgba(255,255,255,0.1); padding-left: 45px; position: relative;
}
.timeline-item {
    background: rgba(30, 41, 59, 0.5); padding: 40px; border-radius: 25px; border: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 40px; position: relative; backdrop-filter: blur(10px);
}
.main-timeline { border: 1px solid var(--secondary-color); box-shadow: 0 0 20px rgba(14,165,233,0.1);}
.timeline-dot {
    position: absolute; left: -66px; top: 35px; width: 40px; height: 40px;
    background: var(--bg-color); color: var(--secondary-color); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
    border: 4px solid var(--secondary-color); box-shadow: 0 0 15px var(--secondary-glow);
}
.edu-header { display: flex; align-items: center; gap: 20px; margin-bottom: 15px; }
.college-logo { width: 90px; height: 90px; object-fit: contain; border-radius: 20px; background: rgba(255,255,255,0.9); padding: 10px; border: 1px solid rgba(255,255,255,0.1);}
.timeline-item h3 { font-size: 1.6rem; font-weight: 800; margin-bottom: 5px; font-family: 'Poppins', sans-serif; color: white;}
.timeline-item h4 { color: var(--secondary-color); font-weight: 800; margin-bottom: 15px; font-size: 1.1rem; }
.timeline-item p { color: var(--text-muted); font-size: 1.15rem;}

/* Gallery Grid Dark & Safe Fallback */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.gallery-item {
    position: relative; border-radius: 20px; overflow: hidden; height: 240px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); cursor: pointer; 
    border: 1px solid rgba(255,255,255,0.05);
    background: #1e293b; /* Fallback dark background agar image load na ho */
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); filter: brightness(0.85); }
.gallery-item:hover img { transform: scale(1.1); filter: brightness(1); }
.gallery-overlay {
    position: absolute; inset: 0; background: linear-gradient(to top, rgba(11, 17, 33, 0.9), transparent);
    display: flex; align-items: flex-end; justify-content: center; padding-bottom: 30px; opacity: 0; transition: var(--transition);
}
.gallery-overlay i { color: var(--secondary-color); font-size: 2.2rem; transform: translateY(20px); transition: var(--transition); text-shadow: 0 0 15px var(--secondary-glow);}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover .gallery-overlay i { transform: translateY(0); }

/* Contact Form Dark */
.contact-wrapper { display: flex; gap: 60px; padding: 60px;}
.contact-info { flex: 1; }
.contact-info h3 { font-size: 2.6rem; font-weight: 800; margin-bottom: 15px; font-family: 'Poppins', sans-serif; letter-spacing: -1px; color: white;}
.contact-info p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 40px; line-height: 1.8;}
.info-item { display: flex; align-items: center; gap: 20px; margin: 30px 0; }
.info-item i {
    font-size: 1.4rem; color: white; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
    width: 55px; height: 55px; display: flex; align-items: center; justify-content: center;
    border-radius: 18px; box-shadow: inset 0 0 10px rgba(255,255,255,0.02); transition: var(--transition);
}
.info-item:hover i { background: var(--secondary-color); border-color: var(--secondary-color); box-shadow: 0 0 20px var(--secondary-glow); }
.info-item h4 { font-size: 1.15rem; font-weight: 800; color: white; margin-bottom: 4px; font-family: 'Poppins', sans-serif;}
.info-item a, .info-item p { color: var(--text-muted); font-weight: 700; font-size: 1.1rem;}
.info-item a:hover { color: var(--secondary-color); }

.social-links { display: flex; gap: 15px; margin-top: 45px; }
.social-links a {
    width: 55px; height: 55px; background: rgba(255,255,255,0.05); color: white;
    display: flex; align-items: center; justify-content: center; border-radius: 15px;
    font-size: 1.5rem; border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.social-links a:hover { background: var(--secondary-color); border-color: var(--secondary-color); color: white; transform: translateY(-5px); box-shadow: 0 10px 25px var(--secondary-glow); }

.contact-form { flex: 1.2; background: rgba(30, 41, 59, 0.5); padding: 50px; border-radius: 30px; border: 1px solid rgba(255,255,255,0.05); backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,0.5);}
.input-group { position: relative; margin-bottom: 30px; }
.form-row { display: flex; gap: 25px; }
.form-row .input-group { flex: 1; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 18px 22px; background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px; font-size: 1.1rem; font-weight: 700; color: white;
    outline: none; transition: var(--transition); font-family: 'Nunito', sans-serif;
}
.contact-form textarea { resize: none; border-radius: 25px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--secondary-color); background: rgba(0,0,0,0.4); box-shadow: 0 0 15px rgba(14, 165, 233, 0.2); }
.contact-form label {
    position: absolute; left: 22px; top: 18px; color: var(--text-muted); font-weight: 800;
    pointer-events: none; transition: var(--transition);
}
.contact-form input:focus ~ label, .contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label, .contact-form textarea:not(:placeholder-shown) ~ label {
    top: -12px; left: 15px; font-size: 0.85rem; color: var(--secondary-color); background: var(--bg-alt); padding: 0 10px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.1);
}

/* Modals Dark */
.success-modal, .lightbox-modal {
    display: none; position: fixed; inset: 0; background: rgba(11, 17, 33, 0.95);
    backdrop-filter: blur(15px); z-index: 3000; align-items: center; justify-content: center;
}
.success-modal.active, .lightbox-modal.active { display: flex; }
.success-box {
    background: rgba(30, 41, 59, 0.9); padding: 50px; border-radius: 35px; text-align: center; border: 1px solid rgba(255,255,255,0.1);
    max-width: 420px; width: 90%; box-shadow: 0 0 50px rgba(0,0,0,0.8);
    animation: bounceIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes bounceIn { 0% { transform: scale(0.8); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.spinner-circle { width: 70px; height: 70px; border: 5px solid rgba(255,255,255,0.1); border-top: 5px solid var(--secondary-color); border-radius: 50%; margin: 0 auto 25px; animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.checkmark-circle { display: none; width: 70px; height: 70px; background: rgba(16, 185, 129, 0.2); color: #10b981; border: 2px solid #10b981; font-size: 2.2rem; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 25px; box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);}
.checkmark-circle.show { display: flex; animation: bounceIn 0.4s ease; }
.success-box h3 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; font-family: 'Poppins', sans-serif; color: white;}
.success-box p { color: var(--text-muted); margin-bottom: 25px; font-weight: 700; font-size: 1.05rem;}
.lightbox-content { max-width: 900px; max-width: 90vw; max-height: 90vh; border-radius: 20px; overflow: hidden; position: relative; animation: bounceIn 0.3s ease; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 0 50px rgba(0,0,0,0.8);}
.lightbox-content img { width: 100%; max-height: 90vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 15px; right: 15px; font-size: 1.8rem; color: white; cursor: pointer; background: rgba(0,0,0,0.8); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: var(--transition); border: 1px solid rgba(255,255,255,0.2);}
.lightbox-close:hover { background: var(--secondary-color); color: white; transform: scale(1.1); border-color: var(--secondary-color); box-shadow: 0 0 15px var(--secondary-glow);}

/* Footer Dark */
.footer { text-align: center; padding: 40px 0; background: var(--bg-alt); border-top: 1px solid rgba(255,255,255,0.05); }
.footer h3 { font-size: 1.6rem; font-weight: 800; font-family: 'Poppins', sans-serif; color: white; margin-bottom: 8px; letter-spacing: -1px;}
.footer p { color: var(--text-muted); font-weight: 700; font-size: 1rem; }

/* Mobile View Strict Constraints (No Sideways Scrolling) */
@media (max-width: 991px) {
    .hero-container { flex-direction: column-reverse; text-align: center; padding-top: 120px; gap: 40px;}
    .hero h1 { font-size: 4rem; }
    .hero-desc { margin: 0 auto 35px auto; }
    .hero-buttons { justify-content: center; }
    .image-wrapper { width: 340px; height: 340px; transform: none; animation: none;}
    .contact-wrapper { flex-direction: column; padding: 40px 30px; }
    .glass-card { padding: 40px 30px; }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; } /* Ensures padding doesn't overflow mobile screen */
    .section-padding { padding: 80px 0; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: absolute; top: 100%; left: -100%; width: 100%;
        background: rgba(11, 17, 33, 0.98); backdrop-filter: blur(20px);
        flex-direction: column; padding: 30px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 20px 40px rgba(0,0,0,0.8); transition: 0.4s ease;
    }
    .nav-menu.active { left: 0; }
    .btn-contact-nav { background: transparent; color: white; padding: 0; border: none;}
    .btn-contact-nav:hover { color: var(--secondary-color); transform: none; box-shadow: none; background: transparent;}
    
    .section-title { font-size: 2.4rem; margin-bottom: 40px; }
    .hero h1 { font-size: 3.2rem; }
    .hero h2 { font-size: 1.4rem; justify-content: center; }
    
    .timeline { padding-left: 30px; border-left-width: 2px; }
    .timeline-dot { left: -41px; width: 32px; height: 32px; top: 40px; font-size: 1rem; border-width: 4px;}
    .timeline-item { padding: 30px 20px; }
    
    .form-row { flex-direction: column; gap: 0; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    
    /* Strict Card Settings for Mobile */
    .3d-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
    .project-card, .skill-card { padding: 35px 25px; }
    .cert-grid { flex-direction: column; gap: 20px; align-items: center; width: 100%; }
    .cert-item { width: 100%; max-width: 400px; }
    .cert-wrapper { height: auto; min-height: 220px; }
    .gallery-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}