/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
    /* Colors */
    --color-bg: #0A0406;
    --color-card: #140C0F;
    --color-card-border: rgba(239, 68, 68, 0.1);
    --color-card-hover-border: rgba(244, 63, 94, 0.35);
    --color-primary: #EF4444;
    --color-secondary: #F43F5E;
    --color-accent: #22C55E;
    --color-text: #FFFFFF;
    --color-subtext: #94A3B8;
    --color-header-bg: rgba(10, 4, 6, 0.85);
    --color-header-border: rgba(255, 255, 255, 0.05);
    --color-marquee-bg: rgba(20, 12, 15, 0.6);
    --color-marquee-border: rgba(255, 255, 255, 0.03);
    --color-section-alt: rgba(15, 23, 42, 0.2);
    --color-section-alt-blog: rgba(15, 23, 42, 0.1);
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 7rem;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-glow: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(239, 68, 68, 0.08), transparent 40%);
}

[data-theme="light"] {
    --color-bg: #FFF8F8;
    --color-card: #FFFFFF;
    --color-card-border: rgba(239, 68, 68, 0.08);
    --color-card-hover-border: rgba(244, 63, 94, 0.35);
    --color-text: #2D1A1E;
    --color-subtext: #7A5C61;
    --color-header-bg: rgba(255, 248, 248, 0.85);
    --color-header-border: rgba(239, 68, 68, 0.06);
    --color-marquee-bg: rgba(255, 240, 240, 0.6);
    --color-marquee-border: rgba(239, 68, 68, 0.05);
    --color-section-alt: rgba(239, 68, 68, 0.02);
    --color-section-alt-blog: rgba(239, 68, 68, 0.015);
}

/* Light Mode Overrides for Cards, Badges, and Details */
[data-theme="light"] .badge {
    background: rgba(239, 68, 68, 0.04);
    border-color: rgba(239, 68, 68, 0.12);
    color: var(--color-text);
}

[data-theme="light"] .tag {
    background: rgba(239, 68, 68, 0.03);
    border-color: rgba(239, 68, 68, 0.1);
    color: var(--color-subtext);
}

[data-theme="light"] .skills-card h3 {
    border-bottom-color: rgba(239, 68, 68, 0.08);
}

[data-theme="light"] .timeline-content:hover,
[data-theme="light"] .skills-card:hover,
[data-theme="light"] .client-project-card:hover,
[data-theme="light"] .project-card:hover,
[data-theme="light"] .cert-card:hover,
[data-theme="light"] .stat-card:hover,
[data-theme="light"] .education-card:hover {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.06);
}

[data-theme="light"] .cert-icon {
    background: rgba(239, 68, 68, 0.06);
}

[data-theme="light"] .experience-photo {
    border-color: rgba(239, 68, 68, 0.1);
}

/* Light Mode Overrides for Contact Form Inputs */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background: #FFFFFF;
    border-color: rgba(239, 68, 68, 0.15);
    color: var(--color-text);
}

[data-theme="light"] .form-group input::placeholder,
[data-theme="light"] .form-group textarea::placeholder {
    color: #A0888C;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.1);
}

/* Light Mode Overrides for Featured Project SVG Thumbnails */
[data-theme="light"] .project-thumb rect:first-of-type {
    fill: #FFF2F2;
}

[data-theme="light"] .project-thumb text {
    fill: var(--color-text);
}

[data-theme="light"] .project-thumb text[fill="#94A3B8"] {
    fill: var(--color-subtext);
}

[data-theme="light"] .project-thumb path[stroke="#1E293B"],
[data-theme="light"] .project-thumb path[stroke="#FFFFFF"] {
    stroke: var(--color-text);
}

[data-theme="light"] .project-methodology {
    background: #FFF8F8;
    border-color: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.container-narrow {
    max-width: 900px !important;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 1rem;
}

p {
    font-size: 1rem;
    color: var(--color-subtext);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 500;
}

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

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

/* ==========================================================================
   BACKGROUND EFFECT & BLOBS
   ========================================================================== */
.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    opacity: 0.15;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    background: var(--color-primary);
}

.blob-2 {
    top: 50%;
    right: -10%;
    background: var(--color-secondary);
}



/* Mouse Glow Effect */
#mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: radial-gradient(circle 350px at var(--mouse-x, 0) var(--mouse-y, 0), rgba(239, 68, 68, 0.12), transparent 80%);
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    z-index: 1000;
    width: 0%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-header-border);
    transition: var(--transition-smooth);
}

.header-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-subtext);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

.theme-toggle-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
    display: block;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
    display: none;
}
[data-theme="light"] .theme-toggle-btn .sun-icon {
    display: none;
}
[data-theme="light"] .theme-toggle-btn .moon-icon {
    display: block;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: 1px;
}

#main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--color-subtext);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--color-text);
}

.nav-link-cta {
    text-decoration: none;
    color: var(--color-bg);
    background: var(--color-text);
    padding: 0.6rem 1.4rem;
    border-radius: 99px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link-cta:hover {
    background: var(--color-primary);
    color: var(--color-text);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 101;
}

.mobile-nav-toggle .bar {
    width: 25px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-smooth);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text);
    border: 1px solid transparent;
}

.btn-primary:hover {
    background: #2563EB;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--color-card);
    color: var(--color-text);
    border: 1px solid var(--color-card-border);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: var(--color-card-hover-border);
    transform: translateY(-2px);
}

.btn-tertiary {
    background: transparent;
    color: var(--color-subtext);
    border: none;
}

.btn-tertiary:hover {
    color: var(--color-text);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-icon {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#hero {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--color-accent);
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--color-accent);
    animation: pulse 2s infinite;
}

.hero-actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Typing animation cursor styling */
.typed-cursor {
    font-weight: 200;
    animation: blink 0.7s infinite;
    color: var(--color-secondary);
    margin-left: 2px;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-inner {
    width: 85%;
    height: 85%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid rgba(239, 68, 68, 0.2);
    border-radius: 50%;
}

.hero-image-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.25), transparent 70%);
    z-index: 1;
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
}

/* ==========================================================================
   TECH MARQUEE SECTION
   ========================================================================== */
#tech-marquee-section {
    padding: 2.5rem 0;
    background: var(--color-marquee-bg);
    border-top: 1px solid var(--color-marquee-border);
    border-bottom: 1px solid var(--color-marquee-border);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    position: relative;
    user-select: none;
}

/* Gradient Mask overlay to fade out sides */
.marquee-wrapper::before,
.marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-bg), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(-90deg, var(--color-bg), transparent);
}

.marquee-track {
    display: flex;
    white-space: nowrap;
    animation: marquee-animation 30s linear infinite;
    gap: 3.5rem;
    padding-left: 1.75rem;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--color-subtext);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: var(--transition-smooth);
}

.marquee-item:hover {
    color: var(--color-text);
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-primary);
    border-radius: 50%;
}

@keyframes marquee-animation {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1.75rem));
    }
}

/* ==========================================================================
   ABOUT ME & STATS
   ========================================================================== */
#about {
    padding: var(--section-spacing) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    padding: 2rem;
    border-radius: 12px;
    text-align: left;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-5px);
}

.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.stat-icon svg {
    width: 100%;
    height: 100%;
}

.stat-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.2rem;
}

.stat-desc {
    font-size: 0.85rem;
    color: var(--color-subtext);
    margin-bottom: 0;
    line-height: 1.5;
}


.section-title {
    margin-bottom: 3.5rem;
}

.sub-title {
    display: block;
    color: var(--color-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
#experience {
    padding: var(--section-spacing) 0;
    background: var(--color-section-alt);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid rgba(59, 130, 246, 0.15);
}

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

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.55rem;
    top: 6px;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 3px solid var(--color-primary);
    border-radius: 50%;
    z-index: 2;
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-dot {
    background: var(--color-secondary);
    border-color: var(--color-text);
    box-shadow: 0 0 12px var(--color-secondary);
}

.timeline-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.timeline-content {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    border-color: var(--color-card-hover-border);
    box-shadow: 0 10px 30px rgba(5, 8, 22, 0.5);
}

.company-name {
    display: block;
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.location-badge {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--color-subtext);
    margin-bottom: 1.5rem;
}

.experience-media {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.experience-photo {
    max-width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition-smooth);
}

.experience-photo:hover {
    transform: scale(1.02);
    border-color: var(--color-secondary);
}

.experience-media.multiple .experience-photo {
    flex: 1 1 calc(50% - 0.5rem);
    max-width: 100%;
    min-width: 200px;
    height: 180px;
}

.achievement-list {
    list-style-type: none;
    margin-bottom: 2rem;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-subtext);
}

.achievement-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.15);
    color: var(--color-subtext);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* ==========================================================================
   SKILLS GRID
   ========================================================================== */
#skills {
    padding: var(--section-spacing) 0;
}

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

.skills-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.skills-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-5px);
}

.skills-card h3 {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
}

.skills-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.badge {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.skills-card:hover .badge {
    border-color: rgba(6, 182, 212, 0.15);
}

.badge:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-text);
    transform: translateY(-2px);
}

/* ==========================================================================
   CLIENT PROJECTS
   ========================================================================== */
#client-projects {
    padding: var(--section-spacing) 0;
}

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

.client-project-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.client-project-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-5px);
}

.client-project-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.client-project-header h3 {
    margin-bottom: 0;
}

.client-badge {
    display: inline-block;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.6rem;
}

.client-achievement-list {
    list-style-type: none;
}

.client-achievement-list li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--color-subtext);
    font-size: 0.9rem;
    line-height: 1.5;
}

.client-achievement-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-weight: bold;
}

/* ==========================================================================
   PROJECTS
   ========================================================================== */
#projects {
    padding: var(--section-spacing) 0;
    background: var(--color-section-alt);
}

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

.project-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-6px);
}

.project-img-container {
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.project-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.project-card:hover .project-thumb {
    transform: scale(1.04);
}

.project-details {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-desc {
    margin-bottom: 1.5rem;
}

.project-methodology {
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.8rem;
}

.project-methodology p {
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
}

.project-methodology p:last-child {
    margin-bottom: 0;
}

.project-methodology strong {
    color: var(--color-text);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

/* ==========================================================================
   CERTIFICATIONS & EDUCATION
   ========================================================================== */
#certifications {
    padding: var(--section-spacing) 0;
}

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

.cert-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    backdrop-filter: blur(8px);
    transition: var(--transition-smooth);
}

.cert-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-4px);
}

.cert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.1);
    color: var(--color-secondary);
    border-radius: 8px;
    padding: 0.8rem;
    flex-shrink: 0;
}

.cert-icon .icon {
    width: 24px;
    height: 24px;
}

.cert-details h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--color-text);
}

.cert-issuer {
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.cert-date {
    font-size: 0.8rem;
    color: var(--color-subtext);
    margin-bottom: 0.4rem;
}

.cert-id {
    display: block;
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--color-subtext);
}

#education {
    padding: var(--section-spacing) 0;
    background: var(--color-section-alt);
}

.education-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid rgba(6, 182, 212, 0.15);
}

.education-card {
    position: relative;
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    padding: 2.5rem;
    backdrop-filter: blur(8px);
}

.edu-dot {
    position: absolute;
    left: -2.55rem;
    top: 2.2rem;
    width: 16px;
    height: 16px;
    background: var(--color-bg);
    border: 3px solid var(--color-secondary);
    border-radius: 50%;
}

.degree {
    font-size: 1.1rem;
    color: var(--color-text);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.edu-header h3 {
    margin-bottom: 0;
}

.edu-date {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.edu-grade {
    font-size: 0.95rem;
    color: var(--color-subtext);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.grade-badge {
    background: rgba(34, 197, 94, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.edu-desc {
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.edu-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
#contact {
    padding: var(--section-spacing) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

.contact-pitch {
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 3px;
}

.info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
    color: var(--color-text);
}

.info-item p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.info-item a {
    color: var(--color-subtext);
    text-decoration: none;
    transition: var(--transition-smooth);
}

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

.contact-form-wrapper {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(8px);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(5, 8, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.15);
}

.form-feedback {
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.form-feedback.success {
    color: var(--color-accent);
}

.form-feedback.error {
    color: #EF4444;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
    background: var(--color-bg);
}

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

.footer-container p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-subtext);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
}

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

/* ==========================================================================
   ANIMATIONS & REVEALS
   ========================================================================== */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Reveal classes loaded via IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   RESPONSIVE DESIGN (MOBILE FIRST)
   ========================================================================== */
@media (max-width: 991px) {
    :root {
        --container-padding: 1.5rem;
        --section-spacing: 5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-content {
        order: 2;
    }
    
    .hero-image-wrapper {
        order: 1;
        width: 60%;
        margin: 0 auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    #site-header {
        background: var(--color-header-bg);
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    #main-nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--color-bg);
        z-index: 100;
        transform: translateX(100%);
        transition: var(--transition-smooth);
        padding: 3rem var(--container-padding);
        border-top: 1px solid var(--color-header-border);
    }
    
    #main-nav.active {
        transform: translateX(0);
    }
    
    #main-nav ul {
        flex-direction: column;
        gap: 2rem;
        align-items: flex-start;
    }
    
    .nav-link {
        font-size: 1.25rem;
    }
    
    .nav-link-cta {
        display: block;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
    }
    
    /* Header menu open states */
    .mobile-menu-open .mobile-nav-toggle .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .mobile-menu-open .mobile-nav-toggle .bar:nth-child(2) {
        opacity: 0;
    }
    .mobile-menu-open .mobile-nav-toggle .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    #hero {
        padding-top: 130px;
    }
    
    .hero-image-wrapper {
        width: 80%;
    }
    
    .btn {
        width: 100%;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(5, 8, 22, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    color: var(--color-subtext);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--color-text);
}

#lightbox-caption {
    margin-top: 1.5rem;
    color: var(--color-subtext);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
}



/* ==========================================================================
   CUSTOM INTERACTIVE CURSOR
   ========================================================================== */
.custom-cursor-dot,
.custom-cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.custom-cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
}

.custom-cursor-outline {
    width: 32px;
    height: 32px;
    border: 1.5px solid rgba(239, 68, 68, 0.5);
    background: transparent;
}

/* Hover Interactive State */
body.cursor-hover .custom-cursor-outline {
    width: 55px;
    height: 55px;
    border-color: var(--color-secondary);
    background-color: rgba(244, 63, 94, 0.08);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

body.cursor-hover .custom-cursor-dot {
    background-color: var(--color-secondary);
    transform: translate(-50%, -50%) scale(1.5);
}

/* Text Edit State (I-Beam) */
body.cursor-text-mode .custom-cursor-dot {
    width: 2px;
    height: 18px;
    background-color: var(--color-secondary);
    border-radius: 0;
    transform: translate(-50%, -50%);
}

body.cursor-text-mode .custom-cursor-outline {
    opacity: 0;
}

/* Hide default cursor on desktops */
@media (hover: hover) and (pointer: fine) {
    body, a, button, input, select, textarea, .btn, .nav-link, .tag, .badge, [contenteditable="true"], .logo-text, .experience-photo, .editor-delete-badge, .editor-add-btn {
        cursor: none !important;
    }
}

/* Hide custom cursor on touchscreens */
@media (hover: none), (pointer: coarse) {
    .custom-cursor-dot,
    .custom-cursor-outline {
        display: none;
    }
}

/* ==========================================================================
   BLOG SECTION
   ========================================================================== */
#blog {
    padding: var(--section-spacing) 0;
    background: var(--color-section-alt-blog);
}

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

.blog-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-5px);
}

.blog-img-container {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.blog-card:hover .blog-thumb {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 0.8rem;
}

.blog-category {
    color: var(--color-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-read-time {
    color: var(--color-subtext);
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    line-height: 1.4;
}

.blog-content h3 a {
    color: var(--color-text);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.blog-content h3 a:hover {
    color: var(--color-primary);
}

.blog-excerpt {
    font-size: 0.9rem;
    color: var(--color-subtext);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    align-self: flex-start;
}

.blog-link:hover {
    color: var(--color-secondary);
}

.blog-link svg {
    width: 16px;
    height: 16px;
}

.blog-coming-soon {
    background: var(--color-card);
    border: 1px dashed var(--color-card-hover-border);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
}

.coming-soon-icon {
    width: 48px;
    height: 48px;
    color: var(--color-secondary);
    margin: 0 auto 1.5rem auto;
}

.coming-soon-icon svg {
    width: 100%;
    height: 100%;
}

.blog-coming-soon h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

.blog-coming-soon p {
    font-size: 0.95rem;
    color: var(--color-subtext);
    margin-bottom: 0;
    line-height: 1.6;
}

/* ==========================================================================
   THEME TOOLTIP POPUP
   ========================================================================== */
.theme-tooltip {
    position: absolute;
    top: 75px;
    right: 48px;
    background: var(--color-primary);
    color: #FFFFFF;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.35);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: bounceTooltip 2s infinite alternate, fadeIn 0.4s ease-out;
}

[data-theme="light"] .theme-tooltip {
    box-shadow: 0 10px 25px rgba(239, 68, 68, 0.15);
}

.theme-tooltip::before {
    content: "";
    position: absolute;
    top: -6px;
    right: 20px;
    border-width: 0 6px 6px 6px;
    border-style: solid;
    border-color: transparent transparent var(--color-primary) transparent;
}

.tooltip-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.tooltip-close-btn:hover {
    color: #FFFFFF;
    transform: scale(1.1);
}

@keyframes bounceTooltip {
    0% { transform: translateY(0); }
    100% { transform: translateY(-5px); }
}

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

/* Responsive adjustment for mobile screen */
@media (max-width: 768px) {
    .theme-tooltip {
        top: 70px;
        right: 10px;
    }
    .theme-tooltip::before {
        right: 56px;
    }
}

/* ==========================================================================
   ORGANISATIONAL GRID
   ========================================================================== */
.organisation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.org-card {
    background: var(--color-card);
    border: 1px solid var(--color-card-border);
    padding: 1.8rem;
    border-radius: 12px;
    position: relative;
    transition: var(--transition-smooth);
}

.org-card:hover {
    border-color: var(--color-card-hover-border);
    transform: translateY(-4px);
}

[data-theme="light"] .org-card:hover {
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.06);
}

.org-year {
    display: inline-block;
    background: rgba(239, 68, 68, 0.08);
    color: var(--color-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

[data-theme="light"] .org-year {
    background: rgba(239, 68, 68, 0.05);
}

.org-card h3 {
    font-size: 1.1rem;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.org-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-subtext);
    margin-bottom: 0.8rem;
}

.org-desc {
    font-size: 0.85rem;
    color: var(--color-subtext);
    line-height: 1.5;
}

