/* Design System & Reset */
:root {
    /* Color Palette - Premium Dark Mode */
    --color-bg-primary: #0f172a;
    /* Slate 900 */
    --color-bg-secondary: #1e293b;
    /* Slate 800 */
    --color-bg-tertiary: #334155;
    /* Slate 700 */

    --color-text-primary: #f8fafc;
    /* Slate 50 */
    --color-text-secondary: #94a3b8;
    /* Slate 400 */
    --color-text-accent: #38bdf8;
    /* Sky 400 */

    --color-primary: #3b82f6;
    /* Blue 500 */
    --color-primary-hover: #2563eb;
    /* Blue 600 */

    --color-accent: #8b5cf6;
    /* Violet 500 */
    --color-success: #10b981;
    /* Emerald 500 */

    /* Typography */
    --font-family-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Borders & Shadows */
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 1rem;
    --border-radius-full: 9999px;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-sans);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-full);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    filter: brightness(1.1);
}

.btn-secondary {
    background-color: var(--color-bg-tertiary);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-bg-secondary);
}

.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-accent), var(--color-text-accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section {
    padding: var(--spacing-xl) 0;
}

/* Form Elements */
input,
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-bg-tertiary);
    border-radius: var(--border-radius-md);
    color: var(--color-text-primary);
    font-family: inherit;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--color-text-secondary);
    font-weight: 500;
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
}

/* Hero Section */
.hero {
    padding-top: calc(80px + var(--spacing-xl));
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Background Glow */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
    border-radius: 50%;
    z-index: -1;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.hero-title {
    font-size: var(--font-size-4xl);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    font-weight: 800;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* Hero Mockup */
.resume-preview-mockup {
    background-color: var(--color-bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.resume-preview-mockup:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-header {
    background-color: var(--color-bg-tertiary);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mockup-dot.red {
    background-color: #ef4444;
}

.mockup-dot.yellow {
    background-color: #f59e0b;
}

.mockup-dot.green {
    background-color: #10b981;
}

.mockup-body {
    padding: 2rem;
    background-color: white;
    min-height: 400px;
}

.skeleton-header {
    height: 40px;
    width: 60%;
    background-color: #e2e8f0;
    margin-bottom: 2rem;
    border-radius: 4px;
}

.skeleton-line {
    height: 12px;
    background-color: #f1f5f9;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.w-75 {
    width: 75%;
}

.w-50 {
    width: 50%;
}

.w-90 {
    width: 90%;
}

.w-60 {
    width: 60%;
}

/* Features Section */
.features {
    background-color: var(--color-bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--spacing-xs);
}

.section-subtitle {
    color: var(--color-text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background-color: var(--color-bg-primary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-xl);
}

.feature-card p {
    color: var(--color-text-secondary);
}

/* Builder Section */
.builder-interface {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.editor-panel {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.preview-panel {
    position: sticky;
    top: 100px;
}

.resume-paper {
    background-color: white;
    color: #1e293b;
    padding: 3rem;
    min-height: 600px;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
}

.resume-header {
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.resume-header h1 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 0.25rem;
}

.preview-title {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 0.5rem;
}

.preview-contact {
    font-size: 0.9rem;
    color: #64748b;
}

.resume-section h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Footer */
.footer {
    background-color: var(--color-bg-secondary);
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: var(--spacing-xl);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

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

.footer-copyright {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

/* Responsive */
@media (max-width: 768px) {

    .hero-container,
    .builder-interface {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 100px;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .nav {
        display: none;
        /* Simple mobile hide for now */
    }

    .resume-preview-mockup {
        margin-top: var(--spacing-lg);
        transform: none;
    }

    .footer-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
}