/* =========================================
   1. VARIABLES & RESET
   ========================================= */
/* Optional (recommended): load fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* Fonts */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;

    /* Color Palette - Emerald + Amber Theme */
    --primary-color: #10b981;
    /* Emerald 500 */
    --primary-light: #34d399;
    /* Emerald 400 */
    --secondary-color: #f59e0b;
    /* Amber 500 */
    --accent-color: #a855f7;
    /* Purple 500 */

    --bg-dark: #0b1220;
    /* Deep navy */
    --bg-darker: #060b16;
    /* Deeper navy */
    --bg-card: #121c2f;
    /* Card surface */

    --text-main: #f8fafc;
    /* Near-white */
    --text-muted: #a3b2c7;
    /* Soft slate */

    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-text: linear-gradient(to right, #34d399, #fbbf24);

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --border-radius: 14px;

    /* Transitions */
    --transition-fast: 0.25s ease;
    --transition-smooth: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Apply fonts globally */
body {
    font-family: var(--font-sans);
    color: var(--text-main);
    background: var(--bg-darker);
}

h1,
h2,
h3,
.display-font {
    font-family: var(--font-display);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #fff;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    display: inline-block;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.highlight-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-top: 2rem;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient-main);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* =========================================
   3. BUTTONS & UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(67, 56, 202, 0.4);
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 56, 202, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-light);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--primary-light);
    color: white;
}

/* =========================================
   4. HEADER & NAV
   ========================================= */
header {
    background-color: rgba(2, 6, 23, 0.95);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo img {
    height: 50px;
    filter: invert(1);
    width: auto;
    display: block;
}

nav ul {
    display: flex;
    gap: 2rem;
}

nav a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    background: radial-gradient(circle at 10% 20%, rgba(67, 56, 202, 0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    z-index: 2;
    animation: fadeUp 1s ease-out;
}

.hero-text h1 {
    margin-bottom: 1.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.stat h3 {
    color: var(--secondary-color);
    font-size: 2rem;
    margin-bottom: 0.2rem;
}

.stat p {
    font-size: 0.9rem;
    margin: 0;
}

.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

/* Pure CSS Abstract Shapes */
.shape-cube {
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg);
    border-radius: 30px;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.shape-ring {
    width: 450px;
    height: 450px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: spin 20s linear infinite;
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-section {
    padding: 100px 0;
    background-color: 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: 2.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: transparent;
}

.service-card:hover::before {
    opacity: 0.1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-list {
    margin-top: 1.5rem;
    list-style: none;
}

.service-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.service-list li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* =========================================
   7. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    padding: 100px 0;
    background: var(--bg-card);
    position: relative;
}

.calc-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--bg-dark);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.calc-input-group {
    margin-bottom: 1.5rem;
}

.calc-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.calc-input-group input,
.calc-input-group select {
    width: 100%;
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-size: 1rem;
}

.calc-input-group input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.calc-result {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: var(--gradient-main);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    color: white;
}

.result-value {
    font-size: 4rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* =========================================
   8. CAMPAIGN REPORT / ANALYTICS
   ========================================= */
.reports-section {
    padding: 100px 0;
}

.report-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.report-text {
    flex: 1;
}

.report-visual {
    flex: 1;
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.graph-bar {
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.graph-fill {
    height: 100%;
    background: var(--gradient-text);
    border-radius: 10px;
    width: 0;
    /* Animated with JS */
    transition: width 2s ease-out;
}

.graph-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

/* =========================================
   9. TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-darker);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 10px;
    right: 20px;
}

.client-info {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-light);
    margin-right: 1rem;
}

.client-details h4 {
    font-size: 1rem;
    margin: 0;
}

.client-details span {
    font-size: 0.8rem;
    color: var(--secondary-color);
}

/* =========================================
   10. CONTACT FORM SECTION
   ========================================= */
.contact-section {
    padding: 100px 0;
    background: url('../map-bg.png') no-repeat center center/cover;
    /* Placeholder logic */
    background-color: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.contact-info {
    background: var(--gradient-main);
    padding: 3rem;
    color: white;
}

.info-item {
    margin-bottom: 2rem;
}

.info-item h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
}

.contact-form-box {
    background: var(--bg-card);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.contact-form-box input,
.contact-form-box textarea,
.contact-form-box select {
    width: 100%;
    padding: 15px;
    background: var(--bg-darker);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    font-family: inherit;
}

.contact-form-box input:focus,
.contact-form-box textarea:focus {
    border-color: var(--secondary-color);
    outline: none;
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background-color: var(--bg-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.legal-links {
    margin-top: 10px;
}

.legal-links a {
    margin: 0 10px;
    color: var(--text-muted);
}

/* =========================================
   12. LEGAL PAGES STYLING
   ========================================= */
.legal-content {
    padding: 150px 0 80px;
}

.legal-box {
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-box h2 {
    color: var(--secondary-color);
    margin-top: 2rem;
    font-size: 1.8rem;
    text-align: left;
}

.legal-box h2::after {
    display: none;
}

.legal-box p,
.legal-box ul {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.legal-box ul {
    list-style: disc;
    padding-left: 2rem;
}

/* =========================================
   13. ANIMATIONS
   ========================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg) translateY(0);
    }

    50% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg) translateY(-20px);
    }

    100% {
        transform: translate(-50%, -50%) rotateX(45deg) rotateY(45deg) translateY(0);
    }
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   14. RESPONSIVE MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }

    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: var(--bg-darker);
        flex-direction: column;
        align-items: center;
        padding-top: 4rem;
        transition: 0.3s ease;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul.show-menu {
        left: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .report-container {
        flex-direction: column;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}