:root {
    /* Color Palette */
    --primary-bg: #ffffff;
    --secondary-bg: #f9f9f9;
    --dark-bg: #111111;
    --accent-gold: #c5a059;
    --accent-gold-hover: #e0bb73;
    --text-main: #111111;
    --text-muted: #666666;
    --text-light: #ffffff;
    --border-light: #eeeeee;
    
    /* 3D Shadows */
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px rgba(0,0,0,0.05), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-3d: 
        5px 5px 15px rgba(0,0,0,0.1),
        -5px -5px 15px rgba(255,255,255,0.8),
        inset 1px 1px 2px rgba(255,255,255,0.9),
        inset -1px -1px 2px rgba(0,0,0,0.05);
    
    --shadow-3d-hover: 
        10px 10px 20px rgba(0,0,0,0.15),
        -10px -10px 20px rgba(255,255,255,0.9),
        inset 1px 1px 2px rgba(255,255,255,0.9),
        inset -1px -1px 2px rgba(0,0,0,0.05);

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 1);
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Texture Overlay */
.texture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background-image: url('assets/background.jpg');
    background-repeat: repeat;
    opacity: 0.03; /* Very subtle */
    mix-blend-mode: multiply;
}

/* Typography */
h1, h2, h3, h4, .est-text {
    font-family: 'Playfair Display', serif;
}

h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

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

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-padding {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.divider {
    width: 40px;
    height: 2px;
    background-color: var(--accent-gold);
    margin: 1rem auto;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.3);
}

.btn-primary:hover {
    background-color: var(--accent-gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 89, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    z-index: 1000;
    transition: var(--transition-fast);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: 1rem 5%;
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo {
    filter: invert(1); /* Assuming logo is white text initially or adjust based on generated logo */
}

/* If the logo has a white background already, let's just make it look good */
.nav-logo {
    mix-blend-mode: multiply;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    color: var(--text-light);
    font-weight: 500;
    position: relative;
    transition: var(--transition-fast);
}

.navbar.scrolled .nav-links a:not(.btn) {
    color: var(--text-main);
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-gold);
    transition: var(--transition-fast);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
}

.navbar.scrolled .mobile-toggle {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1.05); /* Slight scale for parallax or smooth load effect */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(17,17,17,0.4), rgba(17,17,17,0.8));
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.est-text {
    display: block;
    color: var(--accent-gold);
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.hero-desc {
    color: #cccccc;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.hero-location {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.hero-location i {
    color: var(--accent-gold);
}

/* Services Section */
.services-section {
    background-color: var(--secondary-bg);
}

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

/* Glass & Fake 3D Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.service-img {
    height: 250px;
    background-size: cover;
    background-position: center;
}

.service-info {
    padding: 2rem;
}

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

.price {
    font-size: 1.25rem;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    color: var(--accent-gold);
}

/* Products Section (3D Style) */
.products-section {
    background-color: var(--primary-bg);
}

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

.3d-card {
    background-color: var(--secondary-bg);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-3d);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.3d-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-3d-hover);
}

.product-img-wrapper {
    background-color: var(--primary-bg);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    margin-bottom: 1.5rem;
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.03), inset -2px -2px 5px rgba(255,255,255,1);
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: var(--transition-smooth);
}

.3d-card:hover .product-img {
    transform: scale(1.1) rotate(2deg);
}

.product-details {
    padding: 0 1rem 1rem;
}

.product-details h3 {
    font-size: 1.25rem;
}

.product-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.cart-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: var(--primary-bg);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.05), -2px -2px 5px rgba(255,255,255,1);
    border: none;
    color: var(--text-main);
    transition: var(--transition-fast);
}

.cart-btn:hover {
    background: var(--accent-gold);
    color: var(--text-light);
    box-shadow: inset 2px 2px 5px rgba(0,0,0,0.2);
}

/* Barbers Section */
.barbers-section {
    background-color: var(--secondary-bg);
}

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

.barber-card {
    padding: 0;
    overflow: hidden;
    background-color: var(--primary-bg);
}

.barber-img-wrapper {
    height: 350px;
    overflow: hidden;
}

.barber-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.barber-card:hover .barber-img-wrapper img {
    transform: scale(1.05);
}

.barber-info {
    padding: 2rem;
    text-align: center;
}

.barber-title {
    color: var(--accent-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.barber-stars {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.barber-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer Section */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 5rem 0 0;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 1rem;
    /* Invert logo for dark background */
    filter: invert(1);
}

.footer-brand p {
    color: #999;
}

.footer-links, .footer-contact {
    flex: 1;
    min-width: 200px;
}

.footer h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

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

.footer-links a {
    display: block;
    color: #999;
    margin-bottom: 0.8rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-gold);
    transform: translateX(5px);
}

.footer-contact p {
    color: #999;
    margin-bottom: 0.8rem;
}

.footer-bottom {
    background-color: #0a0a0a;
    text-align: center;
    padding: 1.5rem;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media screen and (max-width: 900px) {
    h1 {
        font-size: 3rem;
    }
    
    .nav-links {
        display: none; /* simple mobile hide for demonstration, can add menu later */
    }
    
    .mobile-toggle {
        display: block;
    }

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

@media screen and (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
}
