:root {
    --bg-color: #000000;
    --card-bg: #111112; 
    --accent-blue: #ffffff;
    --accent-purple: #8b5cf6;

    --accent-gradient: linear-gradient(90deg, #333333, #111111);
    --text-white: #ffffff;
    --text-gray: #9ca3af;
    --nav-height: 90px;
    --top-bar-height: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.text-center { text-align: center; }
.mt-40 { margin-top: 40px; }

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: 0.3s;
    cursor: pointer;
    display: inline-block;
    border: none;
    text-decoration: none;
}

.btn-nav {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-size: 0.7rem;
    padding: 7px 20px;
    margin-top: 2px; /* slight nudge down for 'space from top' feel */
}

.btn-nav:hover { background-color: white; color: black; border-color: white; }

.btn-white-black {
    background-color: white;
    color: var(--bg-color);
    font-weight: 700;
    padding: 15px 35px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-white-black:hover {
    background-color: #ddd;
}

.btn-purple {
    background-color: var(--accent-purple);
    color: white;
}

.btn-purple:hover { 
    background-color: #aaaaaa; 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-white {
    background-color: white;
    color: var(--bg-color);
    font-weight: 700;
}

.link-btn {
    color: white;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.link-btn i {
    transition: 0.3s;
}

.link-btn:hover i {
    transform: translateX(5px);
    color: var(--accent-blue);
}

/* Top Bar */
.top-bar {
    background-color: #050505;
    height: var(--top-bar-height);
    font-size: 0.85rem;
    color: var(--text-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.social-top a {
    color: var(--text-gray);
    margin-right: 15px;
    transition: 0.3s;
}

.social-top a:hover { color: var(--accent-blue); }

.contact-top span {
    margin-left: 20px;
}

.contact-top i {
    color: var(--accent-blue);
    margin-right: 5px;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85); /* Glassmorphism background */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: 0.3s ease;
    padding: 0;
}
.navbar.scrolled {
    border-bottom: 1px solid #222222;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}
.nav-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: #a0aec0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    text-decoration: none;
}
.nav-link.active {
    color: #ffffff;
    border-bottom: 2px solid #ffffff;
    padding-bottom: 5px;
}

.nav-cta {
    background: transparent;
    color: #ffffff;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #ffffff;
    text-transform: uppercase;
    transition: 0.3s ease;
    text-decoration: none;
}
.nav-cta:hover {
    background: #ffffff;
    color: #000;
}
/* Hamburger Menu Icon */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}
.hamburger span {
    width: 24px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 2px;
    transition: 0.3s ease;
}


/* Hero Section */
.hero {
    padding: 80px 0;
    min-height: calc(100vh - var(--nav-height) - var(--top-bar-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-hello {
    color: var(--text-white);
    font-weight: 800;
    font-size: 0.85rem;
    margin-bottom: 8px;
    letter-spacing: 3px;
    opacity: 0.8;
}

.hero-role {
    color: var(--accent-purple);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    min-height: 1.5em; /* Prevent layout shift */
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-white);
    min-height: 1em; /* Prevent layout shift */
    line-height: 1.1;
}

.hero-role.is-typing::after {
    content: '|';
    margin-left: 5px;
    animation: blink 0.7s infinite;
    color: var(--accent-purple);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    color: #a3a3a3;
    font-size: 0.95rem;
    max-width: 550px;
    margin-bottom: 40px;
    line-height: 1.8;
}
.hero-description strong {
    color: var(--text-white);
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-image-area {
    position: relative;
    max-width: 450px;
}

.hero-img {
    width: 100%;
    position: relative;
    z-index: 2;
    filter: grayscale(1) contrast(1.1);
    transition: 0.5s;
    border-radius: 4px;
}


.hero-img:hover {
    filter: grayscale(0.8) contrast(1.1);
}

.image-bg-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.shape {
    position: absolute;
    color: var(--accent-purple);
    font-size: 2rem;
    opacity: 0.6;
}

.star-1 { top: 10%; right: 10%; animation: float 3s infinite ease-in-out; }
.star-2 { bottom: 20%; left: 0%; animation: float 4s infinite ease-in-out; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.badge-circular {
    position: absolute;
    bottom: 50px;
    right: -30px;
    width: 120px;
    height: 120px;
    background-color: var(--bg-color);
    border: 1px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    animation: rotate 10s linear infinite;
}

.badge-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 2px;
    color: white;
}

.badge-star {
    position: absolute;
    color: var(--accent-purple);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Sections Global */
section { padding: 100px 0; }

.sub-title {
    color: var(--text-gray);
    letter-spacing: 3px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: white;
}

.section-title span { color: var(--accent-blue); }


.section-desc {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto 60px;
}

/* Skills & Technologies */
.section-desc {
    color: var(--text-gray);
    font-size: 0.93rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

.diamond-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 10px;
}
.diamond-divider::before, .diamond-divider::after {
    content: '';
    height: 1px;
    width: 30px;
    background-color: var(--text-gray);
    opacity: 0.3;
}
.diamond-divider .diamond {
    width: 6px;
    height: 6px;
    border: 1px solid var(--text-white);
    transform: rotate(45deg);
    display: inline-block;
}

.skills-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.skill-card-new {
    background-color: #050505;
    border: 1px solid #1a1a1a;
    padding: 30px 15px;
    border-radius: 2px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
}
.skill-card-new::after {
    content: '';
    position: absolute;
    bottom: 20px;
    width: 60%;
    height: 3px;
    background-color: #1a1a1a;
    border-radius: 2px;
    transition: 0.3s;
}
.skill-card-new:hover {
    background-color: #0a0a0a;
}
.skill-card-new:hover::after {
    background-color: white;
}
.skill-card-new i {
    font-size: 2rem;
    color: white;
    margin-bottom: 15px;
}
.skill-card-new h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 25px; /* space for the line */
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.service-card {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 2px;
    transition: 0.3s;
    text-align: left;
}

.service-card:hover { background-color: #1a1a1b; }

.diamond-icon {
    width: 60px;
    height: 60px;
    border: 1px solid var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(45deg);
    margin-bottom: 40px;
    transition: 0.3s;
}

.diamond-icon i {
    transform: rotate(-45deg);
    font-size: 1.5rem;
    color: white;
}

.service-card:hover .diamond-icon {
    border-color: var(--accent-blue);
    background-color: var(--accent-blue);
}

.service-card h3 { margin-bottom: 15px; }
.service-card p { color: var(--text-gray); font-size: 0.9rem; margin-bottom: 25px; }

/* Portfolio Grid */
.portfolio-grid-new {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    text-align: left;
}
.portfolio-card-new {
    background-color: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    overflow: hidden;
    transition: 0.3s;
}
.portfolio-card-new:hover {
    border-color: #333;
}
.portfolio-img-area {
    position: relative;
    width: 100%;
    height: 250px;
    background-color: #111;
    overflow: hidden;
}
.portfolio-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(1);
    transition: 0.4s;
}
.portfolio-card-new:hover .portfolio-img-area img {
    opacity: 0.9;
}
.portfolio-img-area .badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 5px 12px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}
.badge.featured { background-color: white; color: black; }
.badge.live { background-color: #333; color: white; }
.portfolio-info-area {
    padding: 25px;
}
.portfolio-info-area h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: white;
}
.portfolio-info-area p {
    color: #a3a3a3;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}
.portfolio-tags .tag {
    background-color: white;
    color: black;
    border: none;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 15px;
    border-radius: 2px;
}
.portfolio-link {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}
.portfolio-link i { font-size: 0.85rem; }
.portfolio-link:hover { color: #a3a3a3; }

/* Testimonials */
.testimonials { background-color: #020202; }

.testimonial-box {
    background-color: var(--card-bg);
    border: 1px solid var(--accent-blue);
    padding: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
}

.testi-image img {
    width: 250px;
    border-radius: 2px;
    filter: grayscale(1);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--text-gray);
    opacity: 0.3;
    margin-bottom: 20px;
}

/* About Me Section */
.about-section {
    background-color: var(--bg-color);
    padding: 100px 0;
}

.about-box {
    display: flex;
    align-items: center;
    gap: 60px;
    background: transparent;
    padding: 20px 0;
}


.about-image {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.about-image img {
    width: 260px;
    border-radius: 2px;
    filter: grayscale(1) contrast(1.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transition: 0.4s;
    object-fit: cover;
}


.about-image img:hover { filter: grayscale(0.8) contrast(1.1); }

.about-socials {
    display: flex;
    gap: 10px;
}

.about-socials a {
    width: 34px;
    height: 34px;
    background: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-gray);
    font-size: 0.9rem;
    transition: 0.3s;
    text-decoration: none;
}

.about-socials a:hover {
    background: var(--text-white);
    color: var(--bg-color);
}

.about-content .section-title { text-align: left; font-size: 2rem; margin-bottom: 20px; line-height: 1.2; font-weight: 800; color: white; }

.about-desc {
    color: #a3a3a3;
    font-size: 0.93rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 600px;
}


.about-desc strong { color: var(--text-white); }

.about-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.about-buttons .btn {
    padding: 10px 22px;
    font-size: 0.85rem;
}


.btn-outline-white {
    background-color: transparent;
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.4);
    font-weight: 600;
    padding: 12px 25px;
    display: inline-flex;
    align-items: center;
    border-radius: 2px;
    transition: 0.3s;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 1px;
}
.btn-outline-white:hover {
    border-color: var(--text-white);
    background-color: rgba(255,255,255,0.05);
}

@media (max-width: 992px) {
    .about-box { flex-direction: column; gap: 40px; padding: 40px 25px; }
    .about-image img { width: 100%; max-width: 300px; }
}

/* CTA Section */
.cta-section { padding: 60px 0; }

.cta-box {
    background: var(--accent-gradient);
    padding: 60px 80px;
    border-radius: 4px;
}

.cta-text { display: flex; align-items: center; gap: 30px; }
.cta-text i { font-size: 3rem; }
.cta-text h2 { font-size: 2rem; }

/* Footer */
.main-footer {
    padding: 80px 0 20px;
    background-color: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-info { flex: 1.5; padding-right: 50px; }
.footer-info p { margin: 20px 0; color: var(--text-gray); }

.social-footer a {
    color: white;
    font-size: 1.2rem;
    margin-right: 20px;
    transition: 0.3s;
}

.social-footer a:hover { color: var(--accent-blue); }

.footer-links { flex: 1; }
.footer-links h4 { margin-bottom: 20px; font-weight: 600; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--accent-blue); }

.footer-bottom {
    margin-top: 60px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 992px) {
    .flex-between { flex-direction: column; text-align: center; }
    .hero-title { font-size: 3.5rem; }
    .speciality-grid, .services-grid, .portfolio-grid-v2 { grid-template-columns: 1fr; }
    .testimonial-box { flex-direction: column; padding: 40px 20px; }
    .testi-image img { width: 100%; }
    .cta-box { flex-direction: column; gap: 30px; padding: 40px; }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none; /* Hide default nav items */
    }
    .hamburger {
        display: flex; /* Show hamburger button */
    }
    .nav-links.mobile-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #0a0a0a;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
        gap: 15px;
        border-radius: 0 0 4px 4px;
        animation: slideDown 0.3s ease;
    }
    /* Animation for mobile menu opening */
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    .top-bar { display: none; }
    .hero-title { font-size: 2.8rem; }
}


/* Education & Experience Section */
.edu-exp-section {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.edu-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
}

.column-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.column-title i {
    color: white;
    font-size: 1rem;
}

.vertical-timeline {
    position: relative;
    padding-left: 25px;
}

.vertical-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #2a2a2a;
}

.timeline-box {
    position: relative;
    background-color: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.timeline-box:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.time-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    padding: 3px 12px;
    border-radius: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.timeline-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}


.white-badge {
    background-color: #222;
    color: #a3a3a3;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.inst-name {
    font-size: 0.85rem;
    color: #cccccc;
    margin-bottom: 5px;
}

.inst-loc {
    font-size: 0.85rem;
    color: #cccccc;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .edu-exp-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Legacy Timeline (kept for reference) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 30px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 10px;
    text-align: left;
}

.timeline-content h3 { color: var(--accent-blue); margin-bottom: 5px; }
.timeline-content h4 { font-size: 1rem; margin-bottom: 10px; }
.timeline-content .date { color: var(--text-gray); font-size: 0.9rem; }

/* Certifications & Publications */
/* Standardized Content Box (Same as timeline-box) */
.content-box {
    position: relative;
    background-color: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    padding: 30px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    text-align: left;
}

.content-box:hover {
    border-color: #333;
    transform: translateY(-5px);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.cert-icon-wrap, .extra-icon-wrap {
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.pub-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    color: #000;
    background-color: #fff;
    padding: 3px 12px;
    border-radius: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.content-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.cert-org, .cert-roll {
    font-size: 0.85rem;
    color: #a3a3a3;
    margin-bottom: 5px;
}

.extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.extra-text-new h3 {
    margin-bottom: 10px;
}

.extra-text-new p {
    font-size: 0.95rem;
    color: #a3a3a3;
    line-height: 1.6;
}


/* Responsive Updates */
@media (max-width: 992px) {
    .cert-grid { grid-template-columns: 1fr; }
}
/* Overlay Card for Projects */
.project-overlay-card {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
}

.project-overlay-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.5s ease;
    display: block;
}

.project-overlay-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.6);
}

.overlay-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 60%, transparent 100%);
    padding: 30px 30px 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left;
}

.project-overlay-card.active .overlay-details {
    transform: translateY(0);
}

.overlay-details h3 {
    color: var(--accent-blue);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.overlay-details p {
    font-size: 0.9rem;
    color: #ddd;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Tap hint on mobile / desktop */
.project-overlay-card::after {
    content: 'Click to view';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8);
    color: black;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 2px;
    opacity: 1;
    transition: opacity 0.3s;
    pointer-events: none;
}

.project-overlay-card.active::after {
    opacity: 0;
}



/* Scroll Reveal Animations */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 1.2s ease;
}

.reveal.active {
    opacity: 1;
    transform: none !important;
}

.fade-up {
    transform: translateY(50px);
}

.slide-left {
    transform: translateX(-150px) scale(0.9);
}

.slide-right {
    transform: translateX(150px) scale(0.9);
}

.zoom-in {
    transform: scale(0.8);
}

/* Stagger delay for grids */
.reveal:nth-child(2) { transition-delay: 0.2s; }
.reveal:nth-child(3) { transition-delay: 0.4s; }
.reveal:nth-child(4) { transition-delay: 0.6s; }

/* Responsive Updates for Mobile & Tablet */
@media (max-width: 992px) {
    .cert-grid, .speciality-grid, .portfolio-grid-v2 { 
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    .about-box {
        flex-direction: column;
        text-align: center;
    }
    .about-contacts {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Navbar */
    .nav-links, .btn-nav {
        display: none; /* Hide desktop nav and button on mobile */
    }
    .hamburger {
        display: block; /* Show hamburger menu later if JS is added */
    }
    
    /* Hero Section */
    .hero {
        padding: 40px 0;
        text-align: center;
    }
    .hero .container.flex-between {
        flex-direction: column;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-img {
        width: 100%;
        max-width: 300px;
    }
    .hero-btns {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }
    
    /* Grids & Cards */
    .speciality-grid, .portfolio-grid-v2, .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::after {
        left: 20px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 50px;
        padding-right: 20px;
    }
    .timeline-item.slide-right {
        left: 0;
        transform: translateX(-150px) scale(0.9);
    }
    .timeline-item.slide-right.active {
        transform: translateX(0) scale(1);
    }
    
    /* Footer */
    .main-footer .container.flex-between {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .footer-links {
        margin: 0 auto;
    }
}

/* Contact Section */
.contact-section {
    background-color: #000;
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    text-align: left;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    font-size: 1.1rem;
    color: #fff;
    width: 42px;
    height: 42px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    border: 1px solid #222;
}

.item-text h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 5px;
}

.item-text p {
    color: #a3a3a3;
    font-size: 0.9rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-input {
    width: 100%;
    background-color: #050505;
    border: 1px solid #1a1a1a;
    padding: 15px 20px;
    color: #fff;
    font-size: 0.95rem;
    border-radius: 2px;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: #fff;
}

.btn.full-width {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    letter-spacing: 2px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Form Success State */
.form-success-container {
    padding: 60px 40px;
    background-color: #050505;
    border: 1px solid #1a1a1a;
    border-radius: 2px;
    text-align: center;
    animation: fadeIn 0.5s ease;
}

.success-icon {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 20px;
}

.form-success-container h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.form-success-container p {
    color: #a3a3a3;
    font-size: 1rem;
    margin-bottom: 25px;
}

.auto-back {
    font-size: 0.85rem;
    color: #555;
    font-style: italic;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



