/* CSS Variables - Design System */
:root {
    /* Main backgrounds */
    --background: hsl(0, 0%, 100%);
    --background-alt: hsl(30, 25%, 96%);
    --foreground: hsl(0, 0%, 20%);

    /* Card backgrounds */
    --card: hsl(0, 0%, 100%);
    --card-foreground: hsl(0, 0%, 20%);

    /* Primary - warm brown */
    --primary: hsl(25, 60%, 20%);
    --primary-foreground: hsl(0, 0%, 100%);

    /* Secondary */
    --secondary: hsl(30, 25%, 96%);
    --secondary-foreground: hsl(25, 60%, 45%);

    /* Muted colors */
    --muted: hsl(30, 15%, 92%);
    --muted-foreground: hsl(0, 0%, 40%);

    /* Accent */
    --accent: hsl(25, 60%, 45%);
    --accent-foreground: hsl(0, 0%, 100%);

    /* Borders */
    --border: hsl(30, 15%, 88%);
    --ring: hsl(25, 60%, 45%);

    /* Text colors */
    --heading: hsl(25, 60%, 20%);
    --body: hsl(0, 0%, 25%);

    --radius: 0.75rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-small {
    max-width: 900px;
}

/* Header */
.header {
    background-color: var(--background-alt);
    border-bottom: 1px solid var(--border);
}

.header-logo {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}

.logo {
    height: 8rem;
    width: auto;
}

/* Hero Section */
.hero-section {
    background-color: var(--background);
    padding: 4rem 1.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-image-wrapper {
    display: flex;
    justify-content: center;
    order: 1;
}

.hero-image-container {
    position: relative;
}

.hero-image {
    border-radius: 50%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 20rem;
    height: 20rem;
    object-fit: cover;
}

.hero-content {
    order: 2;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--heading);
    line-height: 1.2;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: 2rem;
    word-wrap: break-word;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Wavy Divider */
.wavy-divider {
    width: 100%;
}

.wavy-divider-flip {
    transform: rotate(180deg);
}

/* About Section */
.about-section {
    background-color: var(--background-alt);
    padding: 5rem 1.5rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

.about-image-wrapper {
    display: flex;
    justify-content: center;
}

.about-image-container {
    width: 16rem;
    height: 16rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading);
    margin-bottom: 1rem;
    word-wrap: break-word;
}

.about-text {
    font-size: 1.125rem;
    color: var(--body);
    line-height: 1.75;
    word-wrap: break-word;
}

/* Portfolio Section */
.portfolio-section {
    background-color: var(--background);
    padding: 5rem 1.5rem;
}

.portfolio-header {
    text-align: center;
    margin-bottom: 3rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* Card */
.card {
    background-color: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 1rem 1.5rem 0.75rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--heading);
    text-align: center;
    word-wrap: break-word;
    line-height: 1.4;
}

.card-content {
    padding: 0 1.5rem 1.5rem;
}

.card-description {
    font-size: 1rem;
    color: var(--body);
    line-height: 1.75;
    margin-bottom: 1rem;
    text-align: center;
    word-wrap: break-word;
}

/* Contact Section */
.contact-section {
    background-color: var(--background-alt);
    padding: 5rem 1.5rem;
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-intro {
    font-size: 1.125rem;
    color: var(--body);
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.75;
    word-wrap: break-word;
    padding: 0 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 42rem;
    margin: 0 auto;
}

.contact-card {
    display: block;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-card:hover {
    background-color: var(--muted);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    padding: 1rem;
    background-color: hsla(25, 60%, 20%, 0.1);
    border-radius: 50%;
    color: var(--primary);
    transition: background-color 0.3s ease;
}

.contact-card:hover .contact-icon {
    background-color: hsla(25, 60%, 20%, 0.2);
}

.contact-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 0.5rem;
    word-wrap: break-word;
}

.contact-subtitle {
    font-size: 0.875rem;
    color: var(--body);
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    padding: 0 0.5rem;
}

.contact-info {
    font-weight: 700;
    color: var(--heading);
    font-size: 1.125rem;
    word-wrap: break-word;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    background-color: hsla(25, 60%, 20%, 0.9);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--heading);
    color: var(--heading);
}

.btn-outline:hover {
    background-color: var(--heading);
    color: white;
}

.btn-sm {
    height: 2.25rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
}

.btn-lg {
    height: 2.75rem;
    padding: 0 2rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-image {
        width: 24rem;
        height: 24rem;
    }

    .about-image-container {
        width: 18rem;
        height: 18rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-image-wrapper {
        order: 2;
    }

    .hero-content {
        order: 1;
    }

    .about-grid {
        grid-template-columns: 2fr 3fr;
    }

    .about-image-container {
        width: 20rem;
        height: 20rem;
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    .section-title {
        font-size: 4rem;
    }
}