/* ====== CSS Variables & Base ====== */
:root {
    /* Dark Mode Variables (Default) */
    --bg-main: #0a0b0e;
    --bg-card: rgba(25, 27, 33, 0.6);
    --bg-card-hover: rgba(25, 27, 33, 0.8);
    --bg-footer: #060709;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    /* Primary Colors */
    --primary: #fcee0a; /* Vibrant Lemon Yellow */
    --primary-glow: rgba(252, 238, 10, 0.2);
    --primary-dark: #ccbf00;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Mode Variables */
html.light-mode {
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.8);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-footer: #e2e8f0;
    --text-main: #0f172a;
    --text-muted: #475569;
    --border-light: rgba(0, 0, 0, 0.1);
    --border-glass: rgba(0, 0, 0, 0.05);
    --primary-glow: rgba(252, 238, 10, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s, color 0.4s;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
    position: relative;
    display: inline-block;
}
html.light-mode .highlight {
    color: #e5cc00;
    text-shadow: none;
}
.highlight::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    pointer-events: none;
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ====== Utilities & Glassmorphism ====== */
.glass {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}
.glass::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 100%);
    transform: rotate(30deg);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s;
}
.glass:hover::before {
    opacity: 1;
}

.mt-4 { margin-top: 1.5rem; }

/* ====== Buttons & Controls ====== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: -1;
}
.btn:hover::after {
    width: 300px; height: 300px;
}

.btn-primary {
    background: var(--primary);
    color: #0a0b0e;
    box-shadow: 0 4px 20px var(--primary-glow);
    animation: pulse-btn 3s infinite alternate;
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(252, 238, 10, 0.4);
}
@keyframes pulse-btn {
    0% { box-shadow: 0 0 10px var(--primary-glow); }
    100% { box-shadow: 0 0 25px rgba(252, 238, 10, 0.5); }
}

.btn-secondary {
    background: rgba(128, 128, 128, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-light);
}
.btn-secondary:hover {
    background: rgba(128, 128, 128, 0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--text-main);
}
html.light-mode .btn-outline {
    border-color: #e5cc00;
}
.btn-outline:hover {
    background: var(--primary);
    color: #0a0b0e;
}

.btn-card {
    background: rgba(128, 128, 128, 0.08);
    border: 1px solid var(--border-light);
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 12px;
}
.btn-card:hover {
    background: var(--primary);
    color: #0a0b0e;
    border-color: var(--primary);
}

.theme-btn {
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-left: 1rem;
    font-size: 1.1rem;
    color: var(--text-main);
    transition: var(--transition);
}
.theme-btn:hover {
    background: rgba(128,128,128,0.1);
    transform: rotate(15deg);
}

/* ====== Navbar ====== */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.navbar.scrolled {
    top: 0.75rem;
    padding: 0.5rem 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
    background: var(--bg-card-hover);
}
.navbar .container {
    width: 100%;
    max-width: 100%;
    padding: 0;
}
.portfolio-link {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition);
    border-bottom: 1px dashed transparent;
}
.portfolio-link:hover {
    color: var(--text-main);
    border-bottom: 1px dashed var(--text-main);
    text-shadow: 0 0 8px var(--primary-glow);
}
.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.75rem;
    font-weight: 800;
}
.nav-logo {
    max-height: 32px;
    border-radius: 4px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}
.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}
.nav-link:hover {
    color: var(--text-main);
}
.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}
.nav-link.active {
    color: var(--primary) !important;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
    padding: 0.5rem;
}
.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 3px;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ====== Hero Section ====== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 8rem;
}
.hero-bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
    animation: pulse-bg 8s infinite alternate;
    transition: transform 0.2s ease-out;
}
@keyframes pulse-bg {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.badge {
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border-light);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}
.floating {
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}
.mouse {
    width: 24px; height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}
.mouse::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 4px; height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: mouse-scroll 2s infinite;
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}
@keyframes mouse-scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 10px); opacity: 0; }
}

/* ====== General Sections ====== */
.section {
    padding: 6rem 0;
}
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ====== About Section ====== */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}
.lead {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.about-text p {
    color: var(--text-muted);
}
.about-stat-card {
    background: var(--bg-card);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.about-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.about-stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
}

/* ====== Products / Services Section ====== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}
.product-card {
    padding: 2.5rem 2rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s, background 0.4s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
}
.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(252, 238, 10, 0.5);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 20px var(--primary-glow);
    background: var(--bg-card-hover);
}
.product-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(128,128,128,0.08);
    border-radius: 15px;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.product-card:hover .product-icon {
    transform: scale(1.15) rotate(10deg);
    background: var(--primary);
    color: #0a0b0e;
    box-shadow: 0 0 20px var(--primary-glow);
}
.product-name {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
.product-desc {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* ====== Pricing Section ====== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}
.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    border-radius: 24px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s, border-color 0.4s, background 0.4s;
}
.pricing-card:hover {
    transform: translateY(-10px);
    border-color: rgba(252, 238, 10, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 0 15px var(--primary-glow);
    background: var(--bg-card-hover);
}
.pricing-card.popular {
    border-color: var(--primary);
    position: relative;
    transform: scale(1.05);
}
.pricing-card.popular:hover {
    transform: scale(1.08) translateY(-5px);
    box-shadow: 0 20px 45px rgba(252, 238, 10, 0.3);
}
.pricing-card.popular::after {
    content: 'Populaire';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary);
    color: #0a0b0e;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.85rem;
    animation: popular-pulse 2s infinite;
}
@keyframes popular-pulse {
    0% { box-shadow: 0 0 0 0 rgba(252, 238, 10, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(252, 238, 10, 0); }
    100% { box-shadow: 0 0 0 0 rgba(252, 238, 10, 0); }
}
html.light-mode .pricing-card.popular {
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text-main);
}
.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}
.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}
.pricing-features li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}
.option-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.option-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: var(--bg-card-hover);
}

/* ====== Steps Section ====== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}
.step-item {
    text-align: center;
    padding: 2rem;
    transition: var(--transition);
}
.step-item:hover {
    transform: translateY(-5px);
}
.step-item:hover .step-number {
    background: var(--primary-dark);
    transform: scale(1.1);
}
.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    transition: var(--transition);
}
.step-item h3 { margin-bottom: 0.5rem; }
.step-item p { color: var(--text-muted); font-size: 0.9rem;}

/* ====== Admin / Login & Lamp Effect ====== */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    max-width: 900px;
    margin: 0 auto;
    padding-top: 2rem;
}

.lamp-container {
    position: relative;
    width: 200px;
    height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-container {
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 2;
}

#login-card-container {
    opacity: 0.05;
    pointer-events: none;
    transition: opacity 0.8s ease-in-out, filter 0.8s ease-in-out, box-shadow 0.8s;
    filter: blur(4px) brightness(0.2);
}

.login-wrapper.lights-on #login-card-container {
    opacity: 1;
    pointer-events: all;
    filter: blur(0px) brightness(1);
    box-shadow: 0 10px 40px rgba(252, 238, 10, 0.2);
}

.lamp-cord {
    position: relative;
    width: 120px;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.lamp-cord:active {
    transform: translateY(15px);
}

.cord {
    width: 4px;
    height: 50px;
    background: #333;
    margin: 0 auto;
}

.lampshade {
    width: 100px;
    height: 45px;
    background: #2a2a2a;
    margin: 0 auto;
    clip-path: polygon(25% 0, 75% 0, 100% 100%, 0% 100%);
    position: relative;
    z-index: 2;
    border-bottom: 2px solid var(--primary-dark);
    transition: background 0.3s;
}

.login-wrapper.lights-on .lampshade {
    background: #444;
}

.bulb {
    width: 20px;
    height: 15px;
    background: #555;
    border-radius: 0 0 10px 10px;
    margin: 0 auto;
    margin-top: -2px;
    position: relative;
    z-index: 1;
    transition: background 0.3s, box-shadow 0.3s;
}

.login-wrapper.lights-on .bulb {
    background: var(--primary);
    box-shadow: 0 5px 20px var(--primary), 0 10px 40px var(--primary);
}

.pull-chain {
    width: 2px;
    height: 40px;
    background: #777;
    margin: 0 auto;
    position: relative;
    top: -5px;
    z-index: 0;
}
.pull-chain::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: #777;
    border-radius: 50%;
}

.spotlight {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 140px solid transparent;
    border-right: 140px solid transparent;
    border-bottom: 400px solid rgba(252, 238, 10, 0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease-out;
    z-index: -1;
    filter: blur(25px);
}

.login-wrapper.lights-on .spotlight {
    opacity: 1;
}

.login-card {
    padding: 3rem 2rem;
    text-align: center;
}
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}
.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: rgba(128,128,128,0.1);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(128,128,128,0.2);
}
.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: none;
}

/* ====== Footer ====== */
.footer {
    border-top: 1px solid var(--border-light);
    padding: 4rem 0 2rem;
    background: var(--bg-footer);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}
.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}
.contact-list { list-style: none; }
.contact-list li { margin-bottom: 0.75rem; }
.contact-link {
    color: var(--text-muted);
    transition: var(--transition);
    display: inline-block;
}
.contact-link:hover { 
    color: var(--text-main);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ====== Animations & Reveals ====== */
.hidden-onload { opacity: 0; }
.fade-up {
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    animation-delay: var(--delay, 0s);
}
@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-dot {
    width: 8px; height: 8px;
    background-color: var(--primary);
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 2px solid var(--primary-glow);
}

/* ====== Responsive ====== */
@media (max-width: 992px) {
    .pricing-card.popular {
        transform: scale(1);
    }
    .pricing-card.popular:hover {
        transform: translateY(-8px);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: 94%;
        padding: 0.5rem 1.25rem;
        top: 1rem;
    }
    .navbar.scrolled {
        top: 0.5rem;
        padding: 0.4rem 1.25rem;
    }
    .hamburger { display: flex; }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.25rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 0.75rem;
        background: var(--bg-card);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-glass);
        border-radius: 24px;
        padding: 2rem 1.5rem;
        box-shadow: 0 15px 35px rgba(0,0,0,0.3);
        opacity: 0;
        transform: translateY(-15px) scale(0.95);
        pointer-events: none;
        transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
        z-index: 1000;
    }
    .nav-links.active {
        opacity: 1;
        transform: translateY(0) scale(1);
        pointer-events: auto;
    }
    /* Reset button margins in mobile menu */
    .nav-links .btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 80%;
        max-width: 280px;
        text-align: center;
    }
    .nav-links .theme-btn {
        margin-left: 0 !important;
    }
    .nav-link { font-size: 1.3rem; }

    /* Logo sizing */
    .logo img {
        max-height: 50px !important;
    }
    
    /* Hero */
    .hero { min-height: 70vh; padding-top: 6rem; }
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1.05rem; margin-bottom: 1.5rem; }
    .hero-actions { 
        flex-direction: column; 
        width: 100%; 
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    .hero-actions .btn { 
        width: 100%; 
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }
    .hero-bg-glow {
        width: 350px;
        height: 350px;
    }
    .scroll-indicator { display: none; }

    /* Badge */
    .badge { font-size: 0.8rem; padding: 0.4rem 1rem; }
    
    /* Sections */
    .section { padding: 3.5rem 0; }
    .section-header { margin-bottom: 2.5rem; }
    .section-title { font-size: 1.8rem; }
    .section-header p { font-size: 0.95rem; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .about-text .lead { font-size: 1.05rem; }
    .about-stat-card { padding: 2rem 1.5rem; }

    /* Products */
    .product-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .product-card { padding: 2rem 1.5rem; }
    .product-name { font-size: 1.3rem; }

    /* Pricing */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 1.5rem;
    }
    .pricing-card { padding: 2rem 1.5rem; }
    .pricing-price { font-size: 2rem; }

    /* Steps */
    .steps-grid { grid-template-columns: 1fr; gap: 1rem; }
    .step-item { padding: 1.5rem; }

    /* Options */
    .options-grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .option-card { padding: 1rem; font-size: 0.9rem; }

    /* Footer (main grid footer on index/apps) */
    .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .footer { padding: 2.5rem 0 1.5rem; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom { padding-top: 1.5rem; font-size: 0.8rem; }

    /* Footer contact list (all footers - override inline flex styles) */
    .contact-list {
        flex-direction: column !important;
        gap: 0.75rem !important;
        align-items: center !important;
        display: flex !important;
    }

    /* Login / Admin page */
    .login-wrapper {
        flex-direction: column;
        gap: 2rem;
        padding-top: 1rem;
    }
    .lamp-container {
        height: 180px;
        width: 150px;
    }
    .lampshade {
        width: 80px;
        height: 36px;
    }
    .form-container {
        max-width: 100%;
        width: 100%;
    }
    .login-card {
        padding: 2rem 1.5rem !important;
    }
    .spotlight {
        border-bottom: 200px solid rgba(252, 238, 10, 0.15);
        border-left: 90px solid transparent;
        border-right: 90px solid transparent;
        top: 100px;
    }

    /* Glass cards in contact/assistance */
    .glass[style*="padding: 3rem"] {
        padding: 2rem 1.25rem !important;
    }
    
    /* Custom cursor hide */
    .cursor-dot, .cursor-outline { display: none; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }
    .hero-subtitle { font-size: 0.95rem; }
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.5rem; }
    .section-header { margin-bottom: 2rem; }

    .product-card { padding: 1.5rem 1.25rem; }
    .pricing-card { padding: 1.5rem 1.25rem; }
    .pricing-price { font-size: 1.8rem; }

    .options-grid { grid-template-columns: 1fr; }
    
    .login-wrapper { gap: 1.5rem; }
    .lamp-container {
        height: 150px;
        width: 120px;
    }
    .lampshade {
        width: 70px;
        height: 30px;
    }
    .cord { height: 35px; }
    .pull-chain { height: 30px; }
    .spotlight {
        border-bottom: 180px solid rgba(252, 238, 10, 0.15);
        border-left: 70px solid transparent;
        border-right: 70px solid transparent;
        top: 90px;
    }

    .footer-bottom { font-size: 0.75rem; }
    .container { width: 92%; }
}
