:root {
    --primary: #1E3A8A;
    /* Deep Blue */
    --primary-dark: #112560;
    --secondary: #047857;
    /* Emerald */
    --accent: #F59E0B;
    /* Amber */
    --dark: #0f172a;
    --text-main: #0f172a;
    --text-light: #64748b;
    --light: #f8fafc;
    --white: #ffffff;
    --real-white: #ffffff;
    /* Constant white */
    --glass: rgba(255, 255, 255, 0.85);
    --glass-card: rgba(255, 255, 255, 1);
    --shadow: rgba(0, 0, 0, 0.1);

    /* Section colors that stay darkish */
    --section-dark-bg: #0f172a;
    --section-dark-text: #ffffff;
    --tag-bg: #f1f5f9;
    --tag-text: #0f172a;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    /* Brighter Blue for Dark Mode */
    --primary-dark: #1e40af;
    --secondary: #10b981;
    /* Brighter Green */
    --accent: #fbbf24;
    --dark: #f8fafc;
    /* Inverted for text */
    --text-main: #f1f5f9;
    --text-light: #94a3b8;
    --light: #0f172a;
    /* Dark background */
    --white: #1e293b;
    /* Darker card background */
    --glass: rgba(15, 23, 42, 0.85);
    --glass-card: #1e293b;
    --shadow: rgba(0, 0, 0, 0.4);

    /* Dark section adaptations */
    --section-dark-bg: #1e293b;
    --section-dark-text: #f1f5f9;
    --tag-bg: #334155;
    --tag-text: #f1f5f9;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

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

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

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    /* Maintain brand color */
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.logo span {
    font-weight: 700;
    font-size: 1.2rem;
    font-family: 'Space Grotesk', sans-serif;
    color: var(--primary);
}

/* Dark mode adjustment for logo text if needed */
[data-theme="dark"] .logo span {
    color: var(--text-main);
}

/* Remove old text styles if no longer needed, or keep for fallback */
/* .logo { ... } */

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

.logo-symbol {
    color: var(--accent);
    font-weight: 800;
}

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

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

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

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
}

.btn-nav:hover {
    background: var(--primary-dark);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    background: radial-gradient(circle at top right, rgba(4, 120, 87, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(30, 58, 138, 0.1), transparent 40%);
}

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

.badge {
    display: inline-block;
    background: rgba(30, 58, 138, 0.1);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(30, 58, 138, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(30, 58, 138, 0.05);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1.2rem;
    color: var(--gray);
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.image-wrapper {
    position: relative;
    border-radius: 20px;
}

.image-wrapper img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

.float-card {
    position: absolute;
    background: var(--glass-card);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    animation: float 4s ease-in-out infinite;
}

.float-card i {
    color: var(--accent);
    font-size: 1.2rem;
}

.card-1 {
    top: 10%;
    left: -20px;
}

.card-2 {
    bottom: 10%;
    right: -20px;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--primary);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Brands */
.brands-marquee {
    padding: 2rem 0;
    background: var(--white);
    border-top: 1px solid var(--shadow);
    text-align: center;
}

.brands-marquee p {
    color: var(--text-light);
}

.brands-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    font-weight: 700;
    color: #cbd5e1;
    font-size: 1.5rem;
}

.brand-item {
    transition: 0.3s;
}

.brand-item:hover {
    color: var(--primary);
}

/* About */
.about {
    padding: 6rem 0;
}

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

.about-img img {
    width: 100%;
    border-radius: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

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

.stats-grid {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
}

.stats-grid li {
    display: flex;
    flex-direction: column;
}

.stats-grid strong {
    font-size: 2.5rem;
    color: var(--primary);
    line-height: 1;
}

.stats-grid span {
    font-size: 0.9rem;
    color: var(--gray);
}

.link-arrow {
    color: var(--primary);
    font-weight: 600;
    border-bottom: 2px solid transparent;
}

.link-arrow:hover {
    border-bottom: 2px solid var(--accent);
}

/* Services */
.services {
    padding: 6rem 0;
    margin: 0 auto 4rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(4, 120, 87, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Projects */
.projects {
    padding: 6rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--gray);
    margin-bottom: 1.5rem;
}

.tags span {
    display: inline-block;
    background: var(--tag-bg);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    color: var(--tag-text);
}

.btn-sm {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

/* Speaking */
.speaking {
    padding: 6rem 0;
    background: var(--section-dark-bg);
    color: var(--section-dark-text);
}

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

.speaking-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
}

.speaking-gallery img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.speaking-gallery img:first-child {
    height: 300px;
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    margin-top: 2rem;
}

.btn-outline-white:hover {
    background: white;
    color: var(--dark);
}

/* Contact */
.contact {
    padding: 6rem 0;
}

.contact-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--real-white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 30px;
}

.contact-card h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-links {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

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

/* Footer */
footer {
    padding: 3rem 0;
    background: var(--section-dark-bg);
    color: var(--text-light);
}

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

.footer-socials a {
    color: white;
    margin-left: 1.5rem;
    font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-container,
    .about-container,
    .speaking-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .experience-highlights {
        background: var(--white);
        transition: background 0.3s ease;
    }

    .hero-image {
        order: -1;
    }

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

    .social-links {
        justify-content: center;
    }
}

/* Scroll Animations */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s ease-out;
}

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

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.active.reveal-up {
    opacity: 1;
    transform: translateY(0);
}

.active.reveal-left {
    opacity: 1;
    transform: translateX(0);
}

.active.reveal-right {
    opacity: 1;
    transform: translateX(0);
}

.service-card,
.project-card,
.timeline-card {
    background: var(--glass-card);
    box-shadow: 0 10px 30px var(--shadow);
}

/* Toggle Switch */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider .icon {
    color: white;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    transition: opacity 0.3s;
}

.slider .sun {
    left: 8px;
    opacity: 1;
}

.slider .moon {
    right: 8px;
    opacity: 0;
}

input:checked+.slider .sun {
    opacity: 0;
}

input:checked+.slider .moon {
    opacity: 0;
}

/* Adjusted: Simplified toggle */
/* --- Resume / Full CV Section --- */
.full-resume {
    background: var(--white);
    padding: 6rem 0;
}

.resume-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .resume-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.resume-column h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.resume-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--secondary);
    margin-bottom: 2.5rem;
}

.resume-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--secondary);
    border-radius: 50%;
}

.resume-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    display: block;
    margin-bottom: 0.3rem;
    font-family: 'Space Grotesk', sans-serif;
}

.resume-item h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.resume-company {
    font-weight: 600;
    color: var(--text-light);
    display: block;
    margin-bottom: 0.8rem;
}

.resume-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
}