/* =========================================
   1. RESET & VARIABLES
   ========================================= */
:root {
    /* Brand Colors */
    --primary-color: #10b981;
    /* Emerald 500 */
    --primary-light: #34d399;
    /* Emerald 400 */
    --secondary-color: #f59e0b;
    /* Amber 500 */
    --accent-color: #06b6d4;
    /* Cyan 500 */

    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-hover: linear-gradient(135deg, var(--secondary-color), var(--primary-color));

    /* Backgrounds */
    --bg-body: #f7fafc;
    /* Soft off-white */
    --bg-white: #ffffff;
    --bg-light: #ecfeff;
    /* Very light cyan tint */

    /* Text */
    --text-dark: #0f172a;
    /* Slate 900 */
    --text-gray: #475569;
    /* Slate 600 */
    --text-light: #94a3b8;
    /* Slate 400 */

    /* Spacing & Layout */
    --container-width: 1280px;
    --header-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 30px;

    /* Shadows */
    --shadow-sm: 0 4px 10px -6px rgba(2, 6, 23, 0.12);
    --shadow-card: 0 22px 30px -14px rgba(2, 6, 23, 0.12), 0 10px 12px -10px rgba(2, 6, 23, 0.06);
    --shadow-float: 0 26px 60px -18px rgba(16, 185, 129, 0.28);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. TYPOGRAPHY
   ========================================= */
h1,
h2,
h3,
h4,
h5 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 2.75rem;
    text-align: center;
    letter-spacing: -1px;
    text-align: start;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(67, 56, 202, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   3. LAYOUT UTILITIES
   ========================================= */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 10px 20px rgba(67, 56, 202, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hover);
    z-index: -1;
    transition: opacity 0.3s;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(236, 72, 153, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid rgba(67, 56, 202, 0.1);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

/* =========================================
   4. HEADER
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: 0.3s;
}

.header-inner {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    font-weight: 500;
    color: var(--text-dark);
    position: relative;
    padding: 5px 0;
}

.nav-item::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.3s;
}

.nav-item:hover::before,
.nav-item.active::before {
    width: 100%;
}

.mobile-burger {
    display: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 10% 20%, rgba(236, 72, 153, 0.05) 0%, rgba(255, 255, 255, 0) 90%);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-text h1 span {
    display: block;
    color: var(--primary-color);
}

.hero-badges {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.badge {
    background: white;
    padding: 8px 15px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.badge i {
    color: var(--secondary-color);
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-visual {
    position: relative;
    height: 500px;
}

/* Abstract blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    animation: float 10s infinite alternate;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.2);
    top: 0;
    right: 0;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: rgba(236, 72, 153, 0.2);
    bottom: 0;
    left: 20px;
    animation-delay: 2s;
}

.hero-card {
    position: absolute;
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-float);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: moveUp 3s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
    z-index: 2;
}

.hc-1 {
    top: 20%;
    right: 10%;
}

.hc-2 {
    bottom: 20%;
    left: 10%;
    animation-delay: 1.5s;
}

.hc-main {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================
   6. SERVICES (Tabbed Interface)
   ========================================= */
.services-section {
    background: white;
    clip-path: polygon(0 5%, 100% 0, 100% 95%, 0 100%);
    padding: 150px 0;
}

.tab-container {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
    background: var(--bg-body);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.tab-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tab-btn {
    padding: 20px;
    text-align: left;
    background: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    color: var(--text-gray);
    transition: 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 10px 20px rgba(67, 56, 202, 0.2);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.service-detail h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--secondary-color);
}

/* =========================================
   7. INTERACTIVE CALCULATOR
   ========================================= */
.calculator-section {
    background: var(--bg-light);
    padding-bottom: 120px;
}

.calc-box {
    background: white;
    border-radius: var(--radius-lg);
    padding: 50px;
    box-shadow: var(--shadow-card);
    max-width: 900px;
    margin: 50px auto 0;
    position: relative;
    overflow: hidden;
}

.calc-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-main);
}

.range-wrap {
    margin-bottom: 40px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-weight: 600;
}

.range-val {
    color: var(--primary-color);
    font-size: 1.2rem;
}

input[type=range] {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 5px;
    outline: none;
    -webkit-appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 0 5px rgba(67, 56, 202, 0.2);
}

.calc-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.stat-box h4 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

/* =========================================
   8. TESTIMONIALS (Masonry)
   ========================================= */
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.review-card {
    background: white;
    padding: 35px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: 0.3s;
    border-top: 4px solid transparent;
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
    border-color: var(--secondary-color);
}

.stars {
    color: #f59e0b;
    margin-bottom: 15px;
}

.reviewer {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.reviewer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* =========================================
   9. CONTACT FORM
   ========================================= */
.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.contact-visual {
    background: var(--gradient-main);
    padding: 60px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.contact-visual p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-visual h3 {
    color: white;
}

.contact-visual ul li {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-visual i {
    background: rgba(255, 255, 255, 0.2);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-form-area {
    padding: 60px;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

textarea.form-input {
    height: 150px;
    resize: vertical;
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: var(--text-dark);
    color: white;
    padding-top: 80px;
    margin-top: 50px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 20px;
}

.footer-col h4 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.footer-col a {
    color: #cbd5e1;
    display: block;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-bottom {
    padding: 30px 0;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   11. LEGAL PAGES STYLING
   ========================================= */
.legal-wrapper {
    background: white;
    padding: 60px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 60px;
}

.legal-wrapper h3 {
    color: var(--primary-color);
    margin-top: 30px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
}

.legal-wrapper ul {
    padding-left: 20px;
    list-style: disc;
    margin-bottom: 20px;
    color: var(--text-gray);
}

/* =========================================
   12. ANIMATIONS
   ========================================= */
@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(20px, 40px);
    }
}

@keyframes moveUp {
    0% {
        transform: translate(-50%, -50%);
    }

    100% {
        transform: translate(-50%, -60%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   13. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .tab-container {
        grid-template-columns: 1fr;
    }

    .tab-nav {
        flex-direction: row;
        overflow-x: auto;
    }

    .tab-btn {
        min-width: 200px;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.8rem;
    }

    .nav-links {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: 0.4s;
    }

    .nav-links.active {
        left: 0;
    }

    .mobile-burger {
        display: block;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        text-align: center;
    }
}