/* Premium Design System for Watermark - Phase 4 (Flow & Visibility) */

:root {
    --bg-dark: #0b0d0e;
    --bg-card: rgba(30, 30, 30, 0.7);
    --accent-orange: #F36F21;
    --text-main: #ffffff;
    --text-muted: #a3a3a3;
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(11, 13, 14, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
*::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}


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

/* Scrollbars globally hidden above */

h1, h2, h3 { font-family: 'Outfit', sans-serif; }

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

/* Header Fix */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 40px;
}

.glass-nav {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    border: 1px solid var(--accent-orange);
    border-radius: 50px;
    padding: 10px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

.glass-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.glass-nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-nav a:hover, 
.glass-nav a.active { color: var(--accent-orange); }

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

@media (max-width: 1024px) {
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hero Section with Gradient & Glow */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(243, 111, 33, 0.05) 0%, #0b0d0e 80%);
    position: relative;
    overflow: hidden;
}

.glowing-circle {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 111, 33, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    animation: pulsate 4s ease-in-out infinite;
}

@keyframes pulsate {
    0% { transform: scale(1); opacity: 0.4; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.4; }
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 span { color: var(--accent-orange); }

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Overlays (Top-Up Style) */
.full-overlay {
    position: fixed;
    inset: 0;
    background: #111;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    padding: 100px 40px 60px;
    overflow-y: auto;
}

.full-overlay.active {
    transform: translateY(0);
}

.overlay-header {
    margin-bottom: 60px;
}

.overlay-header h2 {
    font-size: 3rem;
    color: var(--accent-orange);
    text-transform: uppercase;
    text-align: center;
}

.close-overlay {
    position: absolute;
    top: 40px;
    align-self: flex-end;
    /* margin-top: -60px; */
    margin-bottom: 10px;
    width: 50px;
    height: 50px;
    background: var(--accent-orange);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2001;
    transition: 0.3s;
}

.close-overlay:hover {
    transform: rotate(90deg);
}

/* Hide Modal Scrollbar */
#detail-overlay::-webkit-scrollbar {
    display: none;
}
#detail-overlay {
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

/* Sections */
.section-header { margin-bottom: 80px; }
.section-header h2 { font-size: 3rem; text-transform: uppercase; }

/* Grid Styles */
.client-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 15px;
}

.client-item {
    aspect-ratio: 1;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px;
    transition: border-color 0.5s, box-shadow 0.5s;
    cursor: pointer;
}

.client-item:hover {
    border-color: var(--accent-orange);
    transform: scale(1.05);
}

.client-item img {
    max-width: 80%;
    max-height: 80%;
    transition: 0.5s;
}

.client-item:hover {
    border-color: var(--accent-orange);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(243, 111, 33, 0.1);
}

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-grid > a {
    flex: 0 1 calc(33.333% - 17px);
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-card {
    height: 280px;
    width: 100%;
    min-width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-orange);
    box-shadow: 0 15px 30px rgba(243, 111, 33, 0.4);
}

.service-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    width: 250px;
    opacity: 0.1;
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
}

.service-card:hover .service-bg-icon {
    transform: scale(1.1) rotate(10deg);
    opacity: 0.4;
    filter: grayscale(0%);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    z-index: 1;
}

.service-card h3 {
    font-size: 1.8rem;
    position: relative;
    z-index: 2;
    transition: 0.3s;
}

.service-card:hover h3 { color: var(--accent-orange); }

/* Custom Unified Button */
.custom-btn {
    background: var(--accent-orange);
    color: #fff !important;
    padding: 14px 35px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    transition: 0.3s;
    border: 1px solid var(--accent-orange);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(243, 111, 33, 0.2);
}

.custom-btn:hover {
    background: var(--accent-orange);
    color: #fff !important;
    box-shadow: 0 0 25px rgba(243, 111, 33, 0.8);
    transform: translateY(-2px);
}

/* Loader */
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: var(--accent-orange);
    border-radius: 50%;
    display: inline-block;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 1024px) {
    .client-grid { grid-template-columns: repeat(4, 1fr); }
    .hero h1 { font-size: 4rem; }
    .service-grid > a { flex: 0 1 calc(50% - 13px); }
    
    /* Mobile Menu Implementation */
    .hamburger { display: flex; }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .glass-nav ul {
        position: fixed;
        top: 80px;
        left: 20px;
        right: 20px;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 24px;
        flex-direction: column;
        padding: 40px;
        gap: 20px;
        text-align: center;
        transform: translateY(-20px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
        z-index: -1;
    }
    
    .glass-nav ul.mobile-active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .glass-nav a {
        font-size: 1.2rem;
        display: block;
    }
}

@media (max-width: 768px) {
    .nav-container { padding: 10px 20px; }
    .client-grid { grid-template-columns: repeat(3, 1fr); }
    .hero h1 { font-size: 3rem; }
    .service-grid > a { flex: 0 1 100%; }
}

/* Utilities (Decoupled from legacy CSS) */
.text-center { text-align: center !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
