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

:root {
    /* Colors */
    --primary: hsl(210, 50%, 28%);
    --primary-foreground: hsl(0, 0%, 100%);
    --secondary: hsl(210, 20%, 92%);
    --foreground: hsl(210, 45%, 15%);
    --background: hsl(0, 0%, 100%);
    --muted-foreground: hsl(210, 15%, 50%);
    --border: hsl(210, 20%, 88%);

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: var(--foreground);
    background-color: var(--background);
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

#navbar.scrolled {
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    transition: height 0.3s ease;
}

#navbar.scrolled .nav-content {
    height: 64px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#navbar.scrolled .logo-img {
    width: 48px;
    height: 48px;
}

.logo-text {
    display: none;
}

.company-name {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.25rem;
    line-height: 1.2;
}

.company-tagline {
    font-size: 0.75rem;
    color: var(--muted-foreground);
}

.tagline-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.nav-links {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

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

.nav-link:hover::after {
    width: 100%;
}

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

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--foreground);
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

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

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

.btn-light:hover {
    background-color: rgba(255, 255, 255, 0.9);
    animation: pulse 0.6s ease-in-out;
}

.btn-outline {
    border: 2px solid white;
    color: white;
    background-color: transparent;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary);
    animation: pulse 0.6s ease-in-out;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-image: linear-gradient(rgba(33, 58, 87, 0.7), rgba(33, 58, 87, 0.7)), url('../images/hero-kitchen.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 80px;
}

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

.hero-content {
    position: relative;
    z-index: 10;
    padding: 5rem 1rem;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 42rem;
    margin: 0 auto 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    padding-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-delay-1 {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.fade-in-delay-2 {
    animation: fadeIn 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

/* Scroll animation classes */
.animate-on-scroll {
    opacity: 0;
    transition: none;
}

.animate-on-scroll.visible {
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

.fade-up {
    opacity: 0;
}

.fade-up.visible {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-left {
    opacity: 0;
}

.fade-left.visible {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-right {
    opacity: 0;
}

.fade-right.visible {
    animation: fadeInRight 0.8s ease-out forwards;
}

.scale-in {
    opacity: 0;
}

.scale-in.visible {
    animation: scaleIn 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
}

.slide-up.visible {
    animation: slideInUp 0.8s ease-out forwards;
}

/* Staggered animations for grid items */
.stagger-item {
    opacity: 0;
}

.stagger-item.visible {
    animation: fadeInUp 0.6s ease-out forwards;
}

.stagger-item:nth-child(1).visible {
    animation-delay: 0.1s;
}

.stagger-item:nth-child(2).visible {
    animation-delay: 0.2s;
}

.stagger-item:nth-child(3).visible {
    animation-delay: 0.3s;
}

.stagger-item:nth-child(4).visible {
    animation-delay: 0.4s;
}

.stagger-item:nth-child(5).visible {
    animation-delay: 0.5s;
}

.stagger-item:nth-child(6).visible {
    animation-delay: 0.6s;
}

.stagger-item:nth-child(7).visible {
    animation-delay: 0.7s;
}

.stagger-item:nth-child(8).visible {
    animation-delay: 0.8s;
}

/* Pulse animation for CTA buttons */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.btn-primary:hover {
    animation: pulse 0.6s ease-in-out;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background-color: var(--secondary);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--muted-foreground);
}

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

.service-card {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.service-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    color: var(--primary-foreground);
}

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

.service-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.service-description {
    color: var(--muted-foreground);
}

/* Gallery Section */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--background);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: box-shadow 0.3s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(33, 58, 87, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
}

/* Page Header */
.page-header {
    position: relative;
    margin-top: 80px;
    padding: 4rem 0;
    background-image: linear-gradient(rgba(33, 58, 87, 0.8), rgba(33, 58, 87, 0.8)), url('../images/hero-kitchen.jpg');
    background-size: cover;
    background-position: center;
    color: var(--primary-foreground);
    text-align: center;
}

.page-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* All Projects Section */
.all-projects-section {
    padding: 5rem 0;
    background-color: var(--secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.project-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.project-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.project-description {
    color: var(--muted-foreground);
    font-size: 0.95rem;
}

.projects-cta {
    text-align: center;
    padding: 3rem 2rem;
    background-color: var(--background);
    border-radius: 0.5rem;
}

.projects-cta h2 {
    font-size: 2rem;
    font-weight: bold;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.projects-cta p {
    font-size: 1.125rem;
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

/* Our Work Section */
.our-work-section {
    padding: 5rem 0;
    background-color: var(--secondary);
}

.work-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.work-item:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px);
}

.work-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-item:hover img {
    transform: scale(1.1);
}

.work-button-container {
    text-align: center;
}

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

.contact-section .section-title,
.contact-section .section-description {
    color: var(--primary-foreground);
}

.contact-section .section-description {
    opacity: 0.9;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-text {
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.contact-form-container {
    background: white;
    border-radius: 0.5rem;
    padding: 2rem;
}

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

.form-group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-input {
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 0.375rem;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: var(--background);
    color: var(--foreground);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(33, 58, 87, 0.1);
    transform: translateY(-2px);
}

.form-input::placeholder {
    color: var(--muted-foreground);
    transition: opacity 0.3s ease;
}

.form-input:focus::placeholder {
    opacity: 0.5;
}

.form-input.error {
    border-color: #dc2626;
    animation: shake 0.3s ease-in-out;
}

.form-input.success {
    border-color: #16a34a;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-error.show {
    opacity: 1;
    transform: translateY(0);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.btn-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-message {
    padding: 1rem;
    border-radius: 0.375rem;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.1);
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.1);
}

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

.footer-text {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-link {
    color: var(--background);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 0.7;
    text-decoration: underline;
}

/* Tablet Styles */
@media (min-width: 640px) {
    .logo-text {
        display: block;
    }

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

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }

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

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

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

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

/* Desktop Styles */
@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }

    .nav-links {
        display: flex;
    }

    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .work-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

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

/* Mobile Menu */
@media (max-width: 767px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background-color: white;
        flex-direction: column;
        padding: 2rem 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }
}
