/* --- START OF FILE styles.css --- */

/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Color Palette - Blue Theme */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --accent-color: #06b6d4;
    /* Cyan */
    --accent-glow: rgba(6, 182, 212, 0.6);

    /* Backgrounds */
    --bg-dark: #020617;
    --bg-card: #0f172a;
    --bg-card-hover: #1e293b;
    --bg-glass: rgba(15, 23, 42, 0.7);

    /* Typography */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dark: #0f172a;

    /* Borders & Lines */
    --border-color: rgba(148, 163, 184, 0.1);
    --border-glow: rgba(37, 99, 235, 0.5);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --section-spacing: 120px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(6, 182, 212, 0.1);
    border-color: transparent;
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 10001;
    background: transparent;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--primary-color);
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: -1px;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
}

h4 {
    font-size: 1.5rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.section-subtitle {
    text-align: center;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* =========================================
   3. UTILITIES & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.section-padding {
    padding: var(--section-spacing) 0;
    position: relative;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.hidden {
    display: none;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-medium);
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background-color: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    /* Ensure logo is white */
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: var(--text-muted);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition-medium);
}

.nav-link:hover {
    color: var(--text-main);
}

.nav-link:hover::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-main);
    margin: 5px 0;
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-medium);
}

.mobile-menu.active {
    right: 0;
}

.mobile-nav-links {
    text-align: center;
}

.mobile-nav-links li {
    margin: 20px 0;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-medium);
}

.mobile-menu.active .mobile-nav-links li {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

/* =========================================
   5. BUTTONS & UI ELEMENTS
   ========================================= */
.btn-glow {
    position: relative;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 600;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-medium);
    cursor: pointer;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-medium);
}

.btn-glow:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    transform: translateY(-2px);
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 16px 36px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-medium);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

/* =========================================
   6. HERO SECTION
   ========================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: var(--accent-color);
    bottom: -150px;
    left: -150px;
    animation-delay: -5s;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 2;
}

.hero-tag {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: inline-block;
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* 3D Grid Floor Animation */
.grid-floor {
    position: absolute;
    bottom: -20%;
    left: -50%;
    width: 200%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    opacity: 0.2;
    z-index: -2;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* =========================================
   7. SERVICES SECTION
   ========================================= */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 16px;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
    group: hover;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 25px;
    display: inline-block;
    transition: var(--transition-medium);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--primary-light);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-link {
    margin-top: 20px;
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
}

.service-link i {
    margin-left: 5px;
    transition: var(--transition-fast);
}

.service-card:hover .service-link i {
    transform: translateX(5px);
}

/* =========================================
   8. CALCULATOR SECTION
   ========================================= */
.calculator-wrapper {
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border-radius: 24px;
    padding: 50px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
}

.range-group {
    margin-bottom: 30px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.range-header label {
    font-weight: 600;
    color: var(--text-main);
}

.range-value {
    color: var(--accent-color);
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: var(--bg-card);
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.5);
    transition: var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-result-box {
    background: var(--bg-dark);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--border-glow);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-title {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 10px;
}

.result-amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px var(--primary-color);
    margin-bottom: 20px;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonial-card {
    background: var(--bg-card);
    padding: 35px;
    border-radius: 16px;
    border-left: 4px solid var(--accent-color);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-dark);
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* =========================================
   10. LEGAL & CONTENT PAGES
   ========================================= */
.legal-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    margin-top: 2.5rem;
    color: var(--accent-color);
}

.legal-content p,
.legal-content li {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 1.5rem;
}

/* =========================================
   11. CONTACT PAGE
   ========================================= */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.contact-form-group {
    margin-bottom: 25px;
}

.contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.contact-form-group input,
.contact-form-group select,
.contact-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

.contact-form-group input:focus,
.contact-form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

/* =========================================
   12. FOOTER
   ========================================= */
.main-footer {
    background: #02040a;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    margin-top: 100px;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 35px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer-col h3 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: white;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.contact-col li {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
}

.contact-col i {
    color: var(--accent-color);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-medium);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-muted);
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-legal a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, -20px);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   14. RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 1024px) {

    .grid-4,
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .calc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .header-right .btn-glow {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-legal a {
        margin: 0 10px;
    }

    .col-half {
        width: 100% !important;
        margin-bottom: 40px;
    }
}

/* --- END OF FILE styles.css --- */