/* --- 1. VARIABLES (THEME CONFIG) --- */
:root {
    /* Light Mode (Default) */
    --bg-color: #ffffff;
    --nav-bg: #ffffff;
    --text-main: #222222;
    --text-light: #666666;
    --text-lighter: #999999;
    --card-bg: #f9f9f9; 
    --border-color: #e5e5e5;
    --accent-color: #E5B80B;
    --icon-bg: #f4f4f4;
    --footer-bg: #1a1a1a;
    --footer-text: #999999;
    --testimonial-bg: #2a2a2a;
}

body.dark-mode {
    /* Dark Mode (Asset 8 Style) */
    --bg-color: #050505;     /* Deep Black Background */
    --nav-bg: #050505;       /* Navbar matches body */
    --text-main: #ffffff;    /* Bright White Text */
    --text-light: #b0b0b0;   /* Soft Grey Text */
    --text-lighter: #666666;
    --card-bg: #1A1A1A;      /* Dark Grey for Cards */
    --border-color: #333333;
    --icon-bg: #2C2C2C;
    --footer-bg: #000000;    /* Even darker for footer */
    --testimonial-bg: #1A1A1A;
}

/* --- 2. BASE STYLES --- */
body {
    font-family: 'Inter', system-ui, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- 3. NAVBAR --- */
.navbar {
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 8px; }
.logo-bars { display: flex; flex-direction: column; gap: 2px; }
.bar { width: 24px; height: 4px; background-color: var(--accent-color); }
.bar.short { width: 16px; }
.bar.medium { width: 20px; }

.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 14px; font-weight: 600; letter-spacing: 0.5px; color: var(--text-main); }
.logo-sub { font-size: 12px; color: var(--text-light); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; color: var(--text-main); transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-color); }

.nav-links li { list-style: none; } /* Fix for list dots */

/* Buttons */
.mail-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 8px;
    border-radius: 50%; /* Circular */
    width: 40px; 
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mail-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Mobile Menu */
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; color: var(--text-main); }
.mobile-menu { display: none; padding: 16px 0; border-top: 1px solid var(--border-color); margin-top: 16px; background: var(--nav-bg); }
.mobile-menu a { display: block; padding: 12px 0; font-size: 14px; color: var(--text-main); }

/* --- 4. HERO SECTION --- */
.hero { position: relative; height: 450px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-image: url('images/asset_1.jpg'); background-size: cover; background-position: center; }
.hero-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.4); } /* Darker overlay for better text contrast */

.hero-content {
    position: relative; z-index: 10; height: 100%; display: flex; flex-direction: column;
    justify-content: center; padding: 0 48px; max-width: 1400px; margin: 0 auto;
}
.hero-content h1 { font-size: 42px; font-weight: 700; color: #ffffff; max-width: 400px; line-height: 1.2; margin-bottom: 16px; }
.hero-content p { color: rgba(255, 255, 255, 0.9); font-size: 14px; max-width: 500px; line-height: 1.6; margin-bottom: 24px; }

.btn-primary {
    display: inline-block; background: var(--accent-color); color: #fff; padding: 12px 28px;
    font-size: 14px; font-weight: 500; border-radius: 4px; width: fit-content; transition: background 0.3s;
}
.btn-primary:hover { background: #c9a00a; }

/* --- 5. SECTIONS (Welcome, Services, Why Us) --- */
.welcome, .services, .whyus {
    padding: 64px 0;
    background: var(--bg-color); /* Changed from #fff to variable */
    transition: background-color 0.3s ease;
}

h2 {
    text-align: center; font-size: 28px; font-weight: 300; letter-spacing: 2px;
    margin-bottom: 40px; color: var(--text-main); /* Changed from #222 */
}

/* Welcome Grid */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; max-width: 900px; margin: 0 auto; }
.welcome-grid p, .whyus-text { font-size: 14px; color: var(--text-light); line-height: 1.7; }
.whyus-text { text-align: center; max-width: 700px; margin: 0 auto 48px; }

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; max-width: 1200px; margin: 0 auto; }
.services-col { display: flex; flex-direction: column; gap: 4px; }
.service-img { overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.service-img:hover img { transform: scale(1.05); }
.service-img.square { aspect-ratio: 1 / 1; }
.service-img.tall { aspect-ratio: 3 / 4; }

/* Stats (Why Us) */
.stats { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-number { font-size: 64px; font-weight: 700; color: var(--text-main); line-height: 1; }
.stat-label { font-size: 12px; color: var(--accent-color); font-weight: 500; margin-top: 4px; }
.stat-label span { display: block; line-height: 1.3; }

/* --- 6. TESTIMONIAL --- */
.testimonial { padding: 64px 0; background: var(--testimonial-bg); }
.testimonial .container { text-align: center; max-width: 700px; margin: 0 auto; }
.avatar {
    width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #888, #555);
    margin: 0 auto 24px; display: flex; align-items: center; justify-content: center;
}
.avatar span { color: #fff; font-size: 11px; }
.testimonial p { color: rgba(255, 255, 255, 0.7); font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.dots { display: flex; justify-content: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #666; }
.dot.active { background: var(--accent-color); }

/* --- 7. PLATFORM --- */
.platform { display: flex; min-height: 300px; }
.platform-content {
    flex: 0 0 40%;
    background: var(--bg-color); /* Changed from #fff */
    padding: 48px; display: flex; flex-direction: column; justify-content: center;
}
.platform-content h2 { font-size: 24px; font-weight: 300; letter-spacing: 1px; margin-bottom: 16px; color: var(--text-main); line-height: 1.3; }
.platform-content p { font-size: 14px; color: var(--text-light); line-height: 1.6; }
.platform-image { flex: 0 0 60%; }
.platform-image img { width: 100%; height: 100%; object-fit: cover; min-height: 300px; }

/* --- 8. FOOTER --- */
footer { background: var(--footer-bg); padding: 48px 24px; transition: background 0.3s; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 48px; }
.footer-logo { display: flex; align-items: flex-start; gap: 8px; }
.footer-logo .logo-main { color: #fff; } /* Footer logo always white */
.footer-logo .logo-sub { color: #999; }

.footer-info h4, .footer-newsletter h4 { color: var(--accent-color); font-size: 14px; font-weight: 500; margin-bottom: 16px; }
.footer-info ul { list-style: none; padding: 0; }
.footer-info ul li { margin-bottom: 10px; }
.footer-info ul li a { color: var(--footer-text); font-size: 14px; transition: color 0.3s; text-decoration: none; }
.footer-info ul li a:hover { color: #fff; }

.footer-newsletter h4 { color: #fff; }
.newsletter-form { display: flex; gap: 8px; margin-bottom: 16px; }
.newsletter-form input {
    flex: 1; background: transparent; border: 1px solid #444; padding: 10px 16px;
    color: #fff; font-size: 14px; border-radius: 4px;
}
.newsletter-form input:focus { outline: none; border-color: var(--accent-color); }
.newsletter-form button {
    background: var(--accent-color); border: none; padding: 10px 24px; color: #fff;
    font-size: 14px; border-radius: 4px; cursor: pointer; transition: background 0.3s;
}
.newsletter-form button:hover { background: #c9a00a; }
.social-links { display: flex; gap: 16px; }
.social-links a { color: var(--footer-text); font-size: 14px; transition: color 0.3s; text-decoration: none; }
.social-links a:hover { color: #fff; }

/* --- 9. RESPONSIVE --- */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: block; }
    .mobile-menu:not(.hidden) { display: block; }
    .hero { height: 400px; }
    .hero-content { padding: 0 24px; }
    .hero-content h1 { font-size: 32px; }
    .welcome-grid { grid-template-columns: 1fr; gap: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .stats { gap: 32px; }
    .stat-number { font-size: 48px; }
    .platform { flex-direction: column; }
    .platform-content, .platform-image { flex: none; width: 100%; }
    .footer-container { grid-template-columns: 1fr; gap: 32px; }
}