/* ========================================
   Digital Impulse — Custom Styles
   ======================================== */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background: #FFB3C7;
    color: #3A0A18;
}

/* --- Geometric Background Shapes --- */
.geo-shapes {
    z-index: 0;
}

.geo-shape {
    position: absolute;
    pointer-events: none;
}

.geo-circle-1 {
    top: 15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 208, 217, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 10%;
    left: -8%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184, 32, 74, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.geo-triangle-1 {
    top: 40%;
    right: 10%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 179, 199, 0.15);
    animation: spin-slow 30s linear infinite;
    transform-origin: center;
}

.geo-square-1 {
    top: 60%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: rgba(184, 32, 74, 0.06);
    border-radius: 12px;
    transform: rotate(45deg);
    animation: float-medium 15s ease-in-out infinite;
}

.geo-dots {
    top: 25%;
    left: 8%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(184, 32, 74, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: float-medium 18s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.02); }
    66% { transform: translate(-15px, 20px) scale(0.98); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0) rotate(45deg); }
    50% { transform: translateY(-20px) rotate(50deg); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* --- Navigation --- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(58, 10, 24, 0.06);
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1A1420;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.3s ease, background 0.3s ease;
    z-index: 1;
}

.nav-link:hover {
    color: #B8204A;
    background: rgba(184, 32, 74, 0.06);
}

.nav-link--cta {
    margin-left: 0.5rem;
    background: #B8204A;
    color: white !important;
    padding: 0.6rem 1.4rem;
    font-weight: 600;
}

.nav-link--cta:hover {
    background: #9b163d !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 32, 74, 0.3);
}

.nav-link__bg {
    position: absolute;
    inset: 0;
    background: #B8204A;
    border-radius: 8px;
    z-index: -1;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Mobile Menu */
#menu-toggle {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.menu-line {
    display: block;
    width: 22px;
    height: 2px;
    background: #811536;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

#mobile-menu.open .menu-line.top {
    transform: translateY(7px) rotate(45deg);
}

#mobile-menu.open .menu-line.middle {
    opacity: 0;
    transform: scaleX(0);
}

#mobile-menu.open .menu-line.bottom {
    transform: translateY(-7px) rotate(-45deg);
}

#mobile-menu {
    top: 80px;
}

#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #1A1420;
    text-decoration: none;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    transition: color 0.3s ease, background 0.3s ease;
}

.mobile-nav-link:hover {
    color: #B8204A;
    background: rgba(184, 32, 74, 0.06);
}

.mobile-cta {
    display: inline-block;
    margin-top: 1rem;
    background: #B8204A;
    color: white !important;
    padding: 1rem 2.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
}

.mobile-cta:hover {
    background: #9b163d !important;
    color: white !important;
}

/* --- Hero --- */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-eyebrow {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards 0.4s;
}

.hero-subheadline {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.hero-ctas {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.hero-trust {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.2s;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid #F3A6B8;
    border-radius: 13px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: #B8204A;
    border-radius: 2px;
    animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: #B8204A;
    color: white;
    box-shadow: 0 4px 20px rgba(184, 32, 74, 0.25);
}

.btn--primary:hover {
    background: #9b163d;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(184, 32, 74, 0.35);
}

.btn--primary .btn__icon {
    transition: transform 0.3s ease;
}

.btn--primary:hover .btn__icon {
    transform: translateX(4px);
}

.btn--secondary {
    background: white;
    color: #1A1420;
    border: 2px solid #F3A6B8;
}

.btn--secondary:hover {
    border-color: #B8204A;
    color: #B8204A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

/* --- Section Headers --- */
.section-eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #B8204A;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 2.5rem;
}

.section-eyebrow::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.75rem;
    height: 2px;
    background: #B8204A;
}

.section-eyebrow--light {
    color: #FFB3C7;
}

.section-eyebrow--light::before {
    background: #FFB3C7;
}

.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title--light {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-title--light.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.section-subtitle.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-subtitle--light {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s;
}

.section-subtitle--light.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Service Cards --- */
.services-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.services-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.service-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(249, 208, 217, 0.5);
    transition: all 0.4s ease;
    overflow: hidden;
    cursor: default;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #B8204A, #FF7EA3);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(58, 10, 24, 0.1);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FDF2F4, #FCE7EB);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #B8204A;
    margin-bottom: 1.25rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-card__icon-wrap {
    background: linear-gradient(135deg, #B8204A, #D43F6B);
    color: white;
    transform: scale(1.05);
}

.service-card__title {
    transition: color 0.3s ease;
}

.service-card:hover .service-card__title {
    color: #B8204A;
}

.service-card__accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at bottom right, rgba(255, 179, 199, 0.15) 0%, transparent 70%);
    border-radius: 0 0 20px 0;
    transition: all 0.4s ease;
}

.service-card:hover .service-card__accent {
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at bottom right, rgba(184, 32, 74, 0.08) 0%, transparent 70%);
}

/* --- About Section --- */
.about-image-wrap {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.about-image-wrap.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-image-main {
    position: relative;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 32, 74, 0.1) 0%, transparent 60%);
    border-radius: 20px;
}

.about-float-card {
    animation: float-medium 4s ease-in-out infinite;
}

.about-content {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
}

.about-content.visible {
    opacity: 1;
    transform: translateX(0);
}

.about-values {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s ease 0.4s;
}

.about-values.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.about-value:hover {
    background: rgba(184, 32, 74, 0.04);
}

.about-value__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FDF2F4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.about-value:hover .about-value__icon {
    background: #B8204A;
}

.about-value:hover .about-value__icon svg path,
.about-value:hover .about-value__icon svg circle,
.about-value:hover .about-value__icon svg polyline,
.about-value:hover .about-value__icon svg line {
    stroke: white;
}

/* --- Why Choose Us --- */
.why-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.why-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.why-card:hover .why-card__number {
    color: #FFB3C7 !important;
}

/* --- Testimonials --- */
.testimonials-grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.testimonials-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(249, 208, 217, 0.5);
    transition: all 0.4s ease;
    position: relative;
}

.testimonial-card::after {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: 'Playfair Display', serif;
    font-size: 6rem;
    font-weight: 700;
    color: rgba(249, 208, 217, 0.4);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 50px rgba(58, 10, 24, 0.08);
    border-color: transparent;
}

.testimonial-card__stars {
    display: flex;
    gap: 4px;
    margin-bottom: 1rem;
}

.testimonial-card__text {
    position: relative;
    z-index: 1;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #FCE7EB;
}

/* --- Contact --- */
.contact-form-wrap {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-form-wrap.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-info-item {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.contact-info-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.contact-info-item:nth-child(2).visible { transition-delay: 0.1s; }
.contact-info-item:nth-child(3).visible { transition-delay: 0.2s; }

.contact-map {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.contact-map.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Form --- */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1A1420;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid #F3A6B8;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: #1A1420;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input::placeholder {
    color: #C4B5A8;
}

.form-input:focus {
    border-color: #B8204A;
    box-shadow: 0 0 0 3px rgba(184, 32, 74, 0.08);
}

.form-input.error {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23811536' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    display: block;
    font-size: 0.78rem;
    color: #DC2626;
    margin-top: 0.35rem;
    min-height: 1.2em;
}

.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success__icon {
    display: inline-flex;
    animation: popIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* --- Footer --- */
.footer-link {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #FFB3C7;
    padding-left: 6px;
}

.footer-social-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social-icon:hover {
    background: #B8204A;
    border-color: #B8204A;
    color: white;
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .about-float-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-headline {
        font-size: 2rem;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
