/* ========================================
   CSS Variables & Theme
   ======================================== */
:root {
    /* Colors */
    --background: #FDFCFA;
    --foreground: #2B2520;
    --card: #ffffff;
    --primary: #2B2520;
    --primary-foreground: #FDFCFA;
    --secondary: #F5F1ED;
    --secondary-foreground: #2B2520;
    --muted: #F5F1ED;
    --muted-foreground: #8B8680;
    --accent: #E8E3DD;
    --border: #E8E3DD;
    --input-background: #F5F1ED;
    
    /* Fonts */
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Inter', sans-serif;
    
    /* Spacing */
    --header-height: 80px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.6s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

a {
    color: inherit;
    text-decoration: none;
}

input,
textarea {
    font-family: inherit;
    outline: none;
}

/* ========================================
   Utility Classes
   ======================================== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-bold {
    font-weight: 400;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background-color: rgba(253, 252, 250, 0.8);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
    transform: translateY(0);
    animation: slideDown 0.5s ease;
}

.header.scrolled {
    background-color: rgba(253, 252, 250, 0.95);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

.header-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.7;
}

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

@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
}

.nav-item {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: rgba(43, 37, 32, 0.7);
    position: relative;
    padding: 0.5rem 0;
    transition: color var(--transition-normal);
}

.nav-item:hover {
    color: var(--foreground);
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--foreground);
    transition: width var(--transition-normal);
}

.nav-item:hover .nav-underline {
    width: 100%;
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-mobile {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-bottom: 0;
    transition: all var(--transition-normal);
}

.nav-mobile.open {
    max-height: 400px;
    padding-bottom: 1.5rem;
}

.nav-mobile-item {
    font-family: var(--font-sans);
    text-align: left;
    padding: 0.5rem 0;
    color: rgba(43, 37, 32, 0.7);
    transition: all var(--transition-normal);
}

.nav-mobile-item:hover {
    color: var(--foreground);
    transform: translateX(10px);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: zoomIn 1.5s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(1.1);
    }
    to {
        transform: scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2),
        rgba(0, 0, 0, 0.1),
        rgba(253, 252, 250, 0.9)
    );
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title-line {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.hero-title-line:first-child {
    animation-delay: 0.2s;
}

.hero-title-bold {
    font-weight: 400;
    animation-delay: 0.4s;
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: rgba(43, 37, 32, 0.7);
    margin-bottom: 3rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.hero-cta:hover::before {
    transform: translateX(100%);
}

.hero-cta:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-cta:active {
    transform: translateY(0) scale(0.98);
}

.hero-cta-text {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(43, 37, 32, 0.5);
    transition: all var(--transition-normal);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}

.scroll-indicator:hover {
    color: var(--foreground);
    transform: translateX(-50%) scale(1.2);
}

/* ========================================
   About Section
   ======================================== */
.about {
    padding: 6rem 0;
    background-color: rgba(245, 241, 237, 0.3);
}

.about-grid {
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

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

@media (min-width: 768px) {
    .about-image-wrapper {
        order: 1;
    }
}

.about-image-container {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    transition: transform var(--transition-slow);
}

.about-image-container:hover {
    transform: scale(1.02);
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.about-image-container:hover .about-image {
    transform: scale(1.1);
}

.about-content {
    order: 1;
}

@media (min-width: 768px) {
    .about-content {
        order: 2;
    }
}

.about-text {
    margin: 2rem 0;
}

.about-paragraph {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(43, 37, 32, 0.8);
    margin-bottom: 1.5rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    margin-top: 2rem;
}

@media (max-width: 640px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-item {
    transition: transform var(--transition-normal);
}

.value-item:hover {
    transform: translateY(-5px);
}

.value-title {
    font-family: var(--font-serif);
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    transition: transform var(--transition-fast);
}

.value-item:hover .value-title {
    transform: scale(1.05);
}

.value-description {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

/* ========================================
   Projects Section
   ======================================== */
.projects {
    padding: 6rem 0;
}

.projects-header {
    margin-bottom: 4rem;
}

.projects-grid {
    display: grid;
    gap: 3rem;
}

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

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background-color: var(--card);
    overflow: hidden;
    transition: transform var(--transition-normal);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.project-image-wrapper {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.75rem;
}

.project-description {
    font-family: var(--font-sans);
    color: rgba(43, 37, 32, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.project-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    border-radius: 12px;
}

/* ========================================
   Services Section
   ======================================== */
.services {
    padding: 6rem 0;
    background-color: rgba(245, 241, 237, 0.3);
}

.services-header {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    gap: 2rem;
}

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

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    padding: 2rem;
    background-color: var(--card);
    border-radius: 4px;
    transition: all var(--transition-normal);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    transition: transform var(--transition-normal);
}

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

.service-title {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.service-description {
    font-family: var(--font-sans);
    color: rgba(43, 37, 32, 0.7);
    line-height: 1.6;
}

/* ========================================
   Contact Section
   ======================================== */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    gap: 4rem;
    align-items: start;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: rgba(43, 37, 32, 0.7);
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-detail {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.contact-detail i {
    width: 24px;
    height: 24px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.contact-detail-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-detail-value {
    font-size: 1rem;
    color: var(--foreground);
    transition: color var(--transition-fast);
}

a.contact-detail-value:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background-color: var(--card);
    padding: 2rem;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem 1rem;
    background-color: var(--input-background);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(43, 37, 32, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    font-family: var(--font-sans);
    font-weight: 500;
    border-radius: 4px;
    transition: all var(--transition-normal);
}

.form-submit:hover {
    background-color: rgba(43, 37, 32, 0.9);
    transform: translateY(-2px);
}

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

.form-message {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-top: 1rem;
}

.form-message i {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 4rem 0 2rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.footer-content {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

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

.footer-brand {
    margin-bottom: 1rem;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-family: var(--font-sans);
    color: rgba(253, 252, 250, 0.7);
}

.footer-links {
    display: grid;
    gap: 2rem;
}

@media (min-width: 640px) {
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-title {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-link {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: rgba(253, 252, 250, 0.7);
    transition: color var(--transition-fast);
    text-align: left;
}

.footer-link:hover {
    color: var(--primary-foreground);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(253, 252, 250, 0.1);
    text-align: center;
}

.footer-copyright {
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: rgba(253, 252, 250, 0.5);
}

/* ========================================
   Toast Notification
   ======================================== */
.toast {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-150%);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background-color: var(--card);
    color: var(--foreground);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform var(--transition-normal);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
}

.toast i {
    width: 20px;
    height: 20px;
    color: #28a745;
}

/* ========================================
   Animations & Effects
   ======================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Responsive Adjustments
   ======================================== */
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .about-paragraph {
        font-size: 1rem;
    }
    
    .contact-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .values-grid {
        gap: 1.5rem;
    }
}
