/* =========================================
   GLOBAL RESET & BASE STYLES
========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background-color: #ffffff;
    color: #222;
    overflow-x: hidden;
    padding-top: 110px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* =========================================
   THEME COLORS
========================================= */
.theme-text {
    color: #ad291f;
}

.theme-bg {
    background: #ad291f;
}

.theme-border {
    border-color: #ad291f;
}

/* =========================================
   BUTTONS
========================================= */
.btn-theme {
    background: #ad291f;
    color: #fff;
    padding: 12px 24px;
    border-radius: 999px;
    transition: 0.3s ease;
    font-weight: 700;
    display: inline-block;
}

.btn-theme:hover {
    background: #8e1f17;
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
========================================= */
.navbar-glass {
    backdrop-filter: blur(12px);
    transition: 0.3s ease;
}

/* =========================================
   GLASS CARD
========================================= */
.glass-card {
    border-radius: 24px;
    padding: 35px;
    transition: 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* =========================================
   SECTIONS
========================================= */
.section-spacing {
    padding: 100px 0;
}

.section-dark {
    background: #f8f9fa;
}

/* =========================================
   HERO
========================================= */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.75), rgba(0,0,0,0.3));
}

body.light-mode .hero-overlay {
    background: linear-gradient(to right, rgba(255,255,255,0.5), rgba(255,255,255,0.2));
}

/* =========================================
   DARK MODE
========================================= */
body.dark-mode {
    background-color: #121212;
    color: #f1f1f1;
}

body.dark-mode .section-dark {
    background-color: #1a1a1a;
}

body.dark-mode .glass-card,
body.dark-mode .contact-box,
body.dark-mode .footer-dark {
    background-color: #1e1e1e;
    color: #fff;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background-color: #222;
    color: #fff;
    border: 1px solid #444;
}

body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder {
    color: #bbb;
}

body.dark-mode .navbar-glass {
    background: rgba(20, 20, 20, 0.95);
}

body.dark-mode .text-muted {
    color: #bbbbbb;
}

/* global muted */
.text-muted {
    color: #666;
}

/* =========================================
   LIGHT MODE
========================================= */
body.light-mode {
    background-color: #ffffff;
    color: #222;
}

body.light-mode .glass-card,
body.light-mode .contact-box {
    background: #fff;
    color: #222;
}

/* =========================================
   THEME TOGGLE
========================================= */
.theme-toggle {
    width: 60px;
    height: 30px;
    background: #ccc;
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    transition: 0.3s;
    overflow: hidden;
}

.theme-toggle i {
    font-size: 14px;
    z-index: 2;
    transition: 0.3s;
}

/* sun default visible in light mode */
.sun-icon {
    color: #f39c12;
    opacity: 1;
}

.moon-icon {
    color: #2c3e50;
    opacity: 0.4;
}

/* DARK MODE */
body.dark-mode .theme-toggle {
    background: #ad291f;
}

body.dark-mode .sun-icon {
    opacity: 0.4;
}

body.dark-mode .moon-icon {
    opacity: 1;
    color: #fff;
}
/* =========================================
   MOBILE MENU
========================================= */
.mobile-menu {
    display: none;
    flex-direction: column;
}

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

/* =========================================
   WHATSAPP BUTTON
========================================= */
.whatsapp-float {
    position: fixed;
    width: 55px;
    height: 55px;
    bottom: 25px;
    right: 25px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 768px) {
    .section-spacing {
        padding: 60px 0;
    }

    .glass-card {
        padding: 25px;
    }
}

/* ================================
   VIDEO PLAY OVERLAY (FIXED)
================================ */

.video-trigger {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* dark overlay */
.video-trigger::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: 0.3s ease;
    border-radius: 20px;
}

/* hover dark effect */
.video-trigger:hover::after {
    background: rgba(0,0,0,0.45);
}

/* play icon */
.video-trigger .play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 42px;
    color: #fff;

    opacity: 0;
    transform: scale(0.8);
    transition: 0.3s ease;

    z-index: 2;
}

/* show on hover */
.video-trigger:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}
