/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --text-dark: #334155;
    --white: #ffffff;
    --gradient-main: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-hover: linear-gradient(135deg, #1e40af 0%, #0891b2 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
    --shadow-neon: 0 0 15px rgba(37, 99, 235, 0.5);
    --font-main: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.5px;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.section-title span {
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

/* =========================================
   3. COMPONENTS
   ========================================= */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: var(--white);
    box-shadow: var(--shadow-neon);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: var(--gradient-hover);
    transition: var(--transition);
    z-index: -1;
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* =========================================
   4. HEADER & NAVIGATION
   ========================================= */
.main-header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: brightness(1) invert(0);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--white);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    animation: fadeUp 1s ease-out;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat-item h4 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0;
}

.stat-item p {
    font-size: 0.875rem;
    margin-bottom: 0;
}

.hero-visual {
    position: relative;
}

.dashboard-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    position: relative;
}

/* Floating Elements */
.float-icon {
    position: absolute;
    background: var(--bg-card);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--secondary-color);
    animation: pulse 3s infinite;
}

.f-1 {
    top: -20px;
    right: -20px;
}

.f-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 1.5s;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services {
    padding: 100px 0;
    background: var(--bg-darker);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-neon);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-main);
    color: var(--white);
    transform: rotateY(360deg);
}

/* =========================================
   7. INTERACTIVE FEATURES (Calculator)
   ========================================= */
.interactive-section {
    padding: 100px 0;
    background: radial-gradient(circle at top right, #1e3a8a 0%, #0f172a 40%);
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.calc-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-input {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--white);
    margin-bottom: 1.5rem;
    font-family: inherit;
}

.calc-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.result-box {
    background: var(--bg-dark);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    border: 1px solid var(--secondary-color);
}

.result-value {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin: 1rem 0;
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials {
    padding: 100px 0;
    position: relative;
}

.testimonial-wrapper {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding-bottom: 2rem;
    scroll-snap-type: x mandatory;
}

.testimonial-wrapper::-webkit-scrollbar {
    height: 8px;
}

.testimonial-wrapper::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

.review-card {
    min-width: 350px;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    scroll-snap-align: start;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stars {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* =========================================
   9. CONTACT PAGE STYLES
   ========================================= */
.contact-section {
    padding: 180px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
}

.contact-info-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    margin-bottom: 2rem;
    border-left: 4px solid var(--secondary-color);
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 20px;
}

.form-group {
    margin-bottom: 1.5rem;
}

textarea.calc-input {
    resize: vertical;
    min-height: 150px;
}

/* =========================================
   10. LEGAL PAGES
   ========================================= */
.legal-section {
    padding: 180px 0 100px;
    max-width: 800px;
    margin: 0 auto;
}

.legal-content {
    background: var(--bg-card);
    padding: 4rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-content h2 {
    margin-top: 2rem;
    color: var(--secondary-color);
}

.legal-content ul {
    list-style: disc;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

/* =========================================
   11. FOOTER
   ========================================= */
.main-footer {
    background: var(--bg-darker);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.875rem;
}

/* =========================================
   12. ANIMATIONS & MEDIA QUERIES
   ========================================= */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(6, 182, 212, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {

    .hero-grid,
    .contact-grid,
    .tool-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero {
        text-align: center;
        padding-top: 140px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    /* Simplify for mobile */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        transform: translateY(-150%);
        transition: 0.4s;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .legal-content {
        padding: 2rem;
    }
}