/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

:root {
    /* Premium Color Palette */
    --color-primary: #C9A961;
    --color-primary-dark: #B89648;
    --color-primary-light: #E5D4A7;
    
    --color-bg-dark: #0A0A0F;
    --color-bg-card: #121218;
    --color-bg-elevated: #1A1A24;
    
    --color-text-primary: #FFFFFF;
    --color-text-secondary: #A8A8B3;
    --color-text-tertiary: #6B6B7A;
    
    --color-accent: #7B61FF;
    --color-accent-2: #FF61E6;
    
    /* Spacing */
    --space-unit: 8px;
    --container-max: 1400px;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 6);
}

/* ==================== CUSTOM CURSOR ==================== */
body::after {
    content: '';
    position: fixed;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: 50%;
    pointer-events: none;
    z-index: 10001;
    left: var(--cursor-x, -100px);
    top: var(--cursor-y, -100px);
    transform: translate(-50%, -50%);
    opacity: var(--cursor-opacity, 0);
    box-shadow: 0 0 20px rgba(201, 169, 97, 0.6);
    transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
}

body::before {
    content: '';
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    left: var(--cursor-outline-x, -100px);
    top: var(--cursor-outline-y, -100px);
    transform: translate(-50%, -50%);
    opacity: var(--cursor-outline-opacity, 0);
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.2s ease;
}

@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    body::before,
    body::after {
        display: none;
    }
}

/* ==================== AMBIENT BACKGROUND ==================== */

/* ==================== AMBIENT BACKGROUND ==================== */
.ambient-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 60s ease-in-out infinite;
    transition: transform 0.8s ease-out;
}

.orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-primary) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    animation-delay: 0s;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
    bottom: -250px;
    left: -250px;
    animation-delay: 20s;
}

.orb-3 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-accent-2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 40s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(80px, -80px) scale(1.1);
    }
    66% {
        transform: translate(-60px, 80px) scale(0.9);
    }
}

/* ==================== PARTICLE CANVAS ==================== */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: calc(var(--space-unit) * 3) 0;
    transition: all 0.4s var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    padding: calc(var(--space-unit) * 2) 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 calc(var(--space-unit) * 6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-text-tertiary);
}

.nav-menu {
    display: flex;
    gap: calc(var(--space-unit) * 6);
    list-style: none;
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transform: translateX(-50%);
    transition: width 0.3s var(--transition-smooth);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

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

.nav-toggle span {
    width: 30px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all 0.3s var(--transition-smooth);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: rgba(18, 18, 24, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: calc(var(--space-unit) * 15) calc(var(--space-unit) * 6);
        gap: calc(var(--space-unit) * 4);
        transition: right 0.4s var(--transition-smooth);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--space-unit) * 12) calc(var(--space-unit) * 6);
    z-index: 2;
}

.hero-content {
    max-width: 1000px;
    text-align: center;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    font-size: 12px;
    letter-spacing: 3px;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--space-unit) * 4);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.2s forwards;
}

.label-line {
    width: 40px;
    height: 1px;
    background: var(--color-primary);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 8vw, 120px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: calc(var(--space-unit) * 3);
}

.title-line {
    display: block;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.4s;
}

.title-line:nth-child(2) {
    animation-delay: 0.6s;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 24px);
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--space-unit) * 8);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 0.8s forwards;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: calc(var(--space-unit) * 6);
    margin-bottom: calc(var(--space-unit) * 8);
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 1s forwards;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: calc(var(--space-unit));
}

.stat-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--color-text-tertiary);
    opacity: 0.3;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: calc(var(--space-unit) * 3);
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s var(--transition-smooth) 1.2s forwards;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    padding: calc(var(--space-unit) * 2.5) calc(var(--space-unit) * 5);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
    box-shadow: 0 10px 40px rgba(201, 169, 97, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    transition: left 0.4s var(--transition-smooth);
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 50px rgba(201, 169, 97, 0.4);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: calc(var(--space-unit) * 6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    color: var(--color-text-tertiary);
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s var(--transition-smooth) 1.5s forwards;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--color-primary), transparent);
    animation: scrollAnimation 2s ease-in-out infinite;
}

@keyframes scrollAnimation {
    0%, 100% {
        transform: translateY(0);
        opacity: 0;
    }
    50% {
        transform: translateY(20px);
        opacity: 1;
    }
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    position: relative;
    padding: calc(var(--space-unit) * 20) 0;
    z-index: 2;
}

.section-header {
    margin-bottom: calc(var(--space-unit) * 12);
}

.section-label {
    display: block;
    font-size: 14px;
    letter-spacing: 3px;
    color: var(--color-primary);
    margin-bottom: calc(var(--space-unit) * 2);
    text-transform: uppercase;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: calc(var(--space-unit) * 10);
    align-items: start;
}

.about-text {
    padding-top: calc(var(--space-unit) * 4);
}

.lead-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text-primary);
    margin-bottom: calc(var(--space-unit) * 4);
}

.about-text p {
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--space-unit) * 3);
    line-height: 1.8;
}

.languages-grid {
    margin-top: calc(var(--space-unit) * 8);
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 4);
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-weight: 600;
    color: var(--color-text-primary);
}

.language-level {
    font-size: 14px;
    color: var(--color-text-tertiary);
}

.language-bar {
    height: 4px;
    background: var(--color-bg-elevated);
    border-radius: 2px;
    overflow: hidden;
}

.language-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
    transition: width 1s var(--transition-smooth);
}

.code-window {
    background: var(--color-bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.code-header {
    display: flex;
    align-items: center;
    gap: calc(var(--space-unit) * 2);
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
    background: var(--color-bg-elevated);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.code-dots {
    display: flex;
    gap: 8px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dots span:nth-child(1) {
    background: #FF5F56;
}

.code-dots span:nth-child(2) {
    background: #FFBD2E;
}

.code-dots span:nth-child(3) {
    background: #27C93F;
}

.code-title {
    font-size: 12px;
    color: var(--color-text-tertiary);
}

.code-content {
    padding: calc(var(--space-unit) * 4);
    overflow-x: auto;
}

.code-content pre {
    margin: 0;
}

.code-content code {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    display: block;
    white-space: pre;
}

.code-keyword {
    color: #FF79C6;
    font-weight: 600;
}

.code-class {
    color: #8BE9FD;
    font-weight: 600;
}

.code-string {
    color: #F1FA8C;
}

.code-method {
    color: #50FA7B;
}

.code-comment {
    color: #6272A4;
    font-style: italic;
}

.code-type {
    color: #FFB86C;
}

.typing-cursor {
    color: var(--color-primary);
    animation: blink 0.7s infinite;
    font-weight: normal;
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--space-unit) * 6);
    }
}

/* ==================== EXPERTISE SECTION ==================== */
.expertise-section {
    position: relative;
    padding: calc(var(--space-unit) * 20) 0;
    z-index: 2;
}

.tech-tabs {
    display: flex;
    gap: calc(var(--space-unit) * 3);
    margin-bottom: calc(var(--space-unit) * 8);
    flex-wrap: wrap;
}

.tech-tab {
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 4);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
}

.tech-tab:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.tech-tab.active {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    border-color: var(--color-primary);
    color: var(--color-bg-dark);
}

.tech-content {
    display: none;
}

.tech-content.active {
    display: block;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--space-unit) * 3);
    justify-content: center;
}

.tech-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: calc(var(--space-unit) * 5);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    flex: 1 1 300px;
    max-width: 400px;
    min-width: 280px;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.tech-card:hover::before {
    opacity: 0.05;
}

.tech-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-primary);
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.2);
}

.tech-icon {
    width: 60px;
    height: 60px;
    margin-bottom: calc(var(--space-unit) * 3);
    color: var(--color-primary);
    position: relative;
    z-index: 1;
}

.tech-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: calc(var(--space-unit) * 2);
    color: var(--color-text-primary);
    position: relative;
    z-index: 1;
}

.tech-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: calc(var(--space-unit) * 3);
    position: relative;
    z-index: 1;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--space-unit) * 1.5);
    position: relative;
    z-index: 1;
}

.tech-tags span {
    padding: calc(var(--space-unit)) calc(var(--space-unit) * 2);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    font-size: 12px;
    color: var(--color-text-tertiary);
    transition: all 0.3s var(--transition-smooth);
}

.tech-card:hover .tech-tags span {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==================== PROJECTS SECTION ==================== */
.projects-section {
    position: relative;
    padding: calc(var(--space-unit) * 20) 0;
    z-index: 2;
}

.project-showcase {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 8);
}

.project-card {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: calc(var(--space-unit) * 6) calc(var(--space-unit) * 8);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    border-color: var(--color-primary);
    box-shadow: 0 30px 80px rgba(201, 169, 97, 0.2);
}

.project-number {
    font-family: var(--font-display);
    font-size: 120px;
    font-weight: 700;
    position: absolute;
    top: -20px;
    left: calc(var(--space-unit) * 6);
    background: linear-gradient(180deg, rgba(201, 169, 97, 0.2) 0%, transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    z-index: 0;
}

.project-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.project-tag {
    display: inline-block;
    padding: calc(var(--space-unit)) calc(var(--space-unit) * 3);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: var(--color-bg-dark);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: calc(var(--space-unit) * 3);
    text-transform: uppercase;
}

.project-title {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    margin-bottom: calc(var(--space-unit) * 3);
    color: var(--color-text-primary);
}

.project-description {
    font-size: 18px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--space-unit) * 6);
}

.project-details {
    display: flex;
    gap: calc(var(--space-unit) * 8);
    margin-bottom: calc(var(--space-unit) * 6);
    padding: calc(var(--space-unit) * 4) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit));
    flex: 0 0 auto;
}

.detail-label {
    font-size: 12px;
    letter-spacing: 1px;
    color: var(--color-text-tertiary);
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-primary);
}

.project-responsibilities {
    margin-bottom: calc(var(--space-unit) * 6);
}

.project-responsibilities h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: calc(var(--space-unit) * 3);
    color: var(--color-text-primary);
}

.project-responsibilities ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 2);
}

.project-responsibilities li {
    position: relative;
    padding-left: calc(var(--space-unit) * 4);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.project-responsibilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--space-unit) * 2);
    max-width: 100%;
}

.project-tech span {
    padding: calc(var(--space-unit) * 1.5) calc(var(--space-unit) * 3);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 13px;
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: all 0.3s var(--transition-smooth);
}

.project-tech span:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    position: relative;
    padding: calc(var(--space-unit) * 20) 0 calc(var(--space-unit) * 15) 0;
    z-index: 2;
}

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

.contact-title {
    font-family: var(--font-display);
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(var(--space-unit) * 5);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-description {
    font-size: 20px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: calc(var(--space-unit) * 8);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--space-unit) * 4);
    max-width: 800px;
    margin: 0 auto;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--space-unit) * 3);
    padding: calc(var(--space-unit) * 6);
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.contact-link:hover::before {
    opacity: 0.1;
}

.contact-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(201, 169, 97, 0.2);
}

.contact-link svg {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.contact-link span {
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.contact-link:nth-child(3) {
    grid-column: 1 / -1;
}

.contact-form-wrapper {
    background: var(--color-bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: calc(var(--space-unit) * 6);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--space-unit) * 1.5);
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    padding: calc(var(--space-unit) * 2) calc(var(--space-unit) * 3);
    background: var(--color-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 16px;
    transition: all 0.3s var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-links {
        grid-template-columns: 1fr;
        gap: calc(var(--space-unit) * 3);
    }
    
    .contact-link {
        padding: calc(var(--space-unit) * 4);
    }
    
    .contact-link:nth-child(3) {
        grid-column: auto;
    }
}

/* ==================== FOOTER ==================== */
.footer {
    position: relative;
    padding: calc(var(--space-unit) * 6) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2;
}

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

.footer-text p {
    color: var(--color-text-tertiary);
    font-size: 14px;
}

.footer-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--transition-smooth);
}

[data-reveal].fading-out {
    opacity: 0;
    transform: translateY(-30px);
    transition: all 0.6s var(--transition-smooth);
}

/* Section scroll effects */
section {
    transition: transform 0.4s var(--transition-smooth), 
                opacity 0.4s var(--transition-smooth),
                filter 0.4s var(--transition-smooth);
    transform-origin: center center;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: calc(var(--space-unit) * 4);
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .project-number {
        font-size: 80px;
    }
    
    .project-title {
        font-size: 32px;
    }
    
    .project-card {
        padding: calc(var(--space-unit) * 5);
    }
    
    .project-details {
        flex-direction: column;
        gap: calc(var(--space-unit) * 3);
    }
}
