:root {
    --primary: #2563eb; /* Modern Blue */
    --dark: #1f2937;
    --light: #f9fafb;
    --text: #4b5563;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--light);
}

.container { max-width: 1100px; margin: auto; padding: 0 2rem; }

/* Navbar */
.navbar {
    background: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.navbar .container { display: flex; justify-content: space-between; align-items: center; }
/* Container for logo + text */
.logo-group {
    display: flex;
    align-items: center; /* Centers logo and text vertically */
    text-decoration: none;
    gap: 10px; /* Space between logo and "Delcom" */
}

/* The Logo Image */
.brand-logo {
    width: 35px;        /* Adjust this to match your font height */
    height: 35px;
    object-fit: contain; /* Prevents stretching */
    display: block;
}

/* The Text Style */
.logo-text {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-text span {
    color: var(--primary); /* The "Digitals" part in blue */
}

/* Mobile Responsive adjustment */
@media (max-width: 480px) {
    .brand-logo {
        width: 30px;
        height: 30px;
    }
    .logo-text {
        font-size: 1.2rem;
    }
}
.nav-links { list-style: none; display: flex; gap: 20px; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 400; }

/* Hero Section */
.hero { text-align: center; padding: 4rem 1rem; background: white; }
.hero h1 { font-size: 2.5rem; color: var(--dark); margin-bottom: 1rem; }

/* App Grid */
.app-grid {
    display: grid;
    /* This creates as many columns as will fit, at least 300px wide each */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 40px 0;
}

.app-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.app-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

/* The wrapper div */
.app-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px; /* Centers the icon and adds space below */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* The actual image inside the div */
.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensures the whole icon is visible */
    border-radius: 18px; /* Standard Play Store rounded corners */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* About Page Specific Styles */
.about-hero {
    text-align: center;
    padding: 60px 0;
}

.highlight { color: var(--primary); }

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border-bottom: 4px solid var(--primary);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--dark);
}

.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: #eef2ff;
    border-radius: 16px;
    margin-top: 40px;
}

/* Legal Pages Styling */
.legal-page {
    padding: 60px 20px;
    max-width: 800px; /* Narrower width for better readability */
    margin: auto;
}

.legal-page h1 {
    font-size: 2.5rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.last-updated {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.legal-section {
    margin-bottom: 30px;
    scroll-margin-top: 100px;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.8;
}

.alert {
    background: #fff7ed;
    border-left: 4px solid #f97316;
    padding: 20px;
    font-weight: 600;
    color: #9a3412 !important;
    font-size: 0.95rem;
}


/* Table of Contents Styling */
.toc-container {
    background: #f3f4f6;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e5e7eb;
}

.toc-container h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.toc-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.toc-list a {
    text-decoration: none;
    color: var(--primary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--dark);
    text-decoration: underline;
}

/* Smooth Scrolling - This makes the jump feel professional */
html {
    scroll-behavior: smooth;
}

/* 404 Error Page Styling */
.error-page {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: var(--primary); /* Your Delcom Blue */
    margin: 0;
    line-height: 1;
}

.error-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--dark);
}

.error-content p {
    margin-bottom: 30px;
    color: #666;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Make sure buttons look consistent with your site */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}


/* Responsive fix for vision columns */
@media (max-width: 768px) {
    .vision-mission { grid-template-columns: 1fr; }
}

.btn-playstore {
    display: inline-block; margin-top: 1.5rem; padding: 0.8rem 1.5rem;
    background: var(--dark); color: white; text-decoration: none; border-radius: 6px;
}


/* Footer */
footer {
    background: var(--dark); color: white;
    text-align: center; padding: 3rem 0; margin-top: 4rem;
}

.footer-links {
    list-style: none; display: flex; justify-content: center;
    gap: 15px; margin-top: 1rem; flex-wrap: wrap;
}

.footer-links a { color: #9ca3af; text-decoration: none; font-size: 0.9rem; }