/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables --- */
:root {
    --bg-dark: #0D1117;
    --bg-medium: #161B22;
    --border-color: #30363D;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --accent-blue: #3B82F6;
    --accent-blue-hover: #60A5FA;
    --font-main: 'Inter', sans-serif;
}

/* --- Global Reset & Base Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1140px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

/* --- Utility Classes --- */
.subtitle {
    display: block;
    color: var(--accent-blue);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.lead {
    font-size: 1.15rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

.cta-button {
    display: inline-block;
    background: var(--accent-blue);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: var(--accent-blue-hover);
    transform: translateY(-3px);
}

.cta-button-outline {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cta-button-outline:hover {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

/* Scroll Animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Header & Navigation --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

#main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link img {
    height: 70px;
    filter:invert(1);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-primary);
    position: relative;
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-cta {
    display: block;
}

/* Hamburger Menu */
#hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

#hamburger-btn .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.4s ease-in-out;
}

/* --- Hero Section --- */
#hero {
    padding-top: 180px;
    padding-bottom: 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#hero::before {
    /* Aurora effect */
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0) 60%);
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
}

/* --- Services Section --- */
.services-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.service-card-home {
    background-color: var(--bg-medium);
    padding: 2.5rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.service-card-home:hover {
    transform: translateY(-8px);
    border-color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.service-card-home i {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

.service-card-home h3 {
    margin-bottom: 0.5rem;
}

/* --- Stats Section --- */
#stats {
    background-color: var(--bg-medium);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item .stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-blue);
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* --- Process Section --- */
.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}

.process-step {
    text-align: center;
    padding: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin: 0 auto 1.5rem;
    color: var(--accent-blue);
}

.process-step h3 {
    font-size: 1.25rem;
}

/* --- Final CTA Section --- */
.cta-box {
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4rem;
}

.cta-box p {
    margin-bottom: 2rem;
}

/* --- Sub-Page Header --- */
.sub-page-header {
    padding: 160px 0 80px;
}

.sub-page-header h1 {
    font-size: 3.5rem;
}

/* --- Legal Content Pages --- */
.legal-content .container {
    max-width: 800px;
}

.legal-content h2 {
    margin-top: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-content ul {
    padding-left: 20px;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content strong {
    color: var(--text-primary);
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    background-color: var(--bg-medium);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.contact-info-wrapper h3,
.contact-form-wrapper h3 {
    margin-bottom: 2rem;
}

.contact-item h4 {
    color: var(--accent-blue);
}

.contact-item p {
    margin-bottom: 1.5rem;
}

/* --- Footer --- */
#main-footer {
    padding-top: 50px;
    background: var(--bg-medium);
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 3rem;
}


.footer-col h4 {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a,
.footer-col p,
.footer-col li {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    #hero h1 {
        font-size: 3.2rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .services-grid-home,
    .stats-grid,
    .process-steps-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        margin-bottom: 2rem;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--bg-medium);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
        transition: right 0.4s ease-in-out;
        padding-top: 100px;
    }

    #main-nav.is-open {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 2.5rem;
    }

    .nav-link {
        font-size: 1.2rem;
    }

    #hamburger-btn {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .cta-box {
        padding: 2.5rem;
    }

    #hamburger-btn.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    #hamburger-btn.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    #hamburger-btn.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    #footer-brand img {
        margin: 0 auto 1rem;
    }
}