/* ==========================================================================
   Linked Lamp — Landing Page Commercial Styles
   ==========================================================================
   Premium, Glassmorphism, Modern CSS Aesthetics.
   ========================================================================== */

:root {
    --bg-dark: #070911;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.06);
    --text: #ffffff;
    --text-dim: #9ca3af;
    --accent: #6b4cff;
    --accent-hover: #8970ff;
    --font: 'Outfit', sans-serif;
    --radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.max-w {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

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

/* --- Ambient Background Glows --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.glow-1 {
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #6b4cff 0%, transparent 70%);
}

.glow-2 {
    bottom: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #ff4757 0%, transparent 70%);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 0;
    z-index: 1002;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(7, 9, 17, 0.85);
    backdrop-filter: blur(16px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo .material-icons-round {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.nav-links .github-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn {
    padding: 7px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: white !important;
}

.nav-btn.primary {
    background: var(--accent);
    border: none;
    box-shadow: 0 4px 15px rgba(107, 76, 255, 0.3);
}

.nav-btn.primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
    padding-top: 15vh;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero-badge {
    background: rgba(46, 213, 115, 0.1);
    border: 1px solid rgba(46, 213, 115, 0.3);
    color: #2ed573;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 4rem;
}

.btn {
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary-btn {
    background: var(--accent);
    color: white;
    border: none;
}

.primary-btn:hover {
    background: var(--accent-hover);
    box-shadow: 0 8px 25px rgba(107, 76, 255, 0.4);
    transform: translateY(-3px);
}

.outline-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.outline-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.pulse-hover:hover {
    animation: gentlePulse 1.5s infinite;
}

@keyframes gentlePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(107, 76, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(107, 76, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(107, 76, 255, 0);
    }
}

/* Glassmorphism Card styling */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

/* Dynamic CSS Lamp Illustration */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

.visual-card {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
}

.lamp-illustration {
    width: 80px;
    height: 120px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.lamp-base {
    width: 60px;
    height: 20px;
    background: #333;
    border-radius: 10px 10px 4px 4px;
    position: absolute;
    bottom: 0;
}

.lamp-body {
    width: 80px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px 40px 10px 10px;
    position: absolute;
    bottom: 20px;
    z-index: 2;
}

.lamp-light {
    position: absolute;
    bottom: 25px;
    width: 60px;
    height: 80px;
    background: var(--accent);
    border-radius: 30px 30px 8px 8px;
    opacity: 0;
    transition: opacity 1s, background 1s;
    z-index: 1;
}

.pulse-light {
    animation: lampCycle 4s infinite;
}

@keyframes lampCycle {
    0% {
        opacity: 0;
        background: var(--accent);
        box-shadow: 0 0 0px var(--accent);
    }

    20% {
        opacity: 0.8;
        background: var(--accent);
        box-shadow: 0 0 40px var(--accent);
    }

    45% {
        opacity: 0;
        background: var(--accent);
    }

    50% {
        opacity: 0;
        background: #2ed573;
        box-shadow: 0 0 0px #2ed573;
    }

    70% {
        opacity: 0.8;
        background: #2ed573;
        box-shadow: 0 0 40px #2ed573;
    }

    95% {
        opacity: 0;
        background: #2ed573;
    }

    100% {
        opacity: 0;
        background: var(--accent);
    }
}

.visual-text h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.visual-text p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* --- Features Section --- */
.features-section {
    padding: 100px 5%;
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-card {
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* --- Desktop Feature Rows --- */
.desktop-feature-rows {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    text-align: left;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.feature-text p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.feature-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-badge .material-icons-round {
    font-size: 1.2rem;
}

.feature-image {
    flex: 1;
    border-radius: var(--radius);
    overflow: hidden;
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius);
    object-fit: cover;
}

@media (min-width: 769px) {
    .mobile-feature-grid {
        display: none !important;
    }
}

/* --- CTA Section --- */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(to top, rgba(107, 76, 255, 0.1), transparent);
    text-align: center;
}

.cta-container h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-container p {
    color: var(--text-dim);
    font-size: 1.1rem;
}

/* --- Footer --- */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 1.2rem;
}

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

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* ---- Global overflow fix ---- */
html {
    overflow-x: hidden;
}

/* ---- Hamburger Button ---- */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Mobile Nav Overlay ---- */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 9, 17, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 28px;
}

.mobile-nav-links a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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



/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-top: 10vh;
        padding-bottom: 0vh;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .nav-links {
        display: flex;
    }

    .hamburger-btn {
        display: flex;
    }

    .mobile-nav-overlay {
        display: block;
    }

    .hero-visual {
        display: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .feature-grid {
        display: flex;
        flex-direction: column;
    }

    .desktop-feature-rows {
        display: none !important;
    }

    /* Constrain ambient glows on mobile */
    .ambient-glow {
        max-width: 100vw;
        overflow: hidden;
    }

    .glow-1 {
        right: 0;
        width: 300px;
        height: 300px;
    }

    .glow-2 {
        left: 0;
        width: 250px;
        height: 250px;
    }
}