@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --bg-main: #0f0a07;
    /* Dark Coffee */
    --bg-secondary: #1a1410;
    --accent: #D4AF37;
    --accent-glow: rgba(212, 175, 55, 0.4);
    --accent-dim: rgba(212, 175, 55, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #b0a090;
    --glass-bg: rgba(255, 245, 230, 0.03);
    --glass-border: rgba(255, 245, 230, 0.1);
    --glass-blur: blur(20px);
    --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    --glow-strength: 0 0 30px var(--accent-glow);
    --mobile-padding: 20px;
    --section-spacing: 120px;
}

@media (max-width: 768px) {
    :root {
        --section-spacing: 80px;
        --mobile-padding: 15px;
        --glass-blur: blur(10px);
    }
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 16px;
    position: relative;
}

/* Texture Overlay - Premium Grain & Pattern */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E"),
        linear-gradient(to bottom, rgba(15, 10, 7, 0) 0%, rgba(15, 10, 7, 0.2) 100%);
    opacity: 0.06;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: overlay;
}

/* Subtle Linen Pattern for Section Backgrounds */
.glass-card,
.nav-standard.glass,
.footer-standard {
    position: relative;
    overflow: hidden;
}

.glass-card::after,
.nav-standard.glass::after,
.footer-standard::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
    }
}

/* Glassmorphism Utilities */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.glass-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 20px var(--accent-dim);
}

/* NO BLUR BACKGROUND - Clean design */
.luminosity-glow {
    display: none !important;
}

/* Typography Extensions */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold {
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent-glow);
}

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

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

.reveal {
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active {
    opacity: 1;
    animation: fadeInUp 1s ease forwards;
}

/* Button Modern Base */
.btn-modern {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    background: var(--text-primary);
    color: var(--bg-main);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition);
    border: 2px solid transparent;
    font-size: 13px;
    text-align: center;
}

.btn-modern:hover {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.btn-gold {
    background: var(--accent);
    color: #000;
}

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

/* Global Navigation */
.nav-standard {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--mobile-padding);
}

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

@media (max-width: 992px) {
    .nav-standard {
        padding: 10px 0;
    }

    .hero-cta {
        position: absolute;
        bottom: 25px;
        /* Positioned at the very bottom to clear logo */
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
        z-index: 10;
    }

    .hero-cta .btn-modern {
        padding: 12px 25px;
        font-size: 11px;
        letter-spacing: 1px;
    }

    .nav-container {
        flex-direction: column;
        gap: 10px;
        padding: 0 10px;
    }

    .nav-links {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
        padding-top: 5px;
    }

    .nav-links a {
        font-size: 10px !important;
        padding: 8px 5px !important;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 5px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        text-align: center;
        opacity: 1;
    }
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: var(--transition);
    opacity: 0.7;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
    opacity: 1;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    animation: pulseWhatsapp 2s infinite;
}

@keyframes pulseWhatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    background: #20ba5a;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 28px;
    }
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: clamp(32px, 8vw, 64px);
    margin-bottom: 50px;
    letter-spacing: 4px;
    font-weight: 700;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 var(--mobile-padding);
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Footer */
.footer-standard {
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    background: linear-gradient(to top, rgba(190, 154, 96, 0.05), transparent);
}

.footer-standard p {
    color: #888;
    font-size: 13px;
    letter-spacing: 1px;
}

/* Generic Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

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

/* Portfolio Specific Tweaks for Dark Theme */
.dark-portfolio {
    background: var(--bg-main) !important;
    color: var(--text-primary) !important;
}

.light-portfolio {
    background: #ffffff !important;
    color: #000000 !important;
}

.light-portfolio .nav-links a {
    color: #333 !important;
}

.light-portfolio .nav-links a.active {
    color: var(--accent) !important;
}

.light-portfolio .portfolio-item {
    background: #f9f9f9 !important;
    border-color: #eee !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05) !important;
}

.light-portfolio .section-title {
    color: #111 !important;
}

.light-portfolio .portfolio-hero p {
    color: var(--accent) !important;
}

.dark-portfolio .portfolio-item {
    background: var(--glass-bg) !important;
    border-color: var(--glass-border) !important;
}

.dark-portfolio .nav-links a,
.dark-portfolio .nav-container div {
    color: white !important;
}