/*
  Table of Contents
  -----------------
  1. Root Variables & Global Styles
  2. Accessibility & Page Layout
  3. Preloader
  4. Custom Cursor
  5. 3D Canvas & Content Wrapper
  6. Header & Navigation
  7. Hero Section
  8. General Section & Typography
  9. Clients Section
  10. Portfolio Section (Bento Grid)
  11. Services Section (Accordion)
  12. Testimonials Section
  13. CTA Section
  14. Footer
  15. Buttons & Interactive Elements
  16. Animation Helpers
  17. Dark/Light Mode
  18. Responsive Design
  19. Mobile Navigation
  20. Pricing & FAQ Section
  21. Inner Pages (Portfolio, Blog)
  22. New Additions (Progress Bar, TLDR, Comparison Table)
*/

/* 1. Root Variables & Global Styles
------------------------------------ */
:root {
    --brand-orange: #FF6A3D;
    --brand-blue: #00B5E2;
    --dark-bg: #050505;
    /* MODIFIED: Changed light background for a softer feel */
    --light-bg: #F9F9FB; 
    --text-primary-dark: #EAEAEA;
    --text-secondary-dark: #999999;
    --text-primary-light: #1D1D1F;
    --text-secondary-light: #6E6E73;
    --border-color-dark: rgba(255, 255, 255, 0.1);
    --border-color-light: rgba(0, 0, 0, 0.1);
    --card-bg-dark: rgba(20, 20, 20, 0.5);
    --card-bg-light: rgba(255, 255, 255, 0.5);
    --card-bg-solid-dark: #141414;
    --card-bg-solid-light: #FFFFFF;
}

body {
    --bg-color: var(--dark-bg);
    --text-primary: var(--text-primary-dark);
    --text-secondary: var(--text-secondary-dark);
    --border-color: var(--border-color-dark);
    --card-bg: var(--card-bg-dark);
    --card-bg-solid: var(--card-bg-solid-dark);
}

body.light-mode {
    --bg-color: var(--light-bg);
    --text-primary: var(--text-primary-light);
    --text-secondary: var(--text-secondary-light);
    --border-color: var(--border-color-light);
    --card-bg: var(--card-bg-light);
    --card-bg-solid: var(--card-bg-solid-light);
}


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

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

html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a, button {
    cursor: none;
    color: inherit;
}
a {
    text-decoration: none;
}

/* 2. Accessibility & Page Layout
------------------------------------ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--brand-orange);
    color: var(--dark-bg);
    padding: 8px;
    z-index: 10001;
    transition: top 0.3s;
    text-decoration: none;
    font-weight: 700;
}
.skip-link:focus {
    top: 0;
}
*:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 2px;
}
.page-layout .main-header {
    position: sticky;
}
.page-layout .main-header.is-scrolled {
     background: var(--bg-color-translucent);
}


/* 3. Preloader
------------------------------------ */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg); /* Always start with dark bg */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}
.preloader-text {
    color: var(--text-primary-dark);
    font-size: 2rem;
    font-weight: 700;
}


/* 4. Custom Cursor
------------------------------------ */
.cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--brand-orange);
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s ease;
    border: 0px solid var(--brand-orange); /* ADDED: Base border for animation */
}
body.light-mode .cursor {
    mix-blend-mode: normal;
    background-color: var(--brand-orange);
}

/* 5. 3D Canvas & Content Wrapper
------------------------------------ */
#webgl-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none; 
}

.content-wrapper {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* 6. Header & Navigation
------------------------------------ */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-color 0.4s ease;
    border-bottom: 1px solid transparent;
}
.main-header.scrolled {
    --bg-color-translucent: rgba(5, 5, 5, 0.6);
    background: var(--bg-color-translucent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}
body.light-mode .main-header.scrolled {
     --bg-color-translucent: rgba(249, 249, 251, 0.7);
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color:#FF6A3D;
    text-decoration: none;
    text-shadow:#00B5E2 0px 0px 20px;
    transition: all 0.4s ease-in-out;
}
.logo:hover{
    text-shadow: #FF6A3D 0px 0px 20px;
    color: #00B5E2;
}
.desktop-nav { display: none; }
.header-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.mobile-menu-btn {
    background: none;
    border: none;
    z-index: 101;
    padding: 0.5rem;
}
.hamburger-icon rect { 
    fill: var(--text-primary); 
    transition: transform 0.4s ease, opacity 0.4s ease, fill 0.4s ease;
}

/* 7. Hero Section
------------------------------------ */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
}
.hero-content {
    max-width: 900px;
}
.hero-title {
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .line > span { display: block; }
.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 48rem;
    margin: 0 auto;
}

/* 8. General Section & Typography
------------------------------------ */
.section { padding: 8rem 0; position: relative; }
.container { max-width: 1250px; margin: 0 auto; padding: 0 1.5rem; }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-eyebrow {
    color: var(--brand-blue);
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}
.section-heading {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.section-paragraph {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 45rem;
    line-height: 1.8;
}

/* ADDED: Subtle texture for the about section */
.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--text-secondary) 0.5px, transparent 0);
    background-size: 20px 20px;
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}


/* 9. Clients Section
------------------------------------ */
.clients-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.clients-heading {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-weight: 500;
}
.clients-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}
.clients-group {
    display: flex;
    align-items: center;
    gap: 5rem;
    padding: 0 2.5rem;
    animation: scroll 20s linear infinite;
    flex-shrink: 0;
}
.clients-group img {
    height: 30px;
    max-width: 150px;
    opacity: 0.6;
    transition: opacity 0.3s;
}
body.light-mode .clients-group img {
    filter: invert(1);
}

.clients-group img:hover {
    opacity: 1;
}
@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}


/* 10. Portfolio Section (Bento Grid)
------------------------------------ */
.bento-grid a { display: block; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
}
.bento-item {
    grid-column: span var(--bento-cs, 1);
    grid-row: span var(--bento-rs, 1);
    perspective: 1500px;
}
.card-3d {
    transform-style: preserve-3d;
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    width: 100%;
    transition: box-shadow 0.4s ease;
}
/* ADDED: Softer, layered shadows for light mode */
body.light-mode .card-3d,
body.light-mode .pricing-card {
    box-shadow: 0px 5px 15px rgba(29, 29, 31, 0.05),
                0px 15px 45px rgba(29, 29, 31, 0.1);
}

.card-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.card-3d:hover .card-img { transform: scale(1.05); }
.card-body { padding: 1.5rem; position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(transparent, rgba(0,0,0,0.8)); }
.card-body.text-only { background: none; position: relative; display: flex; flex-direction: column; justify-content: center; height: 100%; }
.card-title { font-size: 1.25rem; margin-bottom: 0.25rem; color: var(--text-primary-dark)}
.light-mode .card-title {
    color: var(--text-primary-light);
}
.card-text { color: var(--text-secondary-dark); font-size: 0.9rem; }
.light-mode .card-text {
    color: var(--text-secondary-light);
}
.bento-item .card-body .card-title {
    color: var(--text-primary);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}
.bento-item .card-body .card-text {
    color: var(--text-secondary);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.6);
}

/* 11. Services Section (Accordion)
------------------------------------ */
.services-list { border-top: 1px solid var(--border-color); }
.service-item {
    border-bottom: 1px solid var(--border-color);
}
.service-header {
    padding: 3rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
    transition: background-color 0.4s ease;
}
.service-item:hover .service-header { background-color: rgba(128, 128, 128, 0.05); }
.service-content { display: flex; align-items: baseline; gap: 2rem; }
.service-number { font-size: 1rem; font-weight: 600; color: var(--brand-orange); }
.service-title { font-size: clamp(1.5rem, 5vw, 3.5rem); font-weight: 600; }
.service-arrow { font-size: 2rem; color: var(--text-secondary); transition: transform 0.4s ease; }
.service-item.is-active .service-arrow { transform: rotate(90deg); }

.service-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-in-out;
}
.service-body > .service-body-inner {
    overflow: hidden;
}
.service-body-inner p {
    padding: 0 1.5rem 3rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 60ch;
}
.service-item.is-active .service-body {
    grid-template-rows: 1fr;
}

.service-hover-preview {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 400px;
    background-size: cover;
    background-position: center;
    border-radius: 1rem;
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 12. Testimonials Section
------------------------------------ */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.testimonial-card {
    background-color: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 1rem;
}
.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}
.author-name {
    font-weight: 600;
}
.author-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* 13. CTA Section
------------------------------------ */
.cta-section { text-align: center; }
.cta-heading { font-size: clamp(2.5rem, 7vw, 5rem); font-weight: 800; }
.cta-paragraph { font-size: 1.25rem; color: var(--text-secondary); margin: 1rem auto 2.5rem; max-width: 40rem; }

/* 14. Footer
------------------------------------ */
.main-footer {
    padding: 6rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; 
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-column p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-column ul a:hover {
    color: var(--brand-orange);
    transform: translateX(5px);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
}

.footer-legal-links a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-primary);
}


/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--brand-orange);
    color: var(--dark-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: scale(1.1);
}

.back-to-top i {
    width: 24px;
    height: 24px;
}

/* Responsive adjustments for the footer */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column p {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}



/* 15. Buttons & Interactive Elements
------------------------------------ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
    text-align: center;
}
.btn:hover {
    transform: translateY(-4px) scale(1.02);
}

/* ADDED: Button hover light sweep effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%; /* Start off-screen */
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn:hover::after {
    left: 150%; /* Sweep across */
}


.btn-orange {
    background: linear-gradient(145deg, #ff7e54, #ff6a3d);
    color: var(--dark-bg);
    box-shadow: 0 0 25px rgba(255, 106, 61, 0.4);
}
body.light-mode .btn-orange {
     color: var(--text-primary-light);
}
.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover {
    background: var(--text-primary);
    color: var(--bg-color);
}
.nav-btn {
    background: var(--brand-blue);
    color: var(--dark-bg);
    box-shadow: 0 0 25px rgba(0, 181, 226, 0.4);
}
body.light-mode .nav-btn {
    color: var(--text-primary-light);
}
.magnetic-link { display: inline-block; }
.magnetic-link > span, .magnetic-link > svg { display: inline-block; transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1); }

/* 16. Animation Helpers
------------------------------------ */
.gsap-reveal { visibility: hidden; }

/* 17. Dark/Light Mode
------------------------------------ */
.theme-toggle {
    background-color: transparent;
    border: 1px solid var(--border-color);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, background-color 0.4s ease;
}

.theme-toggle:hover {
    border-color: var(--brand-blue);
    background-color: rgba(0, 181, 226, 0.1);
}

.theme-toggle-sr { /* For accessibility */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.theme-toggle svg {
    position: absolute;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
    color: var(--text-primary);
    width: 20px;
    height: 20px;
}

/* --- Default (Dark) Mode --- */
.theme-toggle .moon-icon {
    transform: rotate(0deg);
    opacity: 1;
}
.theme-toggle .sun-icon {
    transform: rotate(-90deg);
    opacity: 0;
}

/* --- When Light Mode is Active --- */
body.light-mode .theme-toggle .moon-icon {
    transform: rotate(90deg);
    opacity: 0;
}

body.light-mode .theme-toggle .sun-icon {
    transform: rotate(0deg);
    opacity: 1;
}

/* 18. Responsive Design
------------------------------------ */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
        align-items: center;
        gap: 2.5rem;
        margin-left: auto;
    }
    .header-controls {
        margin-left: 2.5rem;
    }
    .mobile-menu-btn { display: none; }
    .nav-link { 
        font-weight: 500; 
        color: var(--text-secondary); 
        text-decoration: none; 
        position: relative;
        padding: 5px 0;
    }
    .nav-link:hover{ 
        color: var(--brand-orange); 
    }
    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: var(--brand-orange);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    }
    .nav-link:hover::after {
        transform: scaleX(1);
    }
}

@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 767px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: 250px; }
    .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
    .service-content { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .service-hover-preview { display: none; }
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-column p, .newsletter-form {
        margin-left: auto;
        margin-right: auto;
    }
    .social-links {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* 19. Mobile Navigation
------------------------------------ */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.6s, background-color 0.4s ease;
}
.mobile-nav-overlay.is-open {
    transform: translateX(0);
    visibility: visible;
}
.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}
.mobile-nav-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0;
}
.mobile-menu-btn.is-open .hamburger-icon rect:nth-child(1) {
    transform: rotate(45deg) translate(20px, -16px);
}
.mobile-menu-btn.is-open .hamburger-icon rect:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.is-open .hamburger-icon rect:nth-child(3) {
    transform: rotate(-45deg) translate(-10px, 2px);
}
body.mobile-menu-open {
    overflow: hidden;
}

/* 20. Pricing & FAQ Section
------------------------------------ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative; 
}
.pricing-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(0, 181, 226, 0.2), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
}
body.light-mode .pricing-card::before {
    background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(0, 181, 226, 0.1), transparent 40%);
}
.pricing-card:hover::before { opacity: 1; }
.pricing-card:hover {
    transform: translateY(-10px);
}
.pricing-card.recommended {
    border-color: var(--brand-orange);
    transform: scale(1.05);
    z-index: 5;
}
body.light-mode .pricing-card.recommended {
     box-shadow: 0px 5px 15px rgba(255, 106, 61, 0.1),
                0px 15px 45px rgba(255, 106, 61, 0.15);
}
.pricing-card.recommended::before {
     background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 106, 61, 0.25), transparent 40%);
}
body.light-mode .pricing-card.recommended::before {
     background: radial-gradient(400px circle at var(--mouse-x) var(--mouse-y), rgba(255, 106, 61, 0.15), transparent 40%);
}
.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-10px);
}
.recommended-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--brand-orange);
    color: var(--dark-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}
.pricing-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.pricing-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    min-height: 50px;
}
.pricing-price { margin: 2rem 0; }
.price-amount { font-size: 3rem; font-weight: 700; }
.price-period { color: var(--text-secondary); font-size: 1rem; margin-left: 0.5rem; }
.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}
.pricing-features li { margin-bottom: 1rem; padding-left: 2rem; position: relative; }
.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand-blue);
    font-weight: 700;
}
.pricing-card .btn { width: 100%; margin-top: auto; }
.pricing-cta-note {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
}

.faq-list { max-width: 800px; margin: 0 auto; border-top: 1px solid var(--border-color); }
.faq-item { border-bottom: 1px solid var(--border-color); }
.faq-header {
    padding: 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: none;
}
.faq-question { font-size: 1.2rem; font-weight: 600; }
.faq-arrow { font-size: 1.5rem; color: var(--text-secondary); transition: transform 0.4s ease; }
.faq-item.is-active .faq-arrow { transform: rotate(45deg); }

.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-in-out;
}
.faq-body > p {
    overflow: hidden;
    padding: 0 1rem;
    color: var(--text-secondary);
    max-width: 65ch;
}
.faq-item.is-active .faq-body {
    grid-template-rows: 1fr;
    padding-bottom: 2rem;
}

@media (max-width: 992px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.recommended { transform: scale(1); }
    .pricing-card { margin-bottom: 2rem; }
}

/* 21. Inner Pages (Portfolio, Blog)
------------------------------------ */
.page-header { padding: 6rem 0; text-align: center; }
.page-title { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; }
.page-subtitle { font-size: 1.25rem; color: var(--text-secondary); max-width: 40rem; margin: 1rem auto 0; }

.project-hero img { width: 100%; height: auto; border-radius: 1rem; margin-top: 4rem; }
.project-container { display: grid; grid-template-columns: 1fr 2fr; gap: 5rem; }
.info-item { margin-bottom: 2rem; }
.info-item h4 { font-weight: 600; color: var(--text-secondary); margin-bottom: 0.5rem; }
.info-item p { font-size: 1.1rem; }
.project-description h2 { margin-top: 3rem; margin-bottom: 1rem; }
.project-description h2:first-of-type { margin-top: 0; }
.project-gallery { padding-top: 0; }
.gallery-image { width: 100%; border-radius: 1rem; margin-bottom: 2rem; }
.project-navigation { text-align: center; }
.project-navigation .container { display: flex; justify-content: space-between; }
.nav-button { font-weight: 600; color: var(--text-secondary); transition: color 0.3s; }
.nav-button:hover { color: var(--text-primary); }

.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.post-card .card-img { aspect-ratio: 4/3; }
.post-meta { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.post-title { font-size: 1.5rem; margin-bottom: 0.5rem; line-height: 1.3; }
.post-excerpt { color: var(--text-secondary); }

.article-container { max-width: 800px; }
.article-header { text-align: center; margin-bottom: 4rem; }
.article-title { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.article-image { width: 100%; border-radius: 1rem; margin-bottom: 4rem; }
.article-body h2 { font-size: 2rem; margin: 3rem 0 1.5rem; }
.article-body p, .article-body li { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; margin-bottom: 1.5rem; }
.article-body a { color: var(--brand-blue); text-decoration: underline; }
.article-body figure { margin: 3rem 0; }
.article-body figcaption { text-align: center; color: var(--text-secondary); font-style: italic; margin-top: 1rem; }

@media (max-width: 992px) {
    .project-container { grid-template-columns: 1fr; }
}

/* 22. New Additions
------------------------------------ */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--brand-blue);
    width: 0%;
    z-index: 1000;
    transition: width 0.1s linear;
}

.tldr-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-blue);
    padding: 1.5rem;
    margin-bottom: 3rem;
    border-radius: 0.5rem;
}
.tldr-box h3 {
    margin-bottom: 1rem;
    font-weight: 600;
}
.tldr-box ul {
    list-style-position: inside;
    padding-left: 0.5rem;
    color: var(--text-secondary);
}
.tldr-box li {
    margin-bottom: 0.5rem;
}

.comparison-section {
    padding-top: 0;
}

.comparison-table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}
.comparison-table th, .comparison-table td {
    padding: 1.5rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.comparison-table th {
    font-weight: 600;
    color: var(--text-secondary);
}
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}
.check-mark {
    color: #4CAF50;
    font-size: 1.5rem;
}
.cross-mark {
    color: #F44336;
    font-size: 1.5rem;
}
.comparison-table td[data-label]::before {
    content: attr(data-label);
    display: none;
}

@media (max-width: 767px) {
    .comparison-table thead { display: none; }
    .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td {
        display: block;
        width: 100%;
    }
    .comparison-table tr {
        margin-bottom: 1rem;
        border: 1px solid var(--border-color);
        border-radius: 0.5rem;
    }
    .comparison-table td {
        text-align: right;
        position: relative;
        padding-left: 50%;
        border-bottom: none;
    }
    .comparison-table td:first-child {
        background-color: var(--card-bg-solid);
        text-align: center;
        padding-left: 1rem;
        border-bottom: 1px solid var(--border-color);
        border-top-left-radius: 0.5rem;
        border-top-right-radius: 0.5rem;
    }
    .comparison-table td[data-label]::before {
        display: block;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        font-weight: 600;
        color: var(--text-secondary);
    }
}
/* --- CONTACT PAGE & CHAT STYLES --- */

/* Use main site's variables for form elements */
#form-container label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

#form-container input[type="text"],
#form-container input[type="email"],
#form-container select,
#form-container textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
    transition: all 0.3s ease;
}

#form-container input:focus,
#form-container select:focus,
#form-container textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(0, 181, 226, 0.3);
}

#error-message {
    margin-top: 1rem;
    padding: 0.75rem;
    background-color: rgba(255, 106, 61, 0.1);
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    border-radius: 8px;
    text-align: center;
}

/* Chat window styles */
.chat-header {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}
.chat-messages-container {
    height: 60vh;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.message-bubble {
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    max-width: 80%;
}
.message-bubble.admin {
    background-color: var(--card-bg-solid);
    border: 1px solid var(--border-color);
    align-self: flex-start;
    border-bottom-left-radius: 0;
}
.message-bubble.user {
    background-color: var(--brand-blue);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 0;
}
.chat-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}
.chat-form input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: rgba(128, 128, 128, 0.1);
    color: var(--text-primary);
}
.chat-form input:focus {
     outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 2px rgba(0, 181, 226, 0.3);
}
.chat-form .btn-send {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    background-color: var(--brand-blue);
    color: white;
    font-weight: 600;
    border: none;
}
/* 23. Page Transition Overlay (Shutter Effect)
------------------------------------ */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    display: flex; /* Use flexbox to line up panels */
    pointer-events: none; /* Container itself is not clickable */
}

.transition-panel {
    flex: 1; /* Each panel takes equal width */
    height: 100%;
    background-color: var(--dark-bg);
    transform: scaleY(0); /* Start scaled to 0 height (invisible) */
    pointer-events: auto; /* Panels are clickable when visible */
}/* Styling for the new character-based preloader */
.preloader-text-container {
    display: flex;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary-dark);
    overflow: hidden; /* Ensures characters slide in smoothly */
}

.preloader-text-container span {
    display: block;
    transform: translateY(110%); /* Start hidden below */
    opacity: 0;
}