/* Design Tokens & CSS Variables */
:root {
    /* Fonts */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Theme Colors: Dark Mode (Default) */
    --bg-primary: #090d16;
    --bg-secondary: #0f1626;
    --bg-glass: rgba(15, 23, 38, 0.45);
    --border-glass: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --shadow-color: rgba(0, 0, 0, 0.5);

    /* Accent & Glow Colors */
    --accent-1: #00f0ff;       /* Neon Cyan */
    --accent-2: #8b5cf6;       /* Neon Violet/Purple */
    --accent-1-rgb: 0, 240, 255;
    --accent-2-rgb: 139, 92, 246;

    /* Card Glows */
    --card-shadow-hover: 0 12px 40px -10px rgba(0, 240, 255, 0.15), 
                         0 12px 40px -10px rgba(139, 92, 246, 0.15);
    
    /* Layout Variables */
    --header-height: 80px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    
    /* Transition curves */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-quick: all 0.2s ease;
}

/* Light Mode Variables Override */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.65);
    --border-glass: rgba(15, 23, 42, 0.08);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --shadow-color: rgba(0, 0, 0, 0.05);

    /* Accents (Muted slightly for better readability on light backgrounds) */
    --accent-1: #0284c7;       /* Deep Sky Blue */
    --accent-2: #6d28d9;       /* Deep Violet */
    --accent-1-rgb: 2, 132, 199;
    --accent-2-rgb: 109, 40, 217;

    --card-shadow-hover: 0 12px 40px -10px rgba(2, 132, 199, 0.12), 
                         0 12px 40px -10px rgba(109, 40, 217, 0.12);
}

/* Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

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

/* Typography Utility Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons Styling */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(var(--accent-1-rgb), 0.25);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--accent-1-rgb), 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    border-color: var(--accent-1);
    transform: translateY(-2px);
}

.w-full {
    width: 100%;
}

/* Background Animated Mesh Gradients */
.mesh-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -100;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.8;
}

body.light-theme .mesh-gradients {
    opacity: 0.45;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    mix-blend-mode: screen;
}

body.light-theme .blob {
    mix-blend-mode: multiply;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
    top: -150px;
    right: -100px;
    animation: floatBlob1 20s infinite alternate ease-in-out;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.15) 0%, rgba(0,0,0,0) 70%);
    bottom: -100px;
    left: -100px;
    animation: floatBlob2 25s infinite alternate ease-in-out;
}

.blob-3 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(var(--accent-1-rgb), 0.1) 0%, rgba(0,0,0,0) 70%);
    top: 40%;
    left: 45%;
    animation: floatBlob3 30s infinite alternate ease-in-out;
}

@keyframes floatBlob1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-100px, 80px) scale(1.1); }
}

@keyframes floatBlob2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, -120px) scale(0.95); }
}

@keyframes floatBlob3 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, -50px) scale(1.05); }
}

/* Header & Glassmorphic Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glass);
    height: 70px;
}

.header-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.logo span {
    margin-right: 2px;
}

.nav-list {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transition: var(--transition-quick);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
    border-color: var(--accent-1);
    box-shadow: 0 0 10px rgba(var(--accent-1-rgb), 0.2);
    transform: rotate(15deg);
}

.sun-icon {
    display: none;
    width: 20px;
    height: 20px;
}

.moon-icon {
    display: block;
    width: 20px;
    height: 20px;
}

body.light-theme .sun-icon {
    display: block;
}

body.light-theme .moon-icon {
    display: none;
}

.cta-nav-btn {
    display: block;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font-heading);
    border-radius: var(--border-radius-sm);
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
}

.cta-nav-btn:hover {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-nav-toggle.active .bar-1 {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .bar-2 {
    opacity: 0;
}

.mobile-nav-toggle.active .bar-3 {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Menu */
.mobile-nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(9, 13, 22, 0.95);
    backdrop-filter: blur(24px);
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    border-bottom: 1px solid transparent;
}

body.light-theme .mobile-nav-menu {
    background-color: rgba(248, 250, 252, 0.95);
}

.mobile-nav-menu.active {
    height: calc(100vh - var(--header-height));
    border-bottom: 1px solid var(--border-glass);
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 32px;
    padding-bottom: var(--header-height);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
}

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

/* Hero Section Styles */
.hero-section {
    padding: calc(var(--header-height) + 40px) 0 60px 0;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--accent-1);
    margin-bottom: 24px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-1);
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--accent-1);
    animation: dotPulse 1.5s infinite;
}

@keyframes dotPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 12px;
    letter-spacing: -1.5px;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Portrait Frame with glow effects */
.profile-frame {
    position: relative;
    width: 330px;
    height: 330px;
}

.glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    filter: blur(15px);
    opacity: 0.45;
    animation: rotateGlowRing 10s infinite linear;
}

.profile-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-glass);
    border: 3px solid var(--border-glass);
    backdrop-filter: blur(20px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: var(--transition-smooth);
}

.profile-image-container:hover {
    transform: scale(1.02);
    border-color: var(--accent-1);
    box-shadow: 0 20px 40px rgba(var(--accent-1-rgb), 0.15);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes rotateGlowRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Statistics Counters Section */
.stats-section {
    padding: 60px 0;
    background-color: rgba(15, 22, 38, 0.25);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

body.light-theme .stats-section {
    background-color: rgba(255, 255, 255, 0.4);
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 16px;
}

.stat-num-wrapper {
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
    display: flex;
}

.stat-num {
    display: inline-block;
}

.stat-plus {
    color: var(--accent-1);
    font-size: 1.8rem;
    margin-left: 2px;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Section Header Styling */
.section-header {
    margin-bottom: 48px;
}

.section-header.centered {
    text-align: center;
}

.section-tagline {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-1);
    display: inline-block;
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.2rem;
    letter-spacing: -0.7px;
}

/* About / Professional Summary Section */
.about-section {
    padding: 100px 0;
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.about-text-left .summary-highlight {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 20px;
}

.about-text-left p, .about-text-right p {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 20px;
}

.about-text-left p:last-child, .about-text-right p:last-child {
    margin-bottom: 0;
}

/* Career Objective Card */
.career-objective-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.objective-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.1), rgba(var(--accent-2-rgb), 0.1));
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
}

.objective-content h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.objective-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Skills Section */
.skills-section {
    padding: 100px 0;
    background-color: rgba(15, 22, 38, 0.15);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

body.light-theme .skills-section {
    background-color: rgba(255, 255, 255, 0.2);
}

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

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

.skill-category-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition-smooth);
}

.skill-category-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-1);
    box-shadow: var(--card-shadow-hover);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
}

.skill-cat-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.1), rgba(var(--accent-2-rgb), 0.1));
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
}

.skill-category-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.skill-list li {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.skill-list li span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background-color: var(--border-glass);
    border-radius: 5px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--accent-1) 0%, var(--accent-2) 100%);
    width: 0%; /* Dynamic animation via intersection observer */
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Skill specific fills targets */
.fill-95 { --fill-width: 95%; }
.fill-90 { --fill-width: 90%; }
.fill-85 { --fill-width: 85%; }
.fill-80 { --fill-width: 80%; }

/* Projects Section Styling */
.projects-section {
    padding: 100px 0;
}

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

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.project-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.project-card.reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.project-card.reverse .project-visual {
    order: 2;
}

.project-card.reverse .project-content {
    order: 1;
}

.project-visual {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px var(--shadow-color);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(var(--accent-1-rgb), 0) 0%, rgba(var(--accent-2-rgb), 0.1) 100%);
    opacity: 0.4;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-card:hover .project-visual {
    border-color: var(--accent-1);
    box-shadow: 0 20px 50px rgba(var(--accent-1-rgb), 0.1);
}

.project-content {
    display: flex;
    flex-direction: column;
}

.project-number {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-1);
    letter-spacing: 2px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.6rem;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.project-highlights {
    margin-bottom: 24px;
}

.project-highlights h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-highlights ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.project-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.tech-badge {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.project-link-wrapper {
    display: flex;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-1);
}

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

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateY(-2px) rotate(10deg);
}

/* Professional Experience Timeline Styles */
.experience-section {
    padding: 100px 0;
    background-color: rgba(15, 22, 38, 0.15);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

body.light-theme .experience-section {
    background-color: rgba(255, 255, 255, 0.2);
}

.experience-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.timeline {
    position: relative;
    margin-top: 60px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 31px;
    top: 5px;
    height: 100%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-1) 0%, var(--accent-2) 100%);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 80px;
    margin-bottom: 60px;
}

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

.timeline-badge {
    position: absolute;
    left: 20px;
    top: 6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--bg-primary);
    border: 3px solid var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(var(--accent-1-rgb), 0.3);
    z-index: 2;
    transition: var(--transition-smooth);
}

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

.timeline-panel {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: 0 10px 30px var(--shadow-color);
    position: relative;
    transition: var(--transition-smooth);
}

.timeline-panel:hover {
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.timeline-panel:hover ~ .timeline-badge {
    box-shadow: 0 0 20px rgba(var(--accent-1-rgb), 0.6);
}

.timeline-header {
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.job-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-1);
    display: inline-block;
    margin-bottom: 6px;
}

.job-title {
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.job-company {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.timeline-body ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-body li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 18px;
}

.timeline-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-size: 1.2rem;
    line-height: 1;
}

/* Services Section Styling */
.services-section {
    padding: 100px 0;
}

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

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

.service-card {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-2);
    box-shadow: var(--card-shadow-hover);
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background: linear-gradient(135deg, rgba(var(--accent-1-rgb), 0.1), rgba(var(--accent-2-rgb), 0.1));
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    margin-bottom: 24px;
}

.service-card:hover .service-icon {
    color: var(--accent-2);
    background: linear-gradient(135deg, rgba(var(--accent-2-rgb), 0.1), rgba(var(--accent-1-rgb), 0.1));
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Contact Section Styling */
.contact-section {
    padding: 100px 0;
    background-color: rgba(15, 22, 38, 0.15);
    border-top: 1px solid var(--border-glass);
}

body.light-theme .contact-section {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 32px;
    max-width: 500px;
}

.contact-details-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 36px;
}

.contact-details-list li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-link {
    font-weight: 500;
    color: var(--text-primary);
}

.info-link:hover {
    color: var(--accent-1);
}

.info-val {
    font-weight: 500;
    color: var(--text-primary);
}

.social-links-container {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.social-btn:hover {
    color: var(--text-primary);
    border-color: var(--accent-1);
    transform: translateY(-2px);
    box-shadow: 0 0 10px rgba(var(--accent-1-rgb), 0.2);
}

/* Contact Form */
.contact-form-wrapper {
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow-color);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input, .form-group textarea {
    background-color: rgba(9, 13, 22, 0.4);
    border: 1px solid var(--border-glass);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

body.light-theme .form-group input, body.light-theme .form-group textarea {
    background-color: rgba(255, 255, 255, 0.5);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 0 3px rgba(var(--accent-1-rgb), 0.15);
}

/* Footer Styling */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
    position: relative;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    font-size: 1.25rem;
    margin-bottom: 4px;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.copyright {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    box-shadow: 0 10px 20px var(--shadow-color);
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    border-color: var(--accent-1);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--accent-1-rgb), 0.15);
}

/* Intersection Observer Scroll Reveal styles */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Mobile responsive media queries */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card, .project-card.reverse {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .project-card.reverse .project-visual {
        order: 1;
    }
    
    .project-card.reverse .project-content {
        order: 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }

    .header.scrolled {
        height: 60px;
    }

    .nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .cta-nav-btn {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        align-items: center;
        order: 2;
    }

    .hero-visual {
        order: 1;
    }

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

    .hero-tagline {
        font-size: 1.15rem;
    }

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

    .profile-frame {
        width: 250px;
        height: 250px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 17px;
    }

    .timeline-item {
        padding-left: 48px;
    }

    .timeline-badge {
        left: 6px;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-panel {
        padding: 20px;
    }
}
