/* ========================================
   CSS Variables & Reset
======================================== */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --secondary: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-orange: #f97316;
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 50%, #ec4899 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --gradient-hero: linear-gradient(135deg, #f0f7ff 0%, #e8f4f8 50%, #f5f3ff 100%);
    
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    
    --border-color: #e2e8f0;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-xl: 16px;
    --border-radius-2xl: 24px;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.3);
    --shadow-glow-lg: 0 0 60px rgba(37, 99, 235, 0.4);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-family-display: 'Poppins', 'Inter', sans-serif;
    --transition: all 0.2s ease;
    --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    
    --gradient-hero: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1a1a2e 100%);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    
    --border-color: #475569;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-primary);
    background: var(--bg-secondary);
    line-height: 1.6;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Announcement Bar
======================================== */
.announcement-bar {
    background: linear-gradient(90deg, var(--primary) 0%, #7c3aed 50%, var(--accent-pink) 100%);
    background-size: 200% 100%;
    animation: gradientShift 8s ease infinite;
    padding: 10px 20px;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.announcement-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmerBar 3s infinite;
}

@keyframes shimmerBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.announcement-icon {
    font-size: 1.1rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.announcement-text {
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
}

.announcement-text strong {
    font-weight: 600;
    background: rgba(255,255,255,0.2);
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 4px;
}

.announcement-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: white;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.announcement-cta:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    background: var(--bg-secondary);
}

.announcement-cta svg {
    transition: transform 0.3s ease;
}

.announcement-cta:hover svg {
    transform: translateX(3px);
}

[data-theme="dark"] .announcement-cta {
    background: rgba(255,255,255,0.95);
    color: var(--primary-dark);
}

[data-theme="dark"] .announcement-cta:hover {
    background: white;
}

/* Responsive Announcement Bar */
@media (max-width: 640px) {
    .announcement-bar {
        padding: 8px 12px;
    }
    
    .announcement-content {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .announcement-text {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .announcement-cta {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .announcement-icon {
        display: none;
    }
}

/* ========================================
   Header & Navigation
======================================== */
.header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
}

[data-theme="dark"] .header {
    background: rgba(15, 23, 42, 0.9);
    border-bottom-color: rgba(71, 85, 105, 0.5);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    font-size: 32px;
    animation: pulse 3s ease-in-out infinite;
}

.logo-text {
    font-family: var(--font-family-display);
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.mobile-menu-btn:hover {
    color: var(--primary);
}

/* Theme Toggle */
.theme-toggle {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: var(--transition-slow);
}

.theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(180deg);
}

.theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="dark"] .theme-icon-dark {
    display: block;
}

.header-actions-mobile {
    display: none;
    align-items: center;
    gap: 12px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 0;
}

/* ========================================
   Buttons
======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--gradient-primary);
    background-size: 200% auto;
    color: white;
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.btn-primary::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 ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: var(--bg-primary);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-slow);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-large {
    padding: 18px 36px;
    font-size: 16px;
}

/* ========================================
   Hero Section
======================================== */
.hero {
    background: var(--gradient-hero);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .hero {
    background: var(--gradient-hero);
}

/* Hero Background Shapes */
.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(139, 92, 246, 0.2));
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
    bottom: -50px;
    left: -50px;
    animation: float 6s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(37, 99, 235, 0.2));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

[data-theme="dark"] .shape {
    opacity: 0.3;
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    inset: 0;
}

.float-icon {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    animation: floatIcon 6s ease-in-out infinite;
}

.icon-1 { top: 15%; left: 10%; animation-delay: 0s; }
.icon-2 { top: 25%; right: 15%; animation-delay: 1s; }
.icon-3 { bottom: 30%; left: 15%; animation-delay: 2s; }
.icon-4 { bottom: 20%; right: 10%; animation-delay: 3s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.1); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.5; }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .hero-badge {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-family: var(--font-family-display);
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

/* Glowing Button */
.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-glow:hover::before {
    opacity: 1;
}

.btn-glow:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-glow:hover .btn-arrow {
    transform: translateX(4px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

[data-theme="dark"] .stat {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(71, 85, 105, 0.5);
}

.stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-number {
    font-family: var(--font-family-display);
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.trust-icon {
    font-size: 18px;
}

/* Animations */
.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   Section Styles
======================================== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.section-title {
    font-family: var(--font-family-display);
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   Features Section
======================================== */
.features {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-secondary);
    padding: 40px 32px;
    border-radius: var(--border-radius-xl);
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.feature-hover-effect {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03), rgba(139, 92, 246, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.feature-card:hover .feature-hover-effect {
    opacity: 1;
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(139, 92, 246, 0.1));
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(139, 92, 246, 0.15));
}

.feature-icon {
    font-size: 32px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
}

/* ========================================
   Testimonials Section
======================================== */
.testimonials-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--border-color);
    transition: var(--transition-slow);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.testimonial-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.testimonial-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.testimonial-rating {
    font-size: 14px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 15px;
}

.author-role {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   How It Works Section
======================================== */
.how-it-works-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.step-card {
    flex: 1;
    max-width: 280px;
    text-align: center;
    padding: 32px 24px;
    position: relative;
}

.step-number {
    font-family: var(--font-family-display);
    font-size: 64px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    line-height: 1;
    margin-bottom: 16px;
}

.step-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.connector-line {
    width: 80px;
    height: 20px;
}

/* ========================================
   Templates Preview Section
======================================== */
.templates-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.templates-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.templates-preview-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
}

.template-preview-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-xl);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-slow);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.template-preview-card::before {
    content: 'Click to Use';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--gradient-primary);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    white-space: nowrap;
}

.template-preview-card:hover::before {
    opacity: 1;
}

.template-preview-card:hover {
    border-color: var(--primary);
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.template-preview-card:hover .template-preview-img {
    filter: brightness(0.7);
}

.template-preview-img {
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.3s ease;
}

.mini-resume {
    width: 100%;
    max-width: 100px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.mini-header {
    height: 12px;
    background: var(--text-primary);
    border-radius: 2px;
    margin-bottom: 8px;
}

.mini-header.accent {
    background: var(--primary);
}

.mini-header.thin {
    height: 8px;
}

.mini-header.bold {
    height: 16px;
}

.mini-header.centered {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.mini-line {
    height: 6px;
    background: var(--border-color);
    border-radius: 2px;
    margin-bottom: 4px;
}

.mini-line.short {
    width: 60%;
}

.mini-line.thin {
    height: 4px;
}

.mini-line.centered {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
}

.mini-section {
    height: 4px;
    background: var(--primary);
    margin: 8px 0;
}

.mini-section.accent-border {
    height: 2px;
}

.mini-section.thin {
    height: 2px;
    background: var(--border-color);
}

.mini-divider {
    height: 2px;
    background: var(--text-primary);
    margin: 8px 0;
}

.template-preview-card h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.template-preview-card p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Builder Section
======================================== */
.builder-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.builder-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

/* Form Panel */
.form-panel {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
    position: relative;
    background: var(--bg-primary);
    padding: 20px 16px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.progress-steps::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-muted);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.step.active .step-number,
.step.completed .step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.step.completed .step-number {
    background: linear-gradient(135deg, var(--success), #059669);
    border-color: var(--success);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.step-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
}

.step.active .step-label {
    color: var(--primary);
}

.step.completed .step-label {
    color: var(--success);
}

/* Form Styles */
.resume-form {
    margin-top: 24px;
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section-title::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 2px;
}

.form-section-desc {
    color: var(--text-secondary);
    margin-bottom: 28px;
    font-size: 15px;
    padding-left: 14px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group label::after {
    content: '';
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    background: var(--bg-primary);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--primary-light);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Profile Picture Upload Section */
.profile-pic-section {
    margin-bottom: 28px;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.profile-pic-section .section-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: block;
}

.profile-pic-upload {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.profile-pic-preview {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.profile-pic-preview:hover {
    border-color: var(--primary);
}

.profile-pic-preview svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
}

.profile-pic-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-pic-preview.has-image {
    border-style: solid;
    border-color: var(--primary);
}

.profile-pic-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
    border: none;
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-remove-pic {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--bg-primary);
    color: var(--danger);
    border: 1px solid var(--danger);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: var(--transition);
}

.btn-remove-pic:hover {
    background: var(--danger);
    color: white;
}

.profile-pic-section .form-hint {
    margin-top: 16px;
    padding-left: 0;
}

.form-hint::before {
    content: '💡';
    font-size: 11px;
}

/* Dynamic List Items */
.dynamic-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.list-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.list-item:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow);
}

.list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.list-item-title {
    font-weight: 600;
    color: var(--primary);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-item-title::before {
    content: '📋';
    font-size: 16px;
}

.btn-remove {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    cursor: pointer;
    font-size: 16px;
    padding: 6px 12px;
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 600;
}

.btn-remove:hover {
    background: var(--danger);
    color: white;
    border-color: var(--danger);
}

.btn-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
    border: 2px dashed var(--primary-light);
    border-radius: var(--border-radius-lg);
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add:hover {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0.15));
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-add span {
    font-size: 22px;
    font-weight: 700;
}

/* Tips Box */
.tips-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-top: 24px;
}

.tips-box h4 {
    font-size: 15px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tips-box ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tips-box li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.tips-box li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--warning);
}

/* Template Selector */
.template-selector {
    margin-bottom: 32px;
}

.template-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-primary);
}

.template-options {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.template-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
}

.template-option:hover {
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.template-option.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.1));
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.template-icon {
    font-size: 28px;
}

.template-option span:last-child {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
}

.template-option.active span:last-child {
    color: var(--primary);
}

/* Export Options */
.export-options {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.btn-export {
    flex: 1;
    padding: 18px 24px;
    font-size: 15px;
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-export:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-export span {
    font-size: 18px;
}

.btn-export:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ATS Checklist */
.ats-checklist {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid #86efac;
}

[data-theme="dark"] .ats-checklist {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    border-color: rgba(16, 185, 129, 0.3);
}

.ats-checklist h4 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #065f46;
}

[data-theme="dark"] .ats-checklist h4 {
    color: #6ee7b7;
}

.checklist-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #065f46;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius);
}

[data-theme="dark"] .checklist-item {
    color: #a7f3d0;
    background: rgba(0, 0, 0, 0.2);
}

.checklist-item .check-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--border-color);
}

.btn-nav {
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.btn-prev {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
}

.btn-prev:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary-light);
    color: var(--primary);
}

.btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-next:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-dark));
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* ========================================
   Preview Panel
======================================== */
.preview-panel {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.preview-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-header h3::before {
    content: '👁';
    font-size: 18px;
}

.preview-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.preview-zoom {
    width: 34px;
    height: 34px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--text-secondary);
    font-weight: 600;
}

.preview-zoom:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.zoom-level {
    font-size: 13px;
    color: var(--text-muted);
    min-width: 50px;
    text-align: center;
    font-weight: 600;
    background: var(--bg-tertiary);
    padding: 6px 10px;
    border-radius: var(--border-radius);
}

.preview-container {
    flex: 1;
    overflow: auto;
    padding: 24px;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
}

.resume-preview {
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    min-height: 800px;
    transform-origin: top center;
    transition: transform 0.2s ease;
    border-radius: 2px;
}

.resume-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 600px;
    color: var(--text-muted);
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.resume-placeholder span {
    font-size: 72px;
    margin-bottom: 20px;
    opacity: 0.4;
}

.resume-placeholder p {
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 500;
}

.placeholder-hint {
    font-size: 14px;
    opacity: 0.7;
}

/* ========================================
   Resume Templates
======================================== */
.resume-content {
    padding: 48px;
    min-height: 1056px;
    font-size: 11pt;
    line-height: 1.5;
    color: #333;
}

/* Resume Profile Picture - General Styles */
.resume-header.with-photo {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.resume-header.with-photo .header-content {
    flex: 1;
}

.resume-profile-pic {
    flex-shrink: 0;
}

.resume-profile-pic img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary, #2563eb);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Template-specific profile picture adjustments */
.template-classic .resume-header.with-photo {
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.template-classic .resume-profile-pic img {
    width: 100px;
    height: 100px;
    border-color: #333;
}

.template-modern .resume-header.with-photo {
    align-items: center;
}

.template-modern .resume-profile-pic img {
    border-color: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.template-minimal .resume-header.with-photo {
    align-items: flex-start;
}

.template-minimal .resume-profile-pic img {
    width: 80px;
    height: 80px;
    border: 2px solid #333;
    box-shadow: none;
}

.template-executive .resume-header.with-photo {
    align-items: center;
}

.template-executive .resume-profile-pic img {
    width: 95px;
    height: 95px;
    border-color: #1a365d;
}

.template-student .resume-header.with-photo {
    align-items: center;
}

.template-student .resume-profile-pic img {
    border-color: #10b981;
}

.template-professional .resume-header.with-photo {
    align-items: center;
}

.template-professional .resume-profile-pic img {
    width: 95px;
    height: 95px;
    border-color: #0ea5e9;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.2);
}

.template-elegant .resume-header.with-photo {
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.template-elegant .resume-profile-pic img {
    width: 100px;
    height: 100px;
    border-color: #7c3aed;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.15);
}

.template-tech .resume-header.with-photo {
    align-items: center;
}

.template-tech .resume-profile-pic img {
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.template-compact .resume-header.with-photo {
    align-items: flex-start;
    gap: 16px;
}

.template-compact .resume-profile-pic img {
    width: 70px;
    height: 70px;
    border-width: 2px;
}

/* Classic Template */
.template-classic .resume-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #333;
}

.template-classic .resume-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.template-classic .resume-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    font-weight: 500;
}

.template-classic .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: #555;
}

.template-classic .contact-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.template-classic .section {
    margin-bottom: 20px;
}

.template-classic .section-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #1a1a1a;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
}

.template-classic .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.6;
}

.template-classic .experience-item,
.template-classic .education-item {
    margin-bottom: 16px;
}

.template-classic .item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4px;
}

.template-classic .item-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-classic .item-subtitle {
    font-size: 11px;
    color: #555;
    font-style: italic;
}

.template-classic .item-date {
    font-size: 11px;
    color: #666;
}

.template-classic .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.template-classic .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-classic .skill-tag {
    font-size: 10px;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 3px;
    color: #444;
}

/* Modern Template */
.template-modern .resume-header {
    background: #2563eb;
    margin: -48px -48px 24px;
    padding: 32px 48px;
    color: white;
}

.template-modern .resume-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.template-modern .resume-title {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 16px;
    font-weight: 400;
}

.template-modern .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 12px;
    opacity: 0.95;
}

.template-modern .section {
    margin-bottom: 24px;
}

.template-modern .section-title {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2563eb;
}

.template-modern .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
}

.template-modern .experience-item,
.template-modern .education-item {
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 3px solid #e5e7eb;
}

.template-modern .item-header {
    margin-bottom: 4px;
}

.template-modern .item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-modern .item-subtitle {
    font-size: 11px;
    color: #2563eb;
    margin-top: 2px;
}

.template-modern .item-date {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.template-modern .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.template-modern .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.template-modern .skill-tag {
    font-size: 10px;
    background: #eff6ff;
    color: #2563eb;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #bfdbfe;
}

/* Minimal Template */
.template-minimal .resume-header {
    margin-bottom: 32px;
}

.template-minimal .resume-name {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.template-minimal .resume-title {
    font-size: 14px;
    color: #888;
    margin-bottom: 16px;
    font-weight: 400;
    letter-spacing: 1px;
}

.template-minimal .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 11px;
    color: #666;
}

.template-minimal .section {
    margin-bottom: 28px;
}

.template-minimal .section-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #888;
    margin-bottom: 16px;
}

.template-minimal .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.8;
}

.template-minimal .experience-item,
.template-minimal .education-item {
    margin-bottom: 20px;
}

.template-minimal .item-header {
    margin-bottom: 6px;
}

.template-minimal .item-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
}

.template-minimal .item-subtitle {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.template-minimal .item-date {
    font-size: 10px;
    color: #999;
    margin-top: 4px;
}

.template-minimal .item-description {
    font-size: 11px;
    color: #555;
    margin-top: 8px;
    line-height: 1.7;
}

.template-minimal .skills-list {
    font-size: 11px;
    color: #444;
    line-height: 1.8;
}

/* Executive Template */
.template-executive .resume-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 3px solid #1a1a1a;
}

.template-executive .resume-name {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #1a1a1a;
}

.template-executive .resume-title {
    font-size: 16px;
    color: #444;
    margin-bottom: 14px;
    font-weight: 500;
}

.template-executive .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 11px;
    color: #555;
}

.template-executive .section {
    margin-bottom: 22px;
}

.template-executive .section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 14px;
    padding: 8px 0;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

.template-executive .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
}

.template-executive .experience-item,
.template-executive .education-item {
    margin-bottom: 18px;
}

.template-executive .item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.template-executive .item-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
}

.template-executive .item-subtitle {
    font-size: 12px;
    color: #555;
}

.template-executive .item-date {
    font-size: 11px;
    color: #666;
    font-weight: 500;
}

.template-executive .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.template-executive .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
}

.template-executive .skill-tag {
    font-size: 11px;
    color: #333;
}

.template-executive .skill-tag::before {
    content: '• ';
    color: #1a1a1a;
}

/* Student Template */
.template-student .resume-header {
    text-align: center;
    margin-bottom: 28px;
}

.template-student .resume-name {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #2563eb;
}

.template-student .resume-title {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
}

.template-student .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 11px;
    color: #555;
}

.template-student .section {
    margin-bottom: 22px;
}

.template-student .section-title {
    font-size: 13px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 12px;
    padding-bottom: 4px;
    border-bottom: 2px solid #bfdbfe;
}

.template-student .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
    text-align: center;
}

.template-student .experience-item,
.template-student .education-item {
    margin-bottom: 16px;
}

.template-student .item-header {
    margin-bottom: 4px;
}

.template-student .item-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-student .item-subtitle {
    font-size: 11px;
    color: #2563eb;
}

.template-student .item-date {
    font-size: 10px;
    color: #888;
    margin-top: 2px;
}

.template-student .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 6px;
    line-height: 1.6;
}

.template-student .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
}

.template-student .skill-tag {
    font-size: 10px;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 4px;
}

/* ========================================
   CTA Section
======================================== */
.cta-section {
    padding: 100px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 60px 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-bg-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content h2 {
    font-family: var(--font-family-display);
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
    margin-bottom: 32px;
}

.cta-content .btn-primary {
    background: white;
    color: var(--primary);
}

.cta-content .btn-primary:hover {
    background: rgba(255,255,255,0.9);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta-features span {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* ========================================
   Footer
======================================== */
.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: white;
    padding: 80px 0 32px;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo-text {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    max-width: 320px;
    margin-bottom: 24px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: var(--transition);
    position: relative;
}

.footer-links a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    color: #64748b;
    font-size: 14px;
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.footer-bottom-links a:hover {
    color: white;
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 1200px) {
    .builder-layout {
        grid-template-columns: 1fr;
    }
    
    .preview-panel {
        position: relative;
        top: 0;
        max-height: none;
        order: -1;
    }
    
    .preview-container {
        max-height: 600px;
    }
}

@media (max-width: 1024px) {
    .templates-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
    }
    
    .footer-content > .footer-links:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-content {
        padding: 40px 24px;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .templates-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-panel {
        padding: 20px;
    }
    
    .progress-steps {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .progress-steps::before {
        display: none;
    }
    
    .step-label {
        display: none;
    }
    
    .template-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .export-options {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .resume-content {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 48px 0 64px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 280px;
    }
    
    .templates-preview-grid {
        grid-template-columns: 1fr;
    }
    
    .template-options {
        grid-template-columns: 1fr 1fr;
    }
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .header,
    .hero,
    .features,
    .templates-section,
    .tips-section,
    .contact-section,
    .footer,
    .form-panel,
    .preview-header {
        display: none !important;
    }
    
    .builder-section {
        padding: 0;
    }
    
    .builder-layout {
        display: block;
    }
    
    .preview-panel {
        position: static;
        border: none;
        background: none;
    }
    
    .preview-container {
        padding: 0;
        overflow: visible;
    }
    
    .resume-preview {
        box-shadow: none;
    }
}

/* ========================================
   New Template Preview Styles
======================================== */
.mini-resume.creative-mini {
    display: flex;
    gap: 8px;
}

.mini-sidebar {
    width: 30%;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    border-radius: 2px;
    min-height: 80px;
}

.mini-main {
    flex: 1;
}

.mini-header.gradient {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
}

.mini-section.gradient-light {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.3), rgba(37, 99, 235, 0.3));
    height: 6px;
}

.mini-header.serif {
    background: #1a1a1a;
    height: 10px;
}

.mini-divider.gold {
    height: 2px;
    background: linear-gradient(90deg, #d4af37, #f4d03f, #d4af37);
    margin: 6px 0;
}

.mini-header.dark {
    background: #0f172a;
}

.mini-line.green {
    background: #10b981;
}

.mini-section.dark {
    background: #1e293b;
    height: 6px;
}

.mini-header.small {
    height: 8px;
}

/* ========================================
   Tips Section
======================================== */
.tips-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.tip-card {
    background: var(--bg-primary);
    border-radius: var(--border-radius-lg);
    padding: 32px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    position: relative;
}

.tip-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tip-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 16px;
    right: 24px;
    line-height: 1;
}

.tip-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.tip-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    margin-top: 48px;
}

.developer-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--border-radius-lg);
    padding: 40px;
    text-align: center;
    color: white;
}

.developer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 48px;
    font-weight: 700;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.developer-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.developer-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.developer-bio {
    font-size: 14px;
    opacity: 0.85;
    line-height: 1.6;
    margin-bottom: 24px;
}

.developer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dev-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.dev-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(4px);
}

.dev-link-icon {
    font-size: 18px;
}

.contact-form-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-form-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-primary);
    color: var(--text-primary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form .btn-primary {
    width: 100%;
    margin-top: 8px;
}

/* Footer Social Links */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* ========================================
   New Resume Templates
======================================== */

/* Creative Template */
.template-creative .resume-content {
    display: flex;
    gap: 0;
}

.template-creative .resume-sidebar {
    width: 35%;
    background: linear-gradient(180deg, #8b5cf6, #6366f1);
    padding: 40px 24px;
    color: white;
    margin: -48px 0 -48px -48px;
}

.template-creative .resume-main {
    flex: 1;
    padding-left: 32px;
}

.template-creative .resume-name {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.template-creative .resume-title {
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 24px;
}

.template-creative .sidebar-section {
    margin-bottom: 24px;
}

.template-creative .sidebar-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.9;
}

.template-creative .contact-list {
    font-size: 10px;
    line-height: 1.8;
    opacity: 0.95;
}

.template-creative .section-title {
    font-size: 14px;
    font-weight: 700;
    color: #8b5cf6;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid #8b5cf6;
}

.template-creative .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
}

.template-creative .experience-item,
.template-creative .education-item {
    margin-bottom: 16px;
}

.template-creative .item-title {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-creative .item-subtitle {
    font-size: 11px;
    color: #8b5cf6;
}

.template-creative .item-date {
    font-size: 10px;
    color: #888;
}

.template-creative .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 6px;
    line-height: 1.6;
}

.template-creative .skill-tag {
    font-size: 10px;
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin: 2px 4px 2px 0;
}

/* Professional Template */
.template-professional .resume-header {
    background: linear-gradient(90deg, #0ea5e9, #2563eb);
    margin: -48px -48px 24px;
    padding: 32px 48px;
    color: white;
}

.template-professional .resume-name {
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 4px;
}

.template-professional .resume-title {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.template-professional .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 11px;
    opacity: 0.95;
}

.template-professional .section {
    margin-bottom: 24px;
}

.template-professional .section-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    color: #0ea5e9;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), transparent);
    border-left: 3px solid #0ea5e9;
}

.template-professional .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
}

.template-professional .experience-item,
.template-professional .education-item {
    margin-bottom: 18px;
}

.template-professional .item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.template-professional .item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-professional .item-subtitle {
    font-size: 11px;
    color: #0ea5e9;
}

.template-professional .item-date {
    font-size: 10px;
    color: #666;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 4px;
}

.template-professional .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.template-professional .skill-tag {
    font-size: 10px;
    background: #f0f9ff;
    color: #0ea5e9;
    padding: 5px 12px;
    border-radius: 4px;
    border: 1px solid #bae6fd;
    display: inline-block;
    margin: 2px 4px 2px 0;
}

/* Elegant Template */
.template-elegant .resume-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
}

.template-elegant .resume-name {
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-family: Georgia, serif;
    letter-spacing: 3px;
}

.template-elegant .resume-title {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 16px;
}

.template-elegant .header-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
    margin: 0 auto 16px;
}

.template-elegant .contact-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 11px;
    color: #555;
}

.template-elegant .section {
    margin-bottom: 24px;
}

.template-elegant .section-title {
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #1a1a1a;
    margin-bottom: 16px;
    text-align: center;
    font-family: Georgia, serif;
}

.template-elegant .section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: #d4af37;
    margin: 8px auto 0;
}

.template-elegant .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
}

.template-elegant .experience-item,
.template-elegant .education-item {
    margin-bottom: 18px;
}

.template-elegant .item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.template-elegant .item-title {
    font-size: 13px;
    font-weight: 500;
    color: #1a1a1a;
    font-family: Georgia, serif;
}

.template-elegant .item-subtitle {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

.template-elegant .item-date {
    font-size: 10px;
    color: #888;
}

.template-elegant .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 8px;
    line-height: 1.7;
}

.template-elegant .skills-list {
    text-align: center;
}

.template-elegant .skill-tag {
    font-size: 10px;
    color: #555;
    display: inline;
}

.template-elegant .skill-tag::after {
    content: ' • ';
    color: #d4af37;
}

.template-elegant .skill-tag:last-child::after {
    content: '';
}

/* Tech Template */
.template-tech .resume-header {
    background: #0f172a;
    margin: -48px -48px 24px;
    padding: 32px 48px;
    color: white;
}

.template-tech .resume-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    font-family: 'Courier New', monospace;
}

.template-tech .resume-name::before {
    content: '> ';
    color: #10b981;
}

.template-tech .resume-title {
    font-size: 14px;
    color: #10b981;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.template-tech .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 11px;
    color: #94a3b8;
    font-family: 'Courier New', monospace;
}

.template-tech .section {
    margin-bottom: 24px;
}

.template-tech .section-title {
    font-size: 13px;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 12px;
    font-family: 'Courier New', monospace;
}

.template-tech .section-title::before {
    content: '## ';
    color: #64748b;
}

.template-tech .summary-text {
    font-size: 11px;
    color: #444;
    line-height: 1.7;
    padding-left: 16px;
    border-left: 2px solid #10b981;
}

.template-tech .experience-item,
.template-tech .education-item {
    margin-bottom: 18px;
    padding-left: 16px;
    border-left: 2px solid #1e293b;
}

.template-tech .item-title {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-tech .item-subtitle {
    font-size: 11px;
    color: #10b981;
    font-family: 'Courier New', monospace;
}

.template-tech .item-date {
    font-size: 10px;
    color: #64748b;
    font-family: 'Courier New', monospace;
}

.template-tech .item-description {
    font-size: 11px;
    color: #444;
    margin-top: 8px;
    line-height: 1.6;
}

.template-tech .skill-tag {
    font-size: 10px;
    background: #0f172a;
    color: #10b981;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    display: inline-block;
    margin: 2px 4px 2px 0;
}

/* Compact Template */
.template-compact .resume-content {
    padding: 32px;
    font-size: 10pt;
}

.template-compact .resume-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ddd;
}

.template-compact .resume-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
    color: #1a1a1a;
}

.template-compact .resume-title {
    font-size: 11px;
    color: #555;
    margin-bottom: 8px;
}

.template-compact .contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 10px;
    color: #555;
}

.template-compact .section {
    margin-bottom: 14px;
}

.template-compact .section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #1a1a1a;
    margin-bottom: 8px;
    padding-bottom: 2px;
    border-bottom: 1px solid #eee;
}

.template-compact .summary-text {
    font-size: 10px;
    color: #444;
    line-height: 1.5;
}

.template-compact .experience-item,
.template-compact .education-item {
    margin-bottom: 10px;
}

.template-compact .item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.template-compact .item-title {
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
}

.template-compact .item-subtitle {
    font-size: 10px;
    color: #555;
}

.template-compact .item-date {
    font-size: 9px;
    color: #666;
}

.template-compact .item-description {
    font-size: 10px;
    color: #444;
    margin-top: 4px;
    line-height: 1.5;
}

.template-compact .skill-tag {
    font-size: 9px;
    color: #333;
    display: inline;
}

.template-compact .skill-tag::after {
    content: ', ';
}

.template-compact .skill-tag:last-child::after {
    content: '';
}

/* ========================================
   Responsive for New Sections
======================================== */
@media (max-width: 1024px) {
    .tips-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    
    .header-actions-mobile {
        display: flex;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .template-options {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Hero Responsive */
    .hero {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat {
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 28px;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 12px;
    }
    
    .floating-icons {
        display: none;
    }
    
    /* Features Responsive */
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    /* Testimonials Responsive */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    /* Steps Responsive */
    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .step-connector {
        transform: rotate(90deg);
        padding: 20px 0;
    }
    
    .step-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .templates-preview-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .template-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat {
        width: 100%;
    }
}

/* ========================================
   Scroll Reveal Animations
======================================== */
@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal elements for JS animation */
.reveal-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-element.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Loading Skeleton
======================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--border-radius);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================================
   Focus & Accessibility
======================================== */
*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline-offset: 4px;
    box-shadow: var(--shadow-glow);
}

/* ========================================
   Print Styles
======================================== */
@media print {
    .header,
    .hero,
    .features,
    .testimonials-section,
    .how-it-works-section,
    .templates-section,
    .tips-section,
    .contact-section,
    .footer,
    .form-panel,
    .preview-actions {
        display: none !important;
    }
    
    .preview-panel {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .resume-preview {
        box-shadow: none !important;
        border: none !important;
    }
}

/* ========================================
   NEW SEO PAGES STYLES
======================================== */

/* Breadcrumb Navigation */
.breadcrumb-nav {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb-separator {
    color: var(--text-muted);
}

.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 500;
}

/* Page Hero Section */
.page-hero {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.05) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Templates Page Styles
======================================== */
.templates-page-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.templates-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.template-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.template-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.template-preview {
    position: relative;
    aspect-ratio: 8.5/11;
    background: white;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.template-preview-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.template-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.template-card:hover .template-overlay {
    opacity: 1;
}

.template-overlay .btn-primary,
.template-overlay .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.template-info {
    padding: 1.5rem;
}

.template-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.template-info p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.template-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.template-tag {
    padding: 0.25rem 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* ========================================
   Blog Page Styles
======================================== */
.blog-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.blog-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.blog-card-image i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.blog-card-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-card-content h3 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-content h3 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.blog-meta i {
    margin-right: 0.25rem;
}

.blog-featured {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.blog-featured-image {
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-featured-image i {
    font-size: 5rem;
    color: white;
    opacity: 0.8;
}

.blog-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.blog-featured-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-featured-content p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* ========================================
   Tools Page Styles
======================================== */
.tools-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 4rem;
}

.tool-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.tool-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.tool-icon i {
    font-size: 1.5rem;
    color: white;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.tool-card .btn-primary {
    width: 100%;
}

/* Tool Interface */
.tool-interface {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.tool-interface h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.tool-interface > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tool-input-group {
    margin-bottom: 1.5rem;
}

.tool-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.tool-input-group textarea {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.tool-input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.tool-input-group input[type="text"] {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.tool-input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.tool-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tool-results {
    background: var(--bg-tertiary);
    border-radius: var(--border-radius);
    padding: 2rem;
    display: none;
}

.tool-results.active {
    display: block;
}

.tool-results h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.result-score {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.score-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.score-circle.good {
    background: linear-gradient(135deg, #10b981, #059669);
}

.score-circle.medium {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.score-circle.poor {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.score-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.result-list {
    list-style: none;
    padding: 0;
}

.result-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
}

.result-list li:last-child {
    border-bottom: none;
}

.result-list li i {
    font-size: 1rem;
}

.result-list li i.fa-check-circle {
    color: #10b981;
}

.result-list li i.fa-times-circle {
    color: #ef4444;
}

.result-list li i.fa-exclamation-circle {
    color: #f59e0b;
}

/* ========================================
   About Page Styles
======================================== */
.about-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-image {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image i {
    font-size: 5rem;
    color: white;
    opacity: 0.8;
}

.about-mission {
    text-align: center;
    margin-bottom: 5rem;
    padding: 4rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}

.about-mission h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-mission p {
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.125rem;
}

.about-values {
    margin-bottom: 5rem;
}

.about-values h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 1.75rem;
    color: white;
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-team {
    margin-bottom: 5rem;
}

.about-team h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.team-avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.team-avatar i {
    font-size: 3rem;
    color: white;
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-role {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.875rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.team-social a:hover {
    background: var(--primary);
    color: white;
}

/* ========================================
   Legal Pages (Privacy, Terms)
======================================== */
.legal-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    border: 1px solid var(--border-color);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-content a {
    color: var(--primary);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.last-updated {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 2rem;
}

/* ========================================
   Contact Page Styles
======================================== */
.contact-page-section {
    padding: 4rem 2rem;
    background: var(--bg-primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.contact-info h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item-icon i {
    font-size: 1.25rem;
    color: white;
}

.contact-item-content h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.contact-item-content p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.875rem;
}

.contact-form-wrapper {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ========================================
   Responsive Styles for New Pages
======================================== */
@media (max-width: 1024px) {
    .about-intro {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-image {
        order: -1;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .blog-featured {
        grid-template-columns: 1fr;
    }
    
    .blog-featured-image {
        aspect-ratio: 16/9;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 1.5rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .page-hero p {
        font-size: 1rem;
    }
    
    .breadcrumb {
        padding: 0 1rem;
        font-size: 0.75rem;
    }
    
    .templates-grid,
    .blog-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .templates-filter {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
    
    .tool-interface {
        padding: 1.5rem;
    }
    
    .tool-actions {
        flex-direction: column;
    }
    
    .tool-actions .btn-primary,
    .tool-actions .btn-secondary {
        width: 100%;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .about-mission {
        padding: 2rem;
    }
    
    .blog-featured-content {
        padding: 1.5rem;
    }
    
    .blog-featured-content h2 {
        font-size: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-info,
    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .template-card,
    .blog-card,
    .tool-card,
    .value-card,
    .team-card {
        margin: 0 -0.5rem;
        border-radius: var(--border-radius);
    }
    
    .result-score {
        flex-direction: column;
        text-align: center;
    }
}
