/* Reset and Base Styles */
:root {
    --bg-dark: #050505;
    --bg-panel: #111111;
    --gold-primary: #D4AF37;
    --gold-light: #F3E5AB;
    --gold-dark: #996515;
    --text-main: #E0E0E0;
    --text-muted: #888888;
    
    --font-heading: 'Syncopate', sans-serif;
    --font-body: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    max-width: 100vw;
    scroll-behavior: smooth;
}

section, .services, .process, .gallery, .customer-photos, .contact {
    scroll-margin-top: 90px;
}

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

.gold-text {
    color: var(--gold-primary);
}

/* Typography Utilities */
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-transform: uppercase;
    word-break: break-word; /* Prevents long words like UNCOMPROMISING from breaking mobile layout */
    hyphens: auto;
}

.text-center {
    text-align: center;
}

/* 3D Gold Metallic Text Effect for AC DESIGNS Logo */
.gold-3d {
    background: linear-gradient(to bottom, #cfc09f 22%, #634f2c 24%, #cfc09f 26%, #cfc09f 27%, #ffecb3 40%, #3a2c0f 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 
        0px 2px 2px rgba(255,255,255,0.4),
        0px 4px 1px rgba(0,0,0,0.8),
        0px 4px 6px rgba(0,0,0,0.9),
        0px 8px 12px rgba(0,0,0,0.6);
    /* Simulated polished bevel edge */
    -webkit-text-stroke: 1px rgba(212, 175, 55, 0.4);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: center;
    z-index: 1000;
    transition: all 0.4s ease;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.9) 100%);
}

.hero-content {
    max-width: 1000px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.main-title .word-split {
    display: block;
    letter-spacing: -2px;
}

.main-title .word-split:nth-child(1),
.main-title .word-split:nth-child(2) {
    color: #ffffff;
    text-shadow: 0 5px 15px rgba(0,0,0,0.8);
    font-size: 0.5em;
    letter-spacing: 8px;
    margin-bottom: 0.5rem;
}

.main-title .gold-3d {
    font-size: 1.2em;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--gold-primary);
    border: 2px solid var(--gold-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

/* Services Grid */
.services {
    padding: 8rem 5%;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-panel);
    padding: 3rem 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border-color: rgba(212, 175, 55, 0.2);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 1.5rem;
}

.gold-icon {
    width: 100%;
    height: 100%;
    color: var(--gold-primary);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Material Education */
.process {
    padding: 8rem 5%;
    background: var(--bg-panel);
}

.split-layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    gap: 4rem;
    align-items: center;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 1;
}

.image-content img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.features-list {
    display: grid;
    gap: 2rem;
}

.feature-item h4 {
    color: var(--gold-primary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.feature-item p {
    color: var(--text-muted);
}

/* Gallery Comparison */
.gallery {
    padding: 8rem 5%;
}

.comparison-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.comparison-container img {
    width: 100%;
    display: block;
}

.comparison-labels {
    position: absolute;
    bottom: 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 4rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    pointer-events: none;
}

.label-before {
    color: rgba(255,255,255,0.7);
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.label-after {
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

/* Customer Photos Grid */
.customer-photos {
    padding: 8rem 5%;
    background: var(--bg-dark); /* Ensure distinction from other panels */
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    background: var(--bg-panel);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    height: 600px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-dark);
}

.carousel-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(10, 10, 10, 0.7);
    color: var(--gold-primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.carousel-button:hover {
    background: var(--gold-primary);
    color: var(--bg-dark);
}

.carousel-button svg {
    width: 24px;
    height: 24px;
}

.carousel-button.prev {
    left: 20px;
}

.carousel-button.next {
    right: 20px;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.dot.active {
    background: var(--gold-primary);
    transform: scale(1.2);
}

/* Testimonials */
.testimonials {
    padding: 8rem 5%;
    background: var(--bg-panel);
}

.testimonial-grid {
    max-width: 1400px;
    margin: 4rem auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-dark);
    padding: 3rem 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: transform 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stars {
    color: var(--gold-primary);
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.review-text {
    color: var(--text-main);
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.client-info strong {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Contact */
.contact {
    padding: 8rem 5%;
    background: var(--bg-panel);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.info-blocks {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-blocks p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-blocks strong {
    color: white;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.contact-form {
    display: grid;
    gap: 1.5rem;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    font-family: var(--font-body);
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.submit-btn {
    background: var(--gold-primary);
    color: var(--bg-dark);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: var(--gold-light);
}

footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-dark);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

footer a {
    color: var(--gold-primary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--gold-primary);
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    /* Layout Overrides */
    .split-layout, .contact-container {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 2.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .comparison-labels {
        padding: 0 1rem;
        font-size: 0.8rem;
    }
    
    /* Navigation Menu Toggle */
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        background-color: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70%;
        transition: right 0.4s ease;
        z-index: 999;
        border-left: 1px solid rgba(212, 175, 55, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
    }
    
    /* Hamburger Animation to 'X' */
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

@media (max-width: 600px) {
    /* Mobile-Specific Tweaks */
    .main-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }
    
    .main-title .word-split:nth-child(1),
    .main-title .word-split:nth-child(2) {
        letter-spacing: 4px;
    }

    .tagline {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Scale down large sections */
    section, .services, .process, .gallery, .customer-photos, .contact {
        padding: 3rem 1rem;
        overflow: hidden; /* Prevent edge-bleeding */
        scroll-margin-top: 90px;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 1px;
    }

    /* Keep Images and Cards Contained */
    img, .service-card, .info-blocks {
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Fix Contact Information Flex breaks */
    .info-blocks p {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }

    .carousel-track {
        height: 350px;
    }
    
    .carousel-button {
        width: 40px;
        height: 40px;
    }
    
    .carousel-button.prev { left: 10px; }
    .carousel-button.next { right: 10px; }
    
    .comparison-container {
        margin-top: 2rem;
    }
}
