/* ==========================================================================
   1. VARIABLES & RESET
   ========================================================================== */
:root {
    /* Brand Colors */
    --clr-primary: #fb7185;
    /* Coral/Rose */
    --clr-primary-dark: #e11d48;
    /* Deep Rose */
    --clr-dark: #1a0b12;
    /* Warm charcoal */
    --clr-darker: #0b0508;
    /* Near black */
    --clr-light: #fff1f2;
    /* Soft rose white */
    --clr-white: #ffffff;
    --clr-gray: #9ca3af;
    /* Neutral gray */

    /* Typography */
    --font-main: 'Manrope', 'Segoe UI', sans-serif;
    --font-display: 'Clash Display', 'Arial Black', sans-serif;

    /* Layout */
    --container-max: 1280px;
    --header-height: 90px;

    /* Animation Easing */
    --ease-out-quint: cubic-bezier(0.23, 1, 0.32, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}


*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hiding default cursor for custom one */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--clr-white);
    color: var(--clr-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* 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(--clr-primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--clr-primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hover state for cursor */
body.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(37, 99, 235, 0.1);
    border-color: transparent;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    color: var(--clr-dark);
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--clr-gray);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 65ch;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* Utilities */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 120px 0;
}

.bg-dark {
    background-color: var(--clr-dark);
    color: var(--clr-white);
}

.bg-dark h2,
.bg-dark p {
    color: var(--clr-white);
}

.bg-light {
    background-color: var(--clr-light);
}

.text-center {
    text-align: center;
}

.d-flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.grid {
    display: grid;
    gap: 30px;
}

/* ==========================================================================
   2. BUTTONS & UI ELEMENTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.4s var(--ease-out-quint);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--clr-dark);
    transition: all 0.4s var(--ease-out-quint);
    z-index: -1;
}

.btn-primary:hover::after {
    height: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background-color: var(--clr-primary);
    color: var(--clr-white);
}

/* ==========================================================================
   3. HEADER
   ========================================================================== */
.main-header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
}

/* Header Dark Mode State (Scrolled or on Light pages) */
.main-header.scrolled,
body:not(.home-page) .main-header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--clr-primary);
    transition: width 0.3s var(--ease-out-quint);
}

.nav-link:hover {
    color: var(--clr-white);
}

.nav-link:hover::before {
    width: 100%;
    left: 0;
}

.mobile-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
}

/* ==========================================================================
   4. HERO SECTION
   ========================================================================== */
.hero {
    min-height: 100vh;
    background-color: var(--clr-dark);
    color: var(--clr-white);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-height);
}

.hero-bg-anim {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image:
        radial-gradient(circle at 10% 20%, var(--clr-primary) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--clr-primary) 0%, transparent 20%);
    filter: blur(60px);
    animation: pulseBg 10s infinite alternate;
}

@keyframes pulseBg {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 span {
    display: block;
    color: var(--clr-primary);
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
    color: var(--clr-white);
}

.stat p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.hero-visual {
    position: relative;
}

/* Abstract UI Card */
.ui-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.ui-card:hover {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

/* ==========================================================================
   5. SERVICES SECTION
   ========================================================================== */
.services-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.service-card {
    background-color: var(--clr-white);
    border: 1px solid #e2e8f0;
    padding: 3rem;
    border-radius: 12px;
    transition: all 0.4s var(--ease-out-quint);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: var(--clr-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--clr-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--clr-primary);
    margin-bottom: 2rem;
    transition: 0.4s;
}

.service-card:hover .service-icon {
    background: var(--clr-primary);
    color: var(--clr-white);
}

.service-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--clr-gray);
    font-size: 0.95rem;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--clr-primary);
}

/* ==========================================================================
   6. INTERACTIVE CALCULATOR
   ========================================================================== */
.calculator-section {
    position: relative;
    background: var(--clr-dark);
    color: var(--clr-white);
    overflow: hidden;
}

.calc-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.input-wrapper label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Custom Range */
input[type=range] {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    appearance: none;
    outline: none;
}

input[type=range]::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--clr-primary);
    cursor: pointer;
    border: 4px solid var(--clr-dark);
    box-shadow: 0 0 0 1px var(--clr-primary);
    transition: transform 0.2s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.1), transparent);
}

.result-item {
    margin-bottom: 2rem;
}

.result-val {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
}

/* ==========================================================================
   7. TESTIMONIALS
   ========================================================================== */
.testimonials-slider {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding-bottom: 2rem;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 400px;
    background: var(--clr-white);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.client-profile {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--clr-primary);
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

/* ==========================================================================
   8. CONTACT PAGE
   ========================================================================== */
.contact-hero {
    padding-top: 150px;
    padding-bottom: 50px;
    background: var(--clr-light);
    text-align: center;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem 0;
}

.contact-details {
    background: var(--clr-dark);
    color: var(--clr-white);
    padding: 3rem;
    border-radius: 20px;
}

.contact-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
}

.contact-form-wrap {
    background: var(--clr-white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   9. LEGAL PAGES & FOOTER
   ========================================================================== */
.legal-content {
    max-width: 800px;
    margin: 150px auto 100px;
    padding: 0 20px;
}

.legal-content h1 {
    margin-bottom: 2rem;
    color: var(--clr-primary);
}

.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.5rem;
}

.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    color: var(--clr-gray);
    margin-bottom: 1rem;
}

footer {
    background-color: var(--clr-dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--clr-white);
    margin-bottom: 1.5rem;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a:hover {
    color: var(--clr-primary);
    padding-left: 5px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* ==========================================================================
   10. ANIMATIONS & RESPONSIVE
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .calc-container,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    /* Disable custom cursor on touch/small */
    *,
    *::before,
    *::after {
        cursor: auto;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--clr-dark);
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}