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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #495057;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    overflow-x: hidden;
}

/* ==========================================
   COLOR SYSTEM
   ========================================== */
:root {
    /* Primary Colors */
    --primary-500: #0A58CA;
    --primary-600: #0E6BDC;
    --primary-700: #084298;
    --primary-100: #CFDFF5;
    
    /* Secondary Colors */
    --secondary-500: #6F42C1;
    --secondary-600: #7C3AED;
    --accent-500: #EC4899;
    --accent-600: #F43F5E;
    
    /* Neutral Colors */
    --neutral-900: #1e293b;
    --neutral-800: #334155;
    --neutral-700: #475569;
    --neutral-600: #64748B;
    --neutral-500: #94A3B8;
    --neutral-400: #CBD5E1;
    --neutral-300: #E2E8F0;
    --neutral-200: #F1F5F9;
    --neutral-100: #F8FAFC;
    --neutral-0: #FFFFFF;
    
    /* Success Colors */
    --success-500: #10B981;
    --success-600: #059669;
    --success-100: #D1FAE5;
    
    /* Warning Colors */
    --warning-500: #F59E0B;
    --warning-600: #D97706;
    --warning-100: #FEF3C7;
    
    /* Semantic Colors */
    --success: #10B981;
    --error: #EF4444;
    
    /* Modern 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), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(10, 88, 202, 0.3);
    --shadow-colored: 0 8px 25px -5px rgba(10, 88, 202, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-600) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-500) 0%, var(--secondary-600) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent-500) 0%, var(--accent-600) 100%);
    --gradient-hero: linear-gradient(135deg, rgba(10, 88, 202, 0.05) 0%, rgba(111, 66, 193, 0.05) 100%);
    --gradient-card: linear-gradient(145deg, var(--neutral-0) 0%, var(--neutral-100) 100%);
    
    /* Spacing */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-xxl: 64px;
    --space-xxxl: 96px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Animation Durations */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    
    /* Z-index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    color: var(--neutral-900);
    line-height: 1.2;
    font-weight: 600;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.3;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 1.75rem);
    font-weight: 500;
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

p {
    margin-bottom: var(--space-sm);
}

/* ==========================================
   LOADING SCREEN
   ========================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--duration-slow), visibility var(--duration-slow);
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: var(--neutral-0);
}

.loader-icon {
    font-size: 4rem;
    margin-bottom: var(--space-md);
    animation: pulse 2s ease-in-out infinite;
}

.loader-text {
    font-size: 1.5rem;
    font-weight: 600;
    animation: fadeInOut 1.5s ease-in-out infinite;
}

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

@keyframes fadeInOut {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* ==========================================
   LAYOUT & CONTAINER
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-xxxl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xxl);
    position: relative;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gradient-primary);
    color: var(--neutral-0);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-colored);
    animation: slideInDown var(--duration-normal) ease-out;
}

.section-title {
    margin-bottom: var(--space-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: var(--z-sticky);
    padding: var(--space-sm) 0;
    transition: all var(--duration-normal) ease;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.brand-logo {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.25rem;
    box-shadow: var(--shadow-colored);
}

.brand-name {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.nav-links {
    display: flex;
    gap: var(--space-xl);
    align-items: center;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    color: var(--neutral-600);
    font-weight: 500;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) ease;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width var(--duration-normal) ease;
    z-index: -1;
}

.nav-link:hover {
    color: var(--neutral-0);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link.active {
    color: var(--primary-600);
}

.nav-link.active::before {
    width: 100%;
    background: var(--gradient-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neutral-700);
    border-radius: 2px;
    transition: all var(--duration-normal) ease;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.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 var(--duration-slow) ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--neutral-0);
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover {
    background: var(--primary-600);
    color: var(--neutral-0);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.125rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-xxl) 0;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    margin-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%230A58CA" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>');
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInLeft var(--duration-slow) ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    background: rgba(10, 88, 202, 0.1);
    color: var(--primary-600);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    border: 1px solid rgba(10, 88, 202, 0.2);
    animation: slideInDown var(--duration-normal) ease-out;
}

.hero-title {
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.title-line {
    display: block;
}

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.subtitle-icon {
    color: var(--primary-600);
    font-size: 1.5rem;
    margin-top: 4px;
    flex-shrink: 0;
}

.hero-stats {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--neutral-0);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: all var(--duration-normal) ease;
}

.hero-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.25rem;
}

.stat-content {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-900);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--neutral-500);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
    height: 600px;
    animation: slideInRight var(--duration-slow) ease-out;
}

.floating-card {
    position: absolute;
    background: var(--neutral-0);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--neutral-700);
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    color: var(--primary-600);
    font-size: 1.25rem;
}

.card-1 {
    top: 10%;
    right: 20%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 20%;
    right: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    overflow: hidden;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.05;
    animation: morph 20s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: -100px;
    animation-delay: 7s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 10%;
    animation-delay: 14s;
}

@keyframes morph {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.1) rotate(90deg); }
    50% { transform: scale(0.9) rotate(180deg); }
    75% { transform: scale(1.05) rotate(270deg); }
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.about-card {
    background: var(--gradient-card);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--duration-normal) ease;
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.card-content h3 {
    margin-bottom: var(--space-sm);
    color: var(--neutral-900);
}

.card-content p {
    color: var(--neutral-600);
    line-height: 1.6;
}

.skill-meter {
    background: var(--neutral-0);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
}

.skill-meter h4 {
    margin-bottom: var(--space-lg);
    text-align: center;
    color: var(--neutral-900);
}

.meter {
    margin-bottom: var(--space-md);
}

.meter:last-child {
    margin-bottom: 0;
}

.meter-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-xs);
    font-weight: 500;
}

.meter-bar {
    height: 8px;
    background: var(--neutral-200);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.meter-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-out;
    position: relative;
}

.meter-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.experience-card {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: all var(--duration-normal) ease;
    position: relative;
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
}

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.card-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-md);
    align-items: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    border-bottom: 1px solid var(--neutral-200);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.5rem;
    box-shadow: var(--shadow-colored);
}

.experience-meta h3 {
    margin-bottom: var(--space-xs);
    color: var(--neutral-900);
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-name {
    font-weight: 600;
    color: var(--primary-600);
    font-size: 1.125rem;
}

.company-location {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    color: var(--neutral-500);
}

.experience-period {
    text-align: right;
}

.period-badge {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: var(--gradient-primary);
    color: var(--neutral-0);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.experience-description {
    padding: var(--space-lg);
}

.role-summary {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    background: var(--neutral-50);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    border-left: 4px solid var(--primary-500);
}

.role-summary i {
    color: var(--warning-500);
    margin-top: 2px;
    flex-shrink: 0;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-md);
}

.achievement {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) ease;
}

.achievement:hover {
    background: var(--neutral-50);
    transform: translateX(4px);
}

.achievement i {
    color: var(--success-500);
    margin-top: 2px;
    flex-shrink: 0;
}

/* ==========================================
   SKILLS SECTION
   ========================================== */
.skills-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.skill-category {
    background: var(--neutral-0);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--duration-normal) ease;
}

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

.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--neutral-200);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.25rem;
}

.skill-category-title {
    margin-bottom: 0;
    color: var(--neutral-900);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.skill-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--gradient-card);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--duration-normal) ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left var(--duration-normal) ease;
    z-index: -1;
}

.skill-item:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    color: var(--neutral-0);
}

.skill-item:hover::before {
    left: 0;
}

.skill-item i {
    font-size: 1.25rem;
    color: var(--primary-600);
    transition: color var(--duration-normal) ease;
}

.skill-item:hover i {
    color: var(--neutral-0);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="80" height="80" viewBox="0 0 80 80" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%230A58CA" fill-opacity="0.03"><polygon points="40,0 80,40 40,80 0,40"/></g></svg>');
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xxl);
    align-items: start;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.contact-card {
    background: var(--neutral-0);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all var(--duration-normal) ease;
    text-align: center;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.5rem;
    margin: 0 auto var(--space-md);
}

.contact-details h4 {
    margin-bottom: var(--space-xs);
    color: var(--neutral-900);
}

.contact-details a,
.contact-details span {
    color: var(--primary-600);
    text-decoration: none;
    font-weight: 500;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-card {
    background: var(--neutral-0);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.cta-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 2rem;
    margin: 0 auto var(--space-lg);
    box-shadow: var(--shadow-colored);
}

.cta-card h3 {
    margin-bottom: var(--space-md);
    color: var(--neutral-900);
}

.cta-card p {
    color: var(--neutral-600);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-0);
    padding: var(--space-xxl) 0 var(--space-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.footer-logo {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-0);
    font-size: 1.5rem;
}

.footer-text h4 {
    margin-bottom: 4px;
    color: var(--neutral-0);
}

.footer-text p {
    color: var(--neutral-400);
    margin-bottom: 0;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-300);
    text-decoration: none;
    transition: all var(--duration-normal) ease;
}

.footer-links a:hover {
    background: var(--primary-600);
    color: var(--neutral-0);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--neutral-700);
}

.footer-bottom p {
    color: var(--neutral-400);
    margin-bottom: 0;
}

/* ==========================================
   SCROLL TO TOP BUTTON
   ========================================== */
.scroll-to-top {
    position: fixed;
    bottom: var(--space-lg);
    right: var(--space-lg);
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--neutral-0);
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) ease;
    opacity: 0;
    visibility: hidden;
    z-index: var(--z-fixed);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero-visual {
        height: 400px;
        order: -1;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .contact-info {
        grid-template-columns: 1fr 1fr;
    }
    
    .card-header {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        text-align: center;
    }
    
    .experience-period {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: 90vh;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .section {
        padding: var(--space-xxl) 0;
    }
    
    .section-header {
        margin-bottom: var(--space-lg);
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .hero-stat {
        flex-direction: row;
        text-align: left;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }
    
    .cta-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-card {
        padding: var(--space-md);
    }
    
    .skill-category {
        padding: var(--space-md);
    }
    
    .experience-card .card-header {
        padding: var(--space-md);
    }
    
    .experience-description {
        padding: var(--space-md);
    }
    
    .skill-meter {
        padding: var(--space-md);
    }
    
    .about-card {
        padding: var(--space-md);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating-card {
        animation: none;
    }
    
    .bg-shape {
        animation: none;
    }
    
    .loader-icon {
        animation: none;
    }
    
    .loader-text {
        animation: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --neutral-100: #FFFFFF;
        --neutral-200: #E5E7EB;
        --neutral-300: #D1D5DB;
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-900: #F8FAFC;
        --neutral-800: #E2E8F0;
        --neutral-700: #CBD5E1;
        --neutral-600: #94A3B8;
        --neutral-500: #64748B;
        --neutral-400: #475569;
        --neutral-300: #334155;
        --neutral-200: #1E293B;
        --neutral-100: #0F172A;
        --neutral-0: #020617;
    }
}