/* ========================================================

   CVMATİK - COMPLETE REDESIGN STYLESHEET

   Cherry Red + Powder Pink Theme

   Custom Canvas Background, SVG Icons, Smooth Animations

   Vanilla CSS3, Flexbox, Grid, Custom Properties

   ======================================================== */



/* ===== CSS CUSTOM PROPERTIES - CHERRY & POWDER PINK PALETTE ===== */

:root {

    /* ===== CHERRY RED PALETTE ===== */

    --cherry-dark: #4a0e0e;           /* Çok koyu kırmızı */

    --cherry-deep: #8B0000;           /* Derin kırmızı (Dark Red) */

    --cherry-ruby: #C20000;           /* Ruby kırmızı */

    --cherry-maroon: #B22222;         /* Maroon */

    --cherry-bright: #DC143C;         /* Bright cherry red */

    --cherry-light: #F08080;          /* Light cherry */

    

    /* ===== POWDER PINK PALETTE ===== */

    --pink-powder: #FFE4E1;           /* Powder pink (ana renk) */

    --pink-soft: #FFC0CB;             /* Soft pink */

    --pink-pastel: #FFDBEF;           /* Pastel pink */

    --pink-light: #FFB6D9;            /* Light pink */

    --pink-pale: #FFF0F5;             /* Pale pink */

    

    /* ===== NEUTRAL COLORS ===== */

    --white: #ffffff;

    --black: #000000;

    --gray-dark: #1a1a1a;

    --gray-medium: #555555;

    --gray-light: #f5f5f5;

    --gray-lighter: #fafafa;

    

    /* ===== TYPOGRAPHY ===== */

    --font-primary: 'Montserrat', 'Outfit', sans-serif;

    --font-size-xs: 0.75rem;

    --font-size-sm: 0.875rem;

    --font-size-base: 1rem;

    --font-size-lg: 1.125rem;

    --font-size-xl: 1.5rem;

    --font-size-2xl: 2rem;

    --font-size-3xl: 2.5rem;

    --font-size-4xl: 3rem;

    --font-size-5xl: 3.5rem;

    

    /* ===== SPACING ===== */

    --spacing-xs: 0.25rem;

    --spacing-sm: 0.5rem;

    --spacing-md: 1rem;

    --spacing-lg: 1.5rem;

    --spacing-xl: 2rem;

    --spacing-2xl: 3rem;

    --spacing-3xl: 4rem;

    --spacing-4xl: 5rem;

    

    /* ===== SHADOWS ===== */

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);

    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);

    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.2);

    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.25);

    --shadow-cherry-glow: 0 0 30px rgba(194, 0, 0, 0.3);

    --shadow-pink-glow: 0 0 20px rgba(255, 192, 203, 0.2);

    

    /* ===== BORDER RADIUS ===== */

    --radius-sm: 0.25rem;

    --radius-md: 0.5rem;

    --radius-lg: 1rem;

    --radius-xl: 1.5rem;

    --radius-2xl: 2rem;

    --radius-full: 9999px;

    

    /* ===== TRANSITIONS ===== */

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);

    --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);

    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

}



/* ===== GLOBAL STYLES ===== */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



html {

    scroll-behavior: smooth;

}



body {

    font-family: var(--font-primary);

    color: var(--gray-dark);

    line-height: 1.6;

    background-color: var(--gray-light);

    overflow-x: hidden;

    position: relative;

}



/* ===== CANVAS BACKGROUND ===== */

/* Vanilla JS ile beyaz partiküller ve mouse interaksiyonu */

.canvas-background {

    position: fixed;

    top: 0;

    left: 0;

    width: 100%;

    height: 100%;

    z-index: 0;

    background: linear-gradient(135deg, var(--cherry-dark) 0%, var(--cherry-deep) 50%, var(--cherry-ruby) 100%);

    display: block;

}



/* Content positioned above canvas */

.header,
.main-content,
.footer {
    position: relative;
    z-index: 10;
}



/* ===== HEADER & NAVIGATION ===== */

/* Başlık - Yapışkan, Cherry Red arka planlı, reversed layout */

.header {
    background: transparent !important;
    border: none !important;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: none !important;
    backdrop-filter: none !important;
}



@keyframes slideDownHeader {

    from {

        transform: translateY(-100%);

        opacity: 0;

    }

    to {

        transform: translateY(0);

        opacity: 1;

    }

}



.navbar {
    padding: 1.5rem 2rem;
}



.navbar-container {

    max-width: 1400px;

    margin: 0 auto;

    display: flex;

    justify-content: space-between;

    align-items: center;

    gap: var(--spacing-2xl);

}



/* Logo Styling - Sağda, Cherry gradient */

.logo {

    display: flex;

    align-items: center;

    cursor: pointer;

    transition: transform var(--transition-normal);

    user-select: none;

}



.logo-link {

    display: inline-flex;

    align-items: center;

    text-decoration: none;

}



.logo-img {

    height: 54px;

    width: auto;

    object-fit: contain;

    display: block;

    transform: scale(1.42);

    transform-origin: left center;

    transition: transform var(--transition-fast);

}



.logo-link:hover .logo-img {

    transform: scale(1.48);

}



/* ===== BUTTON STYLES ===== */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: var(--spacing-sm);

    padding: var(--spacing-md) var(--spacing-lg);

    font-size: var(--font-size-base);

    font-weight: 600;

    border: none;

    border-radius: 50px;

    cursor: pointer;

    transition: all var(--transition-normal);

    text-decoration: none;

    white-space: nowrap;

    font-family: var(--font-primary);

    position: relative;

    overflow: hidden;

}



.btn:active {

    transform: scale(0.98);

}



/* Load CV Button - Solda, Cherry themed */

.btn-load-cv {

    background: rgba(255, 255, 255, 0.9);

    color: var(--cherry-deep);

    border: 2px solid var(--cherry-bright);

    font-weight: 700;

    position: relative;

}



.btn-load-cv svg {

    width: 20px;

    height: 20px;

    stroke: currentColor;

}



.btn-load-cv:hover {

    background: var(--cherry-bright);

    color: var(--white);

    box-shadow: var(--shadow-cherry-glow), var(--shadow-lg);

    transform: translateY(-3px);

}



.btn-icon {

    font-size: 1.25rem;

    display: flex;

    align-items: center;

    justify-content: center;

}



.btn-text {

    display: inline;

}



/* Primary CTA Button */

.btn-primary {

    background: linear-gradient(135deg, var(--cherry-ruby) 0%, var(--cherry-bright) 100%);

    color: var(--white);

    font-size: var(--font-size-lg);

    padding: var(--spacing-lg) var(--spacing-3xl);

    font-weight: 700;

    letter-spacing: 0.5px;

    box-shadow: var(--shadow-cherry-glow), var(--shadow-lg);

}



.btn-primary:hover {

    transform: translateY(-5px) scale(1.05);

    box-shadow: var(--shadow-cherry-glow), var(--shadow-xl);

}



.btn-primary:active {

    transform: translateY(-2px) scale(1.02);

}



.btn-arrow {

    display: inline-block;

    transition: transform var(--transition-normal);

    font-size: 1.5em;

    animation: arrowBounce 1.5s ease-in-out infinite;

}



@keyframes arrowBounce {

    0%, 100% { transform: translateY(0); }

    50% { transform: translateY(4px); }

}



.btn-primary:hover .btn-arrow {

    animation: none;

    transform: translateY(6px);

}



/* Secondary CTA Button */

.btn-secondary {

    background: rgba(255, 255, 255, 0.12);

    color: var(--pink-pale, rgba(255, 228, 225, 0.95));

    font-size: var(--font-size-base);

    padding: var(--spacing-lg) var(--spacing-2xl);

    font-weight: 700;

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow: none;

    text-decoration: none;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

}



.btn-secondary:hover {

    background: rgba(194, 0, 0, 0.18);

    color: var(--white);

    border-color: rgba(255, 228, 225, 0.35);

    transform: translateY(-4px);

    box-shadow: var(--shadow-cherry-glow);

}



.btn-secondary:active {

    transform: translateY(-1px);

}



/* Template Card Buttons - Powder pink theme */

.btn-template-pink {

    background: linear-gradient(135deg, var(--pink-soft) 0%, var(--pink-light) 100%);

    color: var(--cherry-deep);

    font-weight: 700;

    border: none;

    width: 100%;

    box-shadow: var(--shadow-pink-glow), var(--shadow-md);

}



.btn-template-pink:hover {

    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink-soft) 100%);

    transform: translateY(-4px);

    box-shadow: var(--shadow-pink-glow), var(--shadow-lg);

    color: var(--cherry-ruby);

}



/* ===== HERO SECTION ===== */

/* Canvas arka planı üzerinde */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4xl) var(--spacing-xl);
    overflow: hidden;
}



.hero-content {

    position: relative;

    z-index: 10;

    text-align: center;

    max-width: 800px;

    animation: fadeInUp 1s ease-out;

}



@keyframes fadeInUp {

    from {

        opacity: 0;

        transform: translateY(40px);

    }

    to {

        opacity: 1;

        transform: translateY(0);

    }

}



.hero-title {

    font-size: var(--font-size-5xl);

    font-weight: 900;

    line-height: 1.1;

    margin-bottom: var(--spacing-xl);

    letter-spacing: -1.5px;

    color: var(--white);

}



.gradient-text {

    background: linear-gradient(135deg, var(--cherry-light) 0%, #FFB6C1 100%);

    -webkit-background-clip: text;

    -webkit-text-fill-color: transparent;

    background-clip: text;

}



.hero-subtitle {

    font-size: var(--font-size-lg);

    color: rgba(255, 255, 255, 0.9);

    margin-bottom: var(--spacing-2xl);

    line-height: 1.8;

    max-width: 600px;

    margin-left: auto;

    margin-right: auto;

    font-weight: 500;

}



/* ===== FEATURES SECTION ===== */

/* Beyaz arka plan, SVG icons ile floating animations */

.features {

    position: relative;

    z-index: 2;

    padding: var(--spacing-4xl) var(--spacing-xl);

    background: var(--white);

}



.features-container {

    max-width: 1400px;

    margin: 0 auto;

}



.section-title {

    font-size: var(--font-size-4xl);

    font-weight: 900;

    text-align: center;

    margin-bottom: var(--spacing-md);

    letter-spacing: -1px;

    color: var(--cherry-deep);

}



.section-subtitle {

    font-size: var(--font-size-lg);

    color: var(--gray-medium);

    text-align: center;

    margin-bottom: var(--spacing-3xl);

    font-weight: 500;

}



.features-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));

    gap: var(--spacing-2xl);

    margin-top: var(--spacing-2xl);

}



/* Feature Cards */

.feature-card {

    background: var(--gray-lighter);

    border: 2px solid rgba(194, 0, 0, 0.1);

    padding: var(--spacing-2xl) var(--spacing-xl);

    border-radius: var(--radius-xl);

    text-align: center;

    transition: all var(--transition-normal);

    cursor: pointer;

    box-shadow: var(--shadow-sm);

}



.feature-card:hover {

    background: var(--white);

    transform: translateY(-12px);

    box-shadow: var(--shadow-lg);

    border-color: var(--cherry-ruby);

}



.feature-icon {

    width: 64px;

    height: 64px;

    margin: 0 auto var(--spacing-lg);

    display: flex;

    align-items: center;

    justify-content: center;

    color: var(--cherry-ruby);

    animation: iconFloat 3s ease-in-out infinite;

}



@keyframes iconFloat {

    0%, 100% { transform: translateY(0); }

    50% { transform: translateY(-15px); }

}



.feature-card:hover .feature-icon {

    animation: iconFloat 2s ease-in-out infinite;

}



.feature-icon svg {

    width: 100%;

    height: 100%;

    stroke-width: 1.5;

}



.feature-title {

    font-size: var(--font-size-lg);

    color: var(--cherry-deep);

    font-weight: 700;

    margin-bottom: var(--spacing-md);

}



.feature-description {

    font-size: var(--font-size-base);

    color: var(--gray-medium);

    line-height: 1.6;

    font-weight: 500;

}



/* ===== TEMPLATES SECTION - POWDER PINK ZONE ===== */

/* Soft, powder pink themed section */

.templates {

    position: relative;

    z-index: 2;

    padding: var(--spacing-4xl) var(--spacing-xl);

    background: linear-gradient(135deg, var(--pink-pale) 0%, var(--white) 100%);

}



.templates-container {

    max-width: 1400px;

    margin: 0 auto;

}



.templates-carousel-shell {

    position: relative;

    padding: 0 3.5rem;

}



.templates-carousel {

    display: flex;

    align-items: stretch;

    gap: 1.1rem;

    overflow-x: auto;

    scroll-snap-type: x mandatory;

    scroll-behavior: smooth;

    padding: 1rem calc(50% - clamp(150px, 15.5vw, 195px)) 1.75rem;

    scrollbar-width: none;

    overscroll-behavior-x: contain;

}



.templates-carousel::-webkit-scrollbar {

    display: none;

}



.tpl-card-scroll {

    min-width: clamp(300px, 31vw, 390px);

    flex: 0 0 auto;

    scroll-snap-align: center;

    transform: scale(0.92);

    opacity: 0.82;

    transition: transform var(--transition-normal), opacity var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);

}



.tpl-card-scroll.is-focus {

    transform: scale(1.05);

    opacity: 1;

    box-shadow: 0 0 0 1px rgba(255, 228, 225, 0.35), 0 0 28px rgba(194, 0, 0, 0.36), var(--shadow-xl);

}



.templates-carousel-nav {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    width: 2.85rem;

    height: 2.85rem;

    border-radius: 999px;

    border: 1px solid rgba(255, 255, 255, 0.28);

    background: rgba(74, 14, 14, 0.72);

    color: #fff;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    cursor: pointer;

    z-index: 5;

    backdrop-filter: blur(8px);

    -webkit-backdrop-filter: blur(8px);

    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);

}



.templates-carousel-nav:hover {

    transform: translateY(-50%) scale(1.08);

    background: rgba(194, 0, 0, 0.88);

    box-shadow: 0 0 20px rgba(194, 0, 0, 0.56);

}



.templates-carousel-nav.prev { left: 0.15rem; }

.templates-carousel-nav.next { right: 0.15rem; }



.templates-carousel-nav svg {

    width: 1.15rem;

    height: 1.15rem;

    stroke: currentColor;

}



.template-card .template-info {

    min-height: 240px;

}



.templates-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));

    gap: var(--spacing-3xl);

    margin-top: var(--spacing-3xl);

}



/* Template Card - Powder Pink base */

.template-card {

    background: var(--white);

    border-radius: var(--radius-2xl);

    overflow: hidden;

    box-shadow: var(--shadow-lg);

    transition: all var(--transition-normal);

    cursor: pointer;

    display: flex;

    flex-direction: column;

    border: 2px solid var(--pink-pastel);

}



.template-card-1 {

    border-top: 6px solid var(--pink-soft);

}



.template-card-2 {

    border-top: 6px solid var(--pink-light);

}



.template-card-3 {

    border-top: 6px solid var(--pink-powder);

}



.template-card:hover {

    transform: translateY(-20px) scale(1.02);

    box-shadow: var(--shadow-pink-glow), var(--shadow-xl);

    border-color: var(--pink-light);

}



/* Template Preview */

.template-preview {

    height: 320px;

    padding: var(--spacing-xl);

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    font-size: var(--font-size-sm);

    color: var(--gray-medium);

    font-weight: 500;

    border-bottom: 2px solid rgba(255, 192, 203, 0.2);

    position: relative;

}



.template-classic {

    background-image: url('../onizlemeler/klasik.webp');

    background-size: cover;

    background-position: top center;

    background-repeat: no-repeat;

}



.template-classic .template-header {

    font-weight: 800;

    font-size: var(--font-size-base);

    color: var(--cherry-deep);

}



.template-classic .template-meta {

    font-size: var(--font-size-sm);

    color: var(--gray-medium);

    margin-bottom: var(--spacing-sm);

}



.template-classic .template-section {

    font-weight: 700;

    color: var(--cherry-ruby);

    margin-top: var(--spacing-md);

    font-size: var(--font-size-sm);

}



.template-classic .template-item {

    font-size: 0.75rem;

    color: var(--gray-medium);

    margin-top: var(--spacing-xs);

}



.template-divider {

    height: 1px;

    background-color: rgba(194, 0, 0, 0.15);

    margin: var(--spacing-md) 0;

}



.template-modern {

    background-image: url('../onizlemeler/modern.webp');

    background-size: cover;

    background-position: top center;

    background-repeat: no-repeat;

}



.template-modern .template-header-modern {

    font-weight: 800;

    font-size: var(--font-size-base);

    color: var(--white);

    background: linear-gradient(135deg, var(--cherry-ruby) 0%, var(--cherry-bright) 100%);

    padding: var(--spacing-md);

    margin: calc(-1 * var(--spacing-xl)) calc(-1 * var(--spacing-xl)) var(--spacing-md) calc(-1 * var(--spacing-xl));

    border-radius: 0 0 var(--radius-lg) 0;

}



.template-modern .template-tag {

    font-size: 0.75rem;

    color: var(--white);

    background: rgba(194, 0, 0, 0.8);

    padding: var(--spacing-xs) var(--spacing-sm);

    border-radius: var(--radius-full);

    display: inline-block;

    margin-bottom: var(--spacing-md);

    font-weight: 600;

}



.template-modern .template-section-modern {

    font-weight: 700;

    color: var(--cherry-deep);

    margin-bottom: var(--spacing-md);

    font-size: var(--font-size-sm);

}



.template-modern .template-item-modern {

    font-size: 0.75rem;

    color: var(--gray-medium);

    margin-bottom: var(--spacing-xs);

}



.template-minimal {

    background-image: url('../onizlemeler/minimal.webp');

    background-size: cover;

    background-position: top center;

    background-repeat: no-repeat;

}



.template-creative {

    background-image: url('../onizlemeler/creative.webp');

    background-size: cover;

    background-position: top center;

    background-repeat: no-repeat;

}



.template-tech {

    background-image: url('../onizlemeler/tech.webp');

    background-size: cover;

    background-position: top center;

    background-repeat: no-repeat;

}



.template-executive {

    background-image: url('../onizlemeler/executive.webp');

    background-size: cover;

    background-position: top center;

    background-repeat: no-repeat;

}



.template-harvard {

    background-image: url('../onizlemeler/harvard.webp');

    background-size: cover;

    background-repeat: no-repeat;

    background-position: top center;

}



.template-stanford {

    background-image: url('../onizlemeler/stanford.webp');

    background-size: cover;

    background-repeat: no-repeat;

    background-position: top center;

}



.template-tech-ats {

    background-image: url('../onizlemeler/tech-ats.webp');

    background-size: cover;

    background-repeat: no-repeat;

    background-position: top center;

}



/* Hide the placeholder text inside the preview box */

.template-preview span {

    display: none;

}



.template-minimal .template-minimal-header {

    font-weight: 800;

    font-size: var(--font-size-base);

    color: var(--cherry-deep);

    margin-bottom: var(--spacing-md);

}



.template-minimal .template-minimal-content {

    display: flex;

    flex-direction: column;

    gap: var(--spacing-md);

}



.template-minimal .template-minimal-item {

    font-size: 0.75rem;

    color: var(--gray-medium);

}



.template-minimal .template-section-minimal {

    font-weight: 700;

    color: var(--cherry-ruby);

    font-size: var(--font-size-sm);

}



/* Template Info */

.template-info {

    padding: var(--spacing-xl) var(--spacing-xl) var(--spacing-2xl);

    display: flex;

    flex-direction: column;

    flex-grow: 1;

}



.template-title {

    font-size: var(--font-size-lg);

    font-weight: 800;

    color: var(--cherry-deep);

    margin-bottom: var(--spacing-md);

}



.template-description {

    font-size: var(--font-size-sm);

    color: var(--gray-medium);

    line-height: 1.6;

    margin-bottom: var(--spacing-lg);

    flex-grow: 1;

    font-weight: 500;

}



/* CV şablon stilleri: cv-templates.css dosyasında */



/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 2;
    background: #111111 !important;
    border-top: none !important;
    padding: 1.2rem 2rem;
    margin-top: 0;
    width: 100%;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #888;
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.footer-right {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-right a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-right a:hover {
    color: var(--cherry-ruby);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    .footer-left {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.footer a {
    color: var(--pink-pale, rgba(255, 228, 225, 0.95));
    text-decoration: none;
    transition: color var(--transition-fast), opacity var(--transition-fast);
}

.footer a:hover {
    color: var(--pink-soft, #FFC0CB);
    opacity: 1;
}

.footer a:focus-visible {
    color: var(--pink-soft, #FFC0CB);
    outline: 2px solid rgba(255, 228, 225, 0.8);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 7rem var(--spacing-md) var(--spacing-3xl);
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }

    .templates-carousel-shell {
        padding: 0 0.5rem;
    }

    .templates-carousel {
        padding: 1rem calc(50% - min(39vw, 145px)) 1rem;
        gap: 0.75rem;
    }

    .tpl-card-scroll {
        min-width: min(78vw, 280px);
    }

    .tpl-card-scroll.is-focus {
        transform: scale(1.02);
    }

    .templates-carousel-nav {
        display: none;
    }

    /* Template card mobile optimizasyonu */
    .template-card {
        border-width: 1px;
        border-radius: var(--radius-xl);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .template-card-1,
    .template-card-2,
    .template-card-3 {
        border-top-width: 3px;
    }

    .template-preview {
        height: 220px;
        padding: var(--spacing-md);
        border-bottom: 1px solid rgba(255, 192, 203, 0.15);
    }

    .template-info {
        padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
    }

    .template-title {
        font-size: var(--font-size-base);
        margin-bottom: var(--spacing-xs);
    }

    .template-description {
        font-size: var(--font-size-xs);
        margin-bottom: var(--spacing-md);
        line-height: 1.4;
    }

    .btn-template-pink {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: var(--font-size-sm);
    }

    .templates {
        padding: var(--spacing-2xl) var(--spacing-sm);
    }
    
    .navbar {
        padding: 0.75rem 1rem;
    }
    
    .navbar-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        gap: 0.5rem;
    }

    .logo-img {
        height: 36px;
        transform: scale(1.1);
    }
    
    .btn-primary {
        padding: var(--spacing-md) var(--spacing-2xl);
        font-size: var(--font-size-base);
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: var(--font-size-sm);
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    .btn-load-cv .btn-text {
        display: none;
    }

    .templates-grid {
        gap: var(--spacing-xl);
    }
}


/* ===== ACCESSIBILITY ===== */

@media (prefers-reduced-motion: reduce) {

    * {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}



/* ===== FOCUS STATES ===== */

.btn:focus-visible,

.feature-card:focus-visible,

.template-card:focus-visible {

    outline: 3px solid var(--cherry-bright);

    outline-offset: 2px;

}



/* ===== EDITOR PAGE OVERRIDES ===== */

body.editor-page {

    background: transparent !important;

    color: var(--gray-dark);

    overflow: hidden;

}



body.editor-page,

body.editor-page button,

body.editor-page input,

body.editor-page textarea,

body.editor-page select {

    font-family: var(--font-primary) !important;

}



body.editor-page .editor-layout {

    background: transparent !important;

}



body.editor-page .editor-form-panel {

    background: rgba(255, 255, 255, 0.85) !important;

    backdrop-filter: blur(10px);

    -webkit-backdrop-filter: blur(10px);

    border-right: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow: var(--shadow-lg);

}



body.editor-page .editor-preview-panel {

    background: transparent !important;

}



body.editor-page .editor-form-panel,

body.editor-page .editor-preview-panel {

    scrollbar-width: thin;

    scrollbar-color: var(--cherry-ruby) rgba(255, 255, 255, 0.25);

}



body.editor-page .editor-form-panel::-webkit-scrollbar,

body.editor-page .editor-preview-panel::-webkit-scrollbar {

    width: 6px;

}



body.editor-page .editor-form-panel::-webkit-scrollbar-track,

body.editor-page input,

body.editor-page textarea,

body.editor-page select {

    border-radius: var(--radius-md) !important;

    transition: all var(--transition-normal);

}



body.editor-page .btn-toolbar:hover,

body.editor-page .btn-tpl:hover,

body.editor-page .form-tab:hover {

    transform: translateY(-2px);

}



body.editor-page .btn-toolbar:focus-visible,
body.editor-page .btn-tpl:focus-visible,
body.editor-page .form-tab:focus-visible,
body.editor-page .cv-name-input:focus-visible,
body.editor-page input:focus-visible,
body.editor-page textarea:focus-visible,
body.editor-page select:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(168, 216, 234, 0.35);
}



body.editor-page .editor-logo {
    border-radius: 4px;
    text-decoration: none;
}

/* ===== NAV ACTIONS CONTAINER ===== */
.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* ===== NAV ACTION BUTTON ===== */
.nav-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 10px;
    font-family: 'Outfit', sans-serif;
}

.nav-action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Premium Button Special Override */
.nav-action-btn.premium-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
}
.nav-action-btn.premium-btn:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4) !important;
}

.nav-action-btn svg {
    width: 18px;
    height: 18px;
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast-success { border-left: 4px solid var(--cherry-bright); }
.toast-error { border-left: 4px solid #ef4444; }
.toast-info { border-left: 4px solid #3b82f6; }

/* ===== MOBILE — EXTRA 768px OVERRIDES ===== */
@media (max-width: 768px) {
    .navbar-container {
        overflow: hidden;
        gap: 0.4rem;
    }

    .nav-actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 5px;
        align-items: center;
        max-width: 70%;
    }

    .nav-action-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 0.3rem 0.6rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.7rem;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-left: 0;
        white-space: nowrap;
    }

    .nav-action-btn svg {
        width: 14px;
        height: 14px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .template-card .template-info {
        min-height: auto;
    }

    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        font-size: 0.85rem;
        padding: 10px 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 5.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
        line-height: 1.2;
    }

    .template-preview {
        height: 180px;
    }

    .nav-actions {
        max-width: 75%;
    }

    .nav-action-btn {
        font-size: 0.65rem;
        padding: 0.25rem 0.45rem;
    }

    .nav-action-btn.premium-btn {
        order: 10;
    }

    .lang-toggle-btn {
        padding: 0.25rem 0.4rem !important;
        font-size: 0.65rem !important;
    }
}

/* ===== PREMIUM BADGE ===== */
.premium-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    z-index: 10;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.premium-badge::before {
    content: "👑";
    font-size: 0.8rem;
}

body:not(.free-tier) .premium-badge {
    display: none;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--dark-panel);
    color: var(--white);
    margin: auto;
    padding: 2.5rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    position: relative;
    animation: modalFadeIn 0.3s ease-out;
    text-align: center;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: white;
    text-decoration: none;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}