/* ═══════════════════════════════════════════
   SERVICES PAGE STYLES
═══════════════════════════════════════════ */

:root {
    /* Enhanced Design Tokens */
    --primary: #1546C0;
    --primary-light: #5B8AF5;
    --bg-dark: #080B14;
    --bg-card: rgba(14, 18, 32, 0.7);
    --border: rgba(255, 255, 255, 0.08);
    --text-main: #EEF0F8;
    --text-dim: #8290A8;
    
    /* Advanced Gradients */
    --blue: #1546C0;
    --blue2: #5B8AF5;
    --purp: #6D28D9;
    --purp2: #A78BFA;
    --rose: #BE185D;
    --rose2: #F472B6;
    --teal: #047857;
    --teal2: #34D399;
    
    --gradient: linear-gradient(90deg, var(--blue) 0%, var(--purp) 50%, var(--blue) 100%);
    --gradient-flow: linear-gradient(90deg, var(--blue) 0%, var(--purp) 25%, var(--rose) 50%, var(--teal) 75%, var(--blue) 100%);
    
    --glass: blur(16px) saturate(180%);
    --s-premium: 0 12px 40px rgba(0, 0, 0, 0.4);
    --transition: 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

[data-theme="light"] {
    --bg-dark: #F8F7F4;
    --bg-card: rgba(255, 255, 255, 0.85);
    --border: rgba(0, 0, 0, 0.08);
    --text-main: #0D1117;
    --text-dim: #586070;
    --s-premium: 0 12px 30px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background 0.4s, color 0.4s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5vw;
}

.gradient-text {
    background: var(--gradient-flow);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGradientFlow 8s linear infinite;
    display: inline-block;
}

@keyframes textGradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5vw;
    background: rgba(var(--bg-dark), 0.8);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    opacity: 0.85;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-light);
    opacity: 1;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-logo-icon svg {
    width: 20px;
    fill: #fff;
}

.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-shrink: 0;
}

.theme-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--border);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    padding: 0.3rem 0.5rem 0.3rem 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.theme-pill-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 0.05em;
}

.theme-pill-toggle {
    width: 32px;
    height: 18px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    transition: background 0.3s;
}

[data-theme="dark"] .theme-pill-toggle {
    background: var(--primary);
}

.theme-pill-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .theme-pill-toggle::before {
    transform: translateX(14px);
}

.btn-try {
    background: var(--primary);
    color: #fff;
    padding: 0.5rem 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-try:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* HERO */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.5);
    z-index: -2;
    animation: zoomOut 20s infinite alternate;
}

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(8, 11, 20, 0.4) 0%, var(--bg-dark) 90%);
    z-index: -1;
}

[data-theme="light"] .hero-overlay {
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.5) 0%, rgba(248, 247, 244, 0.95) 100%);
}

/* Visibility Fixes */
.hero-content h1 {
    font-size: clamp(2.8rem, 10vw, 5.5rem);
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    color: var(--text-main);
    letter-spacing: -2px;
}

.hero-content p {
    font-size: 1.35rem;
    color: var(--text-main);
    max-width: 800px;
    margin: 0 auto 3rem;
    font-weight: 300;
    line-height: 1.7;
    opacity: 0.9;
}

[data-theme="dark"] .hero-content p {
    color: var(--text-dim);
}

.badge {
    display: inline-block;
    padding: 10px 24px;
    background: var(--primary); /* Solid color for light mode visibility */
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    color: #fff; /* White text on solid blue */
    box-shadow: 0 4px 15px rgba(21, 70, 192, 0.2);
}

[data-theme="dark"] .badge {
    background: rgba(21, 70, 192, 0.3);
    border: 1px solid var(--primary-light);
    color: #fff;
    backdrop-filter: blur(4px);
}

.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    margin-right: 15px;
    box-shadow: 0 10px 25px rgba(21, 70, 192, 0.25);
    transition: all 0.3s;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    backdrop-filter: blur(8px);
    transition: all 0.3s;
}

[data-theme="light"] .btn-secondary {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Learn More Buttons */
.btn-learn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-light);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: gap 0.3s, color 0.3s;
}

.btn-learn:hover {
    gap: 12px;
    color: var(--primary);
}

/* SECTIONS */
section {
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.2rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* SERVICES GRID */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-category {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: 28px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.service-category::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-flow);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s;
}

.service-category:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: transparent;
    box-shadow: var(--s-premium);
}

.service-category:hover::after {
    opacity: 0.03;
}

.category-image {
    height: 200px;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.service-category:hover .category-image img {
    transform: scale(1.1);
}

.category-content {
    padding: 30px;
}

.category-content h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.flex-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.sample-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    background: var(--blue-g, rgba(21, 70, 192, 0.1));
    border: 1px solid var(--primary-light);
    border-radius: 6px;
    color: var(--primary-light);
    transition: all 0.3s;
}

.sample-link:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.service-list {
    list-style: none;
}

.service-list li {
    margin-bottom: 12px;
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

/* FEATURES */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.feature-card {
    text-align: center;
}

.f-icon {
    width: 72px;
    height: 72px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-light);
    margin: 0 auto 24px;
    transition: var(--transition);
    position: relative;
}

.feature-card:hover .f-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 30px rgba(21, 70, 192, 0.3);
}

/* PROCESS */
.process-timeline {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    padding-top: 40px;
}

.process-step {
    flex: 1;
    text-align: center;
}

.step-num {
    font-size: 2.5rem;
    font-weight: 900;
    opacity: 0.1;
    margin-bottom: -15px;
}

.process-step h4 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-dim);
}

/* CTA */
.cta-box {
    background: var(--gradient);
    padding: 80px 40px;
    border-radius: 32px;
    text-align: center;
    color: #fff;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.btn-outline {
    display: inline-block;
    padding: 14px 32px;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 15px;
}

/* FOOTER */
footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.foot-main {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.foot-brand p {
    max-width: 300px;
    margin-top: 15px;
    color: var(--text-dim);
}

.foot-links {
    display: flex;
    gap: 80px;
}

.foot-col h4 {
    margin-bottom: 20px;
    font-size: 1rem;
}

.foot-col ul {
    list-style: none;
}

.foot-col li {
    margin-bottom: 10px;
}

.foot-col a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.foot-col a:hover {
    color: var(--text-main);
}

.foot-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* TESTIMONIALS */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 24px;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.02);
}

.t-text {
    font-style: italic;
    color: var(--text-main);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.t-user {
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-size: cover;
}

.t-info h5 {
    font-size: 1.1rem;
}

.t-info span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* FAQ */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(21, 70, 192, 0.05);
}

.faq-question h4 {
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-question i {
    font-size: 0.9rem;
    transition: transform 0.3s;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: rgba(0, 0, 0, 0.02);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 24px;
}

.faq-answer p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* ANIMATIONS & EFFECTS */
.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-main);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouseScroll 1.5s infinite;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* PARTICLES */
.p-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-light);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 10s infinite linear;
    box-shadow: 0 0 8px var(--primary-light);
    z-index: 0;
}

@keyframes float-particle {
    0% { transform: translateY(0) scale(1); opacity: 0; }
    10% { opacity: 0.6; }
    50% { transform: translateY(-100px) scale(1.5); opacity: 0.2; }
    90% { opacity: 0.6; }
    100% { transform: translateY(-200px) scale(1); opacity: 0; }
}

/* REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* NOISE OVERLAY */
.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

[data-theme="dark"] .noise-overlay {
    opacity: 0.05;
}

/* CUSTOM CURSOR */
#ex-cursor {
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: opacity 0.3s;
}

.ex-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
}

.ex-ring {
    width: 34px;
    height: 34px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-width 0.3s;
}

#ex-cursor.is-hovering .ex-ring {
    width: 50px;
    height: 50px;
    background: rgba(91, 138, 245, 0.1);
    border-width: 0;
}

/* IMAGE MODAL (PDP PREVIEW) */
.img-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.img-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.img-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 11, 20, 0.9);
    backdrop-filter: blur(15px);
}

.img-modal-content {
    position: relative;
    z-index: 10;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9) rotate3d(1, 1, 0, 10deg);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.img-modal.active .img-modal-content {
    transform: scale(1) rotate3d(0, 0, 0, 0);
}

.img-modal-content img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.8);
    border: 1px solid var(--border);
}

.img-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s;
}

.img-modal-close:hover {
    background: var(--rose);
    border-color: transparent;
    transform: rotate(90deg);
}

/* GLASS EFFECT FOR TESTIMONIALS */
.testimonial-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 32px;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    border-bottom-color: var(--primary);
    box-shadow: var(--s-premium);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .process-timeline { flex-direction: column; gap: 40px; }
    .foot-main { flex-direction: column; gap: 40px; }
    .foot-links { gap: 40px; }
}
