/* ===== VARIABLES - Deep Burgundy & Golden Sand Palette ===== */
:root {
    /* Primary Colors - Deep Burgundy Family [citation:2][citation:5] */
    --burgundy-deep: #5c374b;      /* Rich, muted burgundy */
    --burgundy-dark: #4a2a3c;       /* Deeper for backgrounds */
    --burgundy-rich: #64102A;       /* Deep wine tone */
    --burgundy-velvet: #6A0F2C;     /* Velvet harbor inspiration [citation:5] */
    
    /* Accent Colors - Golden Sand Family [citation:5] */
    --gold-sand: #C9A36A;           /* Primary gold */
    --gold-warm: #B58A5A;           /* Warm, deeper gold */
    --gold-brass: #D6B35E;          /* Brighter accent */
    --gold-pale: #F4EFEA;           /* Creamy off-white */
    
    /* Neutrals */
    --charcoal: #1F2630;            /* Deep for text */
    --charcoal-light: #2E2A2F;      /* For subtle backgrounds */
    --cream: #F8F5F0;               /* Background */
    --white: #FFFFFF;
    
    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Abstract Background Motion (2026 trend) [citation:1] */
.bg-abstract {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(100, 16, 42, 0.05) 0%, transparent 30%),
                radial-gradient(circle at 80% 70%, rgba(201, 163, 106, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: bgPulse 15s ease-in-out infinite alternate;
}

@keyframes bgPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== GLASSMORPHISM EFFECTS (2026 trend) [citation:1][citation:7] ===== */
.glass-effect {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Glass Button with Animation [citation:1] */
.glass-button {
    background: linear-gradient(135deg, rgba(100, 16, 42, 0.8), rgba(90, 55, 75, 0.8));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    color: white;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
}

.glass-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(90, 55, 75, 0.4);
    border-color: var(--gold-sand);
}

.glass-button:active {
    transform: translateY(0) scale(0.98);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.left {
    text-align: left;
}

.section-tag {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--burgundy-rich);
    background: rgba(201, 163, 106, 0.15);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 16px;
    color: var(--charcoal);
}

.gold-text {
    color: var(--gold-warm);
    position: relative;
    display: inline-block;
}

.gold-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(201, 163, 106, 0.3);
    z-index: -1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--burgundy-rich), var(--gold-sand));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition-normal);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--burgundy-rich);
}

.logo-dot {
    width: 8px;
    height: 8px;
    background: var(--gold-sand);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold-sand);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--burgundy-rich);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--burgundy-rich);
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--burgundy-rich);
    background: rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--charcoal-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.btn-secondary {
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    color: var(--burgundy-rich);
    background: transparent;
    border: 2px solid var(--burgundy-rich);
    text-decoration: none;
    transition: var(--transition-normal);
}

.btn-secondary:hover {
    background: var(--burgundy-rich);
    color: white;
    transform: translateY(-2px);
}

/* Data Cards Visualization (Card Play trend) [citation:7] */
.data-cards {
    position: relative;
    height: 400px;
    width: 100%;
}

.data-card {
    position: absolute;
    width: 120px;
    height: 160px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    color: white;
    transition: var(--transition-normal);
    cursor: pointer;
}

.data-card:hover {
    transform: translateY(-10px) scale(1.05);
}

.card-1 {
    top: 20px;
    left: 0;
    background: linear-gradient(135deg, var(--burgundy-rich), #8a2a45);
    z-index: 4;
}

.card-2 {
    top: 60px;
    left: 80px;
    background: linear-gradient(135deg, var(--burgundy-velvet), #4a2a3c);
    z-index: 3;
}

.card-3 {
    top: 100px;
    left: 40px;
    background: linear-gradient(135deg, var(--gold-warm), #a67c52);
    z-index: 2;
}

.card-4 {
    top: 140px;
    left: 100px;
    background: linear-gradient(135deg, var(--gold-brass), #c9a36a);
    z-index: 1;
}

.card-bar {
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 8px 8px 0 0;
    margin-bottom: 8px;
    transition: height var(--transition-slow);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--burgundy-rich);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-20px); }
    60% { transform: translateX(-50%) translateY(-10px); }
}

/* ===== SERVICES SECTION ===== */
.services {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.5);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 32px;
    border-radius: 24px;
    transition: var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--gold-sand);
    transition: height var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    height: 100%;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--burgundy-rich);
    transition: var(--transition-normal);
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--gold-sand);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: var(--burgundy-dark);
}

.service-card p {
    color: var(--charcoal-light);
    margin-bottom: 20px;
}

.card-hover-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-warm);
    font-weight: 500;
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-normal);
}

.service-card:hover .card-hover-indicator {
    opacity: 1;
    transform: translateX(0);
}

/* ===== WORK SECTION ===== */
.work {
    padding: 100px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition-normal);
    cursor: pointer;
    background: white;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--burgundy-rich), var(--burgundy-velvet));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.8);
    z-index: 2;
    transition: var(--transition-normal);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--gold-sand);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(90, 55, 75, 0.5), rgba(201, 163, 106, 0.3));
    z-index: 1;
}

.project-content {
    padding: 24px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-tags span {
    background: rgba(201, 163, 106, 0.15);
    color: var(--burgundy-rich);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--burgundy-dark);
}

.project-content p {
    color: var(--charcoal-light);
    margin-bottom: 20px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-warm);
    font-weight: 600;
    transition: var(--transition-fast);
}

.project-card:hover .project-link {
    gap: 16px;
    color: var(--burgundy-rich);
}

.center-btn {
    text-align: center;
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.5);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-lead {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--burgundy-rich);
    margin: 20px 0;
    line-height: 1.5;
}

.experience-badge {
    display: flex;
    justify-content: space-around;
    padding: 24px;
    border-radius: 20px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.15);
}

.exp-item {
    text-align: center;
}

.exp-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--burgundy-rich);
}

.exp-label {
    font-size: 0.9rem;
    color: var(--charcoal-light);
}

.education h4 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: var(--burgundy-dark);
}

.gold-icon {
    color: var(--gold-sand);
    margin-right: 8px;
}

.skills-card {
    padding: 32px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.skills-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
}

.skill-badge {
    background: rgba(90, 55, 75, 0.1);
    color: var(--burgundy-dark);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    border: 1px solid rgba(201, 163, 106, 0.3);
}

.skill-badge:hover {
    background: var(--burgundy-rich);
    color: white;
    transform: scale(1.05);
    border-color: var(--gold-sand);
}

.lang-items {
    display: flex;
    gap: 24px;
    margin: 16px 0 24px;
}

.lang-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.download-cv {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.contact-card {
    padding: 32px 24px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition-normal);
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold-sand);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--burgundy-rich);
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.contact-card:hover .contact-icon {
    color: var(--gold-sand);
    transform: scale(1.1);
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--burgundy-dark);
}

.contact-card p {
    color: var(--charcoal-light);
    margin-bottom: 16px;
}

.contact-action {
    color: var(--gold-warm);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.contact-card:hover .contact-action {
    opacity: 1;
}

.form-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.15);
}

.form-row {
    margin-bottom: 20px;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(90, 55, 75, 0.2);
    background: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-fast);
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--gold-sand);
    box-shadow: 0 0 0 3px rgba(201, 163, 106, 0.2);
}

.form-container button {
    width: 100%;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 500px;
    width: 90%;
    padding: 40px;
    border-radius: 24px;
    background: white;
    position: relative;
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--burgundy-rich);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--gold-sand);
    transform: scale(1.1);
}

/* ===== FOOTER ===== */
footer {
    padding: 40px 0;
    background: var(--burgundy-deep);
    color: var(--gold-pale);
    text-align: center;
}

.footer-quote {
    margin-top: 10px;
    font-size: 0.95rem;
    opacity: 0.8;
    letter-spacing: 1px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-header h2 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
}