:root {
    /* Color Palette */
    --primary-gold: #D4AF37;
    --primary-gold-rgb: 212, 175, 55;
    --accent-orange: #FF8C00;
    --accent-orange-rgb: 255, 140, 0;
    --dark-bg: #0A0A0A;
    --darker-bg: #050505;
    --light-text: #F5F5F5;
    --muted-text: #A0A0A0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 5%;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Image Reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--light-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

/* Base Layout Components */
.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 2px;
}

.section {
    padding: var(--section-padding);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    color: var(--dark-bg);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(var(--accent-orange-rgb), 0.3);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-smooth);
    background: #000000;
}

nav.scrolled {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    margin-left: 20px;
}

.logo img {
    height: 100px;
    width: auto;
    border-radius: 0;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.logo-top-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.logo-text-side {
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.logo-text-bottom {
    display: block;
    background: linear-gradient(135deg, var(--primary-gold), var(--accent-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-top: 5px;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 30px;
}

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

/* Product Carousel */
.product-carousel-section {
    background: var(--darker-bg);
    padding: 40px 0;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
}

.carousel-container {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 25px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-slide {
    flex-shrink: 0;
    width: 280px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.carousel-slide img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-slide:hover img {
    transform: scale(1.05);
}

.carousel-slide span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: var(--primary-gold);
    padding: 30px 15px 12px;
    font-weight: 600;
    font-size: 0.9rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

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

/* Certifications Section */
.certifications-bar {
    background: var(--darker-bg);
    padding: 30px 0;
    border-bottom: 1px solid var(--glass-border);
}

.cert-grid {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    gap: 20px;
    flex-wrap: nowrap;
    max-width: 1000px;
    margin: 0 auto;
}

.cert-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    flex: 1;
    max-width: 180px;
}

.cert-item img {
    height: auto;
    max-height: 50px;
    width: 100%;
    max-width: 100px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: var(--transition-smooth);
}

.cert-item img:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* Updated Product Cards */
.product-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

/* Product Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4/3;
}

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

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.gallery-overlay span {
    color: var(--primary-gold);
    font-weight: 600;
    font-size: 0.95rem;
}

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

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

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

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

.reveal {
    animation: fadeIn 1s ease-out forwards;
}

/* Mobile Navigation */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--light-text);
    transition: var(--transition-smooth);
}

/* Mobile Responsiveness */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

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

@media (max-width: 992px) {
    .section div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }

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

    /* Product cards grid */
    .section div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .carousel-slide {
        width: 220px;
    }

    .carousel-slide img {
        height: 150px;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    nav .btn {
        display: none;
    }

    .logo img {
        height: 50px;
    }

    .logo-text-side {
        font-size: 0.9rem;
        letter-spacing: 1px;
    }

    .logo-text-bottom {
        font-size: 0.45rem;
        letter-spacing: 1px;
    }

    .logo-top-row {
        gap: 8px;
    }

    /* Hero Section */
    .hero {
        height: auto !important;
        min-height: 100vh;
        padding: 120px 20px 80px !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }

    .hero-btns .btn {
        margin-left: 0 !important;
        width: 100%;
        text-align: center;
    }

    /* Sections */
    .section {
        padding: 60px 5%;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    /* Certifications */
    .cert-grid {
        flex-wrap: wrap;
        gap: 15px;
        padding: 0 10px;
        justify-content: center;
    }

    .cert-item {
        padding: 10px 15px;
        flex: 0 1 calc(33% - 10px);
        min-width: 90px;
        max-width: 120px;
    }

    .cert-item img {
        max-height: 40px;
        max-width: 80px;
    }

    /* Carousel */
    .carousel-slide {
        width: 180px;
    }

    .carousel-slide img {
        height: 120px;
    }

    .carousel-slide span {
        font-size: 0.8rem;
        padding: 20px 10px 10px;
    }

    /* Product Cards */
    .product-card-image {
        height: 150px;
    }

    /* Product cards single column */
    .section div[style*="grid-template-columns: repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
    }

    /* About section grid */
    .section div[style*="grid"] {
        gap: 30px !important;
    }

    .glass-card {
        padding: 20px;
    }

    /* About section image */
    .glass-card[style*="height: 500px"] {
        height: 300px !important;
    }

    /* Contact Form */
    #contact .glass-card {
        padding: 30px 20px !important;
        grid-template-columns: 1fr !important;
    }

    #contact .glass-card h2 {
        font-size: 1.6rem !important;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .gallery-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent 30%, rgba(0, 0, 0, 0.8));
    }

    /* Services section */
    #services .glass-card {
        padding: 20px;
    }

    #services h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Hero */
    .hero {
        padding: 100px 15px 60px !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
    }

    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 30px !important;
    }

    /* Certifications */
    .cert-grid {
        gap: 10px;
    }

    .cert-item {
        flex: 0 1 calc(50% - 10px);
        padding: 8px 12px;
    }

    .cert-item img {
        max-height: 35px;
        max-width: 70px;
    }

    /* Carousel */
    .carousel-slide {
        width: 150px;
    }

    .carousel-slide img {
        height: 100px;
    }

    .carousel-track {
        gap: 15px;
    }

    /* Typography */
    h2 {
        font-size: 1.5rem !important;
    }

    .product-card-image {
        height: 120px;
    }

    /* Gallery back to 2 columns for smaller images */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        aspect-ratio: 1/1;
    }

    .gallery-overlay {
        padding: 10px;
    }

    .gallery-overlay span {
        font-size: 0.75rem;
    }

    /* Product Cards */
    .product-card-image {
        height: 140px;
        width: 100%;
        object-fit: cover;
    }

    /* Hero Image adjustment */
    .hero {
        background-attachment: scroll !important;
        background-position: center top !important;
    }

    /* Ensure glass card images don't overflow */
    .cert-item img {
        max-height: 30px;
        width: auto;
    }

    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }

    /* Contact */
    #contact .glass-card {
        padding: 25px 15px !important;
    }

    #contact input,
    #contact textarea {
        font-size: 16px;
        /* Prevents zoom on iOS */
    }

    /* Footer */
    footer {
        padding: 30px 15px !important;
    }

    footer p {
        font-size: 0.8rem;
    }
}