/* ===================================
   CSS Variables & Custom Properties
   =================================== */
:root {
    /* Light Theme - Default (matching original) */
    --color-primary: #0d62f7;
    --color-secondary: #6b7280;
    --color-accent: #e5e7eb;
    --color-background: #ffffff;
    --color-foreground: #1f2937;
    --color-card: #ffffff;
    --color-card-hover: #f9fafb;
    --color-border: #e5e7eb;
    --color-muted: #6b7280;
    --color-muted-bg: #f3f4f6;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 300ms ease-in-out;
}

/* Dark Theme */
body.dark-theme {
    --color-background: #1e293b;
    --color-foreground: #cbd5e1;
    --color-card: #334155;
    --color-card-hover: #475569;
    --color-border: #475569;
    --color-muted: #94a3b8;
    --color-muted-bg: #2d3748;
    --color-accent: #475569;
}

/* ===================================
   Reset & Base Styles
   =================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-foreground);
    background-color: var(--color-background);
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-foreground);
}

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

/* ===================================
   Layout & Container
   =================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* ===================================
   Header
   =================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
    transition: all var(--transition-base);
}

body.dark-theme .header {
    background-color: rgba(30, 41, 59, 0.8);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-lg);
}

.logo {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
}

.logo-dot {
    color: var(--color-secondary);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    flex: 1;
    justify-content: center;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--color-foreground);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.icon-btn:hover {
    background-color: var(--color-accent);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

.theme-toggle {
    position: relative;
}

.sun-icon,
.moon-icon {
    position: absolute;
    transition: all var(--transition-base);
}

.sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

body.dark-theme .sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

body.dark-theme .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* ===================================
   Hero Section
   =================================== */
.hero-section {
    padding: var(--spacing-3xl) 0 var(--spacing-2xl) 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-3xl);
    flex-direction: row;
}

.hero-image {
    flex: 0 0 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 350px;
    order: 1;
}

.hero-text {
    flex: 1;
    order: 2;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    font-weight: 400;
}

.hero-subtitle {
    font-size: 1.875rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-md);
    font-weight: 400;
}

.hero-description {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 600px;
}

.hero-location {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-top: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.hero-location i {
    color: var(--color-primary);
}

/* Remove duplicate hero-image - already defined above */

.illustration {
    width: 100%;
    max-width: 400px;
    height: auto;
    position: relative;
    z-index: 2;
    transition: filter var(--transition-base);
}

/* Profile Picture Styles */
.profile-picture {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border: 5px solid var(--color-background);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: float 6s ease-in-out infinite;
}

.profile-picture:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.3);
}

body.dark-theme .profile-picture {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border-color: var(--color-card);
}

body.dark-theme .profile-picture:hover {
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Keep the original logo colors intact in dark mode.
   Some SVGs get visually inverted by filters; disable them for the logo
   so it appears the same as in light mode. */
body.dark-theme .illustration {
    filter: none !important;
}

/* Animated Blobs with Blur */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.6;
    animation: blob 12s infinite;
    z-index: 1;
    mix-blend-mode: multiply;
}

body.dark-theme .blob {
    opacity: 0.2;
    mix-blend-mode: normal;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    top: 10%;
    right: 25%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    bottom: 10%;
    right: 10%;
    animation-delay: 4s;
}

.blob-3 {
    width: 280px;
    height: 280px;
    background: linear-gradient(135deg, #0ea5e9, #38bdf8);
    top: 40%;
    right: 15%;
    animation-delay: 8s;
}

@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===================================
   Skills Section (top-level section only)
   =================================== */
/* Scope background/padding to the section element so nested .skills-section divs
   (used for the 'Technical Skills' container inside About) don't get a different
   background than the page. */
section.skills-section {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-muted-bg);
    overflow: hidden;
}

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

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-2xl);
    font-weight: 600;
}

/* Skills Carousel */
.skills-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: var(--spacing-md) 0;
}

.skills-carousel-wrapper:first-of-type {
    padding-bottom: var(--spacing-lg);
}

.skills-carousel-wrapper:last-of-type {
    padding-top: var(--spacing-lg);
    margin-top: var(--spacing-md);
}

.skills-carousel-wrapper::before,
.skills-carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.skills-carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--color-muted-bg), transparent);
}

body.dark-theme .skills-carousel-wrapper::before {
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), transparent);
}

.skills-carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--color-muted-bg), transparent);
}

body.dark-theme .skills-carousel-wrapper::after {
    background: linear-gradient(to left, rgba(0, 0, 0, 0.2), transparent);
}

.skills-carousel {
    display: flex;
    width: 100%;
    cursor: grab;
}

.skills-carousel:active {
    cursor: grabbing;
}

.skills-track {
    display: flex;
    gap: var(--spacing-lg);
    will-change: transform;
}

/* Right to left animation (default) */
.skills-carousel[data-direction="rtl"] .skills-track {
    animation: scroll-left 40s linear infinite;
}

/* Left to right animation */
.skills-carousel[data-direction="ltr"] .skills-track {
    animation: scroll-right 40s linear infinite;
}

/* Pause on hover or interaction */
.skills-track:hover,
.skills-carousel.paused .skills-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    padding: var(--spacing-xl);
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
    cursor: default;
    min-width: 140px;
    flex-shrink: 0;
}

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

.skill-card i {
    font-size: 3rem;
    transition: transform var(--transition-fast);
}

/* Devicon SVG images - colored tech stack icons */
.skill-card img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

/* Devicon colored icons - remove color override to show original colors */
.skill-card i[class*="devicon-"][class*="-colored"],
.skill-card i[class*="devicon-"][class*="-original"] {
    color: inherit !important;
}

/* Font Awesome fallback - use primary color */
.skill-card i.fa,
.skill-card i.fas,
.skill-card i.fab {
    color: var(--color-primary);
}

.skill-card:hover i,
.skill-card:hover img {
    transform: scale(1.1);
}

.skill-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* ===================================
   Content Section
   =================================== */
.content-section {
    padding: var(--spacing-2xl) 0 var(--spacing-3xl) 0;
}

/* ===================================
   Tabs Component
   =================================== */
.tabs {
    margin-top: var(--spacing-xl);
}

.tabs-list-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-xl);
}

.tabs-list {
    display: inline-flex;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs);
    background-color: var(--color-muted-bg);
    border-radius: var(--radius-lg);
}

.tab-trigger {
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: var(--radius-md);
    background-color: transparent;
    color: var(--color-muted);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.tab-trigger:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.tab-trigger.active {
    background-color: var(--color-card);
    color: var(--color-foreground);
    box-shadow: var(--shadow-sm);
}

body.dark-theme .tab-trigger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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

/* ===================================
   Work Timeline
   =================================== */
.work-timeline {
    max-width: 800px;
    position: relative;
    margin: 0 auto;
}

.work-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-border);
}

.timeline-item {
    position: relative;
    padding-left: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.timeline-badge {
    position: absolute;
    left: -6px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color-primary);
    border: 3px solid var(--color-background);
    box-shadow: 0 0 0 3px var(--color-border);
}

.timeline-content {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.timeline-content:hover {
    background-color: var(--color-card-hover);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-sm);
    gap: var(--spacing-md);
}

.work-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.work-period {
    font-size: 0.875rem;
    color: var(--color-muted);
    white-space: nowrap;
}

.work-company {
    color: var(--color-primary);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.work-description {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.work-achievements {
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.work-achievements li {
    margin-bottom: var(--spacing-sm);
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

/* ===================================
   Projects Grid
   =================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 1200px;
    margin: 0 auto;
}

/* Flip Card Container */
.project-card-flip {
    perspective: 1000px;
    height: 450px;
}

.project-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.project-card-flip.flipped .project-card-inner {
    transform: rotateY(180deg);
}

.project-card-front,
.project-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Front of Card */
.project-card-front {
    background: linear-gradient(135deg, rgba(13, 98, 247, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: all var(--transition-fast);
}

body.dark-theme .project-card-front {
    background: linear-gradient(135deg, rgba(13, 98, 247, 0.1), rgba(59, 130, 246, 0.1));
}

.project-card-flip:hover .project-card-front {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--color-primary);
}

.project-card-header {
    padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
    min-height: 80px;
    display: flex;
    align-items: center;
}

.project-card-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
    color: var(--color-foreground);
    line-height: 1.4;
}

.project-image-container {
    width: 100%;
    aspect-ratio: 16 / 9.2;
    overflow: hidden;
    padding: 0 var(--spacing-lg);
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
}

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

.tap-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-md);
    color: var(--color-muted);
    font-size: 0.85rem;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.project-card-flip:hover .tap-hint {
    opacity: 1;
    animation: pulse 2s infinite;
}

.tap-hint i {
    font-size: 1rem;
    color: var(--color-primary);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Back of Card */
.project-card-back {
    background: linear-gradient(135deg, var(--color-card), var(--color-card-hover));
    border: 1px solid var(--color-border);
    transform: rotateY(180deg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.dark-theme .project-card-back {
    background: linear-gradient(135deg, var(--color-card), #3d4a5c);
}

.project-back-content {
    padding: var(--spacing-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.project-back-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-primary);
}

.project-back-content .project-period {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-md);
    font-style: italic;
}

.project-back-content .project-description {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
    flex: 1;
}

.project-back-content .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.flip-back-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    padding-top: var(--spacing-sm);
    color: var(--color-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.flip-back-hint i {
    color: var(--color-primary);
    animation: rotate 2s infinite;
}

@keyframes rotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate(-180deg);
    }
}

/* Keep old styles for compatibility */
.project-card {
    display: none;
}

.project-period {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: var(--spacing-lg);
    font-style: italic;
}

.project-description {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
}

.tag {
    padding: var(--spacing-xs) var(--spacing-sm);
    background-color: var(--color-muted-bg);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--color-foreground);
    font-weight: 500;
}

/* ===================================
   About Section
   =================================== */
.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: var(--spacing-2xl);
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.about-text p {
    color: var(--color-muted);
    line-height: 1.8;
    margin-bottom: var(--spacing-md);
}

.education-section {
    margin-bottom: var(--spacing-2xl);
}

.education-section h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.education-card {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.education-card h5 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
    color: var(--color-primary);
}

.education-card .institution {
    font-weight: 600;
    color: var(--color-foreground);
    margin-bottom: var(--spacing-xs);
}

.education-card .period,
.education-card .location {
    color: var(--color-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xs);
}

.education-card .location i {
    margin-right: var(--spacing-xs);
}

.education-card .concentration,
.education-card .coursework {
    color: var(--color-muted);
    line-height: 1.6;
    margin-top: var(--spacing-sm);
}

.skills-section h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.skill-category {
    background-color: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-fast);
}

.skill-category:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.skill-category h5 {
    font-size: 1rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-item {
    padding: var(--spacing-xs) var(--spacing-md);
    background-color: var(--color-muted-bg);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    color: var(--color-foreground);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.skill-item:hover {
    background-color: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

/* ===================================
   Contact Section
   =================================== */
.contact-section {
    padding: var(--spacing-3xl) 0;
    background: linear-gradient(135deg, rgba(13, 98, 247, 0.05), rgba(59, 130, 246, 0.05));
}

body.dark-theme .contact-section {
    background: linear-gradient(135deg, rgba(13, 98, 247, 0.1), rgba(59, 130, 246, 0.1));
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    margin-bottom: var(--spacing-2xl);
}

.contact-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.contact-text p {
    font-size: 1.125rem;
    color: var(--color-muted);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-muted);
    font-size: 0.95rem;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.contact-info i {
    color: var(--color-primary);
    width: 20px;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    background-color: #0b4ec7;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-socials {
    display: flex;
    gap: var(--spacing-md);
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-full);
    background-color: var(--color-card);
    color: var(--color-foreground);
    font-size: 1.25rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.social-btn:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-md);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--spacing-xl) 0;
    background-color: var(--color-muted-bg);
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.footer p {
    color: var(--color-muted);
    font-size: 0.875rem;
}

/* ===================================
   Floating Navigation Button (Mobile)
   =================================== */
.floating-nav-btn {
    position: fixed;
    bottom: 2rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #3b82f6);
    color: white;
    border: none;
    outline: none;
    box-shadow: 0 4px 12px rgba(13, 98, 247, 0.4);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 999;
    transition: all var(--transition-base);
    animation: float-bounce 2s ease-in-out infinite;
    -webkit-tap-highlight-color: transparent;
}

.floating-nav-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(13, 98, 247, 0.5);
}

.floating-nav-btn:active {
    transform: translateY(-2px) scale(0.95);
    border-radius: 50%;
}

.floating-nav-btn:focus {
    outline: none;
    border-radius: 50%;
}

body.dark-theme .floating-nav-btn {
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

body.dark-theme .floating-nav-btn:hover {
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.5);
}

@keyframes float-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: var(--spacing-xl);
    }
    
    .hero-image {
        order: 1;
        flex: 0 0 auto;
    }
    
    .hero-text {
        order: 2;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        margin: 0 auto;
    }
    
    .hero-location {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    /* Show floating nav button on mobile */
    .floating-nav-btn {
        display: flex;
    }
    
    .hero-section {
        padding: var(--spacing-2xl) 0 var(--spacing-xl) 0;
    }
    
    .hero-image {
        flex: 0 0 250px;
        min-height: 250px;
    }
    
    .profile-picture {
        max-width: 250px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .skills-track {
        animation-duration: 30s;
    }
    
    .skill-card {
        min-width: 120px;
        padding: var(--spacing-md);
    }
    
    .skill-card i {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card-flip {
        height: 400px;
    }
    
    /* Show tap hint by default on mobile */
    .tap-hint {
        opacity: 1;
    }
    
    .project-back-content {
        padding: var(--spacing-lg);
    }
    
    .work-timeline::before {
        left: 0;
    }
    
    .timeline-item {
        padding-left: var(--spacing-lg);
    }
    
    .work-header {
        flex-direction: column;
        gap: var(--spacing-xs);
    }
    
    .skills-list {
        grid-template-columns: 1fr;
    }
    
    .contact-text h2 {
        font-size: 2rem;
    }
    
    .contact-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }
    
    .logo {
        flex: 1;
    }
    
    .social-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
    }
    
    .hero-section {
        padding: var(--spacing-xl) 0 var(--spacing-lg) 0;
    }
    
    .hero-image {
        flex: 0 0 200px;
        min-height: 200px;
    }
    
    .profile-picture {
        max-width: 200px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .skills-carousel-wrapper::before,
    .skills-carousel-wrapper::after {
        width: 50px;
    }
    
    .skills-track {
        animation-duration: 25s;
    }
    
    .skill-card {
        min-width: 100px;
        padding: var(--spacing-sm);
    }
    
    .skill-card i {
        font-size: 2rem;
    }
    
    .skill-card h4 {
        font-size: 0.8rem;
    }
    
    .tabs-list-wrapper {
        width: 100%;
    }
    
    .tabs-list {
        width: 100%;
        justify-content: center;
    }
    
    .tab-trigger {
        flex: 1;
        padding: var(--spacing-sm);
    }
    
    .contact-text h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .project-card-flip {
        height: 380px;
    }
    
    .project-back-content {
        padding: var(--spacing-md);
    }
    
    .project-back-content h3 {
        font-size: 1.1rem;
    }
    
    .project-back-content .project-description {
        font-size: 0.85rem;
    }
}

/* ===================================
   Utility Classes
   =================================== */
.fade-in {
    animation: fadeIn 0.6s ease-in-out;
}

/* Smooth scroll offset for sticky header */
section {
    scroll-margin-top: 80px;
}

/* Focus styles for accessibility */
*:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}
