:root {
    --accent: #ff9500;
    --dark: #1a1a1a;
    --light: #ffffff;
    --gray: #f0f0f0;
    font-family: 'font';
}

* {
    box-sizing: border-box;
}

@font-face {
    font-family: 'font';
    src: url('/assets/fonts/font.ttf');
}

@font-face {
    font-family: 'bold';
    src: url('/assets/fonts/bold.ttf');
}

body {
    font-family: 'font';
    margin: 0;
    padding: 0;
    background-color: var(--gray);
    overflow-x: hidden;
}

#header {
    z-index: 1000;
    background-color: rgba(26, 26, 26, 0.1);
    width: 100%;
    height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    backdrop-filter: blur(10px);
    padding: 0 20px;
}

#logo {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

}

#logo img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0px 1px var(--accent));
    transition: all 0.3s ease;
}

#logo img:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0px 3px var(--accent));
}

/* Navigation Menu */
#nav-menu {
    display: flex;
    align-items: center;
}

#nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px;
}

#nav-list li {
    position: relative;
}

#nav-list a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

#nav-list a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

#nav-list a.active {
    background-color: rgba(255, 149, 0, 0.2);
    color: var(--accent);
}

/* Dropdown Styles */
.dropdown .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(15px);
    min-width: 200px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 10px 0;
    margin-top: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.dropdown-content a {
    display: block;
    padding: 12px 20px;
    color: var(--light);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 25px;
    transform: none;
}

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

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

/* Mobile Menu Toggle */
#mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    margin-left: 20px;
}

#mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #nav-list {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    #nav-list.active {
        display: flex;
    }

    #mobile-menu-toggle {
        display: flex;
    }

    .dropdown .dropdown-content {
        position: static;
        display: none;
        background-color: rgba(255, 255, 255, 0.05);
        margin: 10px 0 0 20px;
        border-radius: 5px;
        box-shadow: none;
        border: none;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* Content Styles */
#content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Hero Section */
#hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero-bg {
    position: absolute;
    filter: brightness(0.4);
    width: 100%;
    height: 100%;
    z-index: -10;
}

#hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#hero-content {
    position: relative;
    margin-left: 5%;
    margin-right: 5%;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    max-width: 1200px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

#hero-content h1 {
    font-family: 'bold';
    color: var(--accent);
    font-size: clamp(2.5rem, 8vw, 5rem);
    margin: 0;
    line-height: 0.9;
    font-weight: 100;
}

#hero-content h2 {
    color: var(--light);
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero-content h3 {
    color: var(--light);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 10px 0 30px 0;
    opacity: 0.9;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Buttons */
#buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

#buttons button {
    padding: 12px 24px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    cursor: pointer;
    border-radius: 5px;
    font-family: 'font';
    font-weight: 500;
    transition: all 0.3s ease;
}

.glow {
    min-width: 180px;
    height: 50px;
    border: none;
    outline: none;
    color: var(--light);
    background: var(--accent);
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

.glow:before {
    content: '';
    background: linear-gradient(45deg, var(--accent), #ff8000, var(--accent), #ffd000, var(--accent), #ff5e00, var(--accent));
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    animation: glowing 20s linear infinite;
    opacity: 0;
    transition: opacity .3s ease-in-out;
    border-radius: 5px;
}

.glow:hover:before {
    opacity: 1;
}

.glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.4);
}

@keyframes glowing {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

#learn-more {
    position: relative;
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    overflow: hidden;
    min-width: 140px;
}

#learn-more:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: width 0.3s ease;
}

#learn-more:hover {
    color: var(--light);
    transform: translateY(-3px);
}

#learn-more:hover:after {
    width: 100%;
}

/* About Section */
#about,
#services {
    padding: 80px 0;
    background-color: var(--light);
    min-height: auto;
}

/* Update Services Section Grid */
#services #grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1400px;
    margin: 0 auto;
    gap: 30px;
}

/* Add styles for new AI images */
#ai3 {
    position: absolute;
    top: -22%;
    left: -20%;
    width: 150%;
    height: 150%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0.9);
    z-index: -1;
}

#ai4 {
    position: absolute;
    top: -22%;
    left: -13%;
    width: 140%;
    height: 140%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0.9);
    z-index: -1;
}

/* Responsive adjustments for 4 grid items */
@media (max-width: 1200px) {
    #services #grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 1000px;
    }
}

@media (max-width: 768px) {
    #services #grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .large-grid-item {
        min-height: 350px;
    }
}

@media (max-width: 480px) {
    #services #grid {
        padding: 0 10px;
    }

    .large-grid-item {
        min-height: 300px;
    }

    #overlay p {
        padding: 20px;
        font-size: 1.1em;
    }

    #overlay button {
        width: 50%;
        height: 12%;
        font-size: 1.2em;
    }
}


/* Adjust services section padding for more content */
#services {
    background-color: var(--gray);
    padding-bottom: 120px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#about h1,
#services h1 {
    font-family: 'bold';
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--dark);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

#about h1:after,
#services h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 2px;
}

#sec {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 80px;
}

#sec:nth-child(3) {
    flex-direction: row-reverse;
}

.text-content {
    flex: 1;
    padding: 20px;
}

.text-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.8;
    color: #333;
    margin: 0;
}

#visual {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    max-width: 600px;
    margin: 0 auto;
}

#macbook {
    width: 100%;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.562));
    animation: float 5s ease-in-out infinite;
}

#phone {
    position: absolute;
    width: 40%;
    max-width: 200px;
    height: auto;
    top: 30%;
    left: 65%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.559));
    animation: float 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Grid Styles */
#grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 100%;
    padding: 0 20px;
    z-index: 2;
}

.grid-item,
.large-grid-item {
    position: relative;
    background-color: #ffffff79;
    backdrop-filter: blur(10px);
    min-height: 300px;
    border-radius: 10px;
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
    justify-content: center;
    align-items: center;
    padding: 20px 20px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.grid-item:hover,
.large-grid-item:hover {
    transform: translateY(-5px);
}

.grid-item::after,
.large-grid-item::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, var(--accent), var(--accent), #ff8000, var(--accent), #ffd000, var(--accent), #ff5e00, var(--accent), var(--accent));
    z-index: -1;
    border-radius: 10px;
    clip-path: polygon(0 0, 0% 0, 0% 5%, 0 5%);
    background-size: 400%;
    transition: all 0.3s ease-in-out;
}

.grid-item:hover::after {
    animation: glowing 20s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 5%, 0 5%);
}

.grid-item h2,
.large-grid-item h2 {
    text-align: center;
    font-size: clamp(1rem, 2vw, 2rem);
    margin: 0;
    z-index: 10;
}

.grid-item span,
.large-grid-item span {
    display: block;
    line-height: 1.2;
    font-family: 'bold';
    text-align: center;
    font-size: clamp(2rem, 2.8vw, 3rem);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    color: var(--accent);
    z-index: 10;
}

/* Divider */
#divider {
    --c: 85;
    width: 100%;
    aspect-ratio: 4/1;
    background: #eaeaea;
    mask: radial-gradient(calc(var(--c)*1%) 100% at 50% calc(100% + 100%*cos(asin(50/var(--c)))), #0000 calc(100% - 1px), #000);
    clip-path: ellipse(calc(var(--c)*1%) 100% at bottom);
    transform: translateY(-45%);
    height: 20vh;
}

/* Services Section */
#services {
    background-color: var(--gray);
    padding-bottom: 100px;
}

#services #grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    max-width: 1000px;
    margin: 0 auto;
}

.large-grid-item {
    min-height: 400px;
}

.large-grid-item::after {
    clip-path: polygon(0 0, 0% 0, 0% 2.5%, 0 2.5%);
}

.large-grid-item:hover::after {
    animation: glowing 20s linear infinite;
    clip-path: polygon(0 0, 100% 0, 100% 2.5%, 0 2.5%);
}

/* Tablet Styles */
@media only screen and (max-width: 768px) {
    #header {
        padding: 0 15px;
        height: 70px;
    }

    #logo {
        width: 50px;
        height: 50px;
    }

    #mobile-menu-toggle {
        display: flex;
    }

    #hero {
        min-height: 500px;
    }

    #hero-content {
        text-align: center;
        margin: 0 20px;
    }

    #buttons {
        justify-content: center;
        gap: 15px;
    }

    #buttons button {
        min-width: 150px;
    }

    #sec {
        flex-direction: column !important;
        gap: 30px;
        margin-bottom: 60px;
    }

    .text-content {
        text-align: center;
        padding: 0 10px;
    }

    #visual {
        min-height: 300px;
        padding: 0 20px;
    }

    #phone {
        width: 35%;
        top: 35%;
        left: 62%;
    }

    #about,
    #services {
        padding: 60px 0;
    }

    #grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }

    #services #grid {
        grid-template-columns: 1fr;
    }

    #divider {
        aspect-ratio: 6/1;
        transform: translateY(-30%);
    }
}

/* Mobile Styles */
@media only screen and (max-width: 480px) {
    #hero {
        height: 100vh;
        min-height: 450px;
    }

    #hero-content h1 {
        font-size: 2.2rem;
    }

    #hero-content h2 {
        font-size: 1.3rem;
    }

    #hero-content h3 {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }

    #buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    #buttons button {
        width: 100%;
        max-width: 280px;
        min-width: unset;
    }

    .glow {
        min-width: unset;
    }

    #visual {
        min-height: 250px;
    }

    #macbook {
        max-width: 100%;
    }

    #phone {
        width: 30%;
        max-width: 120px;
        top: 40%;
        left: 60%;
    }

    #about h1,
    #services h1 {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .text-content p {
        font-size: 1rem;
    }

    .grid-item,
    .large-grid-item {
        min-height: 250px;
        padding: 30px 15px;
    }

    .grid-item h2,
    .large-grid-item h2 {
        font-size: 1.3rem;
    }

    .grid-item span,
    .large-grid-item span {
        font-size: 1.8rem;
    }

    #divider {
        aspect-ratio: 8/1;
        transform: translateY(-20%);
    }
}

/* Very small screens */
@media only screen and (max-width: 360px) {
    #hero-content h1 {
        font-size: 2rem;
    }

    #hero-content h2 {
        font-size: 1.2rem;
    }

    #hero-content h3 {
        font-size: 1rem;
    }

    #phone {
        width: 28%;
        max-width: 100px;
        top: 42%;
        left: 58%;
    }

    .grid-item,
    .large-grid-item {
        min-height: 220px;
    }
}

/* Landscape mobile */
@media only screen and (max-height: 600px) and (orientation: landscape) {
    #hero {
        min-height: 400px;
    }

    #hero-content {
        margin-top: 80px;
    }

    #buttons {
        margin-top: 20px;
    }

    #buttons button {
        height: 45px;
        padding: 10px 20px;
    }
}

/* Utility classes for better mobile experience */
html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background-color: var(--accent);
    color: var(--light);
}

/* Prevent horizontal scroll on mobile */
body {
    position: relative;
    width: 100%;
}

/* Touch-friendly hover states */
@media (hover: none) {
    .glow:hover:before {
        opacity: 0;
    }

    .glow:active {
        transform: scale(0.98);
    }

    #learn-more:active {
        transform: scale(0.98);
    }

    .grid-item:hover,
    .large-grid-item:hover {
        transform: none;
    }

    .grid-item:active,
    .large-grid-item:active {
        transform: scale(0.98);
    }
}

/* Improve text readability on small screens */
@media only screen and (max-width: 480px) {
    body {
        font-size: 16px;
        -webkit-text-size-adjust: 100%;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    #hero {
        min-height: -webkit-fill-available;
    }
}

#grid-text {
    font-size: 1.5rem;
    font-weight: 200;
}

/* Compact 3D Carousel */
#carousel-visual {
    flex: 1;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    /* Reduced from 800px */
    height: 350px;
    /* Reduced from 450px */
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-item {
    position: absolute;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 16/10;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotateY(90deg) translateZ(-300px) scale(0.4);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0.0, 0.2, 1);
    pointer-events: none;
    filter: blur(5px);
}

/* Update these specific carousel item positions */

/* Active item - front and center */
.carousel-item.active {
    opacity: 1;
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(0px) scale(1);
    pointer-events: all;
    z-index: 10;
    filter: blur(0);
}

/* Previous item - peeking from left */
.carousel-item.prev {
    transform: translate(-50%, -50%) rotateY(40deg) translateZ(-150px) translateX(-100px) scale(0.7);
    opacity: 0.7;
    z-index: 5;
    filter: blur(1px);
}

/* Next item - peeking from right */
.carousel-item.next {
    transform: translate(-50%, -50%) rotateY(-40deg) translateZ(-150px) translateX(100px) scale(0.7);
    opacity: 0.7;
    z-index: 5;
    filter: blur(1px);
}

/* Behind item - directly behind the active item */
.carousel-item.far-prev {
    transform: translate(-50%, -50%) rotateY(0deg) translateZ(-300px) scale(0.5);
    opacity: 0.3;
    z-index: 1;
    filter: blur(3px);
}

/* Remove the far-next class since we don't need it anymore */
.carousel-item.far-next {
    display: none;
}


.carousel-content {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 15px;
    /* Slightly smaller radius */
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
    background: #000;
}

/* Enhanced shadow for depth */
.carousel-item.active .carousel-content {
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.carousel-item.prev .carousel-content,
.carousel-item.next .carousel-content {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.carousel-item.active .carousel-content:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}

.carousel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    transition: transform 0.3s ease;
}

/* Darken side images for better depth perception */
.carousel-item.prev .carousel-content img,
.carousel-item.next .carousel-content img {
    filter: brightness(0.8);
}

.carousel-item.far-prev .carousel-content img,
.carousel-item.far-next .carousel-content img {
    filter: brightness(0.6);
}

/* Hover Overlay */
.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.7) 50%, transparent 100%);
    padding: 30px 25px 25px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-item.active .carousel-content:hover .carousel-overlay {
    transform: translateY(0);
}

.carousel-overlay h3 {
    font-family: 'bold';
    font-size: 1.5rem;
    /* Reduced from 1.8rem */
    color: var(--light);
    margin: 0 0 8px 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) 0.1s;
}

.carousel-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    /* Reduced from 1rem */
    line-height: 1.4;
    margin: 0;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1) 0.2s;
}

.carousel-item.active .carousel-content:hover .carousel-overlay h3,
.carousel-item.active .carousel-content:hover .carousel-overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* Add accent border on hover */
.carousel-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--accent);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.carousel-item.active .carousel-content:hover::after {
    opacity: 1;
}

/* Carousel Controls - Fixed centering */
.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + 80px);
    left: -40px;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 20;
}

.carousel-prev,
.carousel-next {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 149, 0, 0.9);
    backdrop-filter: blur(10px);
    border: none;
    color: var(--light);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.3);
    padding: 0;
}

.carousel-prev svg,
.carousel-next svg {
    width: 20px;
    height: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 149, 0, 0.5);
}

.carousel-prev:active,
.carousel-next:active {
    transform: scale(0.95);
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 20;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--accent);
    transform: scale(1.4);
    box-shadow: 0 0 8px rgba(255, 149, 0, 0.5);
}

.indicator:hover {
    background: #bbb;
}

/* Mobile-specific carousel controls positioning */
@media (max-width: 768px) {
    #carousel-visual {
        overflow: visible;
    }

    .carousel-container {
        height: 300px;
        max-width: 100%;
        padding: 0 20px;
        /* Reduced padding */
    }

    .carousel-item {
        max-width: 280px;
    }

    /* Move buttons outside the carousel area */
    .carousel-controls {
        width: 100%;
        left: 0;
        padding: 0 5px;
        /* Minimal padding */
        pointer-events: none;
    }

    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
        border: 2px solid var(--accent);
        color: var(--accent);
    }

    .carousel-prev:hover,
    .carousel-next:hover {
        background: var(--accent);
        color: white;
    }

    /* Adjust item positions to avoid button overlap */
    .carousel-item.prev {
        transform: translate(-50%, -50%) rotateY(25deg) translateZ(-80px) translateX(-40px) scale(0.75);
        opacity: 0.6;
    }

    .carousel-item.next {
        transform: translate(-50%, -50%) rotateY(-25deg) translateZ(-80px) translateX(40px) scale(0.75);
        opacity: 0.6;
    }
}

@media (max-width: 480px) {
    #carousel-visual {
        min-height: 320px;
        /* Increased height */
        padding: 10px 0;
        /* Remove horizontal padding */
    }

    .carousel-container {
        height: 260px;
        padding: 0;
        /* Remove padding */
    }

    /* Position buttons below the carousel on very small screens */
    .carousel-controls {
        position: absolute;
        bottom: 40px;
        /* Position near indicators */
        top: auto;
        transform: none;
        width: 200px;
        left: 50%;
        margin-left: -100px;
        display: flex;
        justify-content: space-between;
    }

    .carousel-prev,
    .carousel-next {
        width: 35px;
        height: 35px;
        position: relative;
    }

    .carousel-item {
        max-width: 240px;
        width: 75vw;
        /* Smaller width to avoid edges */
    }

    /* Keep side items more tucked in */
    .carousel-item.prev {
        transform: translate(-50%, -50%) rotateY(15deg) translateZ(-40px) translateX(-20px) scale(0.8);
        opacity: 0.4;
    }

    .carousel-item.next {
        transform: translate(-50%, -50%) rotateY(-15deg) translateZ(-40px) translateX(20px) scale(0.8);
        opacity: 0.4;
    }

    .carousel-item.far-prev {
        opacity: 0;
    }

    /* Move indicators up since buttons are now there */
    .carousel-indicators {
        bottom: 10px;
    }
}

/* Alternative approach for very small screens - stack buttons vertically */
@media (max-width: 360px) {
    #carousel-visual {
        min-height: 340px;
    }

    .carousel-container {
        height: 240px;
    }

    .carousel-item {
        max-width: 200px;
        width: 70vw;
    }

    /* Even more compact positioning */
    .carousel-item.prev,
    .carousel-item.next {
        opacity: 0.3;
        filter: blur(2px);
    }

    .carousel-item.prev {
        transform: translate(-50%, -50%) translateX(-15px) scale(0.75);
    }

    .carousel-item.next {
        transform: translate(-50%, -50%) translateX(15px) scale(0.75);
    }

    /* Vertical button layout */
    .carousel-controls {
        width: 100px;
        left: 10px;
        right: 10px;
        margin-left: 0;
        bottom: 20px;
    }

    .carousel-prev {
        margin-right: auto;
    }

    .carousel-next {
        margin-left: auto;
    }
}

/* Ensure images load on mobile */
.carousel-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #f0f0f0;
    /* Fallback color */
    display: block;
    /* Ensure block display */
}

.carousel-content {
    /* Add background to see container */
    background: #ddd;
}

/* Touch-friendly hover states */
@media (hover: none) {
    .carousel-overlay {
        transform: translateY(0);
        background: linear-gradient(to top, rgba(26, 26, 26, 0.9) 0%, transparent 70%);
        padding: 20px 15px 15px;
    }

    .carousel-overlay h3,
    .carousel-overlay p {
        transform: translateY(0);
        opacity: 1;
    }

    .carousel-overlay h3 {
        font-size: 1.3rem;
    }

    .carousel-overlay p {
        font-size: 0.85rem;
    }
}

#image-container {
    position: absolute;
    top: 30%;
    left: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    mask-image: linear-gradient(to bottom, transparent 0%, black 50%);
}


#ai1 {
    position: absolute;
    top: -22%;
    left: -20%;
    width: 200%;
    height: 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0.9);
    z-index: -1;
}

#ai2 {
    position: absolute;
    top: -22%;
    left: -13%;
    width: 140%;
    height: 140%;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: brightness(0.9);
    z-index: -1;
}

.large-grid-item {
    cursor: pointer;
}

#overlay {
    width: 100%;
    height: 0%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 136, 0, 0.47);
    backdrop-filter: blur(10px);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%);
    text-align: center;
    transition: all 0.5s ease;
    opacity: 0;
}

#overlay p {
    padding: 30px;
    font-weight: 600;
    font-size: 1.3em;
    margin-bottom: 0;
}

#overlay button {
    margin-top: 0;
    width: 40%;
    height: 15%;
    font-size: 1.5em;
    font-family: 'bold';
    border: none;
    border-radius: 15px;
    background: linear-gradient(45deg, var(--accent), var(--accent), #ff8000, var(--accent), #ffd000, var(--accent), #ff5e00, var(--accent), var(--accent));
    background-size: 400%;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(255, 149, 0, 0.3);
}

#overlay button:hover {
    color: var(--light);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: glowing 20s linear infinite;
}

.large-grid-item:hover #overlay {
    opacity: 1;
    height: 75%;
}

#footer {
    background: var(--dark);
    color: #ffffff;
    padding: 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}


#footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: shimmer 3s infinite;
}


@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }


    100% {
        transform: translateX(100%);
    }
}


.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem 0;
}


.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}


.footer-brand h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent), red);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


.footer-brand p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}


.social-links {
    display: flex;
    gap: 1rem;
}


.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 158, 255, 0.3);
    border-color: var(--accent);
}


.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    padding-bottom: 0.5rem;
}


.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}


.footer-section ul {
    list-style: none;
    padding: 0;
}


.footer-section ul li {
    margin-bottom: 0.8rem;
}


.footer-section ul li a {
    color: #a0a0a0;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}


.footer-section ul li a:hover {
    color: var(--accent);
    transform: translateX(5px);
}


.contact-info li {
    color: #a0a0a0;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 1rem;
}


.contact-info li i {
    color: var(--accent);
    margin-top: 0.2rem;
    min-width: 20px;
}


.footer-bottom {
    margin-top: 2rem;
}


.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin-bottom: 2rem;
}


.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}


.footer-bottom-content p {
    color: #a0a0a0;
    margin: 0;
}


.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}


.footer-legal a {
    color: #a0a0a0;
    text-decoration: none;
    transition: color 0.3s ease;
}


.footer-legal a:hover {
    color: var(--accent);
}


.footer-legal span {
    color: #666;
}


/* Responsive Design */
@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-brand {
        grid-column: 1 / -1;
    }
}


@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }


    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }


    .social-links {
        justify-content: center;
    }
}


/* Hours section styling */
.hours-info {
    list-style: none;
    padding: 0;
}


.hours-info li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}


.hours-info li:last-child {
    border-bottom: none;
}


.hours-info .day {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}


.hours-info .time {
    color: #a0a0a0;
    font-size: 0.85rem;
    text-align: right;
}


.hours-info .time.closed {
    color: #ff6b6b;
    font-weight: 500;
}


/* Update responsive design for 5 columns */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
    }


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


@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }


    .footer-brand {
        grid-column: 1 / -1;
    }
}


@media (max-width: 640px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }


    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }


    .footer-legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Update animation delays for 5 sections */
.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}


.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}


.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}


.footer-section:nth-child(4) {
    animation-delay: 0.4s;
}


.footer-section:nth-child(5) {
    animation-delay: 0.5s;
}


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

.contact_button {
    cursor: pointer;
}


/* Mobile Navigation - Updated */
@media (max-width: 768px) {
    #nav-list {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: linear-gradient(135deg, rgba(26, 26, 26, 0.98) 0%, rgba(26, 26, 26, 0.95) 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 80px 20px 20px;
        z-index: 999;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
        border: none;
    }

    #nav-list.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    #nav-list li {
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }

    #nav-list.active li {
        transform: translateY(0);
        opacity: 1;
    }

    /* Stagger animation for menu items */
    #nav-list.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    #nav-list.active li:nth-child(2) {
        transition-delay: 0.2s;
    }

    #nav-list.active li:nth-child(3) {
        transition-delay: 0.3s;
    }

    #nav-list.active li:nth-child(4) {
        transition-delay: 0.4s;
    }

    #nav-list a {
        font-size: 2rem;
        font-weight: 600;
        color: var(--light);
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 10px;
        transition: all 0.3s ease;
        text-align: center;
        border: 2px solid transparent;
        min-width: 200px;
        display: block;
    }

    #nav-list a:hover {
        background: rgba(255, 149, 0, 0.1);
        border-color: var(--accent);
        color: var(--accent);
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 10px 30px rgba(255, 149, 0, 0.2);
    }

    /* Dropdown in mobile menu */
    .dropdown .dropdown-content {
        position: static;
        display: none;
        background: rgba(255, 255, 255, 0.05);
        margin: 10px 0;
        border-radius: 10px;
        padding: 10px 0;
        box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.1);
        min-width: auto;
        width: 100%;
    }

    .dropdown.active .dropdown-content {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .dropdown-content a {
        font-size: 1.4rem !important;
        padding: 0.8rem 1.5rem !important;
        margin: 5px 0;
        min-width: auto;
    }

    /* Mobile menu toggle button adjustments */
    #mobile-menu-toggle {
        z-index: 1001;
        position: relative;
        transition: all 0.3s ease;
    }

    #mobile-menu-toggle.active {
        transform: rotate(0deg);
    }

    /* Ensure header stays on top */
    #header {
        z-index: 1000;
        position: fixed;
    }
}

/* Hamburger animation - keep your updated version */
#mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 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);
}

/* Prevent body scroll when mobile menu is open */
body.mobile-menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Add overlay for better visual separation */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation for slide down */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

#overlay p {
    font-weight: 100;
}