/* ============================================
   TABLE OF CONTENTS
==============================================
  1. CSS Variables & Base Styles
  2. Typography & Common Elements
  3. Layout & Container Styles
  4. Button Styles
  5. Header & Navigation
  6. Mobile Navigation
  7. Dropdown Styles
  8. Hero Section
  9. Services Section
  10. About Section
  11. Mission & Values Section
  12. Contact Section
  13. Footer Section
  14. Animations & Effects
  15. Media Queries
     - Large Devices (991px and below)
     - Medium Devices (768px and below)
     - Small Devices (576px and below)
     - Extra Small Devices (480px and below)
============================================= */

/* ============================================
   1. CSS Variables & Base Styles
============================================= */
:root {
    --primary-color: #3a86ff;
    --secondary-color: #4361ee;
    --accent-color: #f5c542;
    --dark-color: #2b2d42;
    --light-color: #f8f9fa;
    --gray-color: #6c757d;
    --success-color: #06d6a0;
    --white: #ffffff;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base font size for better scaling */
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    padding-top: 200px; /* Match header height */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

/* ============================================
   2. Typography & Common Elements
============================================= */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Prevents extra space below images */
}

/* ============================================
   3. Layout & Container Styles
============================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--gray-color);
    font-size: 18px;
}

/* ============================================
   4. Button Styles
============================================= */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    -webkit-appearance: none; /* Fix for iOS */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary-color);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* ============================================
   5. Header & Navigation
============================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    padding: 0;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.sticky {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 150px;
}

.header .container {
    height: 100%;
    padding: 0 30px;
}

.header-content {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styles */
.logo-text-container {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-image {
    height: 200px;
    width: auto;
    transition: var(--transition);
}

.logo-text {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.dba-text {
    color: var(--accent-color);
    font-size: 16px;
    font-weight: 400;
    margin-top: -2px;
}

.header.sticky .logo-image {
    height: 150px;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-list li {
    margin-left: 14px;
    position: relative;
}

.nav-list a {
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap;
    font-size: 16px;
    padding: 10px 0;
    display: block;
}

.nav-list a.two-words {
    letter-spacing: -0.5px;
}

.header.sticky .nav-list a {
    color: var(--dark-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
    width: 100%;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--accent-color);
}

/* ============================================
   6. Mobile Navigation
============================================= */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    background: transparent;
    border: none;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

.header.sticky .menu-toggle span {
    background-color: var(--dark-color);
}

/* ============================================
   7. Dropdown Styles
============================================= */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.dropdown-icon {
    font-size: 12px;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
    padding: 10px 0;
    list-style: none;
}

.dropdown-menu li {
    margin: 0;
    padding: 0;
}

.dropdown-menu a {
    padding: 10px 20px;
    color: #333;
    display: block;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(58, 134, 255, 0.1);
    color: var(--primary-color);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ============================================
   8. Hero Section
============================================= */
.hero {
    height: 100vh;
    background-image: url('Landingpage_background-logo.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: -200px;
    padding-top: 200px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 700px;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* ============================================
   9. Services Section
============================================= */
.services {
    background-color: var(--white);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    z-index: -1;
    opacity: 0.05;
}

.service-card:hover::before {
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-icon {
    margin-bottom: 20px;
    width: 70px;
    height: 70px;
    background-color: rgba(58, 134, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.service-icon i {
    font-size: 28px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: 600;
}

.service-card p {
    color: var(--gray-color);
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.service-link:hover {
    color: var(--secondary-color);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* ============================================
   10. About Section
============================================= */
.about {
    background-color: #f5f8ff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 400px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
}

.image-placeholder i {
    font-size: 80px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.image-placeholder p {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.feature {
    display: flex;
    margin-bottom: 30px;
}

.feature i {
    font-size: 24px;
    color: var(--success-color);
    margin-right: 20px;
    margin-top: 5px;
}

.feature h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-color);
}

.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* ============================================
   11. Mission & Values Section
============================================= */
.mission-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.mission-box, 
.values-box {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: var(--transition);
}

.mission-box:hover, 
.values-box:hover {
    transform: translateY(-5px);
}

.mission-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(58, 134, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 20px;
}

.mission-icon i {
    font-size: 24px;
    color: var(--primary-color);
}

.mission-box h3, 
.values-box h3,
.our-mission-title,
.our-vision-title,
.our-values-title {
    text-align: center;
    width: 100%;
}

.values-list {
    text-align: left;
    align-self: flex-start;
}

#mission h3,
#vision h3,
.mission-section h3,
.vision-section h3 {
    text-align: center;
    width: 100%;
}

.mission-box h3, 
.values-box h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--dark-color);
}

.mission-box p {
    color: var(--gray-color);
    font-size: 16px;
    line-height: 1.6;
}

.values-header {
    flex-direction: column;
    text-align: center;
    width: 100%;
}

.values-header .mission-icon {
    margin: 0 auto 20px;
}

.values-header h3 {
    margin-bottom: 0;
}

.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.values-list li {
    margin-bottom: 16px;
    position: relative;
    padding-left: 25px;
}

.values-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

.value-title {
    font-weight: 600;
    color: var(--dark-color);
}

.value-desc {
    color: var(--gray-color);
}

/* ============================================
   12. Contact Section
============================================= */
.contact {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact .section-header h2 {
    font-size: 36px;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.contact .section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--white);
    line-height: 1.7;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.contact-info, 
.google-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item div {
    flex-grow: 1;
}

.contact-item h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-item p {
    color: var(--dark-color);
    line-height: 1.7;
    margin: 0;
}

.google-form {
    background-color: var(--white);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.google-form h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.google-form p {
    margin-bottom: 30px;
    color: var(--dark-color);
}

.contact .btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 82, 204, 0.3);
}

.contact .btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.4);
}

.contact .btn i {
    margin-right: 8px;
}

/* ============================================
   13. Footer Section
============================================= */
.footer {
    background-color: var(--dark-color);
    color: var(--light-color);
    padding-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo .logo-text {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.footer h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: var(--light-color);
    transition: var(--transition);
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   14. Animations & Effects
============================================= */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 5px solid rgba(0, 0, 0, 0.1);
    border-top-color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-section {
    opacity: 0;
    transform: translateY(30px);
    visibility: hidden;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s ease-out;
    will-change: opacity, transform, visibility;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.service-card, 
.mission-box, 
.values-box, 
.feature {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    transition-delay: 0s;
}

.fade-in .service-card:nth-child(1),
.fade-in .mission-box:nth-child(1),
.fade-in .feature:nth-child(1) {
    transition-delay: 0.1s;
}

.fade-in .service-card:nth-child(2),
.fade-in .mission-box:nth-child(2),
.fade-in .feature:nth-child(2) {
    transition-delay: 0.2s;
}

.fade-in .service-card:nth-child(3),
.fade-in .mission-box:nth-child(3), 
.fade-in .values-box,
.fade-in .feature:nth-child(3) {
    transition-delay: 0.3s;
}

.fade-in .service-card:nth-child(4),
.fade-in .feature:nth-child(4) {
    transition-delay: 0.4s;
}

.fade-in .feature:nth-child(5) {
    transition-delay: 0.5s;
}

.fade-in .service-card,
.fade-in .mission-box,
.fade-in .values-box,
.fade-in .feature {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   15. Media Queries
============================================= */

/* Large Devices (991px and below) */
@media (max-width: 991px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
    
    .header {
        height: 180px;
    }
    
    .header.sticky {
        height: 130px;
    }

    .dba-text {
        font-size: 12px;
    }
    
    .logo-image {
        height: 180px;
    }
    
    .header.sticky .logo-image {
        height: 130px;
    }
    
    body {
        padding-top: 180px;
    }
    
    .hero {
        margin-top: -180px;
        padding-top: 180px;
    }
    
    .nav-list a {
        font-size: 13px;
    }
    
    .nav-list li {
        margin-left: 12px;
    }
}

/* Medium Devices (768px and below) */
@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .header {
        height: 150px;
    }
    
    .header.sticky {
        height: 100px;
    }

    .logo-text {
        font-size: 24px;
    }
    
    .dba-text {
        font-size: 11px;
    }
    
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo-text-container {
        flex: 0 0 30%;
        order: 1;
    }
    
    .logo-container {
        flex: 0 0 40%;
        order: 2;
    }
    
    .main-nav {
        flex: 0 0 30%;
        order: 3;
    }
    
    .logo-image {
        height: 120px;
    }
    
    .header.sticky .logo-image {
        height: 80px;
    }
    
    .nav-list {
        display: none;
        position: fixed;  /* Changed from absolute to fixed */
        top: 0;  /* Start from top of viewport */
        left: 0;
        width: 100%;
        height: 100vh;  /* Full viewport height */
        background-color: var(--white);
        padding: 80px 20px 30px;  /* Add padding on top for close button */
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 999;
        overflow-y: auto;  /* Allow scrolling if needed */
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-list li {
        margin: 15px 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-list a {
        color: var(--dark-color);
        font-size: 18px;  /* Larger size for better touch targets */
        padding: 12px 0;  /* More padding for touch targets */
    }
    
    /* Mobile dropdown adjustments */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        background-color: rgba(0,0,0,0.05);
        transition: max-height 0.3s ease;
    }
    
    .dropdown:hover .dropdown-menu {
        max-height: 500px;
    }
    
    .dropdown-toggle {
        justify-content: center;
    }
    
    body {
        padding-top: 150px;
    }
    
    .hero {
        margin-top: -150px;
        padding-top: 150px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .mission-content {
        grid-template-columns: 1fr;
    }
}

/* Small Devices (576px and below) */
@media (max-width: 576px) {
    section {
        padding: 50px 0;
    }
    
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .section-header p {
        font-size: 16px;
    }
    
    .service-card, 
    .contact-info, 
    .google-form {
        padding: 25px;
    }
    
    .contact-item {
        flex-direction: column;
    }
    
    .contact-item i {
        margin-bottom: 15px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-icons {
        justify-content: center;
    }
}

/* Extra Small Devices (480px and below) */
@media (max-width: 480px) {
    .header {
        height: 120px;
    }
    
    .header.sticky {
        height: 80px;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .dba-text {
        font-size: 10px;
    }

    .logo-image {
        height: 100px;
    }
    
    .header.sticky .logo-image {
        height: 60px;
    }
    
    body {
        padding-top: 120px;
    }
    
    .hero {
        margin-top: -120px;
        padding-top: 120px;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-icon i {
        font-size: 24px;
    }
    
    .mission-icon {
        width: 50px;
        height: 50px;
    }
    
    .mission-icon i {
        font-size: 20px;
    }
    
    /* Improve touch targets */
    .nav-list a,
    .dropdown-menu a,
    .footer-links a,
    .footer-services a {
        padding: 15px 0;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
    }
}

/* Mobile Navigation Active State */
.menu-active .menu-toggle span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-active .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-active .menu-toggle span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Add focus styles for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}