/* Variables & Reset */
:root {
    --primary: #0F172A;
    /* Deep Navy/Black */
    --accent: #2563EB;
    /* Professional Blue */
    --accent-dark: #1D4ED8;
    --bg-light: #FFFFFF;
    --bg-gray: #F8FAFC;
    --text-main: #334155;
    --text-light: #64748B;
    --border: #E2E8F0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Canvas */
#cyber-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Behind everything */
    pointer-events: none;
    /* Allows clicking through it */
    opacity: 1;
}

h1,
h2,
h3,
h4 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.highlight {
    color: var(--accent);
}

.dot {
    color: var(--accent);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    display: inline-flex;
    padding: 1rem 2rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    color: var(--accent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links .btn-nav {
    padding: 0.6rem 1.5rem;
    background: var(--bg-gray);
    border-radius: 50px;
    font-weight: 600;
}

.nav-links .btn-nav:hover {
    background: var(--primary);
    color: white;
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: transparent;
    /* Changed to transparent for canvas */
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.badge {
    display: inline-block;
    background: #EFF6FF;
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-desc {
    font-size: 0.8rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
}

.hero-img {
    width: 100%;
    height: auto;
    border-radius: 24px;
    object-fit: cover;
    box-shadow: var(--shadow-lg);
    z-index: 2;
    position: relative;
    max-height: 700px;
}

.image-bg-shape {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--bg-gray);
    border: 1px solid var(--border);
    border-radius: 24px;
    z-index: 1;
}

.floating-card {
    position: absolute;
    bottom: 40px;
    left: -30px;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    border: 1px solid white;
    max-width: 260px;
}

.fc-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #E2E8F0;
}

.icon-box-small {
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.certs-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: var(--transition);
    opacity: 0.9;
}

.certs-grid img:hover {
    transform: scale(1.05);
    opacity: 1;
}

/* About Section */
.section-light {
    padding: 100px 0;
    background: transparent;
    /* Transparent for canvas visibility */
}

.about-layout {
    display: grid;
    grid-template-columns: 0.8fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image-col {
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.about-blob {
    position: absolute;
    top: 10%;
    left: -10%;
    width: 80%;
    height: 80%;
    background: #EFF6FF;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    z-index: 1;
    opacity: 0.8;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.feature-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.f-icon {
    font-size: 1.5rem;
    color: var(--accent);
    background: #EFF6FF;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.feature-row h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.feature-row p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Experience Section */
.section-gray {
    padding: 100px 0;
    background: rgba(248, 250, 252, 0.85);
    /* Semi-transparent gray */
    backdrop-filter: blur(5px);
}

.split-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
}

.bio-image-wrapper {
    margin-bottom: 2rem;
}

.bio-img {
    width: 100%;
    max-width: 300px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.certs-wrapper {
    margin-top: 2rem;
}

.certs-wrapper span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.certs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cert-tag {
    background: #E2E8F0;
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.timeline-side {
    border-left: 2px solid var(--border);
    padding-left: 3rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -3.55rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border: 4px solid white;
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
}

.tl-date {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Services */
.section-head {
    margin-bottom: 4rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.text-center {
    text-align: center;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    background: white;
}

.service-box {
    padding: 4rem 3rem;
    border-right: 1px solid var(--border);
    transition: var(--transition);
}

.service-box:last-child {
    border-right: none;
}

.service-box:hover {
    background: #FAFAFA;
}

.service-box h3 {
    font-size: 3rem;
    color: #E2E8F0;
    margin-bottom: 1rem;
}

.service-box h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

/* Gallery */
.section-dark-accent {
    padding: 100px 0;
    background: #0F172A;
    color: white;
}

.section-dark-accent h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-dark-accent p {
    color: #94A3B8;
}

.gallery-intro {
    margin-bottom: 3rem;
    max-width: 600px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}

.item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.item-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

.overlay span {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
}

.overlay h4 {
    color: white;
    font-size: 1.2rem;
}

/* Contact */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-card {
    display: flex;
    background: var(--primary);
    color: white;
    border-radius: 24px;
    width: 100%;
    max-width: 1100px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.contact-image-side {
    width: 40%;
    position: relative;
}

.contact-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-content-side {
    width: 60%;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.contact-content-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    pointer-events: none;
}

.contact-content-side h2 {
    color: white;
    margin-bottom: 1rem;
    font-size: 2.2rem;
}

.contact-content-side p {
    color: #CBD5E1;
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    color: white;
    transition: var(--transition);
    max-width: 400px;
}

.contact-row:hover {
    background: white;
    color: var(--primary);
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
    font-size: 0.9rem;
    background: white;
    position: relative;
    z-index: 2;
}

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

.footer-right a {
    color: var(--text-light);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-200 {
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {

    /* Layout Grids */
    .hero-grid,
    .about-layout,
    .split-layout,
    .services-grid-modern {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        gap: 1.5rem;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    /* Hero Section */
    .hero {
        padding-top: 100px;
        padding-bottom: 60px;
        text-align: center;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image-wrapper {
        margin-top: 2rem;
    }

    .floating-card {
        position: relative;
        bottom: auto;
        left: auto;
        margin: -40px auto 0 auto;
        width: 90%;
        max-width: 320px;
        z-index: 5;
    }

    .certs-grid img:hover {
        transform: none;
    }

    /* About Section */
    .about-image-col {
        margin-bottom: 1rem;
        width: 100%;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Experience / Timeline */
    .timeline-side {
        border-left: none;
        padding-left: 0;
        margin-top: 2rem;
    }

    .timeline-item::before {
        display: none;
    }

    .timeline-item {
        background: white;
        padding: 1.5rem;
        border-radius: 12px;
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--border);
    }

    /* Services & Gallery */
    .service-box {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 3rem 1.5rem;
    }

    .gallery-grid {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    .gallery-item {
        height: 250px;
    }

    /* Contact */
    .contact-card {
        flex-direction: column;
    }

    .contact-image-side {
        width: 100%;
        height: 300px;
    }

    .contact-content-side {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .contact-content-side h2 {
        font-size: 1.8rem;
    }

    .contact-image-side img {
        object-position: top center;
    }

    .contact-row {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .stat-num {
        font-size: 1.25rem;
    }

    .floating-card {
        padding: 1rem;
    }
}