/* CSS Variables and Root Styles */
:root {
    --color-primary: #E8764A;
    --color-secondary: #3D5A80;
    --color-cream: #F5E6D3;
    --color-gold: #F0C27A;
    --color-dark: #2C2418;
    --color-light: #FFF8F0;
    --color-warm-brown: #C9956B;
    --color-beige: #D4A574;
    --color-sage: #6B8F5E;

    --font-display: 'Josefin Sans', sans-serif;
    --font-body: 'Lora', serif;
    --font-handwriting: 'Caveat', cursive;

    --sidebar-width: 280px;
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Layout Structure */
body {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background-color: var(--color-cream);
    background-image:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.05) 2px,
            rgba(139, 69, 19, 0.05) 4px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(139, 69, 19, 0.05) 2px,
            rgba(139, 69, 19, 0.05) 4px
        );
    padding: 3rem 1.5rem;
    overflow-y: auto;
    border-right: 1px solid rgba(139, 69, 19, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item {
    display: inline-block;
    padding: 0.75rem 1rem;
    font-family: var(--font-display);
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    color: var(--color-dark);
    text-decoration: none;
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--color-warm-brown);
    border-radius: 4px;
    transition: all var(--transition-smooth);
    cursor: pointer;
    transform: rotate(-1deg);
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--color-primary);
    color: white;
    transform: rotate(1deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(232, 118, 74, 0.3);
}

.sidebar-footer {
    text-align: center;
}

.studio-name {
    font-family: var(--font-handwriting);
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to bottom, #2C2418, #F0C27A, #FFF8F0);
    animation: sunriseGradient 3s ease-out forwards;
    position: relative;
    overflow: hidden;
}

@keyframes sunriseGradient {
    0% {
        background: linear-gradient(to bottom, #2C2418, #2C2418, #2C2418);
    }
    50% {
        background: linear-gradient(to bottom, #3D5A80, #F0C27A, #F5E6D3);
    }
    100% {
        background: linear-gradient(to bottom, #F0C27A, #FFF8F0, #FFF8F0);
    }
}

.hero-inner {
    text-align: center;
    z-index: 10;
    padding: 2rem;
}

.hero-title {
    font-family: var(--font-handwriting);
    font-size: clamp(2.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
    animation: fadeInLetters 3.5s ease-out;
    letter-spacing: 0.05em;
}

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

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 600;
    color: var(--color-secondary);
    animation: fadeInSubtitle 4s ease-out 0.5s both;
}

@keyframes fadeInSubtitle {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Content Sections */
.content-section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-container {
    position: relative;
}

.content-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--color-primary), transparent);
    margin-top: 0.5rem;
}

.content-section p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

/* About Section */
.about-section {
    background-color: rgba(245, 230, 211, 0.3);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    padding: 2rem;
    background-color: white;
    border: 2px solid var(--color-cream);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-smooth);
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(232, 118, 74, 0.15);
    border-color: var(--color-primary);
}

.about-card h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-sage);
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 1rem;
    color: var(--color-dark);
    margin-bottom: 0;
}

/* Work Section */
.work-section {
    background-color: var(--color-light);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.work-item {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.work-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(232, 118, 74, 0.2);
}

.work-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--color-cream) 0%, var(--color-gold) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.work-icon {
    width: 100px;
    height: 100px;
    opacity: 0.8;
    transition: transform var(--transition-smooth);
}

.work-item:hover .work-icon {
    transform: scale(1.1) rotate(5deg);
}

.work-item h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-secondary);
    padding: 1.5rem 1.5rem 0.5rem;
}

.work-item p {
    font-size: 0.95rem;
    color: var(--color-dark);
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

/* Contact Section */
.contact-section {
    background-color: rgba(61, 90, 128, 0.05);
}

.contact-form {
    max-width: 600px;
    margin-top: 2rem;
    padding: 2.5rem;
    background-color: white;
    border-radius: 12px;
    border: 2px solid var(--color-cream);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-cream);
    border-radius: 6px;
    background-color: #fafafa;
    color: var(--color-dark);
    transition: all var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(232, 118, 74, 0.1);
}

.submit-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.submit-btn:hover {
    background-color: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(232, 118, 74, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Footer */
.footer {
    background-color: var(--color-dark);
    color: var(--color-cream);
    text-align: center;
    padding: 2rem;
    font-size: 0.9rem;
}

.footer p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(139, 69, 19, 0.1);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .sidebar-nav {
        flex-direction: row;
        gap: 0.5rem;
    }

    .nav-item {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }

    .content-section {
        padding: 3rem 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .sidebar {
        flex-direction: column;
        gap: 1rem;
    }

    .sidebar-nav {
        width: 100%;
        gap: 0.75rem;
    }

    .nav-item {
        width: 100%;
        text-align: center;
    }

    .content-section {
        padding: 2rem 1rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 2rem;
}
