/* ============================================================
   9 Dot Technology Solutions — Custom Stylesheet
   ============================================================ */

:root {
    --primary:      #EE4267;
    --primary-dark: #c0305a;
    --accent:       #09A1A1;
    --accent-dark:  #077a7a;
    --dark:         #0d1117;
    --dark-alt:     #1a1a2e;
    --text:         #2d3748;
    --text-muted:   #718096;
    --light-bg:     #f7f9fc;
    --white:        #ffffff;
    --border:       #e9ecef;
    --font:         'Montserrat', sans-serif;
    --radius:       16px;
    --shadow:       0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.14);
    --transition:   all 0.3s ease;
}

/* ---- RESET & BASE ----------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
}

/* ---- UTILITY --------------------------------------- */
.text-primary-custom { color: var(--primary) !important; }
.text-accent         { color: var(--accent)  !important; }
.bg-light-custom     { background-color: var(--light-bg); }
.text-white-75       { color: rgba(255, 255, 255, 0.75) !important; }

.section-padding { padding: 100px 0; }

.section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(238, 66, 103, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 16px;
}
.section-label.label-light {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.section-title {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark-alt);
    margin-bottom: 16px;
}

.section-text {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 0;
}

/* ---- BUTTON ---------------------------------------- */
.btn-primary-custom {
    background: var(--primary);
    color: #fff;
    border: 2px solid var(--primary);
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font);
    letter-spacing: 0.3px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary-custom:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 66, 103, 0.35);
}
.btn-outline-light {
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    padding: 12px 28px;
    transition: var(--transition);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#mainNav {
    padding: 22px 0;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 1050;
}
#mainNav.scrolled {
    background: rgba(13, 17, 23, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.25);
}

.navbar-brand .brand-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}
.navbar-brand .brand-highlight { color: var(--primary); }

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 8px 14px !important;
    letter-spacing: 0.2px;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: var(--primary) !important; }

.navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 10px;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile nav dropdown */
@media (max-width: 991.98px) {
    #navbarNav {
        background: rgba(13, 17, 23, 0.97);
        border-radius: 12px;
        padding: 16px 20px;
        margin-top: 12px;
        backdrop-filter: blur(14px);
    }
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
    position: relative;
    background: var(--dark);
    overflow: hidden;
}

/* Layered gradient background */
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 18% 55%, rgba(238, 66, 103, 0.13) 0%, transparent 55%),
        radial-gradient(ellipse at 82% 15%, rgba(9, 161, 161, 0.13) 0%, transparent 55%),
        linear-gradient(135deg, #0d1117 0%, #1a1a2e 55%, #0d1b2a 100%);
}

/* Dot-grid overlay */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 90px;
    padding-bottom: 60px;
}

.hero-badge {
    display: inline-block;
    background: rgba(9, 161, 161, 0.12);
    border: 1px solid rgba(9, 161, 161, 0.3);
    color: var(--accent);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.2rem, 4.8vw, 3.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.85;
    max-width: 520px;
}

.hero-actions { margin-top: 44px; }
.hero-actions .btn { margin-right: 12px; margin-bottom: 12px; }

/* Floating visual cards — right column */
.hero-visual {
    position: relative;
    width: 380px;
    height: 380px;
}

.hero-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 230px;
    height: 230px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(238, 66, 103, 0.14) 0%, rgba(9, 161, 161, 0.09) 50%, transparent 70%);
    border: 1px solid rgba(238, 66, 103, 0.18);
    animation: heroOrb 3s ease-in-out infinite;
}

.hero-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 22px;
    text-align: center;
    color: #ffffff;
    min-width: 130px;
    z-index: 2;
    animation: heroFloat 4s ease-in-out infinite;
}
.hero-card p { font-size: 0.8rem; font-weight: 600; }

.hero-card-1 { top: 20px;  left: 20px;  animation-delay: 0s;  }
.hero-card-2 { top: 28%;   right: 0;    animation-delay: 1.3s;}
.hero-card-3 { bottom: 20px; left: 40px; animation-delay: 2.6s;}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0px);   }
    50%       { transform: translateY(-14px); }
}
@keyframes heroOrb {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.6; }
    50%       { transform: translate(-50%, -50%) scale(1.1); opacity: 1;   }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}
.scroll-dot {
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}
.scroll-dot::after {
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary);
    border-radius: 50%;
    animation: scrollBounce 2.2s ease infinite;
}
@keyframes scrollBounce {
    0%   { top: 7px;  opacity: 1; }
    100% { top: 30px; opacity: 0; }
}

/* ============================================================
   ABOUT
   ============================================================ */
#about { overflow: visible; }

.about-image-wrapper {
    position: relative;
    display: block;
}
@media (min-width: 992px) {
    .about-image-wrapper {
        padding-bottom: 28px;
        padding-right: 28px;
    }
}
.about-image-wrapper img { width: 100%; display: block; }

.about-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 16px;
    padding: 22px 26px;
    text-align: center;
    box-shadow: 0 12px 32px rgba(238, 66, 103, 0.42);
    z-index: 2;
}
.about-badge .badge-icon {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 6px;
    opacity: 0.9;
}
.about-badge .badge-text {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    line-height: 1.4;
    max-width: 100px;
    opacity: 0.92;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
}
.highlight-item {
    display: flex;
    align-items: center;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--text);
    gap: 10px;
}

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 36px 30px;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
/* Animated top-border on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-6px);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

/* Featured / highlighted card */
.service-card-featured {
    border-color: rgba(238, 66, 103, 0.2);
    background: linear-gradient(155deg, #fff 0%, rgba(238, 66, 103, 0.03) 100%);
}

/* Dark CTA card */
.service-cta-card {
    background: linear-gradient(145deg, var(--dark-alt) 0%, var(--dark) 100%);
    border: none;
    justify-content: center;
    align-items: flex-start;
}
.service-cta-card h4  { color: #ffffff; font-weight: 700; }
.service-cta-card > p { color: rgba(255, 255, 255, 0.6); font-size: 0.9rem; line-height: 1.7; }

/* Icon container */
.service-icon {
    width: 62px;
    height: 62px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 24px;
    flex-shrink: 0;
}
.service-icon-primary { background: rgba(238, 66, 103, 0.1); color: var(--primary); }
.service-icon-accent  { background: rgba(9, 161, 161, 0.1);  color: var(--accent);  }

.service-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-alt);
    margin-bottom: 12px;
}
.service-text {
    font-size: 0.895rem;
    color: var(--text-muted);
    line-height: 1.75;
    flex-grow: 1;
    margin-bottom: 20px;
}
.service-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
    margin-top: auto;
}
.service-link:hover { color: var(--accent); }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
.why-us-section {
    position: relative;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-alt) 100%);
    overflow: hidden;
}
.why-us-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(9, 161, 161, 0.055) 1px, transparent 1px);
    background-size: 48px 48px;
}

.why-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 32px 28px;
    height: 100%;
    transition: var(--transition);
}
.why-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(238, 66, 103, 0.28);
    transform: translateY(-5px);
}

.why-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #f76c8f);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
    margin-bottom: 20px;
}
.why-card h5 {
    font-weight: 700;
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 10px;
}
.why-card p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.75;
    margin-bottom: 0;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
    max-width: 720px;
    background: var(--light-bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 52px 56px;
    text-align: center;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 4px;
    margin-bottom: 24px;
}

.testimonial-quote {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text);
    font-style: italic;
    margin-bottom: 36px;
    position: relative;
}
.testimonial-quote::before {
    content: '\201C';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: -30px;
    left: -10px;
    line-height: 1;
    font-style: normal;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.testimonial-author strong { font-size: 0.95rem; color: var(--dark-alt); }
.testimonial-author .text-muted { font-size: 0.82rem; }

/* Custom dot indicators */
.testimonial-indicators {
    position: static !important;
    margin-top: 36px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.testimonial-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50% !important;
    background-color: var(--border) !important;
    border: none !important;
    opacity: 1 !important;
    padding: 0;
    transition: background 0.3s, transform 0.3s;
}
.testimonial-indicators button.active {
    background-color: var(--primary) !important;
    transform: scale(1.3);
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 90px 0;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-banner .btn-light {
    border-radius: 50px;
    font-weight: 700;
    font-family: var(--font);
    color: var(--primary);
    padding: 14px 40px;
    transition: var(--transition);
}
.cta-banner .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
.main-footer {
    background: var(--dark);
    padding: 64px 0 32px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    gap: 8px;
}
.footer-brand:hover { color: #ffffff; }

.footer-tagline {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
    margin-top: 12px;
    margin-bottom: 0;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-nav a {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.3s;
}
.footer-nav a:hover { color: var(--primary); }

.social-links {
    display: flex;
    gap: 10px;
}
@media (min-width: 992px) {
    .social-links { justify-content: flex-end; }
}
.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.88rem;
    transition: var(--transition);
}
.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.07);
    margin: 44px 0 28px;
}
.footer-copy {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.82rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991.98px) {
    .section-padding { padding: 72px 0; }
    .hero-content     { padding-top: 110px; }
    .about-badge      { bottom: -14px; right: 10px; }
}

@media (max-width: 767.98px) {
    .section-padding { padding: 56px 0; }

    .hero-title  { font-size: 2.1rem; letter-spacing: -0.8px; }
    .hero-actions { display: flex; flex-direction: column; align-items: flex-start; }
    .hero-actions .btn { margin-right: 0; }

    .about-image-wrapper { padding-bottom: 0; padding-right: 0; }
    .about-badge {
        position: relative;
        bottom: auto; right: auto;
        display: inline-block;
        margin-top: 24px;
    }

    .testimonial-card { padding: 36px 28px; }
    .testimonial-quote::before { display: none; }

    .cta-banner { padding: 60px 0; }

    .footer-nav { justify-content: flex-start; }
}
