/* ================= CSS VARIABLES (Color Palette) ================= */
:root {
    --primary-color: #0f4c81; /* Deep Trust Blue */
    --secondary-color: #00a8cc; /* Vibrant Teal */
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

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

a {
    text-decoration: none;
    color: var(--text-dark);
}

ul {
    list-style: none;
}

.container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 4rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 1.5rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ================= HEADER & NAVIGATION ================= */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Update header height */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
}
/* Container for Image and Text */
.logo {
    display: flex;
    align-items: center; /* This keeps them perfectly centered to each other */
    gap: 15px; 
    text-decoration: none;
}

/* The Square DS Image - Increased to 80px to match text block height */
.logo-img {
    height: 80px; 
    width: auto;
    object-fit: contain;
    display: block;
}

/* Stacks the Text and Tagline vertically */
.logo-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

/* The word "Edutrak" */
.logo-name {
    font-size: 2.5rem; 
    font-weight: 800;  
    color: var(--text-dark);
    line-height: 0.85; /* Pulls text extremely tight to eliminate top invisible padding */
}

/* The Tagline below */
.logo-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-top: 8px; /* Correct spacing between the big text and tagline */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
}.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-ds {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.mobile-menu-btn {
    display: none; /* Hidden on desktop */
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* ================= HOME PAGE STYLES ================= */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a75ff 100%);
    color: var(--white);
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #e6f0ff;
}

.hero p {
    max-width: 800px;
    margin: 0 auto 1.5rem auto;
    font-size: 1.05rem;
    opacity: 0.9;
}

.hero .btn {
    margin-top: 1rem;
}

/* Grids */
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* Cards */
.card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-top: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.custom-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.custom-list i {
    color: var(--secondary-color);
    margin-top: 5px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-weight: 600;
    gap: 10px;
}

.feature-item i {
    font-size: 2rem;
    color: var(--secondary-color);
}

/* ================= INTERNAL PAGES (Services & Contact) ================= */
.page-header {
    background-color: var(--bg-light);
    padding: 4rem 0;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
}

.page-header h1 {
    color: var(--primary-color);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid #eee;
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.service-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.custom-dev {
    background: var(--primary-color);
    color: var(--white);
}

.custom-dev h3, .custom-dev .service-icon {
    color: var(--white);
}

/* Tags */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.tag {
    background: rgba(0, 168, 204, 0.1);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
}

/* Contact Info & Form Placeholder */
.info-block {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-block h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-placeholder {
    background: var(--bg-light);
    border: 2px dashed #ccc;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1.2rem;
}

.form-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ccc;
}

/* ================= FOOTER ================= */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

/* ================= IFRAME & OVERFLOW FIX ================= */
html, body {
    overflow-x: hidden; /* This absolutely prevents the footer cut-off! */
    width: 100%;
}

.contact-form-container iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

/* ================= MOBILE RESPONSIVENESS ================= */
@media (max-width: 768px) {
    .grid-2-col, .features-grid, .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    /* ---- HEADER LOGO SCALED FOR MOBILE ---- */
    .header-container {
        justify-content: flex-start; /* Align everything to the left side */
        padding: 0 10px;
    }

    .mobile-menu-btn {
        display: block;
        order: -1; /* MAGIC CSS: Forces the menu button to the extreme left! */
        margin-right: 15px; /* Adds space between menu and logo */
    }

    /* Scales down logo only on phones so tagline doesn't break into two lines */
    .logo-img {
        height: 50px; 
    }
    
    .logo-name {
        font-size: 1.5rem; 
    }
    
    .logo-tagline {
        font-size: 0.55rem;
        margin-top: 3px;
    }

    /* ---- MOBILE DROPDOWN MENU ---- */
    #nav-menu {
        position: absolute;
        top: 90px; /* Matches the new header height */
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: -1;
    }
    
    #nav-menu.active {
        transform: translateY(0);
    }
    
    .nav-links {
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
    }
    
    .nav-links li {
        text-align: center;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem;
    }
}