/* SETUP */
:root {
    --color-primary: #191645;
    --color-secondary: #43C6AC;
    --color-gradient-start: #667eea;
    --color-gradient-end: #764ba2;
    --color-accent: #F8FFAE;
    --color-text-light: rgba(255, 255, 255, 0.9);
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-card-bg: rgba(255, 255, 255, 0.95);
    --color-glass-bg: rgba(255, 255, 255, 0.1);
    --color-glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.25);
    --border-radius: 20px;
    --border-radius-small: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@font-face {
    font-family: 'RobotoFlex';
    src: url(../assets/RobotoFlex[GRAD\,XOPQ\,XTRA\,YOPQ\,YTAS\,YTDE\,YTFI\,YTLC\,YTUC\,opsz\,slnt\,wdth\,wght].ttf) format('truetype');
    font-display: swap;
}

* {
    box-sizing: border-box;
    font-family: 'RobotoFlex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--color-text-light);
}

body {
    margin: 0;
    background-color: #667eea; /* Fallback solid color */
    background-image: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* iOS Safari viewport fix */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  height: -webkit-fill-available;
}

/* Fallback for browsers that don't support CSS variables */
@supports not (color: var(--color-gradient-start)) {
    body {
        background-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.01'%3E%3Cpath d='M50 50c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 10-4.5 10-10zm20-20c0-5.5-4.5-10-10-10s-10 4.5-10 10 4.5 10 10 10 8-3.6 8-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    pointer-events: none;
    z-index: -1;
    animation: float 30s ease-in-out infinite;
    -webkit-transform: translateZ(0); /* Hardware acceleration for iOS */
    transform: translateZ(0);
}

/* Global Mouse Follower */
.global-mouse-follower {
    mix-blend-mode: normal;
    transition: all 0.15s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Global mouse follower hover states for enhanced interactivity */
.global-mouse-follower.project-hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(25px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 0 50px rgba(255, 255, 255, 0.4),
        inset 0 0 25px rgba(255, 255, 255, 0.1),
        0 10px 30px rgba(0, 0, 0, 0.1);
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Enhanced project hover styles for rectangular bubbles */
.global-mouse-follower:has(span) {
    border-radius: 20px !important;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%, 
        rgba(255, 255, 255, 0.15) 100%) !important;
    backdrop-filter: blur(30px) !important;
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 
        0 0 60px rgba(255, 255, 255, 0.5),
        inset 0 0 30px rgba(255, 255, 255, 0.15),
        0 10px 40px rgba(0, 0, 0, 0.2) !important;
    animation: project-bubble-glow 2.5s ease-in-out infinite !important;
}

@keyframes project-bubble-glow {
    0%, 100% {
        box-shadow: 
            0 0 60px rgba(255, 255, 255, 0.5),
            inset 0 0 30px rgba(255, 255, 255, 0.15),
            0 10px 40px rgba(0, 0, 0, 0.2);
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        box-shadow: 
            0 0 80px rgba(255, 255, 255, 0.7),
            inset 0 0 40px rgba(255, 255, 255, 0.2),
            0 15px 50px rgba(0, 0, 0, 0.25);
        transform: translate(-50%, -50%) scale(1.02);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 
            0 0 50px rgba(255, 255, 255, 0.4),
            inset 0 0 25px rgba(255, 255, 255, 0.1),
            0 10px 30px rgba(0, 0, 0, 0.1);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(255, 255, 255, 0.6),
            inset 0 0 30px rgba(255, 255, 255, 0.15),
            0 15px 40px rgba(0, 0, 0, 0.15);
    }
}

/* Disable mouse follower on mobile */
@media (max-width: 991px) {
    .global-mouse-follower {
        display: none !important;
    }
}

/* Pricing Table Tooltip System - First Column Only */
.pricing-compare-table td.tooltip-trigger {
    cursor: help;
    position: relative;
    transition: all 0.2s ease;
}

.pricing-compare-table td.tooltip-trigger:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(2px);
}

/* Contact Plan Buttons */
.contact-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.contact-plan-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.contact-plan-btn:hover {
    color: var(--color-text-light);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-medium);
}

.contact-plan-btn:hover::before {
    width: 100%;
    height: 100%;
}

.contact-plan-btn span {
    position: relative;
    z-index: 1;
}

.contact-plan-btn:active {
    transform: translateY(-1px) scale(1.02);
    transition: transform 0.1s ease;
}

/* Disabled state for unavailable plans */
.contact-plan-btn:disabled,
.contact-plan-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.contact-plan-btn:disabled:hover,
.contact-plan-btn.disabled:hover {
    transform: none;
    box-shadow: var(--shadow-light);
}

.contact-plan-btn:disabled::before,
.contact-plan-btn.disabled::before {
    display: none;
}


.pricing-compare-table tbody tr:last-child td:first-child {
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    font-size: 1.1rem;
}

.disabled-text {
    color: rgba(255, 255, 255, 0.4) !important;
    font-style: italic;
}

section {
    margin: 0;
    padding: 2rem;
    overflow: hidden;
    position: relative;
}

ul {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

li {
    display: block;
}

a {
    text-decoration: none;
    transition: var(--transition);
}

@keyframes shimmer {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes title-vertical-move {
    0% { top: 0; }
    50% { top: 30px; }
    100% { top: 0; }
}

#home > div > h1,
h2,
h3 {
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    font-weight: 700;
}

#home > div > h1,
h2 {
    font-size: 3.5rem; /* Increased from 2.5rem */
    background: linear-gradient(135deg, white 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#home > div > h3 {
    font-weight: 600;
    font-size: 2rem; /* Increased from 1.5rem */
    color: rgba(255, 255, 255, 0.9);
}

/* MODERN HOME SECTION */
#home {
    min-width: 100vw;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: transparent;
    padding: 2rem;
    overflow: hidden;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    animation: float 20s ease-in-out infinite;
}

#home > div > h2 {
    text-align: center;
}

#hero-wrapper {
    /* Wrapper container with fixed dimensions for stable mouse events */
    max-width: 100vw;
    margin: 1rem auto;
    padding: 0; /* No padding on wrapper */
    position: relative;
    /* Ensure wrapper has same dimensions as the card inside */
}

#hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-medium);
    position: relative;
    z-index: 1;
    width: 100%; /* Fill the wrapper */
    margin: 0; /* Remove margin since wrapper handles positioning */
    animation: slideInUp 1s ease-out;
    
    /* 3D hover effect setup - now controlled by JavaScript */
    transform-style: preserve-3d;
    transition: box-shadow 0.3s ease, backdrop-filter 0.3s ease;
    cursor: pointer;
}

#hero-container:hover {
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.2),
        0 15px 35px rgba(103, 126, 234, 0.3),
        0 5px 15px rgba(118, 75, 162, 0.2);
    backdrop-filter: blur(25px);
}

#hero-container:hover::before {
    opacity: 1;
    filter: blur(1px);
}

#hero-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-secondary), var(--color-accent), var(--color-secondary));
    border-radius: var(--border-radius);
    z-index: -1;
    animation: borderGlow 3s ease-in-out infinite;
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#hero-grab {
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
    transform-style: preserve-3d;
    transition: text-shadow 0.2s ease;
}

#hero-intro {
    animation: fadeInUp 1s ease-out 0.6s both;
    transform-style: preserve-3d;
    transition: text-shadow 0.2s ease;
}

#home .spacer {
    height: 30px;
    width: 1px;
}

#social-list {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
    margin-top: 3.5rem;
    position: relative;
    z-index: 1;
}

#social-list > li {
    margin: 0;
    animation: fadeInUp 1s ease-out calc(0.8s + var(--delay, 0s)) both;
}

#social-list > li:nth-child(1) { --delay: 0s; }
#social-list > li:nth-child(2) { --delay: 0.1s; }
#social-list > li:nth-child(3) { --delay: 0.2s; }
#social-list > li:nth-child(4) { --delay: 0.3s; }

.home-social {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.home-social::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.home-social:hover::before {
    width: 100%;
    height: 100%;
}

.home-social svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.home-social:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-light);
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(5px) rotate(-1deg); }
}

/* MODERN PROJECTS SECTION */
#projects {
    min-width: 50vw; /* Reduced from 70vw */
    width: 50vw;     /* Reduced from 70vw */
    max-width: 50vw; /* Reduced from 70vw */
    margin: 0 auto 2rem auto;
    background: none;
}

#indicators-container {
    display: none;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    gap: 8px;
    padding-right: 15px;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.indicator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.indicator-dot::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: var(--transition);
}

.indicator-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.3);
}

.indicator-dot.active {
    background: var(--color-secondary);
    box-shadow: 0 0 15px rgba(67, 198, 172, 0.5);
}

.indicator-dot.active::before {
    border-color: var(--color-secondary);
}

.button-container {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

/* MODERN PRICING SECTION */
#pricing {
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    background: transparent; /* Use unified body background */
    position: relative;
    overflow: hidden; /* Changed from overflow-x: auto, overflow-y: hidden */
}

#pricing::before {
    /* Removed individual section pattern - using unified body pattern */
    display: none;
}

.pricing-subtitle {
    font-size: 1.2rem;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Reduced blur for better performance */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 24px 24px 0 0;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(67, 198, 172, 0.3);
    border: 2px solid rgba(67, 198, 172, 0.5);
}

.pricing-card.featured::before {
    height: 6px;
    background: linear-gradient(90deg, #43C6AC 0%, #F8FFAE 50%, #43C6AC 100%);
    animation: shimmer-gradient 2s ease-in-out infinite;
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-8px);
    box-shadow: 0 40px 80px rgba(67, 198, 172, 0.4);
}

.pricing-card.disabled {
    opacity: 0.6;
    transform: none;
    cursor: not-allowed;
}

.pricing-card.disabled::before {
    background: linear-gradient(90deg, #9CA3AF 0%, #6B7280 100%);
}

.pricing-card.disabled:hover {
    transform: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(67, 198, 172, 0.3);
    z-index: 2;
}

.plan-badge.unavailable {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    box-shadow: 0 8px 25px rgba(156, 163, 175, 0.3);
}

.plan-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-top: 1rem;
}

.plan-header h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.plan-description {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.plan-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.amount {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin: 0 0.25rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.period {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.delivery-time {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin: 0;
    font-style: italic;
}

.plan-features {
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item:hover {
    background: rgba(67, 198, 172, 0.05);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.feature-icon {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.feature-item.included .feature-icon {
    filter: grayscale(0);
}

.feature-item.addon {
    opacity: 0.7;
}

.feature-item.addon .feature-icon {
    filter: grayscale(50%);
}

.feature-item.hosting {
    background: rgba(67, 198, 172, 0.1);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid rgba(67, 198, 172, 0.2);
}

.feature-item.hosting .feature-icon {
    color: var(--color-secondary);
}

.feature-item small {
    color: var(--color-secondary);
    font-weight: 600;
}

.plan-cta-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(67, 198, 172, 0.3);
    position: relative;
    overflow: hidden;
}

.plan-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.plan-cta-btn:hover::before {
    left: 100%;
}

.plan-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(67, 198, 172, 0.4);
}

.plan-cta-btn.disabled {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    cursor: not-allowed;
    box-shadow: 0 8px 25px rgba(156, 163, 175, 0.3);
}

.plan-cta-btn.disabled:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(156, 163, 175, 0.3);
}

.plan-cta-btn.disabled::before {
    display: none;
}

@keyframes shimmer-gradient {
    0%, 100% { 
        background-position: 0% 50%; 
    }
    50% { 
        background-position: 100% 50%; 
    }
}

/* SNAPPY SECTION */
.wavelet-section {
    background: transparent; /* Use unified body background */
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4rem 2rem;
}

.wavelet-section::before {
    /* Removed individual section pattern - using unified body pattern */
    display: none;
}

/* Hero Section */
.wavelet-hero {
    display: grid;
    grid-template-columns: 1fr 1.2fr; /* Give more space to features */
    gap: 5rem; /* Increased gap */
    align-items: center; /* Center content vertically */
    margin: 0 auto 2rem auto; /* Center the hero section */
    min-height: calc(100vh - 8rem); /* Account for section padding */
    max-width: 75%; /* 3/4 of screen width */
}

.wavelet-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.wavelet-badge-icon {
    height: 24px;
    width: 24px;
}

.wavelet-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.wavelet-gradient-text {
    background: linear-gradient(135deg, #43C6AC 0%, #F8FFAE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    position: relative;
    /* Show as white text initially */
    color: rgba(255, 255, 255, 0.3);
    -webkit-text-fill-color: rgba(255, 255, 255, 0.3);
}

/* Create the background text */
.wavelet-gradient-text::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
    z-index: -1;
}

/* Typing effect for the gradient text - now controlled by JavaScript */
.wavelet-gradient-text.typing {
    /* Use gradient color when typing */
    background: linear-gradient(135deg, #43C6AC 0%, #F8FFAE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

/* Cursor effect - smaller and properly styled */
.wavelet-gradient-text.typing::after {
    content: '|';
    color: #43C6AC;
    font-size: 0.8em; /* Smaller cursor */
    font-weight: 300; /* Thinner cursor */
    margin-left: 2px; /* Small spacing */
    animation: blink-cursor 1s infinite;
}

/* Completed typing state - maintain same gradient color */
.wavelet-gradient-text.typing-complete {
    background: linear-gradient(135deg, #43C6AC 0%, #F8FFAE 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    z-index: 1;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-cursor {
    0%, 50% { border-color: #43C6AC; }
    51%, 100% { border-color: transparent; }
}

.wavelet-hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 500px;
}

.wavelet-hero-stats {
    display: flex;
    gap: 2rem;
}

.wavelet-stat {
    text-align: center;
}

.wavelet-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #43C6AC;
    line-height: 1;
}

.wavelet-stat-label {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Features Grid */
.wavelet-features {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center features vertically */
    min-height: 0; /* Allow shrinking */
}

.wavelet-features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    height: auto; /* Allow natural height */
    min-height: 400px; /* Minimum height for content */
    max-height: 80vh; /* Responsive maximum height */
    align-items: center; /* Center grid items */
}

.wavelet-feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem; /* Consistent padding on all sides */
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    height: 100%; /* Let content determine height */
    min-height: clamp(200px, 25vh, 280px); /* Responsive minimum height */
    max-height: clamp(250px, 35vh, 350px); /* Responsive maximum height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Align items to start instead of space-between */
    position: relative;
    overflow: hidden;
}

/* ...existing code for ::before and :hover... */

.wavelet-feature-icon {
    /* Use clamp to ensure responsive sizing while maintaining square shape */
    width: clamp(40px, 6vw, 56px);
    height: clamp(40px, 6vw, 56px); /* Always equals width for perfect square */
    margin: 0 auto; /* Reduced bottom margin */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px; /* Squared corners instead of 12px */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* Prevent shrinking on smaller screens */
    aspect-ratio: 1 / 1; /* Ensures perfect square ratio */
}

.wavelet-feature-icon svg {
    width: 24px;
    height: 24px;
}

.wavelet-feature-title {
    font-size: 1.2rem; /* Slightly increased */
    font-weight: 600;
    margin-bottom: 0; /* Reduced spacing to bring closer to icon and description */
}

.wavelet-feature-description {
    line-height: 1.6; /* Better line spacing */
    font-size: 0.95rem; /* Slightly increased */
    margin-bottom: 0; /* Remove any bottom margin */
    flex-grow: 1; /* Allow description to fill remaining space */
}

/* MODERN RESPONSIVE DESIGN */
@media screen and (min-width: 992px) {
    main {
        display: flex; /* Restored horizontal layout */
        overflow: hidden;
        height: 100vh; /* Ensure main takes full viewport height */
    }
    
    section {
        display: flex;
        min-width: 98vw;
        height: 100vh;
        flex-direction: column;
        /* Use flexbox to manage content within viewport */
        overflow-y: auto;
        overflow-x: hidden;
    }
    
    /* Wavelet CMS Section Responsive Layout */
    .wavelet-section {
        padding: 2rem;
        justify-content: center; /* Center content vertically */
        align-items: center; /* Center horizontally and vertically */
    }
    
    .wavelet-hero {
        display: flex;
        flex: 1;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        align-items: stretch;
        /* gap, max-width, etc. remain unchanged */
    }
    
    .wavelet-hero-content {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0; /* Allow shrinking */
    }
    
    .wavelet-features {
        flex: 1.2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 0;
        max-height: 100%;
        overflow: hidden;
    }
    
    .wavelet-features-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: clamp(1rem, 2.5vw, 2rem); /* Responsive gap */
        height: 100%;
        min-height: 0;
        max-height: 100%;
        align-items: stretch;
    }
    
    .wavelet-feature-card {
        min-height: clamp(180px, 20vh, 250px); /* Smooth responsive scaling */
        max-height: clamp(220px, 30vh, 320px); /* Smooth responsive scaling */
        padding: clamp(1.5rem, 2.5vw, 2.5rem); /* Responsive padding */
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .pricing-compare-section {
        min-height: 100vh;
        max-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 1rem;
        overflow: hidden;
        align-items: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        position: relative;
    }
    
    .pricing-compare-table-wrapper {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
        overflow: visible; /* Changed from auto to prevent scrollbars */
        max-height: calc(100vh - 2rem);
        width: 100%;
        /* Reset any conflicting wrapper styles */
        padding: 2rem 0;
    }
    
    .pricing-compare-table {
        flex-shrink: 0;
        max-height: 80vh; /* Limit table height */
        font-size: 1rem; /* Slightly smaller font for better fit */
        /* Optimized glass morphism effect for better performance */
        border-collapse: separate;
        border-spacing: 0;
        min-width: 900px;
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px); /* Significantly reduced blur for better performance */
        border-radius: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.9); /* Changed to white for glass effect */
        margin: 0 auto;
        position: relative;
        overflow: visible; /* Removed conflicting overflow properties */
    }
    
    .pricing-compare-table::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
        border-radius: 2rem;
    }
    
    .pricing-compare-table th,
    .pricing-compare-table td {
        padding: 0.8rem 1rem; /* Slightly reduced padding */
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        min-width: 120px; /* Slightly reduced minimum width */
        max-width: 220px; /* Reduced maximum width */
        vertical-align: middle;
        position: relative;
        font-size: 0.9rem; /* Slightly smaller text */
        color: rgba(255, 255, 255, 0.9);
        /* Removed backdrop-filter from cells - table already has it */
    }
    
    .pricing-compare-table th {
        font-size: 1rem; /* Slightly larger for headers */
        font-weight: 800;
        color: rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 0.15);
        /* Removed backdrop-filter from headers - table already has it */
    }
    
    body {
        overflow-y: hidden;
    }

    /* Navigation */
    .phone {
        display: none;
    }
    
    .big-screens {
        display: block;
    }
}

/* Medium height screens (laptops with smaller screens) */
@media screen and (min-width: 992px) and (max-height: 700px) {
    .wavelet-hero {
        gap: 1.2rem;
    }
    .wavelet-feature-card {
        min-height: 0;
        max-height: none;
        padding: clamp(1rem, 1.5vw, 1.5rem);
    }
    .wavelet-features-grid {
        min-height: 0;
        max-height: 100%;
        gap: clamp(0.5rem, 1vw, 1rem);
    }
    
    .wavelet-hero-title {
        font-size: 2.5rem; /* Smaller title */
        margin-bottom: 1rem;
    }
    
    .wavelet-hero-description {
        font-size: 1rem; /* Smaller description */
        margin-bottom: 1rem;
    }
    
    .wavelet-hero-stats {
        gap: 1rem; /* Reduced gap */
    }
    
    .wavelet-feature-card {
        min-height: clamp(140px, 18vh, 200px); /* Responsive scaling for medium screens */
        max-height: clamp(180px, 25vh, 250px);
        padding: clamp(1rem, 2vw, 1.5rem);
    }
    
    .wavelet-features-grid {
        gap: clamp(0.8rem, 1.5vw, 1.2rem);
        min-height: clamp(250px, 40vh, 400px);
        max-height: clamp(350px, 60vh, 500px);
    }
    
    .pricing-compare-table {
        max-height: 70vh;
        font-size: 0.875rem;
        /* Optimized glass morphism effect for medium screens */
        border-collapse: separate;
        border-spacing: 0;
        min-width: 800px; /* Slightly smaller for medium screens */
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(5px); /* Reduced blur for better performance */
        border-radius: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.9); /* Changed to white for glass effect */
        margin: 0 auto;
        position: relative;
        overflow: visible; /* Removed overflow issues */
    }
    
    .pricing-compare-table::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
        border-radius: 2rem;
    }
    
    .pricing-compare-table th,
    .pricing-compare-table td {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
        /* Optimized glass morphism for cells */
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        min-width: 100px;
        max-width: 200px;
        vertical-align: middle;
        position: relative;
        color: rgba(255, 255, 255, 0.9);
        /* Removed backdrop-filter from cells - table already has it */
    }
    
    .pricing-compare-table th {
        font-size: 0.9rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 0.15);
        /* Removed backdrop-filter from headers - table already has it */
    }
}

/* Very small height screens */
@media screen and (min-width: 992px) and (max-height: 600px) {
    section {
        padding: 1rem;
    }
    
    .wavelet-hero {
        gap: 1.5rem; /* Further reduced gap */
        max-height: calc(100vh - 2rem);
    }
    
    .wavelet-hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .wavelet-hero-description {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .wavelet-badge {
        margin-bottom: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .wavelet-feature-card {
        min-height: clamp(120px, 15vh, 160px); /* Compact scaling for very small screens */
        max-height: clamp(150px, 20vh, 200px);
        padding: clamp(0.8rem, 1.5vw, 1.2rem);
    }
    
    .wavelet-features-grid {
        gap: clamp(0.6rem, 1vw, 0.8rem);
        min-height: clamp(200px, 30vh, 300px);
        max-height: clamp(280px, 50vh, 400px);
    }
    
    .pricing-compare-table {
        max-height: 60vh;
        font-size: 0.8rem;
        /* Optimized glass morphism effect for very small screens */
        border-collapse: separate;
        border-spacing: 0;
        min-width: 700px; /* Even smaller for very small screens */
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(3px); /* Minimal blur for better performance */
        border-radius: 2rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.9); /* Changed to white for glass effect */
        margin: 0 auto;
        position: relative;
        overflow: hidden;
    }
    
    .pricing-compare-table::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
        pointer-events: none;
        border-radius: 2rem;
    }
    
    .pricing-compare-table th,
    .pricing-compare-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        min-width: 90px;
        max-width: 160px;
        /* Optimized glass morphism for cells */
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        background: rgba(255, 255, 255, 0.05);
        vertical-align: middle;
        position: relative;
        color: rgba(255, 255, 255, 0.9);
        /* Removed backdrop-filter from cells - table already has it */
    }
    
    .pricing-compare-table th {
        font-size: 0.8rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 1);
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(15px);
    }
}

/* Ensure content doesn't overflow in any case */
@media screen and (min-width: 992px) {
    * {
        box-sizing: border-box;
    }

    #hero-container {
        max-width: 75vw;
    }
    
    /* Prevent any element from exceeding viewport height */
    .wavelet-hero > *,
    .wavelet-features > *,
    .pricing-compare-section > * {
        max-height: 100%;
        overflow: visible;
    }
    
    /* Responsive text scaling */
    .wavelet-hero-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
    
    .wavelet-hero-description {
        font-size: clamp(0.9rem, 1.2vw, 1.2rem);
    }
    
    .wavelet-feature-title {
        font-size: clamp(1rem, 1.5vw, 1.25rem);
    }
    
    .wavelet-feature-description {
        font-size: clamp(0.8rem, 1vw, 1rem);
    }
}

/* Projects Section Redesign - Enhanced Social Style & Random Placement */
.projects-buttons-row {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 250px;     /* Reduced from 320px */
    min-height: 250px; /* Reduced from 320px */
    margin: 2rem 0;
    display: block;
    /* Remove flex layout for random placement */
}

.project-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: none;
    border-radius: 50%;
    color: var(--color-text-light);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: absolute;
    z-index: 1;
    cursor: pointer;
    overflow: hidden;
    animation: float-btn 6s ease-in-out infinite;
}

.project-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.project-btn .project-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 0;
    background: none;
    padding: 0;
    margin-bottom: 0;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

.project-btn:hover {
    color: var(--color-text-light);
    transform: translateY(-8px) scale(1.08);
    box-shadow: var(--shadow-medium);
}

.project-btn:hover::before {
    width: 100%;
    height: 100%;
}
@keyframes float-btn {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.04); }
}

/* Assign different animation delays for each button */
.project-btn:nth-child(1) { animation-delay: 0s; }
.project-btn:nth-child(2) { animation-delay: 1.2s; }
.project-btn:nth-child(3) { animation-delay: 2.1s; }
.project-btn:nth-child(4) { animation-delay: 0.7s; }
.project-btn:nth-child(5) { animation-delay: 1.8s; }
.project-btn:nth-child(6) { animation-delay: 0.3s; }

/* Hide button text on mobile for more space */
@media (max-width: 600px) {
    .project-btn {
        font-size: 0.8rem;
        width: 54px;
        height: 54px;
    }
    .project-btn .project-btn-icon {
        width: 32px;
        height: 32px;
    }
    .project-btn {
        padding: 0;
    }
}

.project-modal {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(25, 22, 69, 0.6);
    z-index: 2000;
    transition: opacity 0.3s;
    opacity: 1;
}
.project-modal.hidden {
    display: none;
    opacity: 0;
}
.project-modal-card {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    border-radius: var(--border-radius);
    border: 1.5px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 48px 0 rgba(25,22,69,0.18), var(--shadow-heavy);
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    min-width: 320px;
    max-width: min(600px, 95vw); /* Reduced max-width for large screens */
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: fadeInUp 0.4s;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}
.project-modal-card h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    letter-spacing: -0.02em;
    color: var(--color-text-light);
}
.project-modal-card p {
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin: 0 0 1.2rem 0;
    line-height: 1.6;
}
.project-modal-card .frameworks-row {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.project-modal-card .frameworks-row img {
    height: 2.5rem;
    border-radius: 8px;
    background: none !important;
    padding: 0.25rem;
}
.project-modal-card .links-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.project-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: rgba(255,255,255,0.5);
    border: none;
    border-radius: 50%;
    width: 2.2rem;
    height: 2.2rem;
    font-size: 1.3rem;
    color: var(--color-text-light);
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(25,22,69,0.08);
}
.project-modal-close:hover {
    background: var(--color-secondary);
    color: var(--color-accent);
}

/* Glass Button Styles for Modal Links */
.project-modal-card .links-row a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    min-width: 120px;
}

.project-modal-card .links-row a::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-modal-card .links-row a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.project-modal-card .links-row a:hover::before {
    opacity: 1;
}

.project-modal-card .links-row a:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.project-floating-dot {
    position: fixed;
    left: 0; top: 0;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(25,22,69,0.10);
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1), height 0.28s cubic-bezier(0.4,0,0.2,1), border-radius 0.28s, background 0.18s, box-shadow 0.18s, opacity 0.18s;
    z-index: 10000;
    opacity: 1;
    pointer-events: none;
    overflow: visible;
    transform: translate(-50%, -50%);
    display: block !important;
}
.project-floating-dot.expanded {
    width: 150px;
    height: 44px;
    border-radius: 1.2rem;
    background: rgba(255,255,255,0.28);
    box-shadow: 0 4px 24px rgba(25,22,69,0.13);
}

.project-floating-dot::after {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.18s 0.08s;
    white-space: nowrap;
    pointer-events: none;
    content: '';
}
.project-floating-dot.expanded[data-type="modal"]::after {
    content: attr(data-label) '  🗖';
    opacity: 1;
}
.project-floating-dot.expanded[data-type="link"]::after {
    content: attr(data-label) '  →';
    opacity: 1;
}
@media (max-width: 991px) {
    #home {
        padding: 0.5rem;
    }
    #social-list {
        gap: 0.5rem;
        margin-top: 2rem;
    }
    #projects {
        min-width: 85vw; /* Reduced from 95vw to maintain proportional reduction */
        width: 85vw;     /* Reduced from 95vw */
        max-width: 85vw; /* Reduced from 95vw */
    }
}

/* --- MODERN HORIZONTAL PRICING SECTION --- */
.pricing-horizontal-scroll-section {
    min-height: 100vh;
    max-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.pricing-features-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);
    border-bottom: 1.5px solid rgba(255,255,255,0.18);
    box-shadow: 0 2px 12px 0 rgba(25,22,69,0.06);
    height: 56px;
    align-items: center;
    padding: 0 2vw;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    letter-spacing: 0.01em;
    gap: 2vw;
}

.pricing-features-header .feature-label {
    flex: 0 0 120px;
    text-align: center;
    color: #fff;
    opacity: 0.85;
    font-size: 1rem;
    white-space: nowrap;
}
.pricing-features-header .plan-name {
    flex: 0 0 140px;
    text-align: left;
    font-size: 1.15rem;
}

.pricing-horizontal-scroll {
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2.5rem 2vw 1.5rem 2vw;
    min-height: 0;
    max-height: calc(100vh - 56px - 60px);
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #43C6AC #764ba2;
}

.pricing-horizontal-scroll::-webkit-scrollbar {
    height: 10px;
}
.pricing-horizontal-scroll::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #43C6AC 0%, #764ba2 100%);
    border-radius: 8px;
}

.plan-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 340px;
    max-width: 340px;
    height: 420px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    border-radius: 2rem;
    border: 1.5px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 48px 0 rgba(25,22,69,0.18), var(--shadow-heavy);
    margin-bottom: 1rem;
    position: relative;
    scroll-snap-align: start;
    transition: box-shadow 0.3s, transform 0.3s;
    overflow: hidden;
}
.plan-card:not(.disabled):hover {
    box-shadow: 0 24px 64px 0 rgba(67,198,172,0.18), 0 2px 24px 0 rgba(67,198,172,0.10);
    transform: translateY(-8px) scale(1.03);
}
.plan-card .plan-badge {
    position: absolute;
    top: 18px;
    left: 24px;
    background: linear-gradient(135deg, #43C6AC 0%, #F8FFAE 100%);
    color: #191645;
    padding: 0.35rem 1.1rem;
    border-radius: 1.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 4px 18px rgba(67,198,172,0.18);
    z-index: 2;
    opacity: 0.95;
    letter-spacing: 0.01em;
}
.plan-card .plan-badge.unavailable {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(156,163,175,0.18);
}
.plan-card .plan-badge.popular {
    background: linear-gradient(135deg, #F8FFAE 0%, #43C6AC 100%);
    color: #191645;
}
.plan-card .plan-badge.featured {
    background: linear-gradient(135deg, #43C6AC 0%, #F8FFAE 100%);
    color: #191645;
}
.plan-card .plan-name {
    margin-top: 56px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #191645;
    letter-spacing: -0.01em;
    margin-bottom: 0.5rem;
    text-align: left;
    padding-left: 1.2rem;
}
.plan-card .plan-base-price,
.plan-card .plan-delivery {
    font-size: 1.1rem;
    color: #764ba2;
    font-weight: 600;
    margin-bottom: 0.2rem;
    text-align: center;
}
.plan-card .plan-feature {
    font-size: 1.1rem;
    color: #191645;
    font-weight: 500;
    text-align: center;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(67,198,172,0.08);
    min-height: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    transition: background 0.2s;
}
.plan-card .plan-feature:last-of-type {
    border-bottom: none;
}
.plan-card .plan-feature .sub {
    font-size: 0.85rem;
    color: #43C6AC;
    opacity: 0.8;
    font-weight: 400;
    margin-top: 2px;
}
.plan-card .plan-feature:has(span.sub) {
    padding-bottom: 0.1rem;
}
.plan-card .plan-feature:empty {
    background: none;
    border-bottom: none;
}
.plan-card .plan-cta-btn {
    margin-top: auto;
    margin-bottom: 1.2rem;
    margin-left: 1.2rem;
    margin-right: 1.2rem;
    padding: 0.9rem 0;
    background: linear-gradient(135deg, #43C6AC 0%, #F8FFAE 100%);
    color: #191645;
    border: none;
    border-radius: 1.1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(67,198,172,0.18);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    position: relative;
    overflow: hidden;
}
.plan-card .plan-cta-btn:not(.disabled):hover {
    background: linear-gradient(135deg, #F8FFAE 0%, #43C6AC 100%);
    color: #191645;
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 32px rgba(67,198,172,0.22);
}
.plan-card .plan-cta-btn.disabled {
    background: linear-gradient(135deg, #9CA3AF 0%, #6B7280 100%);
    color: #fff;
    cursor: not-allowed;
    box-shadow: 0 4px 18px rgba(156,163,175,0.18);
}

.plan-card.disabled {
    opacity: 0.55;
    pointer-events: none;
}

.pricing-legend {
    margin: 0 2vw 1.5rem 2vw;
    background: rgba(255,255,255,0.13);
    border-radius: 1.2rem;
    padding: 0.7rem 1.2rem;
    color: #191645;
    font-size: 1rem;
    box-shadow: 0 2px 12px 0 rgba(25,22,69,0.06);
    max-width: 420px;
    align-self: flex-end;
    position: relative;
}
.pricing-legend summary {
    font-weight: 700;
    color: #764ba2;
    cursor: pointer;
    outline: none;
    font-size: 1.08rem;
    margin-bottom: 0.5rem;
}
.pricing-legend ul {
    margin: 0.5rem 0 0 0;
    padding: 0 0 0 1.2rem;
    color: #191645;
    font-size: 0.98rem;
}
.pricing-legend li {
    margin-bottom: 0.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pricing-legend span {
    font-size: 1.1rem;
    font-weight: 700;
    min-width: 1.5em;
    display: inline-block;
}

/* Pricing table corner cell fixes */
.pricing-compare-table thead tr:first-child th:first-child {
    border-top-left-radius: 2rem;
}

.pricing-compare-table thead tr:first-child th:last-child {
    border-top-right-radius: 2rem;
}

.pricing-compare-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 2rem;
}

.pricing-compare-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 2rem;
}

/* Ensure table structure maintains proper borders */
.pricing-compare-table thead tr:first-child th {
    border-top: none;
}

.pricing-compare-table tbody tr:last-child td {
    border-bottom: none;
}

/* Pricing Compare Table Specific Styles */

.plan-table-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    object-fit: contain;
}

.plan-table-name {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 1); /* Changed to white for glass effect */
    line-height: 1.2;
}

.plan-coming-soon {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7); /* Changed to white with transparency */
    font-weight: 500;
    opacity: 0.8;
}

.pricing-compare-table th:first-child,
.pricing-compare-table td:first-child {
    background: rgba(255, 255, 255, 0.2);
    font-weight: 700;
    text-align: left;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 1);
    backdrop-filter: blur(20px);
}

.pricing-compare-table tr:last-child td {
    border-bottom: none;
}

.pricing-compare-table .plan-col.disabled {
    opacity: 0.6;
    background: rgba(156, 163, 175, 0.1);
}

.pricing-compare-table .icon {
    font-size: 1.1rem;
    font-weight: 600;
}

.pricing-compare-table td small {
    display: block;
    font-size: 0.75rem;
    color: #43C6AC;
    font-weight: 500;
    margin-top: 0.2rem;
}

/* Responsive pricing table styles */
@media (max-width: 1200px) {
    .pricing-compare-table {
        min-width: 750px;
        font-size: 0.95rem;
    }
    
    .pricing-compare-table th, 
    .pricing-compare-table td {
        padding: 0.7rem 0.9rem;
        font-size: 0.85rem;
        min-width: 110px;
        max-width: 200px;
    }
    
    .plan-table-icon {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 900px) {
    .pricing-compare-section {
        padding: 0.5rem;
    }
    
    .pricing-compare-table-wrapper {
        padding: 1rem 0;
        overflow: visible; /* Removed horizontal scroll */
    }
    
    .pricing-compare-table {
        min-width: 600px;
        font-size: 0.9rem;
        border-radius: 1.5rem;
    }
    
    .pricing-compare-table th, 
    .pricing-compare-table td {
        padding: 0.6rem 0.7rem;
        font-size: 0.8rem;
        min-width: 90px;
        max-width: 150px;
    }
    
    .plan-table-icon {
        width: 24px;
        height: 24px;
    }
    
    .plan-table-name {
        font-size: 0.9rem;
    }
    
    .plan-coming-soon {
        font-size: 0.7rem;
    }
}

@media (max-width: 700px) {
    .pricing-compare-table {
        min-width: 500px;
        font-size: 0.8rem;
        border-radius: 1rem;
    }
    
    .pricing-compare-table th, 
    .pricing-compare-table td {
        padding: 0.5rem 0.6rem;
        font-size: 0.75rem;
        min-width: 80px;
        max-width: 120px;
    }
    
    .pricing-compare-table th:first-child,
    .pricing-compare-table td:first-child {
        padding-left: 1rem;
    }
    
    .plan-table-icon {
        width: 20px;
        height: 20px;
    }
    
    .plan-table-name {
        font-size: 0.8rem;
    }
    
    .plan-coming-soon {
        font-size: 0.65rem;
    }
}

/* Large screens */
@media screen and (min-width: 1400px) {
    .wavelet-hero {
        max-width: 1200px;
        margin: 0 auto;
        gap: 4rem;
    }
    
    .pricing-compare-table {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .wavelet-features-grid {
        max-width: 600px;
    }
}

/* Ultra-wide screens */
@media screen and (min-width: 1800px) {
    .wavelet-hero {
        max-width: 1400px;
        gap: 5rem;
    }
    
    .pricing-compare-table {
        max-width: 1400px;
    }
}

/* Wavelet CMS Mobile and Tablet Responsive Design */
@media screen and (max-width: 991px) {
    .wavelet-hero {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 2rem 1rem;
    }
    
    .wavelet-features-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        min-height: auto;
        max-height: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .wavelet-feature-card {
        min-height: 200px;
        max-height: none;
        padding: 1.5rem;
        width: 100%;
    }
    
    .wavelet-hero-title {
        font-size: 2.5rem;
    }
    
    .wavelet-hero-description {
        font-size: 1.1rem;
        max-width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .wavelet-hero {
        padding: 1.5rem 1rem;
        gap: 1.5rem;
    }
    
    .wavelet-hero-title {
        font-size: 2rem;
    }
    
    .wavelet-hero-description {
        font-size: 1rem;
    }
    
    .wavelet-feature-card {
        min-height: 180px;
        padding: 1.2rem;
    }
    
    .wavelet-features-grid {
        gap: 1rem;
        max-width: 400px;
    }
}

@media screen and (max-width: 480px) {
    .wavelet-hero {
        padding: 1rem;
        gap: 1rem;
    }
    
    .wavelet-hero-title {
        font-size: 1.8rem;
    }
    
    .wavelet-hero-description {
        font-size: 0.9rem;
    }
    
    .wavelet-feature-card {
        min-height: 160px;
        padding: 1rem;
    }
    
    .wavelet-features-grid {
        gap: 0.8rem;
        max-width: 100%;
    }
    
    .wavelet-feature-title {
        font-size: 1.1rem;
    }
    
    .wavelet-feature-description {
        font-size: 0.85rem;
    }
}

/* Responsive Modal Button Styles */
@media (max-width: 768px) {
    .project-modal-card .links-row {
        flex-direction: column;
        align-items: stretch;
    }
    
    .project-modal-card .links-row a {
        width: 100%;
        min-width: auto;
        padding: 1rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .project-modal-card .links-row a {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
}

/* Modal Floating Bubble - Similar to project section */
.modal-floating-dot {
    position: fixed;
    left: 0; top: 0;
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(25,22,69,0.10);
    transition: width 0.28s cubic-bezier(0.4,0,0.2,1), height 0.28s cubic-bezier(0.4,0,0.2,1), border-radius 0.28s, background 0.18s, box-shadow 0.18s, opacity 0.18s;
    z-index: 10001; /* Higher than project bubble */
    opacity: 1;
    pointer-events: none;
    overflow: visible;
    transform: translate(-50%, -50%);
    display: none;
}

.modal-floating-dot.expanded {
    width: 150px;
    height: 44px;
    border-radius: 1.2rem;
    background: rgba(255,255,255,0.28);
    box-shadow: 0 4px 24px rgba(25,22,69,0.13);
}

.modal-floating-dot::after {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    color: var(--color-text-light);
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.18s 0.08s;
    white-space: nowrap;
    pointer-events: none;
    content: '';
}

.modal-floating-dot.expanded::after {
    content: attr(data-label) '  →';
    opacity: 1;
}

/* Homepage Text Responsive Scaling */
/* Extra Large Screens (1400px+) - Even bigger text */
@media screen and (min-width: 1400px) {
    #home > div > h1,
    #hero-container h1 {
        font-size: 4.5rem; /* Even larger for big screens */
    }
    
    #home > div > h3,
    #hero-container h3 {
        font-size: 2.5rem; /* Increased subtitle */
    }
}

/* Large Screens (1200px+) - Larger text */
@media screen and (min-width: 1200px) and (max-width: 1399px) {
    #home > div > h1,
    #hero-container h1 {
        font-size: 4rem; /* Larger for desktop */
    }
    
    #home > div > h3,
    #hero-container h3 {
        font-size: 2.25rem; /* Increased subtitle */
    }
}

/* Medium Screens (768px-1199px) - Base increased size */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    #home > div > h1,
    #hero-container h1 {
        font-size: 3.5rem; /* Base increased size */
    }
    
    #home > div > h3,
    #hero-container h3 {
        font-size: 2rem; /* Base increased size */
    }
}

/* Small Screens (481px-767px) - Moderately smaller but still bigger than before */
@media screen and (max-width: 767px) {
    #home > div > h1,
    #hero-container h1 {
        font-size: 2.75rem; /* Bigger than original 2.5rem */
    }
    
    #home > div > h3,
    #hero-container h3 {
        font-size: 1.75rem; /* Bigger than original 1.5rem */
    }
}

/* Extra Small Screens (480px and below) - Smallest but still increased */
@media screen and (max-width: 480px) {
    #home > div > h1,
    #hero-container h1 {
        font-size: 2.25rem; /* Still bigger than original but fits mobile */
    }
    
    #home > div > h3,
    #hero-container h3 {
        font-size: 1.5rem; /* Maintains readability on small screens */
    }
}

/* Pricing Table Responsive Improvements - Card-Based Mobile Layout */
@media screen and (max-width: 1200px) {
    .pricing-compare-table {
        min-width: 700px;
        font-size: 0.9rem;
    }
    
    .pricing-compare-table th,
    .pricing-compare-table td {
        padding: 0.7rem 0.8rem;
        min-width: 100px;
        max-width: 180px;
        font-size: 0.85rem;
    }
}

/* Mobile Layout - Cards instead of table */
@media screen and (max-width: 900px) {
    .pricing-compare-section {
        padding: 1rem;
        min-height: auto;
        max-height: none;
    }
    
    .pricing-compare-table-wrapper {
        max-height: none;
        padding: 1rem 0;
        overflow: visible;
    }
    
    /* Mobile title animation */
    .mobile-pricing-title {
        animation: titleSlideIn 0.8s ease-out;
    }
    
    @keyframes titleSlideIn {
        from {
            opacity: 0;
            transform: translateY(-30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Mobile cards will be injected by JavaScript */
    .mobile-pricing-cards {
        animation: fadeInUp 0.6s ease-out;
    }
    
    .mobile-pricing-card {
        transform: translateY(20px);
        opacity: 0;
        animation: cardSlideIn 0.4s ease-out forwards;
    }
    
    /* Disabled card styles */
    .mobile-pricing-card.disabled {
        transform: translateY(20px) scale(0.98);
        animation: disabledCardSlideIn 0.4s ease-out forwards;
    }
    
    @keyframes disabledCardSlideIn {
        to {
            transform: translateY(0) scale(0.98);
            opacity: 0.6;
        }
    }
    
    /* Coming soon badge animation */
    .coming-soon-badge {
        animation: badgeBounce 0.6s ease-out 0.5s both;
    }
    
    @keyframes badgeBounce {
        0% {
            transform: rotate(5deg) scale(0);
            opacity: 0;
        }
        60% {
            transform: rotate(5deg) scale(1.1);
            opacity: 1;
        }
        100% {
            transform: rotate(5deg) scale(1);
            opacity: 1;
        }
    }
    
    /* Feature hover effects for enabled cards */
    .mobile-pricing-card:not(.disabled) .mobile-plan-features > div:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateX(3px);
    }
    
    /* Disabled card interaction states */
    .mobile-pricing-card.disabled:hover {
        transform: scale(0.98);
        cursor: not-allowed;
    }
    
    .mobile-pricing-card.disabled .mobile-plan-features > div {
        color: rgba(255, 255, 255, 0.6);
    }
    
    .mobile-pricing-card:nth-child(1) { animation-delay: 0.1s; }
    .mobile-pricing-card:nth-child(2) { animation-delay: 0.2s; }
    .mobile-pricing-card:nth-child(3) { animation-delay: 0.3s; }
    .mobile-pricing-card:nth-child(4) { animation-delay: 0.4s; }
    
    @keyframes cardSlideIn {
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Enhanced mobile styles */
@media screen and (max-width: 768px) {
    .pricing-compare-section {
        padding: 0.5rem;
    }
    
    .mobile-pricing-card {
        margin: 0 0.5rem;
    }
    
    /* Make tooltip triggers more touch-friendly on mobile */
    .pricing-compare-table td.tooltip-trigger {
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.08);
    }
}

@media screen and (max-width: 480px) {
    .pricing-compare-section {
        padding: 0.25rem;
    }
    
    .mobile-pricing-card {
        margin: 0;
        padding: 1.5rem 1rem;
    }
}

/* Keep table styles for larger screens */
@media screen and (min-width: 901px) {
    .mobile-pricing-cards {
        display: none !important;
    }
}

@media screen and (min-width: 992px) {
    .wavelet-features-grid {
        align-content: center;
        justify-content: center;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        align-items: stretch;
    }
    .wavelet-feature-card {
        height: 100%;
        min-height: 0;
        max-height: 100%;
        align-self: stretch;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
}

/* Estimator Section Styles */
.estimator-section {
    min-height: 60vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: transparent;
    padding: 3rem 0 6rem 0;
}
#estimator-form {
    border-radius: 2rem;
    padding: 2.5rem 2rem 2rem 2rem;
    min-width: 320px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 1.1rem;
    animation: fadeInUp 0.7s;
}
@media (min-width: 700px) {
    #estimator-form {
        max-width: 600px;
        padding: 3rem 3rem 2.5rem 3rem;
        font-size: 1.18rem;
    }
}
.estimator-step {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    opacity: 1;
    transition: opacity 0.3s;
}
.estimator-step.hide {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}
.estimator-label {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.3rem;
}

/* Custom dropdown styling for estimator form */
.estimator-select-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.estimator-custom-select {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 3rem 1rem 1.5rem;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.estimator-custom-select:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.estimator-custom-select.open {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.estimator-custom-select .select-arrow {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    transform: rotate(0deg);
}

.estimator-custom-select:hover .select-arrow {
    color: rgba(255, 255, 255, 0.8);
}

.estimator-custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.8);
}

.estimator-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    border-radius: 0 0 1rem 1rem;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.estimator-select-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.estimator-select-option {
    padding: 0.8rem 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.estimator-select-option:last-child {
    border-bottom: none;
}

.estimator-select-option:hover {
    background: rgba(67, 198, 172, 0.3);
    color: rgba(255, 255, 255, 1);
}

.estimator-select-option.disabled {
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.05);
}

.estimator-select-option.disabled:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
}

.estimator-select-option.selected {
    background: rgba(67, 198, 172, 0.2);
    color: rgba(255, 255, 255, 1);
}

/* Scrollbar styling for options */
.estimator-select-options::-webkit-scrollbar {
    width: 6px;
}

.estimator-select-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.estimator-select-options::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.estimator-select-options::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.estimator-select {
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: var(--color-text-light);
    font-size: 1rem;
    outline: none;
    margin-bottom: 0.2rem;
    transition: border 0.2s, background 0.2s;
}

.estimator-input, .estimator-multiselect {
    padding: 0.7rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    color: var(--color-text-light) !important;
    font-size: 1rem;
    outline: none;
    margin-bottom: 0.2rem;
    transition: border 0.2s, background 0.2s;
}
.estimator-input:focus, .estimator-multiselect:focus {
    border: 1.5px solid var(--color-secondary);
    background: rgba(255,255,255,0.15);
    color: var(--color-text-light) !important;
}
/* Specific rule for textarea to ensure text color */
textarea.estimator-input {
    color: var(--color-text-light) !important;
}
textarea.estimator-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}
.estimator-checkbox-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}
.estimator-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    position: relative;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-small);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    user-select: none;
}
.estimator-checkbox-label:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(67, 198, 172, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.estimator-checkbox-label input[type="radio"], 
.estimator-checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: relative;
    margin: 0;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
.estimator-checkbox-label input[type="checkbox"] {
    border-radius: 4px;
}
.estimator-checkbox-label input[type="radio"]:checked, 
.estimator-checkbox-label input[type="checkbox"]:checked {
    border-color: var(--color-secondary);
    background: linear-gradient(135deg, var(--color-secondary), #4fd1c7);
    box-shadow: 0 0 0 3px rgba(67, 198, 172, 0.2);
}
.estimator-checkbox-label input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
}
.estimator-checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
}
.estimator-checkbox-label:has(input:checked) {
    background: rgba(67, 198, 172, 0.15);
    border-color: rgba(67, 198, 172, 0.4);
    color: var(--color-text-light);
}
.estimator-summary {
    background: rgba(255,255,255,0.10);
    border-radius: 1.2rem;
    padding: 1.2rem 1rem;
    margin-top: 1.5rem;
    color: var(--color-text-light);
    font-size: 1rem;
    box-shadow: 0 2px 12px 0 rgba(25,22,69,0.06);
}
.estimator-summary-title {
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 0.7rem;
    font-size: 1.15rem;
}
.estimator-summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.estimator-summary-list li {
    margin-bottom: 0.4rem;
    color: var(--color-text-light);
}
.estimator-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-accent) 100%);
    color: var(--color-text-light);
    border: none;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(67, 198, 172, 0.18);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    margin-bottom: 0;
}
.estimator-btn:active {
    transform: scale(0.98);
}
.estimator-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.estimator-btn-small {
    padding: 0.8rem 1.1rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255,255,255,0.12);
    color: var(--color-secondary);
    border-radius: 1rem;
    margin-left: auto;
    box-shadow: none;
    border: none;
    transition: background 0.2s, color 0.2s;
    height: 100%;
    min-width: 90px;
    max-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.estimator-btn-small:active {
    transform: scale(0.97);
}

.estimator-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.3rem;
    font-size: 1.05em;
    font-weight: 600;
    color: var(--color-secondary);
    letter-spacing: 0.02em;
    gap: 0.5em;
    background: rgba(255,255,255,0.13);
    border-radius: 1.2rem;
    padding: 0.5rem 1.2rem;
    box-shadow: 0 2px 8px 0 rgba(67,198,172,0.08);
    max-width: fit-content;
    min-width: 0;
}
.estimator-step-indicator .step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(67,198,172,0.18);
    margin: 0 2px;
    display: inline-block;
    transition: background 0.3s, transform 0.3s, opacity 0.3s;
    opacity: 0.7;
    transform: scale(1);
}
.estimator-step-indicator .step-dot.active {
    background: var(--color-secondary);
    transform: scale(1.35);
    opacity: 1;
    animation: dotPop 0.35s cubic-bezier(0.4,1.4,0.6,1) both;
}
.estimator-step-indicator .step-dot.passed {
    background: rgba(67,198,172,0.5);
    opacity: 1;
    transform: scale(1.1);
    animation: dotPassed 0.35s cubic-bezier(0.4,1.4,0.6,1) both;
}
@keyframes dotPop {
    0% { transform: scale(0.7); opacity: 0.5; }
    60% { transform: scale(1.5); opacity: 1; }
    100% { transform: scale(1.35); opacity: 1; }
}
@keyframes dotPassed {
    0% { transform: scale(0.7); opacity: 0.5; }
    100% { transform: scale(1.1); opacity: 1; }
}

.estimator-nav-row, .estimator-nav-row-anim {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: margin 0.35s, padding 0.35s, transform 0.35s;
}

@keyframes fadeInStep {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#other-language-extra {
    transition: opacity 0.3s, max-height 0.3s;
    opacity: 1;
    max-height: 100px;
    overflow: hidden;
}
#other-language-extra[aria-hidden="true"] {
    opacity: 0;
    max-height: 0;
    pointer-events: none;
}

.slide-in-right {
    animation: slideInRight 0.35s cubic-bezier(0.4,1.4,0.6,1) both;
}
.slide-in-left {
    animation: slideInLeft 0.35s cubic-bezier(0.4,1.4,0.6,1) both;
}
.slide-out-left {
    animation: slideOutLeft 0.35s cubic-bezier(0.4,1.4,0.6,1) both;
}
.slide-out-right {
    animation: slideOutRight 0.35s cubic-bezier(0.4,1.4,0.6,1) both;
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutLeft {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(-60px); }
}
@keyframes slideOutRight {
    from { opacity: 1; transform: translateX(0); }
    to   { opacity: 0; transform: translateX(60px); }
}