/* Modern Professional Resume Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* CSS Variables */
:root {
    /* Colors - Matching original site */
    --bg-main: #F6F7F9;
    --bg-alt: #ECEFF3;
    --text-primary: #1C2533;
    --text-muted: #667085;
    --accent: #1F3A5F;
    --accent-hover: #162C47;
    --accent-light: #3F5F7F;
    --card-bg: #FFFFFF;
    --border-soft: #D0D5DD;
    
    /* Dark Sections */
    --dark-bg: #0F1E33;
    --dark-card: #162A45;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --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 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 2rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 3rem;
    }
}

@media (min-width: 1400px) {
    .container {
        padding: 0 4rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 3rem;
    }
}

.about-content-clean .section-title {
    text-align: left;
}

.positioning-line {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2rem;
    text-align: left;
}

.about-description-clean {
    text-align: left;
}

.signature-areas-simple h3,
.worked-with-simple h3 {
    text-align: left;
}

.manifesto-paragraph p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.philosophy-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-content h3 {
    text-align: left;
}

.step-content p {
    text-align: left;
}

@media (max-width: 768px) {
    .step-content h3,
    .step-content p {
        text-align: center;
    }
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 48px;
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-accent:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--accent);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border-soft);
}

.btn-ghost:hover {
    background: var(--bg-alt);
    color: var(--accent);
    border-color: var(--accent);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    min-height: 56px;
}

.btn-full {
    width: 100%;
}

/* Cards */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    padding: 2rem 2rem 1rem;
}

.card-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-content {
    padding: 0 2rem 2rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-soft);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-links {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100%;
    background: white;
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-content a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-soft);
}

/* Hero Section */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(135deg, var(--bg-main) 0%, var(--bg-alt) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 2rem 0 2rem;
    }
}

.hero-content {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-content {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1.2fr 1fr;
        gap: 4rem;
    }
}

@media (min-width: 1400px) {
    .hero-content {
        gap: 6rem;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: white;
    border: 1px solid var(--border-soft);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

.hero-title .text-accent {
    color: var(--accent);
}

.hero-anchor {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .hero-anchor {
        font-size: 1.375rem;
    }
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: 1.25rem;
        max-width: 600px;
    }
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
}

@media (min-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.stat-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-visual {
        max-width: 100%;
    }
}

.hero-card {
    aspect-ratio: 4/5;
    border-radius: 2rem;
    background: var(--primary-gradient);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 2rem;
}

@media (max-width: 768px) {
    .hero-card {
        aspect-ratio: 3/4;
        padding: 1.5rem;
    }
    
    .hero-card.gentle-float {
        animation: none;
    }
}

.hero-card-content {
    position: relative;
    z-index: 1;
}

.hero-card-subtitle {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.hero-card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-card-title .text-accent {
    color: #FFD700;
}

.hero-card-description {
    opacity: 0.9;
    line-height: 1.6;
}

.hero-card-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Sections */
.section {
    padding: 5rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 4rem;
    }
}

@media (min-width: 1400px) {
    .section-header {
        margin-bottom: 5rem;
        max-width: 900px;
    }
}

.section-light {
    background: var(--bg-alt);
}

.section-dark {
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--accent-hover) 50%, var(--accent) 100%);
    color: white;
}

.section-dark .section-title {
    color: white;
}

.section-dark .section-description {
    color: rgba(255, 255, 255, 0.8);
}

.section-framing {
    margin-top: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

/* About Section */
.about-content-clean {
    display: grid;
    gap: 4rem;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .about-content-clean {
        grid-template-columns: 1.3fr 1fr;
        gap: 5rem;
    }
}

@media (min-width: 1400px) {
    .about-content-clean {
        gap: 6rem;
    }
}

.about-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: var(--accent);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.positioning-line {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 2rem;
}

.about-description-clean p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.25rem;
    font-size: 1.1rem;
}

.credibility-block {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
}

.credibility-block p {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.6;
}

.skills-pills-section {
    margin-bottom: 3rem;
}

.skills-pills-heading {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-align: left;
}

.skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    max-width: 100%;
}

.skill-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.skill-pill:hover {
    background: var(--card-bg);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.signature-areas-simple {
    margin-bottom: 3rem;
}

.signature-areas-simple h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.worked-with-simple {
    margin-bottom: 0;
}

.worked-with-simple h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: left;
}

.areas-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .areas-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.area-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-soft);
    background: white;
    transition: all 0.3s ease;
}

.area-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.area-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.area-item span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--primary-gradient);
    color: white;
    transition: all 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.trust-item i {
    font-size: 1.125rem;
    flex-shrink: 0;
}

.trust-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

.about-proof {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.proof-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.proof-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.proof-badges {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.proof-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem;
    border-bottom: 1px solid var(--border-soft);
    transition: all 0.2s ease;
}

.proof-badge:last-child {
    border-bottom: none;
}

.proof-badge:hover {
    background: var(--bg-alt);
}

.badge-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.badge-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.badge-text span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.social-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Experience Section */
.experience-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.experience-timeline::before {
    content: '';
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-soft);
}

@media (min-width: 768px) {
    .experience-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 5rem;
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 2rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 2rem;
        padding-right: 0;
    }
}

.timeline-date {
    position: absolute;
    left: -4rem;
    top: 0;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .timeline-date {
        left: auto;
        right: -5rem;
    }
    
    .timeline-item:nth-child(even) .timeline-date {
        right: auto;
        left: -5rem;
    }
}

.timeline-content {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.company-logo {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-alt);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-soft);
}

/* Skills Section */
.skills-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skill-category {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-category h3 i {
    color: var(--accent);
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.skill-info span:first-child {
    color: var(--text-primary);
}

.skill-info span:last-child {
    color: var(--accent);
    font-weight: 600;
}

.skill-bar {
    height: 0.5rem;
    background: var(--bg-alt);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 9999px;
    transition: width 1s ease;
}

/* Projects Section */
.projects-carousel {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.projects-carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.projects-track {
    display: flex;
    transition: transform 0.4s ease;
    gap: 2rem;
}

@media (max-width: 768px) {
    .projects-track {
        gap: 1rem;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 1rem;
    }
    
    .project-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        flex: 0 0 calc(90% - 1rem);
        min-width: 280px;
    }
}

.project-card {
    flex: 0 0 calc(33.333% - 1.33rem);
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 calc(90% - 1rem);
        min-width: 280px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .project-card {
        flex: 0 0 calc(50% - 1rem);
    }
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.project-image {
    height: 200px;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Education Section */
.education-grid {
    display: grid;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .education-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.education-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
}

.education-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.education-icon {
    width: 3rem;
    height: 3rem;
    background: var(--primary-gradient);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.education-content h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.education-content h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.education-date {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-content p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

@media (min-width: 1400px) {
    .contact-content {
        gap: 6rem;
    }
}

.contact-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .contact-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-item i {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-item span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    transform: translateY(-2px);
}

.contact-form-container {
    background: var(--accent);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-input {
    padding: 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.75rem;
    font-size: 1rem;
    background: white;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: var(--text-muted);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-soft);
    padding: 2rem 0;
    background: var(--bg-alt);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-tagline {
    font-style: italic;
    opacity: 0.8;
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.gentle-float {
    animation: gentleFloat 6s ease-in-out infinite;
}

@media (max-width: 768px) {
    .gentle-float {
        animation: none;
    }
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

@media (max-width: 768px) {
    .pulse-animation {
        animation: none;
    }
}

.animate-fall {
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Philosophy Section */
.philosophy-grid {
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 1400px) {
    .philosophy-grid {
        max-width: 1400px;
        gap: 3rem;
    }
}

.philosophy-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1.2rem;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.philosophy-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.philosophy-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.philosophy-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.philosophy-card p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Interactive Timeline Section */
.interactive-timeline {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .interactive-timeline {
        padding: 2rem 1rem;
    }
}

@media (min-width: 1400px) {
    .interactive-timeline {
        max-width: 1200px;
    }
}

.timeline-line {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--accent-light));
    border-radius: 2px;
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50%;
        transform: translateX(-50%);
    }
}

.timeline-item {
    position: relative;
    margin-bottom: 4rem;
    padding-left: 5rem;
    opacity: 0.6;
    transition: all 0.5s ease;
}

.timeline-item.active {
    opacity: 1;
    transform: translateY(-5px);
}

@media (min-width: 768px) {
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 3rem;
    }
    
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 3rem;
        padding-right: 0;
    }
}

.timeline-marker {
    position: absolute;
    left: 0.5rem;
    top: 1rem;
    z-index: 2;
}

@media (min-width: 768px) {
    .timeline-marker {
        left: auto;
        right: -2rem;
    }
    
    .timeline-item:nth-child(even) .timeline-marker {
        right: auto;
        left: -2rem;
    }
}

.marker-dot {
    width: 4rem;
    height: 4rem;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.125rem;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.marker-dot:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
    opacity: 0;
    animation: pulse-ring 2s infinite;
}

.timeline-item.active .marker-pulse {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.timeline-content {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    position: relative;
}

.timeline-item.active .timeline-content {
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-light);
}

.timeline-icon {
    width: 3rem;
    height: 3rem;
    background: var(--bg-alt);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.timeline-item.active .timeline-icon {
    background: var(--accent);
    color: white;
}

.timeline-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.timeline-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.timeline-item.active .timeline-detail,
.timeline-item:hover .timeline-detail {
    max-height: 200px;
}

.timeline-detail p {
    color: var(--accent);
    font-style: italic;
    font-size: 0.95rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-soft);
}

/* Work Process Section */
.work-process {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .process-step {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.step-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    width: 4rem;
    text-align: center;
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

/* Project Philosophy */
.project-philosophy {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 0.5rem;
    border-left: 3px solid var(--accent);
}

.project-philosophy em {
    color: var(--accent);
    font-style: italic;
    font-size: 0.9rem;
}

/* Why I Build Section */
.manifesto-content {
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .manifesto-content {
        max-width: 900px;
    }
}

.manifesto-text {
    margin-top: 2rem;
}

.manifesto-paragraph {
    margin-bottom: 2rem;
}

.manifesto-paragraph p {
    font-size: 1.125rem;
    line-height: 1.9;
    color: var(--text-primary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .manifesto-paragraph p {
        font-size: 1.25rem;
        line-height: 2;
    }
}

/* Contact Form Header */
.contact-form-header {
    margin-bottom: 2rem;
    text-align: center;
}

.contact-form-header h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-form-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 640px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .areas-row {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        padding-left: 3rem;
    }
    
    .timeline-date {
        left: -2.5rem;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .experience-timeline::before {
        left: 1rem;
    }
}
/* Testimonials Section */
.testimonials-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 768px) {
    .testimonials-two-column {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.testimonials-left {
    position: relative;
}

.testimonial-carousel {
    position: relative;
    min-height: 200px;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
    color: var(--text-primary);
}

.carousel-arrow:hover {
    background: white;
    box-shadow: var(--shadow-sm);
}

.carousel-prev {
    left: -1rem;
}

.carousel-next {
    right: -1rem;
}

.testimonial-slide {
    display: none;
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: opacity 0.4s ease;
    opacity: 0;
}

.testimonial-slide.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.connect-right {
    display: flex;
    flex-direction: column;
    height: auto;
}

.connect-card {
    background: white;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.connect-card .card-content {
    flex: 1;
    display: flex;
    align-items: flex-start;
}

/* Alignment Fixes */
.about-content-clean .section-title {
    text-align: left;
}

.positioning-line {
    text-align: left;
}

.about-description-clean {
    text-align: left;
}

.signature-areas-simple h3,
.worked-with-simple h3 {
    text-align: left;
}

.proof-card,
.online-card {
    width: 100%;
}

.proof-badges {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.proof-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem;
    border-bottom: 1px solid var(--border-soft);
    transition: all 0.2s ease;
    width: 100%;
}

.social-platforms {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    width: 100%;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    justify-content: flex-start;
    width: 100%;
}

.manifesto-paragraph p {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

.philosophy-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-content h3,
.step-content p {
    text-align: left;
}

@media (max-width: 768px) {
    .step-content h3,
    .step-content p {
        text-align: center;
    }
    
    .areas-row {
        grid-template-columns: 1fr;
    }
    
    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}
/* Beyond Code Section */
.beyond-code-content {
    max-width: 900px;
    margin: 0 auto;
}

.beyond-code-text {
    margin-top: 2rem;
}

.beyond-code-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.beyond-code-list {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-soft);
}

.beyond-code-list p {
    color: var(--text-muted);
    font-size: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .beyond-code-text p {
        font-size: 1.2rem;
    }
}
/* Beyond Syntax In Practice Stacked Cards */
.practice-content {
    max-width: 1400px;
    margin: 0 auto;
}

.stacked-cards {
    position: relative;
    height: 700px;
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .stacked-cards {
        flex-direction: column;
        height: auto;
        gap: 1rem;
    }
}

.card-stack {
    position: absolute;
    width: 600px;
    min-height: 650px;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.8;
    transform: scale(0.9);
    z-index: 1;
    left: 50%;
    transform-origin: center;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .card-stack {
        position: relative;
        width: 100%;
        min-height: auto;
        opacity: 1;
        transform: scale(1);
        margin-bottom: 1rem;
        left: 0;
    }
}

.card-stack.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 10;
    box-shadow: var(--shadow-xl);
    background: var(--dark-bg);
    color: white;
}

.card-stack[data-card="0"] {
    transform: translateX(-50%) translateX(-350px) scale(0.9);
}

.card-stack[data-card="1"] {
    transform: translateX(-50%) translateX(-117px) scale(0.9);
}

.card-stack[data-card="2"] {
    transform: translateX(-50%) translateX(117px) scale(0.9);
}

.card-stack[data-card="3"] {
    transform: translateX(-50%) translateX(350px) scale(0.9);
}

.card-stack[data-card="0"].active {
    transform: translateX(-50%) translateX(-350px) scale(1);
}

.card-stack[data-card="1"].active {
    transform: translateX(-50%) translateX(-117px) scale(1);
}

.card-stack[data-card="2"].active {
    transform: translateX(-50%) translateX(117px) scale(1);
}

.card-stack[data-card="3"].active {
    transform: translateX(-50%) translateX(350px) scale(1);
}

@media (max-width: 768px) {
    .card-stack[data-card="0"],
    .card-stack[data-card="1"],
    .card-stack[data-card="2"],
    .card-stack[data-card="3"],
    .card-stack[data-card="0"].active,
    .card-stack[data-card="1"].active,
    .card-stack[data-card="2"].active,
    .card-stack[data-card="3"].active {
        transform: scale(1);
        position: relative;
    }
}

.card-stack .card-header {
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid var(--border-soft);
}

.card-stack.active .card-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.card-stack .card-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-stack.active .card-header h3 {
    color: white;
}

.card-stack .card-content {
    padding: 2rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card-stack.active .card-content {
    opacity: 1;
    max-height: 600px;
}

@media (max-width: 768px) {
    .card-stack .card-content {
        opacity: 1;
        max-height: none;
        overflow: visible;
        padding: 1.5rem;
    }
}

.card-stack .card-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.1rem;
}

.card-stack.active .card-content p {
    color: rgba(255, 255, 255, 0.9);
}

.card-stack .card-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .card-stack .card-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .card-stack .card-content {
        padding: 1.5rem;
    }
    
    .card-stack .card-content p {
        font-size: 1rem;
        line-height: 1.9;
    }
}
/* Contact Form Button Fix */
#connect .contact-form-container .btn-accent {
    background: white;
    color: var(--accent);
    border: 2px solid white;
}

#connect .contact-form-container .btn-accent:hover {
    background: var(--accent-light);
    color: white;
    border-color: var(--accent-light);
}
/* Remove extra space under footer */
body {
    margin-bottom: 0;
}

.footer {
    margin-bottom: 0;
}
/* Shining Animation for Hero Card */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-overlay {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.3) 50%, transparent 70%);
    transform: rotate(45deg);
    animation: shine 6s infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    50% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
    100% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
}

/* Enhanced Hover Animations */
.stat-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(31, 58, 95, 0.15);
}

.area-item {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.area-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 30px rgba(31, 58, 95, 0.12);
}

.area-item:hover i {
    transform: scale(1.2);
    animation: bounce 0.6s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1.2);
    }
    40% {
        transform: translateY(-10px) scale(1.2);
    }
    60% {
        transform: translateY(-5px) scale(1.2);
    }
}

/* Philosophy Cards Enhanced Animation */
.philosophy-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.philosophy-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(31, 58, 95, 0.15);
}

.philosophy-icon {
    transition: all 0.3s ease;
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.1) rotate(5deg);
    animation: wiggle 0.8s ease-in-out;
}

@keyframes wiggle {
    0%, 7% {
        transform: scale(1.1) rotateZ(0deg);
    }
    15% {
        transform: scale(1.1) rotateZ(-5deg);
    }
    20% {
        transform: scale(1.1) rotateZ(5deg);
    }
    25% {
        transform: scale(1.1) rotateZ(-5deg);
    }
    30% {
        transform: scale(1.1) rotateZ(5deg);
    }
    35% {
        transform: scale(1.1) rotateZ(-5deg);
    }
    40%, 100% {
        transform: scale(1.1) rotateZ(0deg);
    }
}

/* Button Hover Enhancements */
.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(31, 58, 95, 0.2);
}

/* Timeline Item Enhanced Interaction */
.timeline-content {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(31, 58, 95, 0.12);
}

.marker-dot {
    transition: all 0.3s ease;
}

.timeline-item:hover .marker-dot {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(31, 58, 95, 0.3);
}

/* Project Cards Enhanced Animation */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(31, 58, 95, 0.15);
}

.project-image {
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-card:hover .project-image i {
    transform: scale(1.2);
    animation: pulse 1s ease-in-out infinite;
}

/* Testimonial Cards Animation */
.testimonial-slide {
    transition: all 0.4s ease;
}

.testimonial-slide.active {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Social Links Enhanced Hover */
.social-link, .platform-btn {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-link:hover, .platform-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(31, 58, 95, 0.2);
}

/* Navbar Animation */
.nav-links a {
    position: relative;
    transition: all 0.3s ease;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Scroll-triggered animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}

/* Staggered animation for multiple elements */
.stagger-animation {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.stagger-animation.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced loading animation */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}