/* ========== FONT IMPORTS ========== */
@font-face {
    font-display: swap;
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 400;
    src: url('/assets/fonts/Gilroy-Regular.woff2') format('woff2'),
         url('/assets/fonts/Gilroy-Regular.woff') format('woff');
    /* You can download Gilroy or use a free alternative – but we'll keep fallbacks */
}
@font-face {
    font-display: swap;
    font-family: 'Gilroy';
    font-style: normal;
    font-weight: 700;
    src: url('/assets/fonts/Gilroy-Bold.woff2') format('woff2'),
         url('/assets/fonts/Gilroy-Bold.woff') format('woff');
}

/* ========== ROOT VARIABLES ========== */
:root {
    --primary: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary: #6c757d;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --bg-color: #ffffff;
    --text-color: #1a1a2e;
    --card-bg: rgba(255,255,255,0.9);
    --navbar-bg: rgba(26,26,46,0.8);
    --toastify-color-light: #fff;
    --toastify-color-dark: #121212;
    --toastify-color-info: #3498db;
    --toastify-color-success: #07bc0c;
    --toastify-color-warning: #f1c40f;
    --toastify-color-error: #e74c3c;
    --animate-duration: 1s;
    --animate-delay: 1s;
    --animate-repeat: 1;
}

[data-theme="neon"] {
    --primary: #ff00cc;
    --primary-dark: #cc00aa;
    --bg-color: #0a0a1a;
    --text-color: #00ffcc;
    --card-bg: rgba(0,0,0,0.7);
    --navbar-bg: rgba(0,0,0,0.9);
}

/* ========== GLOBAL STYLES ========== */
*, *:before, *:after {
    box-sizing: border-box;
}

body {
    font-family: 'Gilroy', 'Poppins', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background 0.3s, color 0.3s;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== BANNER SECTION (overlay from reference) ========== */
.banner-section {
    position: relative;
}
.banner-section:before {
    background: rgba(0,0,0,0.4); /* adjust opacity as needed */
    content: "";
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}
.banner-section .container {
    position: relative;
    z-index: 2;
}

/* If you keep .hero-section, also add overlay support */
.hero-section {
    position: relative;
}
.hero-section:before {
    background: rgba(0,0,0,0.5);
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* ========== GLASSMORPHISM NAVBAR ========== */
.glass-nav {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* ========== HERO SECTION (existing enhanced) ========== */
.hero-section {
    height: 100vh;
    background: linear-gradient(135deg, rgba(26,26,46,0.9), rgba(13,110,253,0.8)), url('../uploads/hero-bg.jpg') center/cover;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2;
}
.text-gradient {
    background: linear-gradient(45deg, #fff, #0d6efd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ========== SERVICE CARDS (glassmorphism) ========== */
.service-card, .glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 2rem 1rem;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
}
.icon-box {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ========== STATS SECTION ========== */
.stats-section {
    background: linear-gradient(135deg, var(--primary), var(--dark));
    color: white;
}
.stat-box h3 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* ========== PROJECT CARDS (SWIPER) ========== */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}
.project-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}
.project-card:hover img {
    transform: scale(1.05);
}
.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, black, transparent);
    color: white;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s;
}
.project-card:hover .project-info {
    transform: translateY(0);
}

/* ========== CTA BANNER ========== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
}

/* ========== MAGNETIC BUTTON ========== */
.magnetic {
    transition: transform 0.2s ease;
}

/* ========== THEME TOGGLE ========== */
#theme-toggle {
    background: transparent;
    border: 1px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
#theme-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* ========== FOOTER ========== */
footer {
    background: var(--dark);
    color: #ccc;
}
footer a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.2s;
}
footer a:hover {
    color: white;
}
.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 8px;
    transition: background 0.2s;
}
.social-links a:hover {
    background: var(--primary);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .hero-section h1 { font-size: 2rem; }
    .stat-box h3 { font-size: 1.8rem; }
    .service-card { padding: 1rem; }
}

/* ========== ANIMATION UTILITIES ========== */
[data-aos] {
    pointer-events: none;
}
[data-aos].aos-animate {
    pointer-events: auto;
}

/* ========== PRELOADER (optional) ========== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}