/* ==========================================================================
   Table of Contents:
   1. Variables & Base Styles
   2. Layout & Containers
   3. Header & Navigation
   4. Hero Section
   5. Introduction Section
   6. About Section
   7. Services Section
   8. Clients Section
   9. Why Choose Us Section
   10. Contact Section
   11. Footer
   12. Utilities & Animations
   13. Media Queries
   ========================================================================== */

/* ==========================================================================
   1. 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;
}

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 */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* ==========================================================================
   2. Layout & Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    color: black;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    color: black;
}

.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;
}

/* ==========================================================================
   3. Header & Navigation
   ========================================================================== */
/* Preloader */
.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); }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px; /* Increased to accommodate larger logo */
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
}

.header.sticky {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    height: 150px; /* Increased sticky height */
}

.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;
}

/* Puts DBA below ArcaneDX */
.text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.header.sticky .logo-image {
    height: 150px;
}

/* Navigation Styles */
.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; /* Reduced space to fit all items */
}

.nav-list a {
    color: var(--accent-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    white-space: nowrap; /* Keep text in one line */
    font-size: 16px; /* Slightly smaller font to fit all items */
}

.nav-list a.two-words {
    letter-spacing: -0.5px; /* Tighten letter spacing for multi-word items */
}

.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);
}

/* Dropdown specific styling */
.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 */
.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);
}

/* Show dropdown on hover - for desktop */
@media (min-width: 769px) {
    .dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown:hover .dropdown-icon {
        transform: rotate(180deg);
    }
}

/* Toggle Menu for Mobile */
.menu-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 5px 0;
    transition: var(--transition);
}

.header.sticky .menu-toggle span {
    background-color: var(--dark-color);
}

/* Body adjustments for fixed header */
.hero {
    margin-top: -200px; /* Match header height */
    padding-top: 200px; /* Match header height */
}

/* ==========================================================================
   4. Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    background-image: url('intro.jpg'); /* Replace with your image */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
}

.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;
}

/* ==========================================================================
   5. Introduction Section
   ========================================================================== */
.intro-section {
    background-color: var(--white);
    padding: 80px 0;
    position: relative;
}

.intro-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-heading {
    color: var(--primary-color, #2c3e50);
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
}

.intro-divider {
    height: 3px;
    width: 80px;
    background-color: var(--accent-color, #3498db);
    margin: 0 auto 30px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--gray-color);
    margin-bottom: 30px;
}

.intro-cta {
    margin-top: 30px;
}

.intro-button {
    display: inline-block;
    background-color: var(--accent-color, #3498db);
    color: white;
    font-weight: 500;
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.intro-button:hover {
    background-color: var(--accent-dark, #2980b9);
}

/* ==========================================================================
   6. About Section
   ========================================================================== */
.about {
    background-color: #f5f8ff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
}

.team-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.about-text {
    color: var(--dark-color);
}

.about-text .lead-text {
    font-size: 18px;
    margin-bottom: 30px;
    color: var(--gray-color);
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.feature {
    display: flex;
    margin-bottom: 25px;
}

.feature i {
    font-size: 24px;
    color: var(--success-color);
    margin-right: 20px;
    margin-top: 5px;
}

.feature h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
}

.feature p {
    color: var(--gray-color);
}

/* ==========================================================================
   7. Services Section
   ========================================================================== */
.services {
    background-color: #f8f9fa;
    padding: 80px 0;
}

/* Services Tabs Navigation */
.services-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 10px;
}

.tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 220px;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.tab i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab span {
    font-weight: 500;
    font-size: 14px;
    color: #6c757d;
    transition: all 0.3s ease;
}

.tab:hover {
    transform: translateY(-5px);
}

.tab.active {
    background-color: #3a86ff;
}

.tab.active i,
.tab.active span {
    color: #fff;
}

/* Services Content Panels */
.services-content {
    margin-top: 40px;
}

.service-panel {
    display: none;
    background-color: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.service-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.service-detail {
    display: flex;
    flex-direction: column;
}

.service-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-panel:hover .service-image img {
    transform: scale(1.05);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2b2d42;
    margin-bottom: 15px;
}

.service-intro {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-features {
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    margin-bottom: 15px;
}

.feature-icon {
    flex-shrink: 0;
    margin-right: 15px;
    color: #06d6a0;
    font-size: 18px;
}

.feature-content {
    flex: 1;
}

.feature-content strong {
    color: #3a86ff;
    font-weight: 600;
}

.service-cta {
    display: inline-block;
    padding: 12px 25px;
    background-color: #3a86ff;
    color: #fff;
    font-weight: 500;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.service-cta:hover {
    background-color: #4361ee;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* ==========================================================================
   8. Clients Section
   ========================================================================== */
.clients {
    background-color: #f5f8ff;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.client-card {
    background-color: var(--white);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
}

.client-card:hover {
    transform: translateY(-10px);
}

.client-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(58, 134, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.client-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.client-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.client-card p {
    color: var(--gray-color);
}

/* ==========================================================================
   9. Why Choose Us Section
   ========================================================================== */
.why-us {
    background-color: var(--white);
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.why-us-card {
    background-color: #f5f8ff;
    border-radius: 10px;
    padding: 30px;
    position: relative;
    transition: var(--transition);
}

.why-us-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.why-us-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 36px;
    font-weight: 700;
    color: rgba(58, 134, 255, 0.2);
}

.why-us-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    margin-top: 20px;
}

.why-us-card p {
    color: var(--gray-color);
}

/* ==========================================================================
   10. 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-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);
}

.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);
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 82, 204, 0.4);
}

.btn i {
    margin-right: 8px;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */
.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;
    display: block;
}

.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);
}

/* ==========================================================================
   12. Utilities & Animations
   ========================================================================== */
.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);
}

/* ==========================================================================
   13. Media Queries
   ========================================================================== */
/* Large devices (desktops) */
@media (max-width: 1199px) {
    /* Styles for large devices */
}

/* Medium devices (tablets) */
@media (max-width: 992px) {
    .header {
        height: 180px;
    }
    
    .header.sticky {
        height: 130px;
    }
    
    .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;
    }
    
    .about-content,
    .contact-content,
    .resources-content {
        grid-template-columns: 1fr;
    }
    
    .about-image {
        order: -1;
    }
}

/* Small devices (landscape phones) */
@media (max-width: 768px) {
    .header {
        height: 150px;
    }
    
    .header.sticky {
        height: 100px;
    }
    
    .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;
    }
    
    /* Mobile Navigation */
    .menu-toggle {
        display: block;
    }
    
    .nav-list {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 100px 30px 30px;
        z-index: 1000;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-list.active {
        right: 0;
        display: flex;
    }
    
    .nav-list li {
        margin: 15px 0;
        width: 100%;
    }
    
    .nav-list a {
        color: var(--dark-color);
        font-size: 16px;
        width: 100%;
        display: block;
    }
    
    /* Mobile dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        min-width: 100%;
        transform: none;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s linear 0.3s;
    }
    
    .dropdown.active .dropdown-menu {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        padding: 10px 0;
        transition: max-height 0.3s ease, opacity 0.3s ease, visibility 0s linear 0s;
    }
    
    .dropdown-menu li {
        padding-left: 15px;
    }
    
    .dropdown-menu a {
        padding: 8px 15px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: space-between;
    }
    
    .dropdown-icon {
        transition: transform 0.3s ease;
    }
    
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
    
    /* Other mobile styles */
    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,
    .clients-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .services-tabs {
        flex-wrap: wrap;
    }
    
    .tab {
        width: calc(50% - 10px);
    }
}

/* Extra small devices (portrait phones) */
@media (max-width: 576px) {
    .header {
        height: 120px;
    }
    
    .header.sticky {
        height: 80px;
    }
    
    .logo-image {
        height: 100px;
    }
    
    .header.sticky .logo-image {
        height: 60px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    body {
        padding-top: 120px;
    }
    
    .hero {
        margin-top: -120px;
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .service-grid,
    .clients-grid,
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    
    .tab {
        width: 100%;
    }
    
    section {
        padding: 60px 0;
    }
}