:root {
    --primary-color: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: #93c5fd;
    --accent-color: #a78bfa;
    --text-primary: #f9fafb;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 20px rgba(96, 165, 250, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Allow text selection for form inputs and textareas */
input,
textarea,
[contenteditable] {
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

html {
    scroll-behavior: auto; /* Use JavaScript-controlled smooth scroll instead */
    scroll-padding-top: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    font-size: 16px;
    overflow-x: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    padding-top: 0;
}

main {
    padding-top: 70px; /* Space for fixed header */
}

@media (min-width: 769px) {
    body {
        cursor: none;
    }
    
    /* Show cursor when hovering over controls panel (when open) */
    #visual-controls:hover .controls-panel:not(.hidden),
    .controls-panel:not(.hidden),
    .controls-panel:not(.hidden) * {
        cursor: default !important;
    }
    
    /* Buttons and interactive elements should have pointer cursor */
    .controls-panel:not(.hidden) button,
    .controls-panel:not(.hidden) input[type="range"],
    .controls-panel:not(.hidden) input[type="checkbox"],
    .control-toggle {
        cursor: pointer !important;
    }
}

/* Interactive Canvas */
#interactive-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
    opacity: 1.0; /* Full opacity for maximum visibility */
    max-width: 100%;
    max-height: 100%;
}

/* Cursor Trail */
#cursor-trail {
    position: fixed;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-color) 0%, rgba(96, 165, 250, 0.5) 40%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    mix-blend-mode: screen;
    left: 0;
    top: 0;
    opacity: 0;
    will-change: transform;
    transform: translate(-16px, -16px);
}

/* Cursor Force Radius */
#cursor-radius {
    position: fixed;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    left: 0;
    top: 0;
    opacity: 0;
    will-change: transform, opacity;
    transform: translate(-80px, -80px);
    border: 1px solid rgba(167, 139, 250, 0.3);
    background: radial-gradient(circle, 
        rgba(167, 139, 250, 0.05) 0%,
        rgba(167, 139, 250, 0.03) 40%,
        transparent 80%);
    transition: opacity 0.3s ease-in-out;
}

/* Water Ripple Effect */
.water-ripple {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    border: 2px solid;
    background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.08) 30%, transparent 70%);
    mix-blend-mode: screen;
    opacity: 0.9;
    will-change: transform, opacity;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.6),
                0 0 60px rgba(96, 165, 250, 0.3),
                inset 0 0 40px rgba(96, 165, 250, 0.1);
}

.water-ripple-secondary {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4);
    opacity: 0.6;
}

/* Fun Hover Effects */
.content-card,
.service-item {
    cursor: pointer;
}

.content-card:hover,
.service-item:hover {
    cursor: pointer;
}

/* Particles */
.particle {
    position: fixed;
    pointer-events: none;
    z-index: 9997;
    border-radius: 50%;
    /* Background is set inline via JavaScript to match color scheme */
    animation: particleFloat 2s ease-out forwards;
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-100px) scale(0);
    }
}

/* Logo Easter Egg */
.logo-container {
    position: relative;
}

/* Logo hover animation removed - using simple scale instead */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Text Interactive Effects */
h1, h2, h3 {
    cursor: default;
}

h1:hover, h2:hover, h3:hover {
    background-position: 100% 0;
    transition: background-position 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(96, 165, 250, 0.6);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Navigation */
header {
    background-color: rgba(15, 23, 42, 0.3);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 70px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(15, 23, 42, 0.5);
    box-shadow: var(--shadow);
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

nav .container > *:first-child {
    margin-right: auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.1);
}

.logo-container:hover .logo-svg {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.logo-svg {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-color);
}

.status-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.status-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
    background: linear-gradient(135deg, var(--primary-light), var(--accent-color));
}

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
    z-index: 101;
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
    background: transparent;
    z-index: 1;
    margin-bottom: 0;
    transform: none !important;
}

/* Removed hero background patterns - user prefers clean transparent background */
/* .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(167, 139, 250, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2360a5fa' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
} */

.hero .container {
    position: relative;
    z-index: 1;
    background: transparent;
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 24px rgba(0, 0, 0, 0.8), 0 0 40px rgba(96, 165, 250, 0.4);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 2.5rem;
    color: var(--text-primary);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 600;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9), 0 4px 20px rgba(0, 0, 0, 0.7), 0 0 30px rgba(96, 165, 250, 0.4);
    background: transparent;
    position: relative;
    z-index: 10;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Page Header */
.page-header {
    padding: 6rem 0 4rem;
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(96, 165, 250, 0.05) 0%, transparent 70%);
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 0.8s ease-out;
    filter: drop-shadow(0 0 20px rgba(96, 165, 250, 0.3));
    text-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

.page-header p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

/* Sections */
.section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    position: relative;
    z-index: 10;
    background: transparent;
    margin-top: 0;
    margin-bottom: 0;
    scroll-margin-top: 4rem;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-alt {
    background: transparent;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    width: 100%;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(96, 165, 250, 0.2);
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.content-card {
    background-color: rgba(30, 41, 59, 0.85);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(15px);
}

.content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.content-card:hover::before {
    transform: scaleX(1);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    background-color: rgba(30, 41, 59, 0.95);
}

.content-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    min-height: 3.6rem;
    display: flex;
    align-items: center;
    line-height: 1.2;
}

.content-card:hover h3 {
    color: var(--primary-light);
}

.content-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-item {
    padding: 2.5rem;
    background-color: rgba(30, 41, 59, 0.85);
    border-radius: 1rem;
    border-left: 4px solid var(--primary-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.service-item:hover::before {
    transform: scaleY(1);
}

.service-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
    background-color: rgba(30, 41, 59, 0.95);
}

.service-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    transition: color 0.3s ease;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.service-item:hover h3 {
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.service-features li {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.service-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.service-acronyms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.service-acronyms span {
    background-color: rgba(96, 165, 250, 0.1);
    color: var(--primary-color);
    padding: 0.35rem 0.7rem;
    border-radius: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
}

.service-item:hover .service-acronyms span {
    background-color: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem auto;
    background-color: rgba(30, 41, 59, 0.85);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(15px);
}

.contact-content h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.contact-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.contact-info {
    margin-top: 2rem;
}

.contact-link {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    border: 2px solid var(--primary-color);
    background-color: transparent;
}

.contact-link:hover {
    color: white;
    background-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    background-color: rgba(30, 41, 59, 0.85);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(15px);
}

.contact-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5),
                 0 0 20px rgba(96, 165, 250, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.form-group button {
    width: 100%;
}

/* Footer */
footer {
    background-color: rgba(30, 41, 59, 0.3);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(5px);
}

footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

footer h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(15, 23, 42, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links li {
        padding: 1rem 0;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .hero {
        min-height: 80vh;
        padding: 3rem 0;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .section {
        padding: 4rem 0;
    }

    .content-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        padding: 4rem 0 3rem;
    }
    
    /* Adjust controls panel for tablets */
    .controls-panel {
        max-width: calc(100vw - 4rem);
        max-height: calc(100vh - 120px);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .content-card,
    .service-item {
        padding: 1.5rem;
    }
    
    /* Adjust controls panel for small screens */
    #visual-controls {
        bottom: 1rem;
        right: 1rem;
    }
    
    .controls-panel {
        bottom: 60px;
        max-width: calc(100vw - 2rem);
        max-height: calc(100vh - 100px);
        padding: 1rem;
        min-width: auto;
    }
}

/* Visual Controls Panel */
#visual-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 10001;
}

.control-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-toggle:hover {
    background: var(--bg-tertiary);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.controls-panel {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
    min-width: 220px;
    max-width: 300px;
    max-height: calc(100vh - 120px); /* Leave space for toggle button and margins */
    overflow-y: auto;
    overflow-x: hidden;
    box-shadow: var(--shadow-lg);
    transition: opacity 0.3s ease, transform 0.3s ease;
    /* Smooth scrolling */
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) var(--bg-tertiary);
}

.controls-panel::-webkit-scrollbar {
    width: 8px;
}

.controls-panel::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.controls-panel::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.controls-panel::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.controls-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
}

.controls-panel h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.control-group {
    margin-bottom: 0.5rem;
}

.control-group label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.color-options,
.pattern-options {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.color-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.color-btn.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.color-btn.active::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.pattern-btn {
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    border: 2px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
}

.pattern-btn:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.pattern-btn.active {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.3);
}

.control-slider {
    width: 100%;
    height: 5px;
    border-radius: 3px;
    background: var(--bg-tertiary);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-light);
}

.control-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.control-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    background: var(--primary-light);
}

.control-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.control-group span {
    color: var(--primary-color);
    font-weight: 600;
    min-width: 40px;
    display: inline-block;
    text-align: right;
}

.btn-reset {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(96, 165, 250, 0.3);
}

.btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(96, 165, 250, 0.4);
}

.btn-reset:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(96, 165, 250, 0.3);
}
