/* ==============================================
   ПРОФЕССИОНАЛЬНОЕ ПОРТФОЛИО - STYLE.CSS
   Разработано для Александра Пацифика
   Современный дизайн 2025 с автоматической темой
   ============================================== */

:root {
    /* Автоматическое переключение цветовой схемы */
    color-scheme: light dark;
    
    /* Light/Dark theme colors using light-dark() function */
    --primary-color: light-dark(#2563eb, #60a5fa);
    --secondary-color: light-dark(#1e293b, #e2e8f0);
    --accent-color: light-dark(#06b6d4, #22d3ee);
    --success-color: light-dark(#10b981, #34d399);
    --warning-color: light-dark(#f59e0b, #fbbf24);
    --error-color: light-dark(#ef4444, #f87171);
    
    /* Text colors */
    --text-primary: light-dark(#0f172a, #f8fafc);
    --text-secondary: light-dark(#475569, #cbd5e1);
    --text-muted: light-dark(#64748b, #94a3b8);
    
    /* Background colors */
    --bg-primary: light-dark(#ffffff, #0f172a);
    --bg-secondary: light-dark(#f8fafc, #1e293b);
    --bg-tertiary: light-dark(#f1f5f9, #334155);
    --bg-card: light-dark(#ffffff, #1e293b);
    --bg-glass: light-dark(rgba(255, 255, 255, 0.8), rgba(30, 41, 59, 0.8));
    
    /* Border colors */
    --border-color: light-dark(#e2e8f0, #475569);
    --border-accent: light-dark(#cbd5e1, #64748b);
    
    /* Shadow colors */
    --shadow-color: light-dark(rgba(15, 23, 42, 0.1), rgba(0, 0, 0, 0.3));
    --shadow-heavy: light-dark(rgba(15, 23, 42, 0.15), rgba(0, 0, 0, 0.5));
    
    /* Gradients */
    --gradient-primary: light-dark(
        linear-gradient(135deg, #2563eb 0%, #06b6d4 100%),
        linear-gradient(135deg, #60a5fa 0%, #22d3ee 100%)
    );
    --gradient-bg: light-dark(
        linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 100%)
    );
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 var(--shadow-color);
    --shadow-md: 0 4px 6px -1px var(--shadow-color), 0 2px 4px -1px var(--shadow-color);
    --shadow-lg: 0 10px 15px -3px var(--shadow-color), 0 4px 6px -2px var(--shadow-color);
    --shadow-xl: 0 20px 25px -5px var(--shadow-color), 0 10px 10px -5px var(--shadow-color);
    
    /* Spacing system */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 5rem;
    
    /* Typography */
    --font-family-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-heading: 'Space Grotesk', sans-serif;
    --font-family-mono: 'JetBrains Mono', monospace;
    
    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Manual theme overrides */
[data-theme="light"] {
    --primary-color: #2563eb;
    --text-primary: #0f172a;
    --bg-primary: #ffffff;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-color: rgba(15, 23, 42, 0.1);
}

[data-theme="dark"] {
    --primary-color: #60a5fa;
    --text-primary: #f8fafc;
    --bg-primary: #0f172a;
    --bg-card: #1e293b;
    --border-color: #475569;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ==============================================
   RESET & BASE STYLES
   ============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-primary);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    transition: all var(--transition-base);
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==============================================
   ACCESSIBILITY
   ============================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    z-index: 1000;
    transition: top var(--transition-base);
    font-weight: 600;
}

.skip-link:focus {
    top: 6px;
}

/* Focus styles */
*:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline-offset: 4px;
}

/* ==============================================
   THEME TOGGLE BUTTON
   ============================================== */

.theme-toggle {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1000;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.theme-toggle i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

/* ==============================================
   HEADER & NAVIGATION
   ============================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid var(--border-color);
    z-index: 999;
    transition: all var(--transition-base);
}

.header.scrolled {
    background: var(--bg-card);
    box-shadow: var(--shadow-md);
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-family-heading);
    font-weight: 700;
    font-size: 1.75rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all var(--transition-base);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--spacing-2xl);
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.mobile-menu-toggle:hover {
    background: var(--bg-secondary);
}

/* ==============================================
   HERO SECTION
   ============================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.3" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-text .badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

.hero-text h1 {
    font-family: var(--font-family-heading);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-lg);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text .subtitle {
    font-size: 1.375rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    font-weight: 400;
    line-height: 1.5;
}

/* ==============================================
   BUTTONS
   ============================================== */

.cta-buttons {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    border: none;
    cursor: pointer;
    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 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* ==============================================
   HERO IMAGE
   ============================================== */

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out 0.3s both;
}

.profile-container {
    position: relative;
}

.profile-image {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid var(--bg-card);
    box-shadow: var(--shadow-xl);
    transition: transform var(--transition-slow);
    position: relative;
    z-index: 2;
}

.profile-image:hover {
    transform: scale(1.05) rotate(2deg);
}

.profile-bg {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 440px;
    height: 440px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0.1;
    animation: pulse 4s infinite;
}

.floating-card {
    position: absolute;
    background: var(--bg-card);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    animation: float 6s ease-in-out infinite;
    z-index: 3;
}

.floating-card.ai {
    top: 10%;
    right: -5%;
    background: var(--gradient-primary);
    color: white;
    animation-delay: -2s;
}

.floating-card.analytics {
    bottom: 15%;
    left: -5%;
    background: var(--success-color);
    color: white;
    animation-delay: -4s;
}

.floating-card i {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    display: block;
}

/* ==============================================
   ANIMATIONS
   ============================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.15; }
}

/* ==============================================
   SECTIONS
   ============================================== */

.section {
    padding: var(--spacing-3xl) var(--spacing-xl);
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.section-title .badge {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    border: 1px solid var(--border-color);
}

.section-title h2 {
    font-family: var(--font-family-heading);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.section-title p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==============================================
   ABOUT SECTION
   ============================================== */

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
    margin-top: var(--spacing-2xl);
}

.about-content {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.about-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-content h3 {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.about-content p {
    margin-bottom: var(--spacing-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.stat-card {
    background: var(--bg-card);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.stat-number {
    font-family: var(--font-family-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ==============================================
   SKILLS SECTION
   ============================================== */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-2xl);
}

.skill-card {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.skill-card:hover::before {
    opacity: 0.05;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.skill-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.skill-header h3 {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-list {
    list-style: none;
}

.skill-list li {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
    padding-left: var(--spacing-lg);
}

.skill-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.skill-list li:last-child {
    border-bottom: none;
}

/* ==============================================
   CERTIFICATES SECTION
   ============================================== */

.certificates-container {
    position: relative;
    margin: var(--spacing-2xl) 0;
    overflow: hidden;
}

.certificates-slider {
    display: flex;
    transition: transform var(--transition-slow);
    gap: var(--spacing-xl);
}

.certificate-card {
    min-width: 320px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.certificate-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.certificate-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
    transition: transform var(--transition-base);
}

.certificate-card:hover .certificate-image {
    transform: scale(1.05);
}

.certificate-info {
    padding: var(--spacing-lg);
}

.certificate-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.1rem;
}

.certificate-org {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.certificate-org::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.slider-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.slider-btn {
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: var(--spacing-md);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-base);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ==============================================
   MODAL
   ============================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    animation: modalFadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    animation: modalSlideIn 0.3s ease;
}

.modal-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: transform var(--transition-fast);
}

.close-modal:hover {
    transform: scale(1.2);
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalSlideIn {
    from { 
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to { 
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ==============================================
   EXPERIENCE TIMELINE
   ============================================== */

.experience-timeline {
    position: relative;
    padding: var(--spacing-2xl) 0;
    margin-top: var(--spacing-2xl);
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-3xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-2xl);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: var(--bg-card);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -30px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -30px;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-title {
    font-family: var(--font-family-heading);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ==============================================
   CONTACT SECTION
   ============================================== */

.contact {
    background: var(--bg-secondary);
    border-radius: 40px 40px 0 0;
    margin-top: var(--spacing-3xl);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    margin-top: var(--spacing-2xl);
}

.contact-info h3 {
    font-family: var(--font-family-heading);
    font-size: 2rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-2xl);
    line-height: 1.7;
    font-size: 1.1rem;
}

.contact-links {
    list-style: none;
    display: grid;
    gap: var(--spacing-md);
}

.contact-links a {
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.contact-links a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    opacity: 0.8;
}

.contact-highlights {
    background: var(--bg-card);
    padding: var(--spacing-2xl);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.contact-highlights h4 {
    font-family: var(--font-family-heading);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.highlight-list {
    list-style: none;
    display: grid;
    gap: var(--spacing-md);
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all var(--transition-base);
}

.highlight-list li:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.highlight-icon {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.highlight-list li:hover .highlight-icon {
    color: white;
}

/* ==============================================
   FOOTER
   ============================================== */

.footer {
    background: var(--bg-primary);
    color: var(--text-secondary);
    text-align: center;
    padding: var(--spacing-2xl);
    border-top: 1px solid var(--border-color);
}

/* ==============================================
   SCROLL TO TOP BUTTON
   ============================================== */

.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 998;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* ==============================================
   INTERSECTION OBSERVER ANIMATIONS
   ============================================== */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.loading {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1200px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--spacing-2xl);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .timeline-line {
        left: 2rem;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
        padding-left: var(--spacing-3xl);
    }
    
    .timeline-content::before,
    .timeline-item:nth-child(even) .timeline-content::before {
        left: -30px;
        right: auto;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        right: 1rem;
        width: 48px;
        height: 48px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-top: none;
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-lg);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .section {
        padding: var(--spacing-2xl) var(--spacing-lg);
    }
    
    .profile-image {
        width: 300px;
        height: 300px;
    }
    
    .profile-bg {
        width: 340px;
        height: 340px;
    }
    
    .floating-card {
        display: none;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .certificate-card {
        min-width: 280px;
    }
    
    .timeline-item {
        padding-left: var(--spacing-2xl);
    }
    
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .certificate-card {
        min-width: 250px;
    }
    
    .profile-image {
        width: 250px;
        height: 250px;
    }
    
    .profile-bg {
        width: 290px;
        height: 290px;
    }
    
    .nav {
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .hero-content {
        padding: var(--spacing-lg);
    }
}

/* ==============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================== */

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --border-color: light-dark(#000000, #ffffff);
        --shadow-color: light-dark(rgba(0, 0, 0, 0.3), rgba(255, 255, 255, 0.3));
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-card,
    .profile-bg {
        animation: none;
    }
    
    .scroll-behavior {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .theme-toggle,
    .scroll-top,
    .mobile-menu-toggle,
    .floating-card {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .section {
        padding: 1rem 0;
    }
    
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
}