/* Designer Ramesh - main stylesheet */
/* CSS CUSTOM PROPERTIES */
:root {
    --primary-blue: #0056b3;
    --dark-blue: #003366;
    --business-light-bg: #f8f9fa;
    --business-blue-light: #eef4ff;
    --bright-yellow: #ffd700;
    --accent-red: #ff4d4d;
    --accent-coral: #ff7f50;
    --white: #ffffff;
    --dark: #1a1a1a;
    --max-width: 1200px;
    --transition: all 0.4s ease;
}

/* GLOBAL STYLES */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    font-size: 21px; 
}

p { font-size: 21px; margin-bottom: 20px; color: #444; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.section { padding: 100px 0; }
.text-center { text-align: center; }

/* TYPOGRAPHY */
h1 { font-size: 70px; font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
h2.section-title { font-size: 48px; font-weight: 800; margin-bottom: 30px; line-height: 1.1; }
.highlight { color: var(--bright-yellow); }

/* HEADER */
.top-header {
    background: var(--white);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 2000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-container img { height: 55px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 25px; }
.nav-links a { text-decoration: none; color: var(--dark); font-weight: 700; font-size: 16px; transition: var(--transition); }
.nav-links a:hover { color: var(--primary-blue); }

.btn-nav {
    background: var(--primary-blue);
    color: white !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 14px !important;
}
.btn-navv {
    background: #ffd700;
    color: #000000;
    padding: 17px 30px;
    border-radius: 50px;
    font-size: 17px !important;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
}

/* ABOUT ME */
.about-image img {
    width: 100%;
    border: 10px solid var(--white);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-radius: 5px;
}

/* PORTFOLIO */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.portfolio-item {
    --pf-h: 500px;
    height: var(--pf-h);
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    border: 1px solid #eee;
}
.portfolio-item img {
    width: 100%;
    transition: transform 6s ease-in-out;
    transform: translateY(0);
}
.portfolio-item:hover img {
    transform: translateY(min(0px, calc(-100% + var(--pf-h))));
}

/* --- UPDATED BONUS SECTION STYLE --- */
.bonus-grid-new {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-top: 50px;
}
.bonus-card-new {
    background: #eef4ff;
    border: 2px solid var(--primary-blue);
    border-radius: 15px;
    padding: 35px;
    text-align: left;
    transition: var(--transition);
}
.bonus-card-new:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,86,179,0.1);
}
.bonus-card-new h3 {
    color: var(--primary-blue);
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}
.bonus-card-new p {
    font-size: 18px;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.4;
}
.value-tag {
    background: var(--primary-blue);
    color: white;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 16px;
    display: inline-block;
}

/* TESTIMONIALS */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.testimonial-card {
    background: white;
    padding: 35px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: left;
}
.stars { color: #f1c40f; margin-bottom: 10px; font-size: 18px; }

/* NICHES */
.niche-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.niche-card-v2 {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}
.niche-placeholder {
    background: #e0e0e0;
    border: 2px dashed #bbb;
    height: 180px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #666;
    font-weight: 600;
}

/* VIDEO WRAPPER */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0; overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}
.video-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}

/* FORM STYLES */
.registration-card {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    border-top: 8px solid var(--primary-blue);
    text-align: left;
}
.progress-container { margin-bottom: 20px; background: #eee; height: 8px; border-radius: 10px; position: relative; }
.progress-bar { background: var(--primary-blue); width: 50%; height: 100%; border-radius: 10px; transition: 0.3s; }
.form-step { display: none; }
.form-step.active { display: block; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 16px; }
.field select, .field input {
    width: 100%; padding: 15px; border: 2px solid #ddd; border-radius: 8px; font-size: 16px; font-family: 'Inter';
}
.btn-primary { 
    background: var(--primary-blue); color: white; border: none; padding: 18px; 
    border-radius: 8px; font-weight: 800; cursor: pointer; width: 100%; font-size: 18px;
}
.btn-secondary { background: #eee; border: none; padding: 18px; border-radius: 8px; font-weight: 700; cursor: pointer; }

.hero-image-placeholder {
    width: 100%;
    background-color: rgba(255,255,255,0.1);
    border: 2px dashed #fff;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


/* =====================================================
   RESPONSIVE SYSTEM  (desktop > laptop > tablet > mobile)
   ===================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { overflow-wrap: break-word; }
p, summary, li { overflow-wrap: break-word; }

/* desktop layout (identical to original look) */
.hero-section { padding: 80px 0; }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.two-col-lg { gap: 60px; }
.grid-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.side-img { width: 90%; border-radius: 20px; }
.hero-image-placeholder img { width: 100%; display: block; }
.niche-card-v2 img { width: 100%; display: block; margin-bottom: 16px; }
.hero-container > *, .two-col > *, .grid-features > *, .grid-3 > *,
.portfolio-grid > *, .testimonial-grid > *, .niche-grid > *, .bonus-grid-new > * { min-width: 0; }
.menu-toggle { display: none; }

/* LAPTOP */
@media (max-width: 1100px) {
    h1 { font-size: 58px; }
    h2.section-title { font-size: 42px; }
    .grid-features { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item { --pf-h: 440px; }
}

/* TABLET */
@media (max-width: 992px) {
    body { font-size: 19px; }
    p { font-size: 19px; }
    .section { padding: 80px 0; }
    .hero-section { padding: 64px 0; }
    h1 { font-size: 48px; }
    h2.section-title { font-size: 38px; }

    .portfolio-grid, .testimonial-grid, .niche-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    /* centre a lone last card instead of leaving a gap */
    .portfolio-grid > :last-child:nth-child(odd),
    .grid-3 > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 15px); justify-self: center; }
    .testimonial-grid > :last-child:nth-child(odd),
    .niche-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 12.5px); justify-self: center; }
}

/* TABLET PORTRAIT + MOBILE NAV / STACKED SECTIONS */
@media (max-width: 900px) {
    .hero-container, .two-col, .two-col-lg { grid-template-columns: 1fr; gap: 36px; }
    .hero-image-placeholder { max-width: 560px; margin: 0 auto; }
    .about-image, .side-img { width: 100%; max-width: 560px; margin-left: auto; margin-right: auto; }

    .menu-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
        width: 46px; height: 46px; padding: 11px; flex-shrink: 0;
        background: none; border: 2px solid #e3e3e3; border-radius: 10px; cursor: pointer;
    }
    .menu-toggle span { display: block; height: 3px; background: var(--dark); border-radius: 3px; transition: transform .3s, opacity .3s; }
    .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--white); padding: 8px 20px 20px;
        border-top: 1px solid #eee; box-shadow: 0 14px 24px rgba(0,0,0,0.12);
        max-height: calc(100vh - 76px); overflow-y: auto;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 4px; font-size: 17px; border-bottom: 1px solid #f0f0f0; }
    .nav-links .btn-nav { margin-top: 16px; padding: 15px 25px; text-align: center; border-bottom: 0; font-size: 15px !important; }
}

/* LARGE PHONE / SMALL TABLET */
@media (max-width: 768px) {
    body { font-size: 18px; }
    p { font-size: 18px; }
    .section { padding: 64px 0; }
    .hero-section { padding: 52px 0; }
    h1 { font-size: 40px; margin-bottom: 20px; }
    h2.section-title { font-size: 34px; margin-bottom: 24px; }
    .logo-container img { height: 46px; }
    .registration-card { padding: 30px 24px; }
    .portfolio-item { --pf-h: 400px; }
}

/* MOBILE */
@media (max-width: 640px) {
    .portfolio-grid, .testimonial-grid, .niche-grid, .bonus-grid-new, .grid-3, .grid-features { grid-template-columns: 1fr; }
    .portfolio-grid > :last-child:nth-child(odd),
    .grid-3 > :last-child:nth-child(odd),
    .testimonial-grid > :last-child:nth-child(odd),
    .niche-grid > :last-child:nth-child(odd) { grid-column: auto; width: auto; justify-self: stretch; }
    .portfolio-grid, .testimonial-grid, .niche-grid, .bonus-grid-new, .grid-3 { gap: 20px; }
    .bonus-grid-new { margin-top: 36px; }
    .bonus-card-new { padding: 26px 22px; }
    .bonus-card-new h3 { font-size: 20px; }
    .bonus-card-new p { font-size: 16px; margin-bottom: 18px; }
    .value-tag { font-size: 15px; padding: 8px 16px; }
    .testimonial-card, .niche-card-v2 { padding: 26px 22px; }
    .portfolio-item { --pf-h: 360px; }
    .video-wrapper { border-radius: 14px; }
    details { padding: 16px !important; }
}

/* SMALL PHONE */
@media (max-width: 480px) {
    body { font-size: 17px; }
    p { font-size: 17px; }
    .container { padding: 0 16px; }
    .section { padding: 52px 0; }
    .hero-section { padding: 44px 0; }
    h1 { font-size: 32px; }
    h2.section-title { font-size: 28px; }
    .btn-navv { display: block; text-align: center; padding: 16px 20px; font-size: 16px !important; }
    .registration-card { padding: 24px 18px; border-top-width: 6px; }
    .registration-card h2 { font-size: 22px !important; }
    .field label { font-size: 15px; }
    .btn-primary, .btn-secondary { padding: 15px 10px; font-size: 16px; }
    .nav-links { padding: 8px 16px 18px; }
    .portfolio-item { --pf-h: 320px; }
    .about-image img { border-width: 6px; }
}

@media (max-width: 360px) {
    h1 { font-size: 28px; }
    h2.section-title { font-size: 25px; }
    .logo-container img { height: 40px; }
}

/* short landscape phones */
@media (max-height: 480px) and (orientation: landscape) {
    .section { padding: 48px 0; }
    .hero-section { padding: 40px 0; }
}


/* =====================================================
   ANIMATIONS
   ===================================================== */
@keyframes fadeUp   { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes floatY   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseRing{ 0% { box-shadow: 0 0 0 0 rgba(255,215,0,.65); } 70% { box-shadow: 0 0 0 18px rgba(255,215,0,0); } 100% { box-shadow: 0 0 0 0 rgba(255,215,0,0); } }
@keyframes shine    { 0% { left: -80%; } 60%,100% { left: 130%; } }
@keyframes faqOpen  { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes arrowNudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* hero entrance + floating image */
.hero-content { animation: fadeUp .9s ease both; }
.hero-image-placeholder { animation: fadeUp .9s .2s ease both; }
.hero-image-placeholder img { animation: floatY 6s ease-in-out 1.2s infinite; }

/* buttons */
.btn-navv { position: relative; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; animation: pulseRing 2.2s infinite; }
.btn-navv::after { content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent); transform: skewX(-20deg); animation: shine 3.5s ease-in-out infinite; }
.btn-nav, .btn-primary, .btn-secondary { transition: transform .3s ease, box-shadow .3s ease, background .3s ease; }
.btn-primary:active, .btn-secondary:active, .btn-navv:active { transform: scale(.97); }

/* header shadow when scrolled */
.top-header { transition: box-shadow .3s ease; }
.top-header.scrolled { box-shadow: 0 6px 28px rgba(0,0,0,.18); }

/* scroll progress bar */
.scroll-progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; z-index: 2100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--bright-yellow), var(--accent-coral)); pointer-events: none; }

/* cards & hover (hover-capable devices only) */
.testimonial-card, .niche-card-v2 { transition: transform .4s ease, box-shadow .4s ease; }
.portfolio-item { transition: box-shadow .4s ease; }
details { transition: box-shadow .3s ease; }
details[open] > p { animation: faqOpen .4s ease; }
@media (hover: hover) {
    .btn-navv:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,.25); }
    .btn-nav:hover, .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,86,179,.35); }
    .btn-secondary:hover { transform: translateY(-2px); }
    .testimonial-card:hover, .niche-card-v2:hover { transform: translateY(-8px); box-shadow: 0 18px 38px rgba(0,0,0,.14); }
    .portfolio-item:hover { box-shadow: 0 18px 40px rgba(0,0,0,.22); }
    details:hover { box-shadow: 0 8px 20px rgba(0,0,0,.12); }
}

/* scroll reveal (only active when JS is running) */
.js .reveal { transition: opacity .8s ease var(--d, 0s), translate .8s ease var(--d, 0s), transform .4s ease, box-shadow .4s ease; }
.js .reveal:not(.in) { opacity: 0; translate: var(--tx, 0px) var(--ty, 36px); }
.js .reveal.in { opacity: 1; translate: 0 0; }
.two-col > :nth-child(odd)  { --tx: -40px; --ty: 0px; }
.two-col > :nth-child(even) { --tx: 40px;  --ty: 0px; }
@media (max-width: 900px) {
    .two-col > :nth-child(odd), .two-col > :nth-child(even) { --tx: 0px; --ty: 32px; }
}

/* scroll-to-top button */
.to-top {
    position: fixed; right: max(22px, env(safe-area-inset-right)); bottom: max(22px, env(safe-area-inset-bottom));
    width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; z-index: 1900;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-blue); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.3);
    opacity: 0; visibility: hidden; transform: translateY(20px) scale(.9);
    transition: opacity .35s ease, transform .35s ease, visibility .35s, background .3s ease;
    -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top.show svg { animation: arrowNudge 1.8s ease-in-out infinite; }
.to-top:focus-visible { outline: 3px solid var(--bright-yellow); outline-offset: 3px; }
@media (hover: hover) { .to-top.show:hover { background: var(--dark-blue); transform: translateY(-4px); } }
@media (max-width: 480px) { .to-top { width: 46px; height: 46px; right: 16px; bottom: 16px; } }

/* respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    html { scroll-behavior: auto; }
    .js .reveal:not(.in) { opacity: 1; translate: none; }
}
