/* JAYSTRATIX MASTER STYLES V17.1 (FINAL AESTHETIC POLISH) */
:root {
    --deep-navy: #181842;
    --navy-dark: #0f0f2a; /* Darker tone for footer/accents */
    --navy-light: #23235B;
    --power-red: #ED1B34;
    --pure-white: #FFFFFF;
    --off-white: #FAFAFC; /* Base background shift */
    --soft-grey: #EAECEF; /* Slightly lighter for background contrast */
    --text-dark: #0f0f1a;
    --text-body: #4a4a5e;
    --font-main: 'Manrope', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body { 
    background-color: var(--off-white); /* Applied base shift */
    color: var(--text-dark); 
    font-family: var(--font-main); 
    line-height: 1.75; 
    overflow-x: hidden; 
    -webkit-font-smoothing: antialiased; 
}

/* TYPOGRAPHY */
h1, h2, h3, h4 { 
    font-weight: 800; 
    color: var(--deep-navy); 
    line-height: 1.1; 
    letter-spacing: -0.03em;
}

p { color: var(--text-body); font-size: 1.05rem; margin-bottom: 20px; }

.section-title { font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 15px; }

.section-subtitle { 
    color: var(--power-red); 
    font-weight: 700; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    font-size: 0.8rem; 
    display: block; 
    margin-bottom: 15px; 
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.section-subtitle::before { content:''; display:block; width: 30px; height: 2px; background: var(--power-red); }

.container { max-width: 1150px; margin: 0 auto; padding: 0 25px; }

/* ANIMATIONS (SCROLL REVEAL) */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* BUTTONS */
.btn { 
    display: inline-block; 
    padding: 18px 36px; 
    background-color: var(--power-red); 
    color: var(--pure-white); 
    text-decoration: none; 
    font-weight: 700; 
    font-size: 0.95rem; 
    border-radius: 6px; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    border: 2px solid var(--power-red); 
    box-shadow: 0 10px 20px rgba(237, 27, 52, 0.2); 
    cursor: pointer; 
}
.btn:hover { 
    background-color: transparent; 
    color: var(--power-red); 
    transform: translateY(-3px); 
    box-shadow: 0 15px 30px rgba(237, 27, 52, 0.3); 
}
.btn-outline { 
    background-color: transparent; 
    color: var(--pure-white); 
    border: 2px solid rgba(255,255,255,0.3); 
    box-shadow: none; 
}
.btn-outline:hover { 
    background-color: var(--pure-white); 
    border-color: var(--pure-white); 
    color: var(--deep-navy); 
    transform: translateY(-3px); 
}

/* GLASS NAVBAR */
nav { 
    background-color: rgba(24, 24, 66, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 18px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: padding 0.3s ease, background-color 0.3s ease;
}
nav.scrolled {
    padding: 10px 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 900; color: var(--pure-white); text-decoration: none; letter-spacing: -0.05em; }
.logo span { color: var(--power-red); }
.nav-links { display: flex; gap: 40px; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-links a:hover { color: var(--pure-white); }
.nav-links a.active-link {
    color: var(--pure-white) !important;
    border-bottom: 2px solid var(--power-red);
    padding-bottom: 5px;
}
.nav-links a:focus-visible { outline: 2px solid var(--power-red); outline-offset: 2px; border-radius: 4px; }

.nav-cta { padding: 12px 24px; background: var(--power-red); color: white !important; border-radius: 4px; font-weight: 700 !important; font-size: 0.85rem !important; }

.menu-icon { display: none; cursor: pointer; }
.bar { display: block; width: 25px; height: 2px; margin: 6px auto; transition: 0.3s; background-color: white; }

/* HEADER - MESH GRADIENT (ENHANCED) */
header { 
    /* Deeper, more saturated contrast in the dark header */
    background: linear-gradient(145deg, #10103a 0%, var(--deep-navy) 40%, #0d0d26 100%);
    padding: 120px 0 140px; 
    text-align: center; 
    position: relative;
    overflow: hidden;
}
/* Subtle glow in background (Red accent refined) */
header::after {
    content:''; position:absolute; top: -50%; left: -20%; width: 80%; height: 200%;
    background: radial-gradient(circle, rgba(237, 27, 52, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

header h1 { 
    font-size: clamp(2.8rem, 7vw, 5rem); 
    color: var(--pure-white); 
    margin-bottom: 25px; 
    max-width: 950px; 
    margin: 0 auto; 
    position: relative;
    z-index: 2;
}
header p { 
    color: #d0d0e0; 
    max-width: 650px; 
    margin: 0 auto 40px; 
    font-size: 1.25rem; 
    position: relative;
    z-index: 2;
}

/* BIO SECTION */
.bio-section { padding: 120px 0; background-color: var(--pure-white); }
.bio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.portrait-img { 
    width: 100%; max-width: 450px; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; 
    box-shadow: 20px 20px 0px var(--soft-grey);
}

/* SERVICES - CARD LIFT */
#services { 
    padding: 120px 0; 
    background: var(--off-white); /* Using base background */
    border-bottom: 1px solid #e5e5e5; /* Subtle divider */
}
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.service-card { 
    padding: 50px 40px; 
    background: var(--pure-white); /* Pure White cards pop over off-white background */
    border-radius: 12px; 
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1px solid #f2f2f2;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}
.service-card:hover { 
    border-color: rgba(237, 27, 52, 0.2);
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.08); 
}
.service-card.featured { 
    background: var(--deep-navy); 
    color: white; 
    grid-column: 1 / -1; 
    background-image: linear-gradient(135deg, var(--deep-navy) 0%, #0d0d26 100%);
}
@media(min-width: 900px) { .service-card.featured { grid-column: span 2; } }
.service-card.featured h3 { color: white; }
.service-card.featured p { color: #aab; }
.icon-box { font-size: 0.85rem; margin-bottom: 25px; color: var(--power-red); font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

/* GALLERY */
#gallery { padding: 120px 0; background-color: var(--pure-white); }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 50px; margin-top: 60px; }

.gallery-item { 
    background: var(--pure-white); 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border: 1px solid #eee;
    transition: 0.3s;
}
.gallery-item:hover { box-shadow: 0 20px 40px rgba(0,0,0,0.1); }

.slider-wrapper { position: relative; }
.slider-container { width: 100%; overflow-x: auto; display: flex; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slider-container::-webkit-scrollbar { display: none; }
.slide { min-width: 100%; scroll-snap-align: start; }
.img-placeholder { width: 100%; aspect-ratio: 16/9; background-color: #ddd; object-fit: cover; display: block; }
.scroll-btn { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.9); border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; font-weight: bold; color: var(--deep-navy); box-shadow: 0 4px 10px rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; transition: 0.2s; }
.scroll-btn:hover { background: var(--power-red); color: white; transform: translateY(-50%) scale(1.1); }
.left { left: 15px; }
.right { right: 15px; }
.gallery-content { padding: 30px; border-top: 1px solid #f0f0f0; position: relative; }

/* TESTIMONIALS (ENHANCED DEPTH) */
#testimonials { 
    padding: 120px 0; 
    background: var(--deep-navy); 
    color: white; 
    position: relative;
    /* Added subtle radial gradient for source lighting effect */
    background-image: radial-gradient(circle at center, rgba(237, 27, 52, 0.05) 0%, transparent 60%);
}
#testimonials h2 { color: white; }
.test-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.test-card { background: rgba(255,255,255,0.06); padding: 40px; border-radius: 12px; position: relative; border-left: 4px solid var(--power-red); backdrop-filter: blur(5px); }
.test-card p { color: #d0d0e0; font-style: italic; font-size: 1.05rem; margin-bottom: 25px; line-height: 1.6; }
.test-footer { display: flex; align-items: center; gap: 15px; }
.test-img { width: 50px; height: 50px; background-color: #ccc; border-radius: 50%; object-fit: cover; border: 2px solid var(--power-red); }
.test-info h5 { color: white; font-weight: 700; margin-bottom: 2px; font-size: 0.95rem; }
.test-info span { font-size: 0.75rem; color: #aaa; text-transform: uppercase; letter-spacing: 1px; }

/* PRICING MENU */
.pricing-menu { 
    padding: 120px 0 60px; 
    background-color: var(--soft-grey); 
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
}
.pricing-table { width: 100%; border-collapse: collapse; margin-top: 40px; background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.05); }
.pricing-table th, .pricing-table td { padding: 25px; text-align: left; border-bottom: 1px solid #eee; }
.pricing-table th { background: var(--deep-navy); color: white; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; }
.pricing-table tr:hover td { background-color: #fcfcfc; }
.price-total { font-weight: 800; color: var(--deep-navy); }
.price-deposit { font-weight: 800; color: var(--power-red); }

/* DUAL PAYMENT GATE */
.payment-gate { 
    padding: 0 0 120px; 
    background-color: var(--soft-grey); 
    background-image: radial-gradient(#d1d1d1 1px, transparent 1px);
    background-size: 20px 20px;
}
.gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.gate-card { 
    background: white; padding: 60px 50px; border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); 
    border-top: 6px solid #ccc; transition: 0.3s; position: relative; overflow: hidden; 
}
.gate-card.strategy { border-top-color: var(--deep-navy); }
.gate-card.service { border-top-color: var(--power-red); }
.gate-card:hover { transform: translateY(-8px); box-shadow: 0 25px 50px rgba(0,0,0,0.12); }

.gate-price { font-size: 3rem; font-weight: 800; margin: 20px 0; color: var(--deep-navy); line-height: 1; letter-spacing: -2px; }
.gate-note { font-size: 0.85rem; color: #888; margin-top: 15px; display: block; }
.deposit-badge { background: #ffebeb; color: var(--power-red); padding: 6px 12px; border-radius: 4px; font-weight: 800; font-size: 0.75rem; display: inline-block; margin-bottom: 15px; letter-spacing: 1px;}

/* FOOTER (Darkened slightly for visual anchor) */
footer { padding: 80px 0 40px; background: var(--navy-dark); color: #888; text-align: center; font-size: 0.9rem; }
.social-icons { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.social-icons a { width: 50px; height: 50px; background: rgba(255,255,255,0.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: 0.3s; }
.social-icons a:hover { background: var(--power-red); transform: translateY(-5px) scale(1.1); box-shadow: 0 0 15px var(--power-red); }
.social-icons svg { width: 22px; fill: white; }

/* RESPONSIVE */
@media(max-width: 768px) {
    .menu-icon { display: block; }
    .nav-links { position: fixed; left: -100%; top: 64px; flex-direction: column; background-color: rgba(24, 24, 66, 0.98); backdrop-filter: blur(10px); width: 100%; height: 100vh; text-align: center; padding: 40px 0; transition: 0.3s; }
    .nav-links.active { left: 0; }
    .bio-grid { grid-template-columns: 1fr; gap: 40px; }
    .gate-grid { grid-template-columns: 1fr; gap: 30px; }
    .pricing-table { font-size: 0.85rem; }
    .service-card.featured { grid-column: auto; }
    h1 { line-height: 1.1; }
}