* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #FFFFFF;
    --foreground: #1F1C2C;
    --card: #F7F7F9;
    --card-foreground: #1F1C2C;
    --popover: #ffffff;
    --popover-foreground: #475569;
    --primary: #164e63;
    --primary: #1F1C2C;
    --primary-foreground: #FFFFFF;
    --secondary: #928DAB;
    --secondary-foreground: #1F1C2C;
    --muted: #F7F7F9;
    --muted-foreground: #928DAB;
    --accent: #928DAB;
    --accent-foreground: #FFFFFF;
    --border: #E0E0E0;
    --radius: 0.5rem;
    --destructive: #e63946;
    --destructive-foreground: #ffffff;
    --input: #ffffff;
    --ring: rgba(230, 57, 70, 0.5);
    --chart-1: #ff5733;
    --chart-2: #33c1ff;
    --chart-3: #75ff33;
    --chart-4: #ff33a1;
    --chart-5: #ffcc33;
    --sidebar: #ffffff;
    --sidebar-foreground: #475569;
    --sidebar-primary: #164e63;
    --sidebar-primary-foreground: #ffffff;
    --sidebar-accent: #ec4899;
    --sidebar-accent-foreground: #ffffff;
    --sidebar-border: #475569;
    --sidebar-ring: rgba(230, 57, 70, 0.5);
}

/* Added loading screen styles with furniture icons and animations */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--background) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease-out, visibility 0.8s ease-out;
}

.loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loading-container {
    text-align: center;
    color: var(--foreground);
}

.furniture-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.furniture-icon {
    width: 60px;
    height: 60px;
    color: var(--foreground);
    opacity: 0;
    animation: iconFloat 3s ease-in-out infinite;
}

.furniture-icon:nth-child(1) {
    animation-delay: 0s;
}

.furniture-icon:nth-child(2) {
    animation-delay: 0.6s;
}

.furniture-icon:nth-child(3) {
    animation-delay: 1.2s;
}

.furniture-icon:nth-child(4) {
    animation-delay: 1.8s;
}

.furniture-icon:nth-child(5) {
    animation-delay: 2.4s;
}

.furniture-icon svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.loading-text h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    opacity: 0;
    animation: textFadeIn 1s ease-out 1s forwards;
}

.loading-text p {
    font-family: "DM Sans", sans-serif;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    opacity: 0;
    animation: textFadeIn 1s ease-out 1.5s forwards;
}

.loading-progress {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--foreground));
    border-radius: 2px;
    width: 0%;
    animation: progressFill 3s ease-out forwards;
}

@keyframes iconFloat {

    0%,
    100% {
        opacity: 0.3;
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        opacity: 1;
        transform: translateY(-15px) rotate(5deg) scale(1.1);
    }

    50% {
        opacity: 0.8;
        transform: translateY(-10px) rotate(-5deg) scale(1.05);
    }

    75% {
        opacity: 1;
        transform: translateY(-20px) rotate(3deg) scale(1.1);
    }
}

@keyframes textFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes progressFill {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

body {
    font-family: "DM Sans", sans-serif;
    line-height: 1.7;
    color: var(--foreground);
    overflow-x: hidden;
    background: var(--background);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Space Grotesk", serif;
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    background: rgba(31, 28, 44, 0.95);
    backdrop-filter: blur(20px);
    padding: 0.5rem 0;
    /* Reduced padding for thinner navbar */
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(224, 224, 224, 0.1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-foreground);
    letter-spacing: -0.02em;
}

.logo-image {
    height: 60px;
    /* Adjusted logo height to reduce navbar height */
    width: 90px;
    /* You can keep it equal or adjust */
    object-fit: cover;
    border-radius: 4px;
}


.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--primary-foreground);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Added dropdown menu styles for Design section */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(31, 28, 44, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(224, 224, 224, 0.1);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    color: var(--primary-foreground);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.25rem;
}

.dropdown-menu a:hover {
    background: rgba(224, 224, 224, 0.1);
    color: var(--accent);
}

/* Added submenu styles for Panels section */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.submenu {
    position: absolute;
    top: 0;
    left: 100%;
    background: rgba(31, 28, 44, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(224, 224, 224, 0.1);
    border-radius: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 1002;
}

.dropdown-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.submenu li {
    list-style: none;
}

.submenu a {
    display: block;
    padding: 0.6rem 1rem;
    color: var(--primary-foreground);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border-radius: 6px;
    margin: 0.2rem;
}

.submenu a:hover {
    background: rgba(224, 224, 224, 0.1);
    color: var(--accent);
}

/* Hero Section */
#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--primary-foreground);
    overflow: hidden;
    /* Enhanced parallax with smooth transitions */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    transition: all 0.3s ease-out;
}

/* Enhanced image slider with smoother transitions */
.hero-slider {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.4s ease-out;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
    transform: translateX(100%);
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide.active {
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transform: scale(1.05);
    transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 1s ease-out;
}

.slide.active img {
    transform: scale(1.02);
    filter: brightness(0.75) contrast(1.15);
}

.hero-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(51, 6, 251, 0);
    z-index: 2;
    /* Added smooth overlay transitions */
    transition: background 0.8s ease-out, backdrop-filter 0.8s ease-out;
}

.hero-content {
    max-width: 900px;
    padding: 0 3rem;
    z-index: 3;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    box-sizing: border-box;
    /* Added smooth content transitions */
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s ease-out;
}

/* Enhanced text animations with smoother easing */
.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateX(-100px);
    animation: slideInFromLeft 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.8s forwards;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Added smooth hover transition for title */
    transition: transform 0.3s ease-out, text-shadow 0.3s ease-out;
}

.hero-content .hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateX(-80px);
    animation: slideInFromLeft 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.2s forwards;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Added smooth subtitle transitions */
    transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-block;
    background: var(--accent);
    color: var(--accent-foreground);
    padding: 18px 40px;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(60px);
    animation: slideInFromBottom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.6s forwards;
    box-shadow: 0 8px 32px rgba(50, 30, 153, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 14, 255, 0.499), transparent);
    transition: left 0.6s;
}

.cta-btn:hover::before {
    left: 100%;
}

.cta-btn:hover {
    background: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(31, 28, 44, 0.4);
}

.cta-btn-secondary {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--primary-foreground);
    opacity: 0;
    transform: translateY(60px);
    animation: slideInFromBottom 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) 1.8s forwards;
    backdrop-filter: blur(10px);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
}

/* New animation keyframes */
@keyframes slideInFromLeft {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromBottom {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Added floating elements animation */
.hero-floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    background: rgba(146, 141, 171, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 25%;
    animation-delay: 4s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.6;
    }
}

/* Enhanced scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    opacity: 0;
    animation: fadeInUp 1.5s ease-out 2.5s forwards;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.scroll-indicator::before {
    content: "";
    display: block;
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    margin: 0 auto 10px;
    animation: scrollPulse 3s infinite cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: all 0.3s ease-out;
}

.scroll-indicator::after {
    content: "Scroll Down";
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Sections */
section {
    padding: 8rem 0;
    /* Added relative positioning and background for sections to appear above parallax hero */
    position: relative;
    background: var(--background);
    z-index: 10;
    /* Added smooth section transitions */
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* Ensure first section after hero has proper spacing and appears above parallax */
section:not(#hero) {
    margin-top: 0;
    transform: translateY(0);
}

#services {
    background: var(--muted);
    /* Added margin-top to create space after parallax hero */
    margin-top: 100vh;
    /* Added smooth background transition */
    transition: background 0.5s ease-out;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--foreground);
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--muted-foreground);
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    line-height: 1.6;
}

/* Services Section */
#services {
    background: var(--muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--background);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 28, 44, 0.08);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    border: 1px solid var(--border);
    transform: translateY(0) scale(1);
    opacity: 0.9;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(146, 141, 171, 0.1), transparent);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 32px 80px rgba(31, 28, 44, 0.25);
    opacity: 1;
    border-color: var(--accent);
}

.service-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(0.9) saturate(0.8);
}

.service-card:hover img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(1.1) saturate(1.2);
}

.service-info {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

.service-info h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: var(--foreground);
    font-weight: 700;
    transition: all 0.4s ease;
    position: relative;
}

.service-card:hover .service-info h3 {
    color: var(--accent);
    transform: translateX(5px);
}

.service-info p {
    color: var(--muted-foreground);
    line-height: 1.7;
    font-size: 1rem;
    transition: all 0.4s ease;
}

.service-card:hover .service-info p {
    color: var(--foreground);
    transform: translateX(3px);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    margin-bottom: 5rem;
}

.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 600;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--muted-foreground);
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-image img {
    width: 100%;
    border-radius: 100px;
    box-shadow: 0 16px 48px rgba(31, 28, 44, 0.12);
    /* Added styling for owner photo */
    object-fit: cover;
    aspect-ratio: 4 / 5;
}

/* Fixed 3D flip card styles for proper image switching */
.flip-card {
    background-color: transparent;
    width: 100%;
    height: auto;
    perspective: 1000px;
    aspect-ratio: 4 / 5;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-style: preserve-3d;
    aspect-ratio: 4 / 5;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1000px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(31, 28, 44, 0.12);
}

.flip-card-front {
    z-index: 2;
    transform: rotateY(0deg);
}

.flip-card-back {
    transform: rotateY(180deg);
}

.flip-card-front img,
.flip-card-back img {
    width: 100%;
    height: 100%;
    border-radius: 1000px;
    display: block;
}

.flip-card-front img {
    object-fit: cover;
}

.flip-card-back img {
    object-fit: fill;
}

.team-info {
    background: var(--muted);
    padding: 4rem;
    border-radius: calc(var(--radius) * 2);
    margin-top: 3rem;
    border: 1px solid var(--border);
}

.team-info h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--foreground);
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.team-member {
    text-align: center;
    padding: 2rem;
    background: var(--background);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(31, 28, 44, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-photo {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.team-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    box-shadow: 0 8px 24px rgba(31, 28, 44, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Added hover effects for team member cards and photos */
.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(31, 28, 44, 0.12);
}

.team-member:hover .team-photo img {
    transform: scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 12px 32px rgba(31, 28, 44, 0.25);
}

.team-member h4 {
    color: var(--foreground);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.team-member span {
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

.team-member p {
    margin-top: 1rem;
    color: var(--muted-foreground);
    line-height: 1.6;
}

/* Gallery Section */
#gallery {
    background: var(--muted);
}

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

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) * 2);
    aspect-ratio: 1;
    box-shadow: 0 8px 32px rgba(31, 28, 44, 0.681);
    transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.95) rotateY(5deg);
    opacity: 0.8;
}

.gallery-item:nth-child(odd) {
    transform: scale(0.95) rotateY(-5deg);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.05) rotateY(0deg);
    box-shadow: 0 40px 80px rgb(31, 28, 44);
    opacity: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    filter: brightness(1) contrast(1.1);
}

.gallery-item:hover img {
    transform: scale(1.15) rotate(-2deg);
    filter: brightness(1.1) contrast(1.2) saturate(1.3);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: linear-gradient(135deg, rgba(31, 28, 44, 0.9), rgba(146, 141, 171, 0.7)); */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform: scale(0.8);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: scale(1);
}

.gallery-overlay h4 {
    color: var(--primary-foreground);
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1) 0.2s;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-form {
    background: var(--background);
    padding: 3rem;
    border-radius: calc(var(--radius) * 2);
    box-shadow: 0 16px 48px rgba(31, 28, 44, 0.08);
    border: 1px solid var(--border);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: 'Source Sans Pro', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--background);
    color: var(--foreground);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(146, 141, 171, 0.1);
}

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

.submit-btn {
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    font-family: 'Source Sans Pro', sans-serif;
    letter-spacing: 0.02em;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.submit-btn:hover::after {
    width: 300px;
    height: 300px;
}

.submit-btn:hover {
    background: var(--accent);
    transform: translateY(-8px) scale(1.05);
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--foreground);
}

.contact-info p {
    margin-bottom: 1.2rem;
    color: var(--muted-foreground);
    font-size: 1.1rem;
}

.contact-info strong {
    color: var(--accent);
    font-weight: 600;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin-top: 1.5rem;
}

.contact-info li {
    margin-bottom: 0.8rem;
    color: var(--muted-foreground);
    font-size: 1rem;
}

.contact-info li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.8rem;
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--primary-foreground);
    text-align: center;
    padding: 3rem 0;
    z-index: 9999;
    position: relative;
    width: 100%;
    clear: both;
}

footer p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 28px;
    height: 3px;
    background: var(--primary-foreground);
    margin: 4px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .nav-container {
        padding: 0 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content .hero-subtitle {
        font-size: 1.2rem;
    }

    /* Mobile responsive hero buttons */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .cta-btn,
    .cta-btn-secondary {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

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

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    section {
        padding: 5rem 0;
    }

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

    /* Mobile floating elements adjustment */
    .floating-element {
        display: none;
    }

    .service-card:hover {
        transform: translateY(-10px) scale(1.01);
    }

    .gallery-item:hover {
        transform: translateY(-8px) scale(1.02) rotateY(0deg);
    }

    .cta-btn:hover,
    .submit-btn:hover {
        transform: translateY(-4px) scale(1.02);
    }

    #hero {
        background-attachment: scroll;
    }

    .hero-slider,
    .hero-overlay,
    .hero-content {
        position: absolute;
    }

    .hero-content {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
}