:root {
    /* Light Mode Colors */
    --primary: #0A66C2;
    --primary-dark: #004182;
    --primary-light: #3283D3;
    --accent: #FF6B35;
    --accent-light: #FF8555;
    
    --bg-primary: #FAFBFC;
    --bg-secondary: #FFFFFF;
    --bg-tertiary: #F5F7FA;
    
    --text-primary: #1A1A1A;
    --text-secondary: #4A5568;
    --text-tertiary: #718096;
    
    --border-light: #E2E8F0;
    --border-medium: #CBD5E0;
    
    --success: #10B981;
    --warning: #F59E0B;
    
    /* Typography */
    --font-display: 'DM Serif Display', serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    
    /* Spacing */
    --container-max: 1200px;
    --section-padding: 80px;
    --section-padding-mobile: 50px;
    
    /* Animations */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Mode Colors */
[data-theme="dark"] {
    --primary: #3B9BFF;
    --primary-dark: #2B7FD9;
    --primary-light: #5AAAFF;
    --accent: #FF8555;
    --accent-light: #FFA175;
    
    --bg-primary: #0F1419;
    --bg-secondary: #1A1F26;
    --bg-tertiary: #252C35;
    
    --text-primary: #E8EAED;
    --text-secondary: #B4B8BD;
    --text-tertiary: #8A8F98;
    
    --border-light: #2D3540;
    --border-medium: #3D4551;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: transform 0.3s ease-in-out, background 0.3s ease, border 0.3s ease;
    transform: translateY(0);
}

.nav.nav-hidden {
    transform: translateY(-100%);
}

.nav.nav-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Dark mode navbar */
[data-theme="dark"] .nav {
    background: rgba(26, 31, 38, 0.95);
    border-bottom: 1px solid var(--border-medium);
}

[data-theme="dark"] .nav.nav-scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.logo:hover {
    color: var(--accent);
    transform: scale(1.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--border-light);
    background: var(--bg-tertiary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-smooth);
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

.theme-toggle:hover svg {
    color: white;
}

.theme-toggle svg {
    position: absolute;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    will-change: auto; /* Remove will-change for better performance */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(10, 102, 194, 0.03) 0%, rgba(255, 107, 53, 0.03) 100%),
        radial-gradient(circle at 20% 50%, rgba(10, 102, 194, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    z-index: 2;
    padding-top: 3rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-title .line {
    display: block;
}

.name-line {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    min-height: 1.2em;   /* holds space even when empty on load */
    min-width: 300px;    /* prevents layout collapse before name types */
}

/* Typewriter cursor effect */
.name-line::after {
    content: '|';
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: blink 1s step-end infinite;
    margin-left: 5px;
}

.name-line.typing-complete::after {
    animation: none;
    opacity: 0;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
}

/* Role typewriter — fixed height prevents buttons jumping */
.hero-role-wrapper {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    height: 3.5rem;
    overflow: hidden;
}

.hero-role-text {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
}

.role-cursor {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 300;
    color: var(--primary);
    animation: roleBlink 0.75s step-end infinite;
    margin-left: 2px;
    flex-shrink: 0;
}

@keyframes roleBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 102, 194, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* always 3 columns, no reflow */
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    width: 100%;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Section Styling */
section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-number {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* Project Filters */
.project-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 0.8rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid var(--border-medium);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(10, 102, 194, 0.3);
}

[data-theme="dark"] .filter-btn.active {
    box-shadow: 0 4px 15px rgba(59, 155, 255, 0.3);
}

/* Projects Footer */
.projects-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.load-more-btn .icon-down,
.load-more-btn .icon-up {
    transition: transform 0.3s ease;
}

.load-more-btn:hover .icon-down {
    transform: translateY(3px);
}

.load-more-btn:hover .icon-up {
    transform: translateY(-3px);
}

/* Hide projects beyond initial load */
.project-card.hidden-initially {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* About Section */
.about {
    background: var(--bg-secondary);
}

.about-content {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 3.5rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-text .lead {
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--primary);
    font-weight: 600;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.highlight-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--bg-tertiary);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.highlight-item:hover {
    background: var(--bg-primary);
    transform: translateX(10px);
}

.highlight-icon {
    font-size: 2rem;
    min-width: 50px;
}

.highlight-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.highlight-item p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-tertiary);
}

.about-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 100%;
    max-width: 360px;
    height: auto;
    aspect-ratio: 9/16;
    
    /* CROPPING CONTROL - Shows entire vertical photo from shoes to building top */
    object-fit: cover;
    
    /* POSITION CONTROL - Centers the photo */
    object-position: center center;
    
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: var(--transition-smooth);
    border: 4px solid var(--bg-tertiary);
}

.profile-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

/* Fallback placeholder styling if image doesn't load */
.profile-photo[src="your-photo.jpg"] {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-display);
    font-size: 2rem;
}

.profile-photo[src="your-photo.jpg"]::before {
    content: 'Your Photo';
    display: block;
}

[data-theme="dark"] .profile-photo {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .profile-photo:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.5);
}

/* Projects Section */
.projects {
    background: var(--bg-tertiary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 0;
    border: 1px solid var(--border-light);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Project Content Area */
.project-card .project-title {
    padding: 2rem 2rem 0 2rem;
}

.project-card .project-tagline {
    padding: 0 2rem;
}

.project-card .project-highlights {
    padding: 0 2rem;
}

.project-card .project-tech-inline {
    padding: 0 2rem;
    margin: 0 0 1.5rem 0;
}

.project-card .project-actions {
    padding: 0 2rem 2rem 2rem;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

[data-theme="dark"] .project-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

/* Project Title */
.project-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
}

/* One-line Tagline */
.project-tagline {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* Key Highlights List */
.project-highlights {
    list-style: none;
    margin: 0 0 1.5rem 0;
    padding: 0;
}

.project-highlights li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    padding-left: 1.2rem;
    position: relative;
    line-height: 1.5;
}

.project-highlights li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 600;
}

/* Inline Tech Stack */
.project-tech-inline {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

/* Project Actions */
.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-project {
    flex: 1;
    min-width: 120px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary-project {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-primary-project:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.3);
}

.btn-outline-project {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.btn-outline-project:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-project svg {
    transition: transform 0.3s ease;
}

.btn-project:hover svg {
    transform: translateX(2px);
}

/* Placeholder card */
.project-placeholder {
    opacity: 0.6;
    border-style: dashed;
}

.project-placeholder:hover {
    opacity: 1;
}

/* Skills Section */
/* Skills Section - Horizontal Category Rows */
.skills {
    background: var(--bg-tertiary);
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Individual skill row - full width horizontal card */
.skill-row {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-left: 4px solid var(--primary);
    border-radius: 12px;
    padding: 2rem 2.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-row:hover {
    border-left-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateX(6px);
}

[data-theme="dark"] .skill-row:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Row header - icon + title on same line */
.skill-row-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.skill-row-icon {
    font-size: 2.2rem;
    transition: transform 0.3s ease;
}

.skill-row:hover .skill-row-icon {
    transform: scale(1.15) rotate(-5deg);
}

.skill-row-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 600;
}

/* Skill tags - same as before */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.1rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

.skill-tag:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(10, 102, 194, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .skill-row {
        padding: 1.5rem 1.25rem;
    }
    
    .skill-row-header {
        margin-bottom: 1.25rem;
    }
    
    .skill-row-icon {
        font-size: 1.8rem;
    }
    
    .skill-row-title {
        font-size: 1.2rem;
    }
    
    .skill-tag {
        font-size: 0.8rem;
        padding: 0.5rem 0.9rem;
    }
    
    .skill-row:hover {
        transform: translateX(3px);
    }
}

/* Experience Section */
.experience {
    background: var(--bg-tertiary);
}

.timeline {
    position: relative;
    padding-left: 3rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.timeline-marker {
    position: absolute;
    left: -3.5rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid var(--bg-tertiary);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.2);
}

.timeline-content {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Contact Section */
.contact {
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-heading {
    font-family: var(--font-display);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--primary);
    padding: 1.5rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-item:hover {
    border-left-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

[data-theme="dark"] .contact-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.1) 0%, rgba(255, 107, 53, 0.1) 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-icon svg {
    color: var(--primary);
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    background: linear-gradient(135deg, rgba(10, 102, 194, 0.2) 0%, rgba(255, 107, 53, 0.2) 100%);
}

.contact-item:hover .contact-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
}

.contact-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-link {
    font-size: 0.95rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
    word-break: break-all;
}

a.contact-link:hover {
    color: var(--primary);
}

.contact-form-container {
    background: var(--bg-tertiary);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg-secondary);
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 102, 194, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-note {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-align: center;
}

.form-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.form-note a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 2.5rem 0;
    transition: var(--transition-smooth);
}

[data-theme="dark"] .footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--accent);
}

[data-theme="dark"] .footer-links a {
    color: var(--text-secondary);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 968px) {
    :root {
        --section-padding: 60px;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-image {
        order: -1; /* Move image above text on mobile */
    }
    
    .profile-photo {
        max-width: 280px;
        margin: 0 auto;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card.featured {
        grid-column: 1;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn {
        text-align: center;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 50px;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline {
        padding-left: 2rem;
    }
    
    .timeline-marker {
        left: -2.5rem;
    }
    
    .project-card .project-title {
        padding: 1.5rem 1.5rem 0 1.5rem;
        font-size: 1.3rem;
    }
    
    .project-card .project-tagline,
    .project-card .project-highlights,
    .project-card .project-tech-inline {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .project-card .project-actions {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }
}