/* UN4 Black & Gold Theme - Color System & Base Styles */

/* ============================================
   BLACK & GOLD COLOR PALETTE
   ============================================ */
:root {
    /* Gold Tones */
    --gold-primary: #cc9933;
    --gold-light: #e6b347;
    --gold-dark: #997226;
    --gold-bright: #ffd700;
    --gold-pale: #d4af37;

    /* Secondary Accents */
    --white: #ffffff;
    --silver: #c0c0c0;
    --platinum: #e5e4e2;

    /* Background Colors */
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #141414;
    --bg-card: rgba(10, 10, 10, 0.9);

    /* Gradient Presets */
    --gradient-gold: linear-gradient(135deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
    --gradient-gold-shine: linear-gradient(90deg, var(--gold-dark), var(--gold-bright), var(--gold-dark));
    --gradient-luxury: linear-gradient(45deg,
        rgba(204, 153, 51, 0.3),
        rgba(230, 179, 71, 0.3),
        rgba(255, 215, 0, 0.2)
    );

    /* Glow Effects */
    --glow-gold: 0 0 10px var(--gold-primary), 0 0 20px var(--gold-primary), 0 0 40px var(--gold-primary);
    --glow-gold-soft: 0 0 5px var(--gold-primary), 0 0 15px rgba(204, 153, 51, 0.5);
    --glow-white: 0 0 10px var(--white), 0 0 20px rgba(255, 255, 255, 0.5);

    /* Sharp Borders (No Radius) */
    --border-sharp: 0px;
    --border-gold: 1px solid var(--gold-primary);
    --border-gold-light: 1px solid var(--gold-light);

    /* Animation Speeds */
    --speed-fast: 0.15s;
    --speed-normal: 0.3s;
    --speed-slow: 0.6s;
    --ease-luxury: cubic-bezier(0.77, 0, 0.175, 1);

    /* Text Colors */
    --text-gold: var(--gold-primary);
    --text-gold-light: var(--gold-light);
}

/* ============================================
   SHARP BORDERS - BRUTALIST AESTHETIC
   ============================================ */

/* Override all border-radius to 0 */
.glass,
.glass-button,
.btn-primary,
.btn-secondary,
.eco-card,
.service-item,
.tech-item,
.value-item,
.cta-content,
.code-showcase,
.mobile-menu,
.stat,
.tag,
.section-badge,
.hero-badge,
.mobile-link,
.theme-toggle,
.theme-toggle-mobile,
.nav-toggle span,
.code-dots span,
.mouse {
    border-radius: 0 !important;
}

/* Sharp card corners with gold accents */
.glass::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--gold-primary);
    opacity: 0;
    transition: opacity var(--speed-normal) var(--ease-luxury);
}

.glass::after {
    top: -1px;
    left: -1px;
    border-right: none;
    border-bottom: none;
}

.glass:hover::after {
    opacity: 1;
}

.glass::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1px solid var(--gold-light);
    bottom: -1px;
    right: -1px;
    border-left: none;
    border-top: none;
    opacity: 0;
    transition: opacity var(--speed-normal) var(--ease-luxury);
    border-radius: 0 !important;
    background: transparent !important;
}

.glass:hover::before {
    opacity: 1;
}

/* ============================================
   LUXURY GLASS MORPHISM
   ============================================ */
.glass {
    background: linear-gradient(135deg,
        rgba(204, 153, 51, 0.05) 0%,
        rgba(10, 10, 10, 0.8) 50%,
        rgba(204, 153, 51, 0.03) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(204, 153, 51, 0.3);
    position: relative;
    overflow: hidden;
}

.glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(204, 153, 51, 0.15),
        transparent
    );
    transition: left 0.5s var(--ease-luxury);
    pointer-events: none;
}

.glass:hover::before {
    left: 100%;
}

/* ============================================
   GOLD TEXT EFFECTS
   ============================================ */
.text-gold {
    color: var(--gold-primary);
    text-shadow: var(--glow-gold);
}

.text-gold-light {
    color: var(--gold-light);
    text-shadow: 0 0 10px var(--gold-light);
}

.text-gradient-gold {
    background: var(--gradient-gold);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 3s ease infinite;
}

@keyframes gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================
   SHIMMER EFFECT
   ============================================ */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-luxury);
    background-size: 400% 400%;
    animation: shimmer-shift 8s ease infinite;
    opacity: 0.5;
    mix-blend-mode: overlay;
    pointer-events: none;
}

@keyframes shimmer-shift {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* ============================================
   GOLD BUTTONS
   ============================================ */
.btn-primary {
    background: transparent;
    border: 2px solid var(--gold-primary);
    color: var(--gold-primary);
    position: relative;
    overflow: hidden;
    transition: all var(--speed-normal) var(--ease-luxury);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-primary);
    transform: translateX(-100%);
    transition: transform var(--speed-normal) var(--ease-luxury);
    z-index: -1;
}

.btn-primary:hover {
    color: #000;
    box-shadow: var(--glow-gold);
}

.btn-primary:hover::before {
    transform: translateX(0);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--gold-light);
    color: var(--gold-light);
    position: relative;
    overflow: hidden;
    transition: all var(--speed-normal) var(--ease-luxury);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gold-light);
    transform: translateY(100%);
    transition: transform var(--speed-normal) var(--ease-luxury);
    z-index: -1;
}

.btn-secondary:hover {
    color: #000;
    box-shadow: 0 0 10px var(--gold-light), 0 0 20px var(--gold-light);
}

.btn-secondary:hover::before {
    transform: translateY(0);
}

/* ============================================
   GOLD BADGES
   ============================================ */
.section-badge,
.hero-badge {
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'JetBrains Mono', monospace;
    position: relative;
}

.section-badge::before,
.hero-badge::before {
    content: '//';
    margin-right: 8px;
    opacity: 0.5;
}

/* ============================================
   TAGS
   ============================================ */
.tag {
    background: rgba(204, 153, 51, 0.1);
    border: 1px solid rgba(204, 153, 51, 0.3);
    color: var(--gold-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   SECTION TITLES
   ============================================ */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   ACCENT LINES
   ============================================ */
.cyber-line {
    height: 1px;
    background: var(--gradient-gold);
    position: relative;
}

.cyber-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: -2px;
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}

/* ============================================
   SELECTION
   ============================================ */
::selection {
    background: var(--gold-primary);
    color: #000;
}

::-moz-selection {
    background: var(--gold-primary);
    color: #000;
}

/* ============================================
   CORNER DECORATIONS
   ============================================ */
.corner-decoration {
    position: relative;
}

.corner-decoration::before,
.corner-decoration::after {
    content: '+';
    position: absolute;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--gold-primary);
    opacity: 0.5;
}

.corner-decoration::before {
    top: 8px;
    left: 8px;
}

.corner-decoration::after {
    bottom: 8px;
    right: 8px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 768px) {
    :root {
        --glow-gold: 0 0 5px var(--gold-primary), 0 0 10px var(--gold-primary);
    }

    .glass::before,
    .glass::after {
        display: none;
    }
}
