/* General Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-behavior: smooth;
}

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --primary-color: #00f2fe; /* Neon Cyan */
    --secondary-color: #4facfe; /* Deep Blue */
    --card-bg: rgba(20, 20, 25, 0.7);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #111827 0%, #000000 100%);
    transition: background 0.5s ease;
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(79, 172, 254, 0.05) 10%, transparent 20%),
                radial-gradient(circle, rgba(0, 242, 254, 0.05) 10%, transparent 20%);
    background-size: 100px 100px;
    animation: moveBg 30s linear infinite;
}

@keyframes moveBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(5, 5, 5, 0.8);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo span {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

/* Buttons */
.btn-primary {
    background: linear-gradient(45deg, var(--secondary-color), var(--primary-color));
    padding: 12px 28px;
    border-radius: 30px;
    color: #000 !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    padding: 12px 28px;
    border-radius: 30px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary-color);
    transition: all 0.4s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: #000;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--primary-color);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-weight: 600;
    animation: fadeInDown 1s ease forwards;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 25px;
    line-height: 1.1;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(45deg, var(--primary-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulseGlow 2s infinite alternate;
}

.hero-content p {
    font-size: 1.2rem;
    color: #9ca3af;
    max-width: 700px;
    margin: 0 auto 40px;
    transition: color 0.5s ease;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 60px 8%;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

.stat-box {
    text-align: center;
    margin: 20px;
}

.stat-box h2 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
    line-height: 1;
}

.stat-box p {
    font-size: 1rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Services Section */
.services {
    padding: 100px 8%;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.5s ease;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-card {
    background: var(--card-bg);
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(0,242,254,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 242, 254, 0.1);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card i {
    font-size: 3.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

.service-card:hover i {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.service-card p {
    color: #9ca3af;
    font-size: 1rem;
    transition: color 0.5s ease;
}

/* Footer */
footer {
    background: linear-gradient(to top, #000000, #0a0a0a);
    padding: 80px 8% 30px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.5s ease, border-color 0.5s ease;
}

.footer-logo {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-tagline {
    color: #6b7280;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 1.1rem;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}

.contact-info p:hover {
    color: var(--primary-color);
}

.contact-info i {
    color: var(--primary-color);
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #6b7280;
    font-size: 0.9rem;
    transition: border-color 0.5s ease;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseGlow {
    from { text-shadow: 0 0 10px rgba(0, 242, 254, 0.2); }
    to { text-shadow: 0 0 20px rgba(0, 242, 254, 0.6), 0 0 30px rgba(139, 92, 246, 0.4); }
}

/* =========================================
   COMPACT APP-LIKE MOBILE RESPONSIVE DESIGN
   ========================================= */
@media (max-width: 768px) {
    nav { padding: 15px 5%; }
    .logo { font-size: 22px; }
    .nav-links { display: none; }

    .hero { height: auto; padding: 120px 20px 60px; }
    .tagline { font-size: 0.9rem; letter-spacing: 2px; margin-bottom: 10px; }
    .hero-content h1 { font-size: 2.2rem; margin-bottom: 15px; }
    .hero-content p { font-size: 0.95rem; margin-bottom: 30px; }
    
    .hero-buttons { flex-direction: column; gap: 15px; width: 100%; }
    .btn-primary, .btn-secondary { 
        width: 100%; 
        max-width: 300px; 
        margin: 0 auto; 
        padding: 14px 20px; 
        font-size: 0.9rem; 
    }

    .stats { padding: 30px 5%; gap: 15px; flex-wrap: wrap; }
    .stat-box { margin: 10px 5px; flex: 1 1 40%; }
    .stat-box h2 { font-size: 2.2rem; margin-bottom: 2px; }
    .stat-box p { font-size: 0.75rem; letter-spacing: 1px; }

    .services { padding: 60px 5%; }
    .section-title { margin-bottom: 40px; }
    .section-title h2 { font-size: 2rem; }
    .section-title p { font-size: 0.95rem; }
    
    .service-grid { gap: 20px; grid-template-columns: 1fr; }
    .service-card { padding: 30px 20px; border-radius: 15px; }
    .service-card i { font-size: 2.5rem; margin-bottom: 15px; }
    .service-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
    .service-card p { font-size: 0.9rem; }

    footer { padding: 50px 5% 20px; }
    .footer-logo { font-size: 26px; }
    .footer-tagline { font-size: 0.85rem; margin-bottom: 25px; }
    
    .contact-info { flex-direction: column; gap: 15px; margin-bottom: 30px; }
    .contact-info p { font-size: 0.95rem; justify-content: center; }
    
    .copyright { padding-top: 20px; font-size: 0.85rem; }
}

/* =========================================
   TIME-BASED LIGHT THEME OVERRIDES
   ========================================= */
body.light-theme {
    --bg-color: #ffffff;
    --text-color: #111827;
    --card-bg: #f8fafc;
    --primary-color: #2563eb; 
    --secondary-color: #4f46e5;
}

body.light-theme .bg-animation {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

body.light-theme .bg-animation::before {
    display: none;
}

body.light-theme nav {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #e5e7eb;
}

body.light-theme .nav-links a {
    color: #4b5563;
}

body.light-theme .nav-links a:hover {
    color: var(--primary-color);
    text-shadow: none;
}

body.light-theme .tagline {
    color: var(--primary-color);
}

body.light-theme .hero-content h1 {
    color: #111827;
}

body.light-theme .hero-content h1 span {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: none; 
    text-shadow: none;
}

body.light-theme .hero-content p,
body.light-theme .section-title p,
body.light-theme .service-card p {
    color: #4b5563;
}

body.light-theme .stats {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

body.light-theme .stat-box h2 {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-theme .stat-box p {
    color: #4b5563;
}

body.light-theme .service-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

body.light-theme .service-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
}

body.light-theme .service-card::before {
    display: none; 
}

body.light-theme .service-card h3 {
    color: #111827;
}

body.light-theme footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

body.light-theme .footer-tagline {
    color: #6b7280;
}

body.light-theme .contact-info p {
    color: #4b5563;
}

body.light-theme .copyright {
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
}

body.light-theme .btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #ffffff !important;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

body.light-theme .btn-primary:hover {
    box-shadow: 0 10px 15px rgba(37, 99, 235, 0.3);
}

body.light-theme .btn-secondary {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light-theme .btn-secondary:hover {
    color: #ffffff;
}

body.light-theme .btn-secondary::before {
    background: var(--primary-color);
}