/* Custom Theme Colors for Dr Julian Hooper */
/* Professional Green Theme: #059669 */

:root {
    /* Font overrides */
    --text-font: 'Inter', 'Poppins', sans-serif;
    --title-font: 'Plus Jakarta Sans', 'Oswald', sans-serif;

    /* Brand (unchanged between modes) */
    --primary-color: #059669;
    --primary-hover: #047857;
    --secondary-color: #10b981;

    /* Mode-adaptive accent (defaults to brand) */
    --accent-color: #059669;
    --accent-hover: #047857;
    --accent-glow: rgba(5, 150, 105, 0);
    --accent-glow-spread: rgba(5, 150, 105, 0.08);

    /* Theme-switchable */
    --bg-page: #ffffff;
    --bg-section: #ffffff;
    --bg-card: #f8f9fa;
    --bg-card-border: #e9ecef;
    --bg-dark-section: #0a0a0a;
    --text-body: #333333;
    --text-heading: #070707;
    --text-muted: #666666;
    --text-on-dark: #ffffff;
    --border-light: #e9ecef;
    --bg-lightbox: #ffffff;
    --text-lightbox: #333333;
}

[data-theme="dark"] {
    /* Brighter, more saturated green for dark surfaces */
    --accent-color: #34d399;
    --accent-hover: #6ee7b7;
    --accent-glow: rgba(52, 211, 153, 0.35);
    --accent-glow-spread: rgba(52, 211, 153, 0.45);

    --bg-page: #0f0f0f;
    --bg-section: #141414;
    --bg-card: #1a1a1a;
    --bg-card-border: #2a2a2a;
    --bg-dark-section: #111111;
    --text-body: #d1d5db;
    --text-heading: #f3f4f6;
    --text-muted: #9ca3af;
    --text-on-dark: #ffffff;
    --border-light: #2a2a2a;
    --bg-lightbox: #1a1a1a;
    --text-lightbox: #d1d5db;
}

/* Smooth Transitions */
body,
.main-hero-area,
.services-area,
.projects-area,
.testimonials-area,
.contact-area,
.skill-badge,
.skill-badge-with-logo,
.filter-btn,
.service-item,
.form-control,
.work-showcase {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===========================
   FONT OVERRIDES
   Space Grotesk (headings) + Inter (body)
   =========================== */

body {
    font-family: 'Inter', 'Poppins', sans-serif;
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6,
.accordion-item .accordion-button,
h2.about-pre-title {
    font-family: 'Plus Jakarta Sans', 'Oswald', sans-serif;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Background Control */
body {
    background-color: var(--bg-page) !important;
    color: var(--text-body);
}

/* White backgrounds for main content sections */
.main-hero-area,
.services-area,
.projects-area,
.testimonials-area,
.contact-area {
    background: var(--bg-section) !important;
    position: relative;
}

.projects-area,
.testimonials-area,
.contact-area {
    overflow: hidden;
}

/* services-area: overflow hidden clips horizontal panels, visible needed for pin-spacer */
.services-area {
    overflow: hidden;
    margin-top: 40px;
}

/* Dark backgrounds for these sections only */
.company-design-area {
    background-color: var(--bg-dark-section) !important;
}

/* About section uses page background */
.about-area {
    background-color: var(--bg-page) !important;
    position: relative;
}

/* Glowing separator line at top of skills section */
.services-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(5, 150, 105, 0.15) 10%,
        rgba(5, 150, 105, 0.6) 50%,
        rgba(5, 150, 105, 0.15) 90%,
        transparent 100%
    );
    opacity: 0.7;
    transform: scaleX(var(--divider-scale, 0));
    transform-origin: center;
    z-index: 1;
}

[data-theme="dark"] .services-area::before {
    height: 2px;
    opacity: 1;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(52, 211, 153, 0.15) 5%,
        rgba(52, 211, 153, 0.9) 50%,
        rgba(52, 211, 153, 0.15) 95%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.5),
                0 0 50px rgba(52, 211, 153, 0.2),
                0 0 80px rgba(52, 211, 153, 0.08);
}

.about-area h2,
.about-area p {
    color: var(--text-heading);
}

/* Ensure text is light colored on dark backgrounds */
.company-design-area * {
    color: inherit;
}

.company-design-area h2 {
    color: var(--primary-color);
}

.company-design-area p {
    color: #ffffff;
}

/* About Me title — primary accent */
h2.about-pre-title {
    color: var(--accent-color) !important;
    text-transform: uppercase;
}

[data-theme="dark"] .about-pre-title {
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.2);
}

/* Typewriter effect */
.about-typewriter .tw-word {
    display: inline;
    white-space: nowrap;
}

.about-typewriter .tw-char {
    opacity: 0;
}

.about-typewriter .tw-char.tw-active {
    box-shadow: 3px 0 0 0 #34d399, 3px 0 10px 0 rgba(52, 211, 153, 0.5);
}

/* Paragraph break spacer within typewriter */
.about-typewriter .tw-break {
    display: block;
    height: 1.2em;
}

/* About page profile — smaller text for longer content */
.about-page-profile .about-content-part p {
    font-size: 22px;
    line-height: 1.6;
}

/* ===========================
   HERO SECTION
   =========================== */

.hero-name-container {
    margin-bottom: 20px;
}

/* Lift all hero content above the glow pseudo-elements */
.main-hero-area .hero-content,
.main-hero-area .hero-image {
    position: relative;
    z-index: 1;
}

/* Hero Video Play Button */
.hero-video-trigger {
    position: relative;
    display: inline-block;
}

/* Move rotation from img to the wrapper so play button hover doesn't break it */
.hero-image .hero-video-trigger img {
    rotate: 0deg !important;
}

.hero-video-trigger {
    rotate: 10deg;
    transition: rotate 0.4s;
}

.hero-video-trigger:hover {
    rotate: 0deg;
}

.hero-play-btn {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 2;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.hero-video-trigger:hover .hero-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
}

.hero-play-btn svg {
    width: 100%;
    height: 100%;
}

/* Hero video lightbox — larger video */
.fancybox__slide.has-video .fancybox__content {
    max-width: 960px;
    width: 90%;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 5px;
}

.hero-title .line {
    flex: 0 0 60px;
    height: 1px;
    background-color: var(--accent-color);
}

.hero-title .title-text {
    font-size: 56px;
    font-weight: 600;
    color: var(--accent-color);
    letter-spacing: 8px;
    text-transform: uppercase;
}

.hero-name-container h2 {
    line-height: 1.1;
    font-weight: 800;
}

/* Glow container — clips glow pseudo-elements while hero image can overflow */
.hero-glow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Hero radial gradient — ambient green halo behind hero image */
.hero-glow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -40%);
    width: 900px;
    height: 900px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(5, 150, 105, 0.18) 0%,
        rgba(5, 150, 105, 0.10) 30%,
        rgba(5, 150, 105, 0.04) 55%,
        transparent 80%
    );
    pointer-events: none;
}

[data-theme="dark"] .hero-glow::before {
    background: radial-gradient(
        circle,
        rgba(52, 211, 153, 0.45) 0%,
        rgba(52, 211, 153, 0.25) 25%,
        rgba(52, 211, 153, 0.10) 50%,
        transparent 75%
    );
    width: 1100px;
    height: 1100px;
    filter: blur(30px);
    animation: hero-orb-1 16s ease-in-out infinite;
}

@keyframes hero-orb-1 {
    0%   { transform: translate(-50%, -40%) scale(1); opacity: 0.9; }
    33%  { transform: translate(-48%, -42%) scale(1.04); opacity: 1; }
    66%  { transform: translate(-52%, -38%) scale(0.96); opacity: 0.85; }
    100% { transform: translate(-50%, -40%) scale(1); opacity: 0.9; }
}

/* Second glow layer for richer hero lighting in dark mode */
[data-theme="dark"] .hero-glow::after {
    content: '';
    position: absolute;
    top: 25%;
    left: 60%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(16, 185, 129, 0.25) 0%,
        rgba(52, 211, 153, 0.12) 40%,
        transparent 75%
    );
    pointer-events: none;
    filter: blur(40px);
    animation: hero-orb-2 20s ease-in-out infinite;
}

@keyframes hero-orb-2 {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    33%  { transform: translate(-48%, -52%) scale(1.06); opacity: 1; }
    66%  { transform: translate(-53%, -48%) scale(0.94); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
}

/* Dark mode: "Dr" title glow — start blur at 30px+ to keep text crisp */
[data-theme="dark"] .hero-title .title-text {
    text-shadow: 0 0 30px rgba(52, 211, 153, 0.6),
                 0 0 60px rgba(52, 211, 153, 0.35),
                 0 0 100px rgba(52, 211, 153, 0.15);
}

[data-theme="dark"] .hero-title .line {
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.5),
                0 0 40px rgba(52, 211, 153, 0.2);
}

/* GSAP hero animation initial states */
.gsap-hero .hero-content,
.gsap-hero .hero-image,
.gsap-hero .hero-title .line,
.gsap-hero .hero-title .title-text,
.gsap-hero .hero-name-container h2,
.gsap-hero .hero-content h3 {
    opacity: 0;
}

/* Spinify logo in hero */
.spinify-logo-wrapper {
    margin-bottom: 15px;
}

.spinify-logo {
    height: 40px;
    width: auto;
}

/* Dark mode: switch the dark text (#1E1B17) to white */
[data-theme="dark"] .spinify-logo .spinify-text {
    fill: #ffffff;
}

/* Logo text */
.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.nav-avatar {
    width: 32px !important;
    height: 32px !important;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 2px solid var(--accent-color);
    flex-shrink: 0;
}

/* ===========================
   BUTTONS
   =========================== */

.theme-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    border-radius: 25px !important;
    padding: 12px 30px !important;
    transition: all 0.3s ease !important;
}

.theme-btn:hover {
    background-color: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25),
                0 1px 3px rgba(5, 150, 105, 0.1);
}

/* Dark mode button — kill all box-shadow in every state */
[data-theme="dark"] .theme-btn,
[data-theme="dark"] .theme-btn:hover,
[data-theme="dark"] .theme-btn:focus,
[data-theme="dark"] .theme-btn:active {
    box-shadow: none !important;
    position: relative;
    z-index: 1;
}

/* Dark mode button glow — pseudo-element for separation from edge */
[data-theme="dark"] .theme-btn::after {
    content: '';
    position: absolute;
    inset: -8px;
    background: #34d399;
    border-radius: 50px;
    filter: blur(20px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[data-theme="dark"] .theme-btn:hover::after {
    opacity: 0.35;
}

/* Link Colors */
a:hover,
.linkstyle:hover {
    color: var(--accent-color) !important;
}

/* ===========================
   SECTION TITLES & SEPARATORS
   =========================== */

.section-title h2::before,
.section-title h2::after {
    background-color: var(--accent-color) !important;
    transform-origin: center;
}

/* Section title line animation (triggered by GSAP adding .title-revealed) */
.section-title h2::before,
.section-title h2::after {
    transform: scaleX(0);
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.section-title h2.title-revealed::before,
.section-title h2.title-revealed::after {
    transform: scaleX(1);
}

/* Gradient separator lines between sections */
.resume-area::before,
.projects-area::before,
.testimonials-area::before,
.contact-area::before,
.beyond-work-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(5, 150, 105, 0.2) 15%,
        rgba(5, 150, 105, 0.7) 50%,
        rgba(5, 150, 105, 0.2) 85%,
        transparent 100%
    );
    opacity: 1;
    transform: scaleX(var(--divider-scale, 0));
    transform-origin: center;
    z-index: 2;
}

[data-theme="dark"] .resume-area::before,
[data-theme="dark"] .projects-area::before,
[data-theme="dark"] .testimonials-area::before,
[data-theme="dark"] .contact-area::before,
[data-theme="dark"] .beyond-work-area::before {
    height: 2px;
    opacity: 1;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(52, 211, 153, 0.15) 10%,
        rgba(52, 211, 153, 0.9) 50%,
        rgba(52, 211, 153, 0.15) 90%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.5),
                0 0 50px rgba(52, 211, 153, 0.2),
                0 0 80px rgba(52, 211, 153, 0.08);
}

/* ===========================
   SERVICE ITEMS
   =========================== */

.service-item:hover {
    border-color: var(--accent-color) !important;
}

.service-item i {
    color: var(--accent-color) !important;
}

[data-theme="dark"] .service-item {
    background: var(--bg-card) !important;
    border-color: var(--bg-card-border) !important;
}

[data-theme="dark"] .service-item:hover {
    border-color: rgba(52, 211, 153, 0.4) !important;
    box-shadow: 0 0 30px rgba(52, 211, 153, 0.15),
                0 0 60px rgba(52, 211, 153, 0.05),
                inset 0 1px 0 rgba(52, 211, 153, 0.15);
}

[data-theme="dark"] .service-item:hover i {
    filter: drop-shadow(0 0 10px rgba(52, 211, 153, 0.8))
           drop-shadow(0 0 25px rgba(52, 211, 153, 0.5));
}

/* ===========================
   PORTFOLIO
   =========================== */

.portfolio-category {
    background-color: #10b981 !important;
}

/* Portfolio category badges — dark mode */
[data-theme="dark"] .portfolio-box .portfolio-category {
    background-color: #10b981 !important;
    color: #ffffff !important;
}

/* Portfolio card dark mode hover border + inset glow */
[data-theme="dark"] .portfolio-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid rgba(52, 211, 153, 0);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    pointer-events: none;
    z-index: 5;
}

[data-theme="dark"] .portfolio-box:hover::after {
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: inset 0 0 40px rgba(52, 211, 153, 0.15),
                0 0 35px rgba(52, 211, 153, 0.2),
                0 0 70px rgba(52, 211, 153, 0.08);
}

/* ===========================
   CONTACT FORM
   =========================== */

.form-control:focus {
    border-color: var(--accent-color) !important;
}

/* Dark mode form focus glow */
[data-theme="dark"] .form-control:focus {
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.4),
                0 0 30px rgba(52, 211, 153, 0.25),
                0 0 60px rgba(52, 211, 153, 0.08) !important;
    border-color: rgba(52, 211, 153, 0.6) !important;
}

/* ===========================
   PROGRESS CIRCLE / SCROLL-TO-TOP
   =========================== */

.progress-wrap {
    background-color: var(--bg-page) !important;
    mix-blend-mode: normal !important;
}

.progress-wrap svg.progress-circle path {
    stroke: var(--primary-color) !important;
}

.progress-wrap i {
    color: var(--primary-color) !important;
}

/* ===========================
   COUNTER ANIMATION
   =========================== */

.count-text {
    color: var(--primary-color) !important;
}

/* Counter text uses primary accent */
.about-area .count-text {
    color: var(--accent-color) !important;
}

/* Counter glow in dark mode only */
[data-theme="dark"] .about-area .count-text {
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.3),
                 0 0 40px rgba(52, 211, 153, 0.1);
}

/* ===========================
   SOCIAL ICONS
   =========================== */

.about-social ul li a {
    background-color: #0a66c2 !important;
    border-color: #0a66c2 !important;
    color: #ffffff !important;
}

.about-social ul li a:hover {
    background-color: #004182 !important;
    border-color: #004182 !important;
}

/* Preloader */
.preloader svg path {
    fill: var(--primary-color) !important;
}

/* ===========================
   MENU / NAV
   =========================== */

.main-menu nav ul li a.active,
.main-menu nav ul li a:hover {
    color: var(--accent-color) !important;
}

/* Sticky/Scrolled Header - gradient background */
.fixed-header .header-upper {
    background: linear-gradient(
        135deg,
        #10b981 0%,
        #059669 50%,
        #064e3b 100%
    ) !important;
}

[data-theme="dark"] .fixed-header .header-upper {
    background: linear-gradient(
        135deg,
        #059669 0%,
        #047857 50%,
        #022c22 100%
    ) !important;
}

/* Sticky/Scrolled Header - White text on green background */
.main-header.sticky .main-menu nav ul li a,
.main-header.fixed-header .main-menu nav ul li a,
.header-sticky .main-menu nav ul li a {
    color: #ffffff !important;
}

.main-header.sticky .main-menu nav ul li a:hover,
.main-header.fixed-header .main-menu nav ul li a:hover,
.header-sticky .main-menu nav ul li a:hover {
    color: #e0e0e0 !important;
    border-bottom-color: #ffffff !important;
}

.main-header.sticky .main-menu nav ul li a::after,
.main-header.fixed-header .main-menu nav ul li a::after,
.header-sticky .main-menu nav ul li a::after {
    background-color: #ffffff !important;
}

/* Logo text white when scrolled */
.main-header.sticky .logo a,
.main-header.fixed-header .logo a,
.header-sticky .logo a {
    color: #ffffff !important;
}

/* Nav CV Button */
.nav-cv-btn-wrapper {
    display: flex;
    align-items: center;
}

.nav-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px !important;
    border: 2px solid var(--accent-color) !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-color) !important;
    background: transparent;
    transition: all 0.3s ease;
    line-height: 1.4;
}

.nav-cv-btn:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border-color: var(--accent-color) !important;
}

.nav-cv-btn::after {
    display: none !important;
}

.nav-cv-btn i {
    font-size: 14px;
}

/* Scrolled header: white border CV button */
.main-header.sticky .nav-cv-btn,
.main-header.fixed-header .nav-cv-btn,
.header-sticky .nav-cv-btn {
    border-color: #ffffff !important;
    color: #ffffff !important;
}

.main-header.sticky .nav-cv-btn:hover,
.main-header.fixed-header .nav-cv-btn:hover,
.header-sticky .nav-cv-btn:hover {
    background: #ffffff !important;
    color: var(--accent-color) !important;
}

/* Dark mode nav CV button */
[data-theme="dark"] .nav-cv-btn {
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
}

[data-theme="dark"] .nav-cv-btn:hover {
    background: var(--accent-color) !important;
    color: #ffffff !important;
}

/* ===========================
   FOOTER
   =========================== */

footer {
    background: linear-gradient(
        135deg,
        #10b981 0%,
        #059669 50%,
        #064e3b 100%
    ) !important;
}

[data-theme="dark"] footer {
    background: linear-gradient(
        135deg,
        #059669 0%,
        #047857 50%,
        #022c22 100%
    ) !important;
}

footer p,
footer h2,
footer a,
.footer-top p,
.footer-top h2,
.footer-top h2 a {
    color: #ffffff !important;
}

footer a:hover {
    color: #e0e0e0 !important;
    text-decoration: none;
    text-decoration: underline;
}

/* Contact page — push footer to bottom */
.contact-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.contact-page .contact-area {
    flex: 1;
}

.contact-page .main-footer {
    margin-top: 0;
}

.contact-page .main-footer {
    padding: 40px 0;
}

.contact-page .main-footer .copy-left-text,
.contact-page .main-footer .copy-right-text {
    margin-bottom: 0;
}

/* Footer CTA button — white with green text, centred */
footer .footer-cta-btn,
.main-footer .footer-cta-btn {
    display: inline-block;
    background-color: #ffffff !important;
    color: #059669 !important;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-top: 20px;
}

footer .footer-cta-btn:hover,
.main-footer .footer-cta-btn:hover {
    background-color: #f0fdf4 !important;
    color: #047857 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    text-decoration: none !important;
}

footer .footer-cta-btn i,
.main-footer .footer-cta-btn i {
    color: inherit !important;
    margin-left: 6px;
}

.footer-top {
    text-align: center;
}

.copy-left-text,
.copy-right-text {
    color: rgba(255, 255, 255, 0.8) !important;
}

/* Circle Button */
.circle-btn {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.circle-btn:hover {
    background-color: var(--primary-hover) !important;
}

/* ===========================
   CLIENT LOGOS
   =========================== */

.company-design-area .scroller__inner img {
    height: 35px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    margin: 0 30px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.company-design-area .scroller__inner img:hover {
    opacity: 1;
}

.client-logo-text {
    display: inline-block;
    padding: 20px 40px;
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
    margin: 0 30px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.client-logo-text:hover {
    opacity: 1;
}

/* ===========================
   SKILLS SECTION
   =========================== */

.skills-category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-transform: uppercase;
}

[data-theme="dark"] .skills-category-title {
    color: #34d399;
}

.skills-category-desc {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.75;
    margin-bottom: 25px;
    max-width: 800px;
}

.skills-category-desc a {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
}

.skills-category-desc a:hover {
    text-decoration: underline;
    letter-spacing: 1px;
}

.skill-badge {
    background: var(--bg-card);
    border: 2px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 20px 15px;
    margin-bottom: 15px;
    height: calc(100% - 15px);
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-body);
    transition: all 0.3s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Skill icon circle — matches contact section circle-btn style */
.skill-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    flex-shrink: 0;
}

/* Offset circle pseudo-element behind the icon */
.skill-icon::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: rgba(5, 150, 105, 0.2);
    z-index: -1;
}

.skill-icon i {
    font-size: 18px;
    color: #ffffff;
    line-height: 1;
}

[data-theme="dark"] .skill-icon::before {
    background-color: rgba(52, 211, 153, 0.15);
}

/* Inverse icon — white circle on green backgrounds */
.skill-icon-inverse {
    background-color: #ffffff !important;
}

.skill-icon-inverse::before {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

.skill-icon-inverse i {
    color: #059669 !important;
}

.skill-badge:hover {
    border-color: var(--accent-color);
    background-color: var(--bg-section);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

/* Skill Badges with Logos */
.skill-badge-with-logo {
    background: var(--bg-section);
    border: 2px solid var(--bg-card-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    height: calc(100% - 15px);
    text-align: center;
    transition: all 0.3s ease;
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.skill-badge-with-logo:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.skill-badge-with-logo .skill-logo {
    height: 40px;
    width: auto;
    max-width: 80px;
    object-fit: contain;
}

.skill-badge-with-logo span {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-body);
}

/* Dark mode: skill badge glassmorphism */
[data-theme="dark"] .skill-badge,
[data-theme="dark"] .skill-badge-with-logo {
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .skill-badge-with-logo .skill-logo-mono {
    filter: invert(1) brightness(2);
}

[data-theme="dark"] .skill-badge:hover,
[data-theme="dark"] .skill-badge-with-logo:hover {
    background: rgba(20, 20, 20, 0.95);
    border-color: rgba(52, 211, 153, 0.5);
    box-shadow: 0 4px 30px rgba(52, 211, 153, 0.25),
                0 0 50px rgba(52, 211, 153, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ===========================
   SKILL PANEL HORIZONTAL SCROLL
   =========================== */

.skill-panels-header {
    position: relative;
    z-index: 2;
}

.skill-panels-track {
    display: flex;
    gap: 100px;
    position: relative;
    z-index: 1;
}

.skill-panel {
    flex: 0 0 100vw;
    width: 100vw;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .services-area {
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* Below desktop: stack panels vertically */
@media (max-width: 991px) {
    .skill-panels-track {
        flex-direction: column;
        gap: 0;
    }

    .skill-panel {
        flex: 0 0 auto;
        width: 100%;
    }

    .skill-panel + .skill-panel {
        margin-top: 40px;
    }
}

/* ===========================
   PORTFOLIO FILTER
   =========================== */

.portfolio-filter {
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    margin: 5px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.filter-btn:hover {
    color: var(--accent-color);
}

.filter-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

.filter-btn.active::after {
    width: 100%;
}

/* ===========================
   PORTFOLIO GRID
   =========================== */

#portfolio-container {
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-grid {
    position: relative;
}

.portfolio-grid.row {
    display: flex !important;
    justify-content: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.portfolio-grid.row::after {
    content: none !important;
}

.portfolio-item {
    margin-bottom: 24px;
}

.portfolio-item a.work-popup {
    display: block;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    height: 350px;
    transform: none;
    -webkit-transform: none;
}

.portfolio-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.4s ease;
}

.portfolio-box.align-left img {
    object-position: top left;
}

.portfolio-box:hover img {
    transform: scale(1.1);
}

.portfolio-box .portfolio-category {
    position: absolute !important;
    top: 20px !important;
    left: 20px !important;
    background-color: #10b981 !important;
    color: #ffffff !important;
    padding: 5px 14px !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    z-index: 10 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    display: inline-block !important;
    width: auto !important;
    line-height: 1.4 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

.portfolio-box .portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 70%, transparent 100%);
    padding: 40px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.portfolio-box:hover .portfolio-caption {
    transform: translateY(0);
}

.portfolio-box .portfolio-caption h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

.portfolio-box .portfolio-caption p {
    color: rgba(255,255,255,0.85);
    font-size: 12px;
    margin: 0 0 12px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-view-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-view-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Show More Overlay */
.portfolio-show-more-overlay {
    position: relative;
    margin-top: -200px;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-section) 50%, var(--bg-section) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    z-index: 2;
    pointer-events: none;
}

.portfolio-show-more-overlay.hidden {
    display: none;
}

#show-more-btn {
    pointer-events: all;
}

#portfolio-container.show-all .portfolio-show-more-overlay {
    display: none;
}

#portfolio-container.show-all .portfolio-item {
    display: block !important;
}

html {
    scroll-behavior: smooth;
}

/* ===========================
   FANCYBOX 5
   =========================== */

/* Side-caption layout — grid centers the card AND matches child heights */
.fancybox__slide.has-caption {
    display: grid !important;
    grid-template-columns: minmax(0, auto) 350px !important;
    justify-content: center !important;
    align-content: center !important;
    align-items: stretch !important;
    padding: 48px 100px !important;
}

/* Content area — override Fancybox inline sizing for row layout */
.fancybox__slide.has-caption > .fancybox__content {
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100vh - 96px) !important;
    border-radius: 10px 0 0 10px !important;
    overflow: hidden !important;
    background: var(--bg-lightbox) !important;
    display: block !important;
    transform: none !important;
}

/* Scrollable wrapper for tall images */
.lightbox-scroll-wrap {
    min-width: min(730px, calc(100vw - 600px));
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    overflow-x: hidden;
}

.fancybox__slide.has-caption > .fancybox__content .fancybox-image {
    min-width: min(730px, calc(100vw - 600px));
    width: 100% !important;
    height: auto !important;
    display: block;
    object-fit: unset !important;
}


/* PDF iframe — A4 proportions, no internal scroll */
.fancybox__slide.has-pdf.has-caption > .fancybox__content .fancybox__iframe {
    width: min(730px, calc(100vw - 600px)) !important;
    aspect-ratio: 1 / 1.4142 !important;
    max-height: calc(100vh - 96px) !important;
}

/* Non-PDF iframes — fill available space */
.fancybox__slide.has-caption:not(.has-pdf) > .fancybox__content .fancybox__iframe {
    width: min(730px, calc(100vw - 600px)) !important;
    height: calc(100vh - 96px) !important;
}

/* Caption panel — right side, fixed 350px */
.fancybox__slide.has-caption > .fancybox__caption {
    grid-column: 2 !important;
    grid-row: 1 !important;
    align-self: stretch !important;
    width: 350px !important;
    max-width: 350px !important;
    padding: 30px;
    background: var(--bg-lightbox);
    color: var(--text-lightbox);
    border-radius: 0 10px 10px 0 !important;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    max-height: calc(100vh - 96px);
}

/* Title */
.fancybox-title {
    color: var(--text-lightbox);
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 10px;
}

/* Description */
.fancybox-desc {
    color: var(--text-lightbox);
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
    flex: 1;
    margin: 0;
}

/* Category badge */
.lightbox-category-badge {
    display: block;
    background-color: #a7f3d0;
    color: #059669;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    width: fit-content;
}

[data-theme="dark"] .lightbox-category-badge {
    background-color: rgba(5, 150, 105, 0.25);
    color: #34d399;
}

/* View in New Tab link — pushed to bottom */
.fancybox__caption .lightbox-view-link {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    text-align: left;
}

.lightbox-view-link {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lightbox-view-link a {
    display: inline-block;
    color: var(--accent-color) !important;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border: 2px solid var(--accent-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.lightbox-view-link a:hover {
    background-color: var(--primary-color);
    color: #fff !important;
    transform: translateX(1px);
}

/* Nav arrows — green circles with Remix Icons */
.fancybox__nav .f-button {
    --f-button-bg: var(--primary-color);
    --f-button-hover-bg: var(--primary-hover);
    --f-button-color: #fff;
    --f-button-border-radius: 50%;
    --f-button-width: 44px;
    --f-button-height: 44px;
}

.fancybox__nav .f-button svg {
    display: none !important;
}

.fancybox__nav .f-button::after {
    font-family: 'remixicon' !important;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    position: relative;
    z-index: 2;
}

.fancybox__nav .f-button[data-fancybox-prev]::after,
.fancybox__nav .f-button.is-prev::after {
    content: '\ea64' !important;
}

.fancybox__nav .f-button[data-fancybox-next]::after,
.fancybox__nav .f-button.is-next::after {
    content: '\ea6e' !important;
}

/* Close button — green circle with Remix Icon */
.fancybox__toolbar .f-button[data-fancybox-close],
.f-button.is-close-btn {
    --f-button-bg: var(--primary-color);
    --f-button-hover-bg: var(--primary-hover);
    --f-button-color: #fff;
    --f-button-border-radius: 50%;
    background: var(--primary-color) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 40px;
    height: 40px;
}

.fancybox__toolbar .f-button[data-fancybox-close]:hover,
.f-button.is-close-btn:hover {
    background: var(--primary-hover) !important;
}

.fancybox__toolbar .f-button[data-fancybox-close] svg,
.f-button.is-close-btn svg {
    display: none !important;
}

.fancybox__toolbar .f-button[data-fancybox-close]::after,
.f-button.is-close-btn::after {
    font-family: 'remixicon' !important;
    font-style: normal;
    font-size: 20px;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    content: '\eb99' !important;
}

/* Backdrop */
.fancybox__backdrop {
    background: rgba(0, 0, 0, 0.85) !important;
}

/* Mobile: stack caption below */
@media (max-width: 768px) {
    .fancybox__slide.has-caption {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        padding: 48px 16px !important;
    }

    .fancybox__slide.has-caption > .fancybox__content {
        grid-column: 1 !important;
        grid-row: 1 !important;
        border-radius: 10px 10px 0 0 !important;
    }

    .fancybox__slide.has-caption > .fancybox__content .fancybox-image {
        max-width: 100%;
    }

    .fancybox__slide.has-caption > .fancybox__content .fancybox__iframe {
        width: 100% !important;
        height: 60vh !important;
    }

    .fancybox__slide.has-caption > .fancybox__caption {
        grid-column: 1 !important;
        grid-row: 2 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 200px;
        border-radius: 0 0 10px 10px !important;
    }
}

/* ===========================
   TESTIMONIALS
   =========================== */

.testimonials-area .row {
    display: flex;
    flex-wrap: wrap;
}

.testimonials-area .row > [class*="col-"] {
    display: flex;
    padding-left: 20px;
    padding-right: 20px;
}

.testimonial-item {
    margin-bottom: 40px;
}

.testimonial-item {
    background: rgba(5, 150, 105, 0.06) !important;
    border: 1px solid rgba(5, 150, 105, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-item .text {
    flex: 1;
}

.testimonial-item .text {
    margin-bottom: 12px;
}

.testimonial-item .testi-des {
    margin-top: 0;
}

.testimonial-item .testi-des h5 {
    font-size: 22px;
}

.testimonial-item .testi-des span {
    color: var(--primary-color);
}

/* Dark mode testimonial glass treatment */
[data-theme="dark"] .testimonial-item {
    background: rgba(22, 22, 22, 0.95) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="dark"] .testimonial-item:hover {
    border-color: rgba(52, 211, 153, 0.45) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 35px rgba(52, 211, 153, 0.2),
                0 0 4px rgba(52, 211, 153, 0.5);
}

/* ===========================
   PROJECTS PAGE
   =========================== */

.resume-area .row.mb-5 {
    perspective: 1200px;
}

.project-heading {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--accent-color);
}

/* Project client logos above headings */
.project-client-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

/* Light/dark logo swap */
.project-client-logo.logo-dark {
    display: none;
}

[data-theme="dark"] .project-client-logo.logo-light {
    display: none;
}

[data-theme="dark"] .project-client-logo.logo-dark {
    display: block;
}


/* Override inline #f8f9fa backgrounds on projects.html */
[data-theme="dark"] .project-stat-card {
    background: var(--bg-card) !important;
}

[data-theme="dark"] .project-divider {
    border-bottom-color: var(--border-light) !important;
}

/* ===========================
   DARK MODE SPECIFIC OVERRIDES
   =========================== */

/* Text colours that style.css sets to dark values */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
    color: var(--text-heading);
}

[data-theme="dark"] p,
[data-theme="dark"] li,
[data-theme="dark"] span {
    color: var(--text-body);
}

/* Keep text white on always-dark sections */
[data-theme="dark"] .company-design-area h2 {
    color: var(--primary-color);
}

[data-theme="dark"] .company-design-area p {
    color: #ffffff;
}

/* About section uses theme text colours in dark mode */
[data-theme="dark"] .about-area h2,
[data-theme="dark"] .about-area p {
    color: var(--text-heading);
}

/* Keep footer text white */
[data-theme="dark"] footer p,
[data-theme="dark"] footer h2,
[data-theme="dark"] footer a,
[data-theme="dark"] .footer-top p,
[data-theme="dark"] .footer-top h2,
[data-theme="dark"] .footer-top h2 a {
    color: #ffffff !important;
}

/* Nav links (non-scrolled state) */
[data-theme="dark"] .main-menu nav ul li a {
    color: var(--text-heading);
}

/* Keep scrolled header nav white */
[data-theme="dark"] .main-header.sticky .main-menu nav ul li a,
[data-theme="dark"] .main-header.fixed-header .main-menu nav ul li a,
[data-theme="dark"] .header-sticky .main-menu nav ul li a {
    color: #ffffff !important;
}

/* Dark mode accent on section decorators */
[data-theme="dark"] .section-title h2::before,
[data-theme="dark"] .section-title h2::after {
    background-color: var(--accent-color) !important;
}

/* Form inputs */
[data-theme="dark"] .form-control {
    background-color: var(--bg-card) !important;
    color: var(--text-body);
    border-color: var(--border-light) !important;
}

/* Resume area on about/projects pages */
.resume-area {
    position: relative;
    background: var(--bg-section) !important;
    margin-top: 0;
}

/* Projects page: more breathing room above first case study */
#projects.resume-area {
    padding-top: 100px !important;
}

/* More gap between case study rows */
#projects.resume-area .row.mb-5 {
    margin-bottom: 80px !important;
}

#projects.resume-area .row.pb-5 {
    padding-bottom: 80px !important;
}

/* Double spacing above and below the Selected Work portfolio section */
.projects-area#portfolio {
    padding-top: 160px !important;
    padding-bottom: 160px !important;
}

/* Ghost button */
.ghost-btn {
    display: inline-block;
    padding: 12px 30px;
    border: 1px solid var(--accent-color);
    border-radius: 25px;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
}

a.ghost-btn:hover {
    background: var(--accent-color);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25),
                0 1px 3px rgba(5, 150, 105, 0.1);
}

[data-theme="dark"] .ghost-btn {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

[data-theme="dark"] .ghost-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.3);
}

[data-theme="dark"] .resume-area {
    background: var(--bg-section) !important;
}

/* Dark mode resume area text */
[data-theme="dark"] .resume-area h2,
[data-theme="dark"] .resume-area h3,
[data-theme="dark"] .resume-area h4 {
    color: var(--text-heading);
}

[data-theme="dark"] .resume-area p,
[data-theme="dark"] .resume-area li,
[data-theme="dark"] .resume-area strong {
    color: var(--text-body);
}

/* Project label text (Industry, Challenge, Solution etc.) in brand green */
.resume-area .row > .col-lg-6 > p.mb-3 > strong {
    color: var(--primary-color);
}

/* Dark mode resume box cards — dark background + light text */
[data-theme="dark"] .resume-wrapper .resume-box {
    background: var(--bg-card);
}

[data-theme="dark"] .resume-box h2 {
    color: var(--text-heading);
}

[data-theme="dark"] .resume-box p,
[data-theme="dark"] .resume-box span:not(.resume-date) {
    color: var(--text-body);
}

[data-theme="dark"] .resume-box {
    border-color: var(--border-light);
}

[data-theme="dark"] .resume-date {
    color: var(--accent-color);
}

/* Single page hero (about/projects) */
[data-theme="dark"] .single-page-hero-area {
    background-color: var(--bg-section) !important;
}

/* Skill area on about/projects pages */
[data-theme="dark"] .skill-area {
    background-color: var(--bg-section) !important;
}

[data-theme="dark"] .skill-item {
    background: var(--bg-card);
    border-color: var(--bg-card-border);
}

/* Sidebar mobile menu dark mode */
[data-theme="dark"] .sidebar__area {
    background-color: var(--bg-card);
}

[data-theme="dark"] .sidebar__area .mobile-menu nav ul li a {
    color: var(--text-body);
}

/* Counter title text */
[data-theme="dark"] .counter-title {
    color: var(--text-muted);
}

/* Hero content text */
[data-theme="dark"] .hero-content p {
    color: var(--text-body);
}

[data-theme="dark"] .reviews,
[data-theme="dark"] .reviews span {
    color: var(--text-body);
}

[data-theme="dark"] .reviews p {
    color: var(--text-muted);
}

/* Testimonial text in dark mode */
[data-theme="dark"] .testimonial-item .text {
    color: var(--text-body);
}

[data-theme="dark"] .testimonial-item .testi-des h5 {
    color: var(--text-heading);
}

[data-theme="dark"] .testimonial-item .testi-des span {
    color: var(--accent-color);
}

/* Contact cards — add gap when stacked at tablet width */
@media only screen and (min-width: 767px) and (max-width: 991px) {
    .single-contact + .single-contact {
        margin-top: 15px;
    }
}

/* Contact section text - dark text on white card backgrounds */
[data-theme="dark"] .single-contact h2 {
    color: #1a1a1a;
}

[data-theme="dark"] .single-contact p,
[data-theme="dark"] .single-contact p a {
    color: #333333;
}

.single-contact p a {
    color: inherit;
    text-decoration: none;
}

.single-contact p a:hover {
    color: var(--accent-color);
}

/* Form labels - dark text on white card backgrounds */
[data-theme="dark"] .form-group label {
    color: #333333;
}

/* Send message button text */
[data-theme="dark"] .theme-btn {
    color: #ffffff !important;
}

/* Placeholder text — dark mode contact form */
[data-theme="dark"] .contact-form-area .form-group input[type=text],
[data-theme="dark"] .contact-form-area .form-group input[type=email],
[data-theme="dark"] .contact-form-area .form-group textarea {
    color: var(--text-body) !important;
}

[data-theme="dark"] .contact-form-area .form-group input::placeholder,
[data-theme="dark"] .contact-form-area .form-group textarea::placeholder {
    color: #d1d5db !important;
    opacity: 1 !important;
}

[data-theme="dark"] .contact-form-area .form-group input::-webkit-input-placeholder,
[data-theme="dark"] .contact-form-area .form-group textarea::-webkit-input-placeholder {
    color: #d1d5db !important;
    opacity: 1 !important;
}

/* ===========================
   THEME TOGGLE SWITCH
   =========================== */

.theme-toggle-wrapper {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.theme-toggle-btn {
    position: relative;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background-color: #e5e7eb;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.theme-toggle-btn.dark {
    background-color: #374151;
}

.theme-toggle-btn .toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

.theme-toggle-btn.dark .toggle-knob {
    transform: translateX(24px);
}

.theme-toggle-btn .toggle-icon {
    width: 14px;
    height: 14px;
    z-index: 1;
    flex-shrink: 0;
}

.theme-toggle-btn .toggle-icon-moon {
    color: #ffffff;
}

.theme-toggle-btn .toggle-icon-sun {
    color: #555555;
}

.main-header.sticky .theme-toggle-btn,
.main-header.fixed-header .theme-toggle-btn,
.header-sticky .theme-toggle-btn {
    background-color: rgba(255, 255, 255, 0.25);
}

.main-header.sticky .theme-toggle-btn.dark,
.main-header.fixed-header .theme-toggle-btn.dark,
.header-sticky .theme-toggle-btn.dark {
    background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 991px) {
    .theme-toggle-wrapper {
        position: fixed;
        bottom: 80px;
        right: 20px;
        z-index: 999;
        margin-left: 0;
    }

    .theme-toggle-btn {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* ===========================
   DARK MODE AMBIENT GLOW ORBS
   Floating gradient meshes on key sections
   =========================== */

/* Slow drift + pulse keyframes for ambient orbs */
@keyframes orb-drift-1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    33%  { transform: translate(30px, -20px) scale(1.05); opacity: 1; }
    66%  { transform: translate(-20px, 15px) scale(0.95); opacity: 0.85; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
}

@keyframes orb-drift-2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.85; }
    33%  { transform: translate(-25px, 25px) scale(1.06); opacity: 1; }
    66%  { transform: translate(20px, -15px) scale(0.94); opacity: 0.8; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.85; }
}

@keyframes orb-drift-3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.9; }
    33%  { transform: translate(20px, 20px) scale(0.96); opacity: 0.8; }
    66%  { transform: translate(-15px, -25px) scale(1.04); opacity: 1; }
    100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
}

@keyframes orb-drift-4 {
    0%   { transform: translateX(-50%) scale(1); opacity: 0.85; }
    33%  { transform: translateX(-50%) translate(15px, -20px) scale(1.05); opacity: 1; }
    66%  { transform: translateX(-50%) translate(-20px, 15px) scale(0.95); opacity: 0.8; }
    100% { transform: translateX(-50%) scale(1); opacity: 0.85; }
}

/* Services section — top-right ambient orb */
[data-theme="dark"] .services-area::after {
    content: '';
    position: absolute;
    top: 5%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 211, 153, 0.18) 0%,
        rgba(52, 211, 153, 0.08) 35%,
        rgba(52, 211, 153, 0.02) 60%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: orb-drift-1 12s ease-in-out infinite;
}

/* Portfolio section — bottom-left ambient orb */
[data-theme="dark"] .projects-area::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: -12%;
    width: 800px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(16, 185, 129, 0.16) 0%,
        rgba(52, 211, 153, 0.07) 35%,
        rgba(52, 211, 153, 0.02) 60%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: orb-drift-2 15s ease-in-out infinite;
}

/* Testimonials section — centre-right ambient orb */
[data-theme="dark"] .testimonials-area::after {
    content: '';
    position: absolute;
    top: 20%;
    right: -8%;
    width: 650px;
    height: 650px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 211, 153, 0.15) 0%,
        rgba(52, 211, 153, 0.06) 35%,
        rgba(52, 211, 153, 0.02) 60%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: orb-drift-3 18s ease-in-out infinite;
}

/* Contact section — centre ambient orb */
[data-theme="dark"] .contact-area::after {
    content: '';
    position: absolute;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(52, 211, 153, 0.15) 0%,
        rgba(52, 211, 153, 0.06) 35%,
        rgba(52, 211, 153, 0.02) 60%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: orb-drift-4 14s ease-in-out infinite;
}

/* Ensure sections clip overflow for orbs */
[data-theme="dark"] .services-area,
[data-theme="dark"] .projects-area,
[data-theme="dark"] .testimonials-area,
[data-theme="dark"] .contact-area {
    overflow: hidden;
}

/* Lift all section content above the ambient glow orbs */
.services-area > .container,
.projects-area > .container,
.testimonials-area > .container,
.contact-area > .container {
    position: relative;
    z-index: 1;
}

/* ===========================
   CURSOR FOLLOWER — primary colour
   =========================== */

#ball {
    border-color: #059669 !important;
}

/* ===========================
   DARK MODE NAV LINK GLOW ON HOVER
   =========================== */

[data-theme="dark"] .main-menu nav ul li a:hover {
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.6),
                 0 0 25px rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .linkstyle:before {
    background: #ffffff;
}

/* ===========================
   DARK MODE SECTION TITLE GLOW
   =========================== */

[data-theme="dark"] .section-title h2 {
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.3),
                 0 0 50px rgba(52, 211, 153, 0.1);
}

/* ===========================
   DARK MODE SOCIAL ICON HOVER GLOW
   =========================== */

[data-theme="dark"] .about-social ul li a:hover {
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.6),
                0 0 35px rgba(52, 211, 153, 0.25),
                0 0 60px rgba(52, 211, 153, 0.1);
}

/* ===========================
   DARK MODE LOGO TEXT GLOW
   =========================== */

[data-theme="dark"] .logo-text {
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.5),
                 0 0 35px rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .nav-avatar {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5),
                0 0 25px rgba(52, 211, 153, 0.2);
}

/* ===========================
   SUBPAGE VISUAL UPGRADE
   Hero, spacing, cards, orbs, accents
   =========================== */

/* -----------------------------------------------
   1. SINGLE PAGE HERO — UPGRADED
   Green accent line, title glow, visual punch
   ----------------------------------------------- */

.single-page-hero-area {
    position: relative;
    overflow: hidden;
    padding-top: 180px;
    padding-bottom: 60px;
    background: var(--bg-section) !important;
}

/* Hero description text */
.single-page-hero-area .hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 900px;
    margin-top: 20px;
    text-align: left !important;
    padding: 0 !important;
}

/* Accent line below hero title */
.single-page-hero-area h2 {
    font-size: 80px;
    color: var(--text-heading) !important;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    text-align: left;
}

.single-page-hero-area .hero-desc {
    text-align: left;
}

.single-page-hero-area h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
    transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.single-page-hero-area:hover h2::after {
    width: 160px;
}

/* Subtle ambient glow behind hero title in dark mode */
[data-theme="dark"] .single-page-hero-area::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        rgba(52, 211, 153, 0.12) 0%,
        rgba(52, 211, 153, 0.04) 40%,
        transparent 70%
    );
    pointer-events: none;
    filter: blur(50px);
    animation: orb-drift-3 16s ease-in-out infinite;
    z-index: 0;
}

/* Lift hero content above the glow orb */
.single-page-hero-area > .container {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] .single-page-hero-area h2::after {
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.6),
                0 0 40px rgba(52, 211, 153, 0.2);
}

/* -----------------------------------------------
   2. SECTION SPACING — subpage resume-area
   Restore proper padding when no-padding is removed
   ----------------------------------------------- */

/* Intro section title treatment */
.resume-area .section-title-intro {
    margin-bottom: 50px;
}

.resume-area .section-title-intro h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--text-heading);
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}

.resume-area .section-title-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

[data-theme="dark"] .resume-area .section-title-intro h2::after {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5),
                0 0 25px rgba(52, 211, 153, 0.15);
}

.resume-area .section-title-intro p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-body);
    margin-bottom: 20px;
    max-width: 900px;
}

/* -----------------------------------------------
   3. VERTICAL TIMELINE
   Alternating left/right cards with centre line
   ----------------------------------------------- */

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0 40px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent-color);
    transform: translateX(-50%) scaleY(0);
    transform-origin: top;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-left {
    padding-right: 50px;
    text-align: right;
}

.timeline-right {
    left: 50%;
    padding-left: 50px;
}

.timeline-dot {
    position: absolute;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 3px solid var(--bg-page);
    z-index: 2;
}

.timeline-left .timeline-dot {
    right: -8px;
}

.timeline-right .timeline-dot {
    left: -8px;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: rgba(5, 150, 105, 0.2);
}

/* Header row: badge on one side, date on the other */
.timeline-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

/* Green pill badge matching .portfolio-category style */
.timeline-type-badge {
    display: inline-block;
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

[data-theme="dark"] .timeline-type-badge {
    background-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.timeline-date {
    font-size: 14px;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.timeline-content h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 4px;
}

.timeline-org {
    display: block;
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.timeline-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 0;
}

/* Right items: reverse header so badge is on the outside (right) edge */
.timeline-right .timeline-header {
    flex-direction: row-reverse;
}

/* Dark mode timeline */
[data-theme="dark"] .timeline-date {
    color: #059669;
}

[data-theme="dark"] .timeline-org {
    color: var(--text-muted);
}

[data-theme="dark"] .timeline-content {
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .timeline-content:hover {
    border-color: rgba(52, 211, 153, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(52, 211, 153, 0.15),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .timeline-dot {
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5),
                0 0 25px rgba(52, 211, 153, 0.2);
}

[data-theme="dark"] .timeline-line {
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.3),
                0 0 20px rgba(52, 211, 153, 0.1);
}

/* Mobile timeline — single column */
@media (max-width: 767px) {
    .timeline-line {
        left: 15px;
        transform: translateX(0) scaleY(0);
    }

    .timeline-item {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
        text-align: left;
    }

    .timeline-right {
        left: 0;
    }

    .timeline-dot {
        left: 8px;
        right: auto;
    }

    .timeline-left .timeline-dot {
        right: auto;
        left: 8px;
    }

    .timeline-right .timeline-header {
        flex-direction: row;
    }

    .timeline-header {
        flex-wrap: wrap;
    }
}

/* -----------------------------------------------
   4. AMBIENT GLOW ORB — .resume-area
   Bottom-right orb matching homepage pattern
   ----------------------------------------------- */

[data-theme="dark"] .resume-area::after {
    content: '';
    position: absolute;
    bottom: 5%;
    right: -10%;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(52, 211, 153, 0.14) 0%,
        rgba(52, 211, 153, 0.06) 35%,
        rgba(52, 211, 153, 0.02) 60%,
        transparent 75%
    );
    pointer-events: none;
    z-index: 0;
    filter: blur(40px);
    animation: orb-drift-2 14s ease-in-out infinite;
}

[data-theme="dark"] .resume-area {
    overflow: hidden;
}

.resume-area > .container {
    position: relative;
    z-index: 1;
}

/* -----------------------------------------------
   5. PROJECT STAT CARDS — GLOW TREATMENT
   Border, glow, dark mode glass
   ----------------------------------------------- */

.project-stat-card {
    border: 1px solid rgba(5, 150, 105, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.project-stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(5, 150, 105, 0.3);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.1);
}

[data-theme="dark"] .project-stat-card {
    border-color: rgba(52, 211, 153, 0.15) !important;
}

[data-theme="dark"] .project-stat-card:hover {
    border-color: rgba(52, 211, 153, 0.4) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(52, 211, 153, 0.2),
                inset 0 1px 0 rgba(52, 211, 153, 0.1) !important;
    transform: translateY(-4px);
}

/* Stat card large number — accent glow in dark mode */
[data-theme="dark"] .project-stat-card h4 {
    color: var(--accent-color) !important;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.4),
                 0 0 50px rgba(52, 211, 153, 0.15);
}

/* -----------------------------------------------
   6. QUOTE / TESTIMONIAL TEXT — ACCENT STYLING
   Italic quotes with green left border
   ----------------------------------------------- */

.resume-area .row.mb-5 p[style*="font-style: italic"],
.project-quote {
    border-left: 3px solid var(--accent-color);
    padding-left: 20px;
    margin-left: 0;
    font-style: italic;
    color: var(--text-muted);
}

[data-theme="dark"] .resume-area .row.mb-5 p[style*="font-style: italic"],
[data-theme="dark"] .project-quote {
    border-left-color: var(--accent-color);
    color: var(--text-body);
    text-shadow: 0 0 15px rgba(52, 211, 153, 0.1);
}

/* -----------------------------------------------
   7. CASE STUDY PDF LINKS — THEME BUTTON STYLE
   ----------------------------------------------- */

.case-study-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff !important;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    margin-top: 10px;
    position: relative;
    z-index: 1;
}

.case-study-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.25),
                0 1px 3px rgba(5, 150, 105, 0.1);
    color: #ffffff !important;
    text-decoration: none;
}

.case-study-btn i {
    margin-right: 8px;
    color: #ffffff !important;
}

/* Dark mode case study button glow */
[data-theme="dark"] .case-study-btn {
    box-shadow: none;
}

[data-theme="dark"] .case-study-btn::after {
    content: '';
    position: absolute;
    inset: -6px;
    background: #34d399;
    border-radius: 50px;
    filter: blur(18px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

[data-theme="dark"] .case-study-btn:hover::after {
    opacity: 0.3;
}

/* -----------------------------------------------
   8a. PROJECT LIST BULLETS — accent colour
   ----------------------------------------------- */

.resume-area .row.project-divider ul,
.resume-area .row.mb-5 ul {
    list-style: none;
    padding-left: 0;
    line-height: 1.5 !important;
}

.resume-area .row.project-divider ul li,
.resume-area .row.mb-5 ul li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 2px;
}

.resume-area .row.project-divider ul li::before,
.resume-area .row.mb-5 ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(5, 150, 105, 0.3);
}

[data-theme="dark"] .resume-area .row.project-divider ul li::before,
[data-theme="dark"] .resume-area .row.mb-5 ul li::before {
    background-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5),
                0 0 25px rgba(52, 211, 153, 0.15);
}

/* -----------------------------------------------
   8. PROJECT DIVIDER — UPGRADED
   Accent-coloured with subtle glow in dark mode
   ----------------------------------------------- */

.project-divider {
    border-bottom-color: rgba(5, 150, 105, 0.15) !important;
    transition: border-color 0.3s ease;
    padding-bottom: 50px !important;
    margin-bottom: 50px !important;
}

[data-theme="dark"] .project-divider {
    border-bottom: 2px solid rgba(52, 211, 153, 0.12) !important;
}

/* -----------------------------------------------
   9. PROJECT IMAGE HOVER
   Subtle lift and shadow on project images
   ----------------------------------------------- */

.resume-area .row.mb-5 .img-fluid,
.resume-area .row.project-divider .img-fluid {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
}

.resume-area .row.mb-5 .img-fluid:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .resume-area .row.mb-5 .img-fluid:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(52, 211, 153, 0.1);
}

/* -----------------------------------------------
   10. RESPONSIVE ADJUSTMENTS
   ----------------------------------------------- */

@media (max-width: 768px) {
    .single-page-hero-area {
        padding-top: 140px;
        padding-bottom: 40px;
    }

    .single-page-hero-area h2 {
        font-size: 48px;
    }

    .resume-area .section-title-intro h2 {
        font-size: 28px;
    }

    .about-page-profile .about-content-part p {
        font-size: 18px;
        line-height: 1.5;
    }
}

/* ===========================
   SKILLS PAGE — BENTO GRID
   =========================== */

/* Lead tagline inside hero */
.skills-lead {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--title-font);
    color: var(--accent-color) !important;
    margin-top: 20px;
    margin-bottom: 0;
}

.skills-category-section {
    padding: 50px 0;
    background: var(--bg-section);
}

.skills-category-section + .skills-category-section {
    border-top: 1px solid var(--border-light);
}

.skills-category-header {
    display: flex;
    align-items: baseline;
    gap: 20px;
    margin-bottom: 20px;
}

.skills-category-number {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--title-font);
    color: var(--accent-color);
    opacity: 0.3;
    line-height: 1;
}

.skills-category-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-heading);
}

.skills-category-section .skills-category-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 0;
}

.skills-category-body {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text-body);
    max-width: 800px;
    margin-bottom: 30px;
}

/* Bento Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s ease;
}

.bento-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.bento-lg {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-md {
    grid-column: span 1;
}

.bento-sm {
    grid-column: span 1;
}

.bento-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(5, 150, 105, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
    margin-bottom: 12px;
}

.bento-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-heading);
}

.bento-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.bento-card .skill-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    margin-bottom: 12px;
}

/* Dark Mode — Bento Cards */
[data-theme="dark"] .bento-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .bento-card:hover {
    border-color: rgba(52, 211, 153, 0.3);
    box-shadow: 0 0 20px rgba(52, 211, 153, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .bento-icon {
    background: rgba(52, 211, 153, 0.15);
}

/* Brand-colour icon overrides */
.bento-icon--html {
    color: #E34F26;
    background: rgba(227, 79, 38, 0.1);
}
[data-theme="dark"] .bento-icon--html {
    background: rgba(227, 79, 38, 0.15);
}

.bento-icon--chatgpt {
    color: #10A37F;
    background: rgba(16, 163, 127, 0.1);
}
[data-theme="dark"] .bento-icon--chatgpt {
    background: rgba(16, 163, 127, 0.15);
}

[data-theme="dark"] .skills-category-number {
    color: var(--accent-color);
    opacity: 0.2;
}

[data-theme="dark"] .bento-card .skill-logo-mono {
    filter: invert(1) brightness(2);
}

[data-theme="dark"] .skills-category-section + .skills-category-section {
    border-top-color: rgba(255, 255, 255, 0.06);
}

/* Tablet — 2 column grid */
@media (max-width: 991px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-lg {
        grid-column: span 2;
    }

    .bento-md,
    .bento-sm {
        grid-column: span 1;
    }
}

/* Mobile — single column */
@media (max-width: 575px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-lg,
    .bento-md,
    .bento-sm {
        grid-column: span 1;
        grid-row: span 1;
    }

    .skills-category-header {
        flex-direction: column;
        gap: 8px;
    }

    .skills-lead {
        font-size: 22px;
    }

    .skills-category-name {
        font-size: 22px;
    }

    .skills-category-number {
        font-size: 36px;
    }
}

/* ===========================
   SITE GATE
   =========================== */

.site-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-page);
    padding: 20px;
}

.site-gate[hidden],
.gate-passed .site-gate {
    display: none;
}

.site-gate-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.site-gate-card h2 {
    font-family: var(--title-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 8px;
}

.site-gate-card p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 32px;
    line-height: 1.5;
}

.site-gate-field {
    margin-bottom: 16px;
    text-align: left;
    position: relative;
    z-index: 2;
}

.site-gate-field label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.site-gate-field input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    font-family: var(--text-font);
    color: var(--text-body);
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
    border-radius: 6px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-gate-field input::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

[data-theme="dark"] .site-gate-field input::placeholder {
    color: #9ca3af;
    opacity: 0.7;
}

.site-gate-field input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px var(--accent-glow-spread);
}

.site-gate-field input.invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.site-gate-error {
    font-size: 13px;
    color: #ef4444;
    margin-top: 6px;
    display: none;
}

.site-gate-field input.invalid ~ .site-gate-error {
    display: block;
}

.site-gate .theme-btn {
    width: 100%;
    margin: 32px 0 0;
    display: block;
}

.site-gate .theme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* ===========================
   WORK SHOWCASE (Homepage)
   Stacked cards + crossfading info panel
   =========================== */

.work-showcase {
    background: var(--bg-section);
    padding: 100px 0 240px;
    overflow: hidden;
    position: relative;
}

.work-showcase .section-title {
    margin-bottom: 60px;
}

.work-showcase .section-title h2 {
    color: var(--text-heading);
}

/* Two-column layout: images 60%, info 40% */
.showcase-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    min-height: 680px;
    position: relative;
}

/* Left column: stacked cards */
.showcase-images {
    flex: 0 0 58%;
    position: relative;
    height: 660px;
}

.showcase-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    will-change: transform;
    transition: box-shadow 0.4s ease;
}

.showcase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
}

.showcase-card.active {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.18);
}

/* Right column: info panel */
.showcase-info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 660px;
}

/* Wrapper for crossfading items — needs fixed height */
.showcase-info-items {
    position: relative;
    min-height: 180px;
    margin-bottom: 32px;
}

.showcase-info-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

.showcase-info-item.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.showcase-category {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    background-color: rgba(16, 185, 129, 0.15);
    color: #059669;
    margin-bottom: 16px;
}

[data-theme="dark"] .showcase-category {
    background-color: rgba(52, 211, 153, 0.15);
    color: #34d399;
}

.showcase-info-item h3 {
    font-family: var(--title-font);
    font-size: 32px;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 14px;
    line-height: 1.2;
}

.showcase-info-item p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 420px;
}

/* CTA always visible below info text */
.showcase-cta {
    align-self: flex-start;
}

/* ---- Dark mode overrides ---- */
[data-theme="dark"] .work-showcase {
    background: var(--bg-section);
}

[data-theme="dark"] .showcase-card {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .showcase-card.active {
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.5),
                0 0 30px rgba(52, 211, 153, 0.08);
}

/* ---- Responsive ---- */

/* Tablet */
@media (max-width: 1199px) {
    .showcase-layout {
        gap: 32px;
    }

    .showcase-images {
        flex: 0 0 55%;
        height: 540px;
    }

    .showcase-info-panel {
        min-height: 540px;
    }

    .showcase-info-item h3 {
        font-size: 28px;
    }
}

/* Mobile */
@media (max-width: 991px) {
    .work-showcase {
        padding: 60px 0 40px;
    }

    .showcase-layout {
        flex-direction: column;
        gap: 0;
        min-height: auto;
    }

    .showcase-images {
        flex: none;
        position: static;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .showcase-card {
        position: relative;
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .showcase-info-panel {
        min-height: auto;
        margin-top: 24px;
    }

    .showcase-info-items {
        min-height: auto;
    }

    .showcase-info-item {
        position: static;
        opacity: 1;
        transform: none;
        padding: 20px 0 40px;
        pointer-events: auto;
        transition: none;
    }

    .showcase-cta {
        margin-top: 8px;
    }
}

/* -----------------------------------------------
   BEYOND WORK — PERSONAL SECTION (about.html)
   Sits between timeline and footer
   ----------------------------------------------- */

.beyond-work-area {
    background-color: var(--bg-page);
    padding: 240px 0;
    position: relative;
    overflow: hidden;
}

.beyond-work-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-body);
    margin: 0;
}

/* Word spans created by GSAP split */
.beyond-work-text .bw-word {
    display: inline-block;
    margin-right: 0.3em;
}

/* Dark mode */
[data-theme="dark"] .beyond-work-text {
    color: var(--text-body);
}

/* --- Slideshow --- */

.bw-slideshow {
    margin-top: 40px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    max-width: 85%;
    background: var(--bg-card);
    border: 1px solid var(--bg-card-border);
}

.bw-slides {
    position: absolute;
    inset: 0;
}

.bw-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    will-change: transform, opacity;
}

.bw-slide:first-child {
    opacity: 1;
}

.bw-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.bw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.bw-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}

.bw-dot.active {
    background: #ffffff;
    transform: scale(1.25);
}

/* Dark mode slideshow */
[data-theme="dark"] .bw-slideshow {
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(52, 211, 153, 0.06);
}

[data-theme="dark"] .bw-dot {
    background: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .bw-dot.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.5);
}

/* Mobile */
@media (max-width: 767px) {
    .beyond-work-area {
        padding: 60px 0 70px;
    }

    .beyond-work-text {
        font-size: 17px;
    }

    .bw-slideshow {
        margin-top: 30px;
        border-radius: 12px;
        aspect-ratio: 4 / 3;
    }
}
