/* ==========================================================================
   1. CSS VARIABLES & GLOBAL SETTINGS
   ========================================================================== */

:root {
    /* Colors */
    --primary-color: #2563EB;
    /* Bright Royal Blue */
    --primary-dark: #1E40AF;
    --secondary-color: #0F172A;
    /* Slate 900 */
    --accent-color: #38BDF8;
    /* Sky Blue */
    --text-color: #334155;
    /* Slate 700 */
    --light-text: #94A3B8;
    --bg-color: #F8FAFC;
    /* Slate 50 */
    --white: #FFFFFF;
    --border-color: #E2E8F0;

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Effects */
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   2. BASE RESET & TYPOGRAPHY
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Typography Rules */
h1,
h2,
h3,
h4 {
    color: var(--secondary-color);
    font-weight: 700;
    line-height: 1.2;
}

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

h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.center {
    text-align: center;
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   3. UI COMPONENTS (Buttons, Cards, Icons)
   ========================================================================== */

/* Buttons */
.btn-primary,
.btn-outline {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--border-color);
    margin-left: 10px;
}

.btn-outline:hover {
    border-color: var(--secondary-color);
    background-color: var(--secondary-color);
    color: var(--white);
}

/* Cards & Icons */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.icon-box {
    width: 50px;
    height: 50px;
    background-color: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   4. LAYOUT COMPONENTS (Header, Footer)
   ========================================================================== */

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-list a {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.nav-list .btn-primary {
    color: var(--white);
    padding: 0.5rem 1.25rem;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary-color);
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}

.mobile-menu-toggle i {
    width: 24px;
    height: 24px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: var(--primary-color);
}

.footer-copyright {
    color: var(--light-text);
    font-size: 0.8rem;
}

/* ==========================================================================
   5. PAGE SECTIONS
   ========================================================================== */

.section {
    padding: 80px 0;
}

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

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-color);
}

.hero-container-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 100%;
}

.hero-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite;
}

.hero-bg-accent {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(248, 250, 252, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

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

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.1));
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info>p:first-of-type {
    margin-bottom: 0.25rem;
}

.contact-info>p:nth-of-type(2) {
    margin-bottom: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item i {
    color: var(--primary-color);
    margin-top: 5px;
}

.info-item p {
    margin-bottom: 0.25rem;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--secondary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   6. ANIMATIONS
   ========================================================================== */

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   7. RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 992px) {
    h1 {
        font-size: 2.5rem;
    }

    .header-container {
        padding: 0 20px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        z-index: 999;
        visibility: hidden;
    }

    .nav.active {
        transform: translateY(0);
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero {
        padding: 120px 0 60px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-container-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        max-width: 80%;
        margin: 0 auto;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .btn-outline {
        margin-left: 0;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}