/* Palette-based Theme Variables */
:root {
    /* Palette Colors - Will be set by PaletteManager */
    --palette-primary: #0046A3;
    --palette-secondary: #E5E7EB;
    --palette-accent: #FFD700;
    --palette-background: #FFFFFF;
    --palette-text: #111827;
    --palette-surface: #F9FAFB;

    /* Theme Variables - All use palette colors */
    --primary-color: var(--palette-primary);
    --secondary-color: var(--palette-secondary);
    --background-color: var(--palette-background);
    --text-color: var(--palette-text);
    --header-bg: var(--palette-surface);
    --footer-bg: var(--palette-secondary);
    --footer-text: var(--palette-text);
    --popup-bg: var(--palette-surface);
    --button-bg: var(--palette-primary);
    --button-text: var(--palette-surface);
    --button-hover: var(--palette-secondary);
    --button-hover-text: var(--palette-surface);
    --accent-color: var(--palette-accent);
    --accent-container-text: var(--palette-text);
    
    /* Additional derived colors */
    --border-color: var(--palette-secondary);
    --shadow-color: var(--palette-secondary);
    --hover-bg: var(--palette-accent);
}

/* Smooth scrolling with momentum */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 0;
}

/* Enhanced smooth scroll effect */
body {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Ensure sections maintain proper spacing and overflow */
section {
    position: relative;
    overflow: visible;
}

section[id] {
    position: relative;
    overflow: visible;
}

/* Containers should properly contain content - no transforms */
.container,
.max-w-4xl,
.max-w-3xl,
.max-w-5xl,
.max-w-6xl,
.max-w-7xl {
    position: relative;
    overflow: visible;
    transform: none !important;
    will-change: auto;
}

/* Ensure content doesn't get cropped or moved */
section .container > *,
section .max-w-4xl > *,
section .max-w-3xl > *,
section .max-w-5xl > *,
section .max-w-6xl > *,
section .max-w-7xl > * {
    position: relative;
    z-index: 1;
    transform: none !important;
}

/* Content images should not be parallaxed */
.about-image img,
.service-card img,
.portfolio-item img,
.gallery-item img,
.contact-card img {
    position: relative !important;
    transform: none !important;
    will-change: auto !important;
}

/* Only hero background can be parallaxed */
.hero-background {
    transform: translateZ(0);
    will-change: transform;
}

/* Custom scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--palette-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--palette-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--palette-accent);
}

/* Base text color - all text inherits this unless overridden */
body {
    color: var(--palette-text);
}

/* Ensure all text elements use the palette text color */
p, span, div, a, li, td, th, label {
    color: inherit;
}

/* Input and textarea should use text color, but buttons have their own colors */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    color: var(--palette-text);
}

/* Text on backgrounds */
.theme-main p,
.theme-main span,
.theme-main div,
.theme-main a,
.theme-main li {
    color: var(--palette-text);
}

/* Text on footer - use alternate color if text matches footer background */
.theme-footer p,
.theme-footer span,
.theme-footer div,
.theme-footer a,
.theme-footer li,
.theme-footer h1,
.theme-footer h2,
.theme-footer h3,
.theme-footer h4 {
    color: var(--footer-text, var(--palette-text));
}

/* Text on header - use alternate color if text matches header background */
.theme-header p,
.theme-header span,
.theme-header div,
.theme-header a,
.theme-header li {
    color: var(--header-text, var(--palette-text));
}

/* Theme types are now handled by palettes */
/* Dark and light palettes are managed through PaletteManager */

/* Theme Classes */
.theme-header {
    background-color: var(--palette-surface);
    color: var(--header-text, var(--palette-text));
    border-bottom: 2px solid var(--palette-primary);
    min-height: 60px;
    display: block !important;
    visibility: visible !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any spacing between header and hero */
header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

header + section,
header + #hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.theme-main {
    background-color: var(--palette-background);
    color: var(--palette-text);
}

.theme-footer {
    background-color: var(--palette-secondary);
    color: var(--footer-text, var(--palette-text));
}

.theme-heading {
    color: var(--palette-primary);
}

.theme-text {
    color: var(--palette-text);
}

.theme-button {
    background-color: var(--palette-primary);
    color: var(--button-text, var(--palette-surface));
    transition: all 0.3s ease;
}

.theme-button:hover {
    background-color: var(--palette-secondary);
    color: var(--button-hover-text, var(--button-text, var(--palette-surface)));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--palette-primary) 30%, transparent);
}

.theme-popup {
    background-color: var(--palette-surface);
    color: var(--palette-text);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

/* ============================================
   HEADER STYLES
   ============================================ */

/* Header Type 1: Classic with Mega Menu */
.header-type-1 {
    box-shadow: 0 2px 10px color-mix(in srgb, var(--palette-secondary) 20%, transparent);
}

.header-type-1.scrolled {
    box-shadow: 0 4px 20px color-mix(in srgb, var(--palette-secondary) 30%, transparent);
    background-color: var(--palette-surface);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
    color: var(--header-text, var(--palette-text)) !important;
}

.nav-link:hover {
    color: var(--palette-primary) !important;
}

.nav-link span {
    color: inherit;
}

.nav-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--palette-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover .nav-underline {
    width: 80%;
}

.nav-link.active .nav-underline {
    width: 80%;
}

/* Dropdown Menu */
.dropdown-menu {
    background-color: var(--palette-surface);
    border: 1px solid color-mix(in srgb, var(--palette-secondary) 30%, transparent);
    color: var(--palette-text);
}

/* Mobile Menu Links */
.nav-link-mobile {
    transition: all 0.2s ease;
    color: var(--header-text, var(--palette-text)) !important;
}

.nav-link-mobile:hover {
    background-color: color-mix(in srgb, var(--palette-accent) 50%, transparent);
    transform: translateX(8px);
    color: var(--palette-primary) !important;
}

/* Header Type 2: Glassmorphism */
.header-type-2 {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: color-mix(in srgb, var(--palette-surface) 80%, transparent);
    box-shadow: 0 8px 32px color-mix(in srgb, var(--palette-secondary) 20%, transparent);
}

.nav-link-glass {
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    color: var(--header-text, var(--palette-text)) !important;
}

.nav-link-glass::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--palette-primary);
    transition: width 0.3s ease;
}

.nav-link-glass:hover::after,
.nav-link-glass.active::after {
    width: 100%;
}

/* Header Type 3: Centered Minimal */
.header-type-3 {
    border-bottom: 1px solid color-mix(in srgb, var(--palette-secondary) 30%, transparent);
}

.header-type-3.scrolled {
    border-bottom-color: color-mix(in srgb, var(--palette-secondary) 50%, transparent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--palette-secondary) 20%, transparent);
}

/* Hamburger Menu Button */
.hamburger-menu-btn {
    cursor: pointer;
    outline: none;
}

.hamburger-menu-btn:focus {
    outline: 2px solid var(--palette-primary);
    outline-offset: 2px;
}

.hamburger-line {
    will-change: transform, opacity;
    transform-origin: center;
}

/* Side Menu Styles */
.side-menu {
    pointer-events: auto;
}

.side-menu-content {
    position: relative;
}

.side-menu-link {
    transition: background-color 0.2s ease, transform 0.2s ease;
    will-change: transform, opacity;
}

.side-menu-link:hover {
    background-color: color-mix(in srgb, var(--palette-accent) 30%, transparent);
    transform: translateX(4px);
}

.menu-trigger-container {
    position: relative;
}

/* Header Type 4: Split Navigation */
.nav-pill {
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    color: var(--header-text, var(--palette-text)) !important;
    opacity: 1 !important; /* Ensure visibility */
}

.nav-pill.active {
    background-color: var(--palette-primary);
    color: var(--button-text, var(--palette-surface)) !important;
    opacity: 1 !important;
}

.nav-pill:hover:not(.active) {
    background-color: color-mix(in srgb, var(--palette-accent) 60%, transparent);
    color: var(--accent-container-text, var(--header-text, var(--palette-text))) !important;
    opacity: 1 !important;
}

/* Nav pills inside accent containers */
.accent-nav-container {
    display: flex !important;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.accent-nav-container .nav-pill {
    color: var(--accent-container-text, var(--header-text, var(--palette-text))) !important;
    white-space: nowrap;
    flex-shrink: 0;
}

/* After animation, ensure visibility */
.accent-nav-container .nav-pill[style*="opacity"] {
    opacity: 1 !important;
}

.accent-nav-container .nav-pill.active {
    color: var(--button-text, var(--palette-surface)) !important;
}

.accent-nav-container .nav-pill:hover:not(.active) {
    color: var(--accent-container-text, var(--header-text, var(--palette-text))) !important;
}

/* ============================================
   FOOTER STYLES
   ============================================ */

/* Footer Type 1: Multi-column with Newsletter */
.footer-type-1 {
    box-shadow: 0 -4px 20px color-mix(in srgb, var(--palette-primary) 20%, transparent);
}

.social-link {
    background-color: color-mix(in srgb, var(--palette-surface) 30%, transparent);
    border: 1px solid color-mix(in srgb, var(--palette-surface) 50%, transparent);
    color: var(--footer-text, var(--palette-text));
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--palette-primary);
    border-color: var(--palette-primary);
    color: var(--palette-surface);
    transform: translateY(-3px);
}

.footer-link {
    position: relative;
    padding-left: 0;
    transition: all 0.3s ease;
    color: var(--footer-text, var(--palette-text)) !important;
}

.footer-link:hover {
    color: var(--palette-primary) !important;
    padding-left: 8px;
}

/* Footer Type 2: Minimal Centered */
.footer-type-2 {
    text-align: center;
}

.social-link-minimal {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.social-link-minimal:hover {
    opacity: 1;
    color: var(--palette-primary);
}

/* Footer Type 3: Creative with CTA */
.pattern-grid {
    background-image: 
        linear-gradient(color-mix(in srgb, var(--palette-secondary) 10%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--palette-secondary) 10%, transparent) 1px, transparent 1px);
    background-size: 50px 50px;
    width: 100%;
    height: 100%;
}

/* Footer Type 4: Full-width with Pattern */
.footer-type-4 {
    position: relative;
}

.social-icon-pill {
    display: inline-block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: color-mix(in srgb, var(--palette-surface) 30%, transparent);
    border: 1px solid color-mix(in srgb, var(--palette-surface) 50%, transparent);
    color: var(--palette-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-icon-pill:hover {
    background-color: var(--palette-primary);
    border-color: var(--palette-primary);
    color: var(--palette-surface);
    transform: translateY(-3px) scale(1.1);
}

.footer-link-block {
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
    color: var(--footer-text, var(--palette-text)) !important;
}

.footer-link-block::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: var(--footer-text, var(--palette-text));
}

.footer-link-block:hover::before {
    left: 0;
    opacity: 1;
    color: var(--palette-primary);
}

.footer-link-block:hover {
    padding-left: 20px;
    color: var(--palette-primary) !important;
}

/* ============================================
   INTERACTIVE ELEMENTS
   ============================================ */

/* Logo Animation */
.logo-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-logo:hover .logo-icon {
    transform: rotate(20deg) scale(1.1);
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus States for Accessibility */
a:focus-visible,
button:focus-visible,
select:focus-visible {
    outline: 2px solid var(--palette-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Loading States */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Hover Effects */
.theme-button {
    position: relative;
    overflow: hidden;
}

.theme-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--palette-surface) 30%, transparent);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.theme-button:hover::before {
    width: 300px;
    height: 300px;
}

/* ============================================
   HERO SECTION STYLES
   ============================================ */

.hero-section {
    position: relative;
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Fix gap between header and hero */
#hero {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Ensure hero section starts right after header */
header + section#hero {
    margin-top: 0;
    padding-top: 0;
}

/* Ensure proper spacing between sections */
section[id] + section[id] {
    margin-top: 0;
}

/* Sections should have proper padding - override inline styles */
#about,
#services,
#portfolio,
#techstack,
#testimonials,
#gallery,
#contact {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

@media (min-width: 768px) {
    #about,
    #services,
    #portfolio,
    #techstack,
    #testimonials,
    #gallery,
    #contact {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
}

/* Prevent hero section overflow */
#hero {
    overflow: hidden;
}

.hero-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 10;
    transform: none !important;
    will-change: auto;
}

/* Ensure all content stays in place */
.about-content,
.services-content,
.portfolio-content,
.techstack-content,
.testimonials-content,
.gallery-content,
.contact-content {
    transform: none !important;
    position: relative;
}

.hero-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px color-mix(in srgb, var(--palette-primary) 30%, transparent);
}

.glass-card {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.animated-gradient {
    background: linear-gradient(-45deg, var(--palette-primary), var(--palette-secondary), var(--palette-accent), var(--palette-primary));
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.animated-bg {
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.floating-shapes {
    pointer-events: none;
}

.shape {
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    animation-delay: 0s;
}

.shape-2 {
    animation-delay: 2s;
}

.shape-3 {
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ============================================
   ABOUT US SECTION STYLES
   ============================================ */

.about-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.about-section .about-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.about-section .about-content,
.about-section .about-image {
    position: relative;
}

/* Ensure content children are visible after animations - override GSAP inline styles */
.about-section .about-content > * {
    opacity: 1 !important;
}

.about-section .about-image {
    opacity: 1 !important;
}

/* Reset GSAP transforms on content elements but preserve intentional transforms */
.about-section .about-content > div,
.about-section .about-content > p,
.about-section .about-content > button {
    transform: translateY(0) !important;
}

.about-card {
    background: var(--palette-surface);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--palette-primary) 20%, transparent);
}

/* About Type 3 uses background image, so ensure text is visible */
.about-type-3 {
    background-color: transparent;
}

.about-type-3 .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

/* ============================================
   SERVICES SECTION STYLES
   ============================================ */

.services-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.services-section .services-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.services-section .services-description {
    opacity: 1 !important;
}

.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px color-mix(in srgb, var(--palette-primary) 20%, transparent);
}

.service-button {
    transition: all 0.3s ease;
}

/* Ensure content children are visible after animations */
.services-section .service-card > * {
    opacity: 1 !important;
}

.services-section .service-card {
    transform: translateY(0) !important;
}

/* Services Type 8 specific styles */
.services-type-8 .service-card {
    margin: 1rem 0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.services-type-8 .service-card:hover {
    transform: translateX(12px) scale(1.03) !important;
    box-shadow: 0 12px 32px color-mix(in srgb, var(--palette-primary) 25%, transparent);
    background: var(--palette-surface);
    margin: 1.5rem 0;
    padding: 2rem;
}

.services-type-8 .service-card:last-child {
    margin-bottom: 0;
}

.services-type-8 .service-card .relative.z-10 {
    min-height: 100px;
}

.services-type-8 .service-card h3,
.services-type-8 .service-card p,
.services-type-8 .service-card button {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.services-type-8 .service-card h3 {
    color: var(--palette-text) !important;
}

.services-type-8 .service-card p {
    color: var(--palette-text) !important;
}

/* Services Type 9 specific styles */
.services-type-9 .service-card {
    display: flex;
    flex-direction: column;
    min-height: 300px;
    transition: all 0.3s ease;
}

.services-type-9 .service-card:hover {
    transform: translateY(-8px) scale(1.02) !important;
    box-shadow: 0 16px 32px color-mix(in srgb, var(--palette-primary) 30%, transparent);
}

.services-type-9 .service-card h3,
.services-type-9 .service-card p,
.services-type-9 .service-card button {
    opacity: 1 !important;
    transform: translateY(0) !important;
    color: var(--palette-text) !important;
}

.services-type-9 .service-card .p-6 {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.services-type-9 .service-card .p-6 > div:first-child {
    flex-shrink: 1;
}

.services-type-9 .service-card .p-6 p {
    max-height: none;
    overflow: visible;
}

/* ============================================
   PORTFOLIO SECTION STYLES
   ============================================ */

.portfolio-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.portfolio-section .portfolio-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.portfolio-section .portfolio-description {
    opacity: 1 !important;
}

.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-4px);
}

.portfolio-button {
    transition: all 0.3s ease;
}

/* Ensure content children are visible after animations */
.portfolio-section .portfolio-item > * {
    opacity: 1 !important;
}

.portfolio-section .portfolio-item {
    transform: translateY(0) !important;
}

/* Portfolio Type 3 (Carousel) specific */
.portfolio-type-3 #portfolio-carousel::-webkit-scrollbar {
    display: none;
}

.portfolio-type-3 #portfolio-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.portfolio-type-3 .portfolio-item {
    scroll-snap-align: start;
}

/* Portfolio Type 7 (Filterable) specific */
.portfolio-type-7 .filter-btn.active {
    background: var(--palette-primary) !important;
    color: var(--palette-surface) !important;
}

/* ============================================
   TECH STACK SECTION STYLES
   ============================================ */

.techstack-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.techstack-section .techstack-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.techstack-section .techstack-description {
    opacity: 1 !important;
}

.tech-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure content children are visible after animations */
.techstack-section .tech-item > * {
    opacity: 1 !important;
}

.techstack-section .tech-item {
    transform: translateY(0) !important;
}

/* Tech Stack Type 3 (Infinite Horizontal Scroll) specific */
.techstack-type-3 .techstack-scroll-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.techstack-type-3 .techstack-scroll-content {
    display: flex;
    will-change: transform;
    gap: 2rem;
}

.techstack-type-3 .techstack-scroll-content:hover {
    animation-play-state: paused;
}

@keyframes techstack-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-33.333%);
    }
}

.techstack-type-3 .techstack-scroll-content.animated {
    animation: techstack-scroll 15s linear infinite;
}

/* Tech Stack Type 5 (Hexagon Grid) specific */
.techstack-type-5 .techstack-hexagon-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.techstack-type-5 .hexagon-container {
    position: relative;
    width: 150px;
    height: 150px;
}

.techstack-type-5 .hexagon-content {
    width: 100%;
    height: 100%;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   TESTIMONIALS SECTION STYLES
   ============================================ */

.testimonials-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.testimonials-section .testimonials-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.testimonials-section .testimonials-description {
    opacity: 1 !important;
}

.testimonial-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Ensure content children are visible after animations */
.testimonials-section .testimonial-item > * {
    opacity: 1 !important;
}

.testimonials-section .testimonial-item {
    transform: translateY(0) !important;
}

/* Testimonials Type 3 (Carousel) specific */
.testimonials-type-3 #testimonials-carousel::-webkit-scrollbar {
    display: none;
}

.testimonials-type-3 #testimonials-carousel {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-type-3 .testimonial-item {
    scroll-snap-align: start;
}

/* ============================================
   GALLERY SECTION STYLES
   ============================================ */

.gallery-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.gallery-section .gallery-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.gallery-section .gallery-description {
    opacity: 1 !important;
}

.gallery-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-4px);
}

/* Ensure content children are visible after animations */
.gallery-section .gallery-item > * {
    opacity: 1 !important;
}

.gallery-section .gallery-item {
    transform: translateY(0) !important;
}

/* Gallery Type 3 (Carousel) specific */
.gallery-type-3 #gallery-carousel::-webkit-scrollbar,
.gallery-type-6 #gallery-full-slider::-webkit-scrollbar {
    display: none;
}

.gallery-type-3 #gallery-carousel,
.gallery-type-6 #gallery-full-slider {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-type-3 .gallery-item,
.gallery-type-6 .gallery-item {
    scroll-snap-align: start;
}

/* Gallery Type 7 (Filterable) specific */
.gallery-type-7 .gallery-filter-btn.active {
    background: var(--palette-primary) !important;
    color: var(--palette-surface) !important;
}

/* Gallery Lightbox */
.gallery-lightbox-overlay {
    cursor: pointer;
}

.gallery-lightbox-content {
    cursor: default;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    cursor: pointer;
    user-select: none;
}

.gallery-lightbox-close {
    cursor: pointer;
    user-select: none;
}

/* ============================================
   CONTACT / CONSULTATION CTA SECTION STYLES
   ============================================ */

.contact-section {
    background-color: var(--palette-background);
    color: var(--palette-text);
    position: relative;
}

.contact-section .contact-title {
    opacity: 1 !important;
    color: var(--palette-primary) !important;
}

.contact-section .contact-description {
    opacity: 1 !important;
}

.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-4px);
}

/* Ensure content children are visible after animations */
.contact-section .contact-card > * {
    opacity: 1 !important;
}

.contact-section form input:focus,
.contact-section form textarea:focus {
    border-color: var(--palette-primary) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--palette-primary) 20%, transparent);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .header-type-1 .dropdown-menu,
    .header-type-4 .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        margin-top: 0.5rem;
        background: transparent;
    }
}

/* Dark mode adjustments */
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] .dropdown-menu {
    background-color: #1f2937;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Selection */
::selection {
    background-color: var(--palette-primary);
    color: var(--palette-surface);
}

::-moz-selection {
    background-color: var(--palette-primary);
    color: var(--palette-surface);
}

