:root {
    --bg: #0b1220;
    --surface: #101a2b;
    --surface-soft: #122039;
    --border: #2a3955;
    --text: #e5edf9;
    --muted: #9fb1cf;
    --primary: #2f80ff;
    --primary-dark: #1f5ec4;
    --primary-glow: rgba(47, 128, 255, 0.5);
    --success: #1f9d66;
    --warning: #a86412;
    --radius: 16px;
    --transition: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

::selection {
    background: var(--primary);
    color: white;
}

/* Dynamic Background Glow */
/* Dynamic Background Glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background:
        radial-gradient(circle at 15% 50%, rgba(47, 128, 255, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(47, 128, 255, 0.05), transparent 25%);
    pointer-events: none;
    animation: pulseGlow 8s ease-in-out infinite alternate;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    pointer-events: none;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(7, 14, 24, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s var(--transition);
}

.header-row {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    color: var(--primary);
    font-weight: 600;
    -webkit-text-fill-color: initial;
    background: none;
}

.hero {
    padding: 60px 0 48px;
    position: relative;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    /* Increased media side width */
    gap: 60px;
    /* Increased gap for breathing room */
    align-items: center;
}

.eyebrow {
    color: #9bc1ff;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 6px 12px;
    background: rgba(47, 128, 255, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(47, 128, 255, 0.2);
}

h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    /* Slightly larger heading to match */
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #60a5fa 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.hero-description,
.section-description {
    color: var(--muted);
    max-width: 60ch;
    font-size: 1.2rem;
    /* Slightly larger description */
    line-height: 1.6;
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    min-height: 56px;
    /* Slightly taller buttons */
    padding: 0 32px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--transition);
    font-size: 1.05rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(47, 128, 255, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(47, 128, 255, 0.5);
}

/* Glow Effect for Button */
.glow-effect {
    position: relative;
    z-index: 1;
}

.glow-effect::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: -1;
}

.glow-effect:hover::after {
    opacity: 1;
    transform: scale(1);
    animation: ripple 1.5s infinite;
}

@keyframes ripple {
    0% {
        transform: scale(0.9);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.btn-secondary,
.btn-ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.btn-ghost:hover,
.btn-secondary:hover,
.btn-ghost:focus-visible,
.btn-secondary:focus-visible {
    border-color: var(--primary);
    background: rgba(47, 128, 255, 0.1);
    color: #fff;
    transform: translateY(-1px);
}

/* Hero Image Floating Animation */
.hero-media-wrapper {
    position: relative;
    z-index: 10;
}

.hero-media {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(47, 128, 255, 0.2);
    /* Enhanced border color */
    background: #0b1220;
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 0 40px rgba(47, 128, 255, 0.1);
    /* Added glow */
    display: block;
    position: relative;
    transform: perspective(1000px) rotateY(-2deg);
    /* Added subtle 3D tilt */
}

.floating {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

.hero-media img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    pointer-events: none;
}

.qualification,
.features,
.form-section {
    padding: 80px 0;
}

.qualification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.qualification-card,
.feature-card,
.form-container {
    background: rgba(16, 26, 43, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition), border-color 0.3s;
}

.qualification-card:hover,
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px -10px rgba(47, 128, 255, 0.15);
}

.qualification-card {
    padding: 32px;
}

.qualification-card h2,
.features h2,
.form-section h2 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    font-weight: 700;
}

.qualification-card ul {
    list-style: none;
    padding-left: 0;
}

.qualification-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--muted);
    font-size: 1.05rem;
}

.icon {
    font-size: 1.2rem;
}

.qualification-card.muted {
    background: rgba(18, 32, 57, 0.4);
    border-style: dashed;
}

.features h2,
.features .section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

.features .section-description {
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

@keyframes floaty {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.feature-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: floaty 4s ease-in-out infinite;
}

.feature-card:nth-child(even) {
    animation-delay: 2s;
    /* Stagger the floating */
}

.feature-card img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 15px rgba(47, 128, 255, 0.3));
    transition: transform 0.3s ease;
}

.feature-card:hover img {
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #fff;
}

.feature-card p {
    color: var(--muted);
    line-height: 1.5;
}

/* --- Mobile Phone Form Concept 2.0 (3D & Interactive) --- */
.form-section {
    perspective: 1000px;
    overflow: visible;
    /* Allow 3D elements to poke out */
}

.form-container {
    padding: 0;
    width: 360px;
    /* Standart mobile width */
    max-width: 100%;
    margin: 0 auto;
    background: #050505;
    border-radius: 44px;
    border: 8px solid #1a1a1a;
    /* Bezel */
    /* 3D Look */
    box-shadow:
        0 0 0 2px #333,
        20px 20px 60px rgba(0, 0, 0, 0.6),
        -5px -5px 20px rgba(255, 255, 255, 0.05) inset;
    position: relative;
    height: 740px;
    display: flex;
    flex-direction: column;
    transition: transform 0.5s ease;
    transform-style: preserve-3d;
}

.form-container:hover {
    transform: rotateY(-5deg) rotateX(2deg);
    box-shadow:
        15px 15px 50px rgba(0, 0, 0, 0.6),
        0 0 0 2px #444;
}

/* Side Buttons (Volume/Power) - Pure CSS 3D details */
.form-container::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 120px;
    width: 4px;
    height: 50px;
    background: #222;
    border-radius: 2px 0 0 2px;
    box-shadow: inset -1px 0 2px rgba(0, 0, 0, 0.5);
}

.form-container::before {
    content: '';
    /* Notch is separate now */
    display: none;
}

/* Notch Element */
.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 28px;
    background: #1a1a1a;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-speaker {
    width: 50px;
    height: 4px;
    background: #050505;
    border-radius: 2px;
}

/* Lock Screen Overlay */
.lock-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1550684848-fac1c5b4e853?q=80&w=1000&auto=format&fit=crop') center/cover no-repeat;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 60px 20px 40px;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.lock-screen.unlocked {
    transform: scale(3);
    opacity: 0;
    filter: blur(20px);
    pointer-events: none;
}

.lock-clock {
    text-align: center;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.clock-time {
    font-size: 3.5rem;
    font-weight: 200;
    line-height: 1;
}

.clock-date {
    font-size: 1rem;
    margin-top: 5px;
    font-weight: 500;
}

.notification-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    padding: 12px;
    width: 100%;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInDown 0.8s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.notif-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.notif-content {
    color: #111;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
}

/* Slide to Unlock */
@keyframes tap-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.6);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.unlock-area {
    width: 100%;
    text-align: center;
    position: relative;
}

.unlock-area::after {
    content: '';
    position: absolute;
    bottom: 25px;
    /* Positioned near the button */
    left: 45%;
    width: 30px;
    height: 30px;
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    z-index: 40;
    animation: tap-pulse 2s ease-out infinite;
}

.swipe-hint {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: bounceUp 2s infinite;
}

@keyframes bounceUp {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.unlock-btn {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    animation: attention-shake 6s infinite;
}

@keyframes attention-shake {

    0%,
    85%,
    100% {
        transform: scale(1);
    }

    88% {
        transform: scale(1.05) rotate(2deg);
    }

    91% {
        transform: scale(1.05) rotate(-2deg);
    }

    94% {
        transform: scale(1.05) rotate(2deg);
    }

    97% {
        transform: scale(1);
    }
}

.unlock-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Flashlight & Tool Buttons */
.phone-tool-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-tool-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.phone-tool-btn.active {
    background: #fff;
    color: #000;
    box-shadow: 0 0 20px #fff;
}

.phone-tool-btn.small {
    width: 32px;
    height: 32px;
    font-size: 14px;
}

/* Global Spotlight Overlay */
#spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 150px, rgba(0, 0, 0, 0.9) 350px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.flashlight-on #spotlight {
    opacity: 1;
}

body.flashlight-on .hero,
body.flashlight-on .features,
body.flashlight-on .qualification {
    /* Subtle brighten where the light hits */
    filter: brightness(1.2);
    transition: filter 0.5s;
}

/* Phone Screen Content */
.form-inner {
    padding: 40px 20px 20px;
    /* Top padding for notch */
    background: var(--bg);
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.form-inner h2 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 20px;
}

.form-inner .section-description {
    font-size: 0.85rem;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
}

.field-grid {
    display: flex;
    /* Stack fields vertically on phone */
    flex-direction: column;
    gap: 12px;
}

.field span {
    font-size: 0.8rem;
    color: var(--muted);
}

input,
select {
    min-height: 44px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Call Button (FAB Style) */
.btn-submit {
    margin-top: auto;
    width: 70px !important;
    height: 70px !important;
    min-width: 70px;
    min-height: 70px;
    border-radius: 50%;
    background: #2fcf6e;
    color: white;
    font-size: 0;
    position: relative;
    align-self: center;
    margin-bottom: 25px;
    box-shadow: 0 15px 30px rgba(47, 207, 110, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.btn-submit::after {
    content: '📞';
    font-size: 30px;
}

.btn-submit:hover {
    transform: scale(1.1) translateY(-2px);
    background: #25a859;
    box-shadow: 0 20px 40px rgba(47, 207, 110, 0.5);
}

/* Calling Animation Overlay */
.calling-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s;
}

.calling-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.calling-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    box-shadow: 0 0 0 0 rgba(47, 128, 255, 0.7);
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 128, 255, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 30px rgba(47, 128, 255, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(47, 128, 255, 0);
    }
}

/* Form Section adjustments */
.form-section {
    padding-bottom: 100px;
    max-width: 100%;
    overflow: visible;
}

/* Hide scrollbar in phone */
.form-inner::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--muted);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    margin-top: 40px;
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .qualification-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .hero {
        padding-top: 32px;
    }

    .hero-media img {
        aspect-ratio: 4 / 5;
    }

    .btn {
        width: 100%;
    }

    .header-row {
        min-height: 64px;
    }

    .form-container,
    .feature-card,
    .qualification-card {
        padding: 24px;
    }

    h1 {
        font-size: 2.2rem;
    }

    /* Mobile specific phone scaling */
    .form-container {
        width: 320px;
        height: 680px;
        border-width: 8px;
    }

    .form-container:hover {
        transform: none;
        /* Disable 3D tilt on mobile for better usability */
    }

    .lock-clock .clock-time {
        font-size: 3rem;
    }

    .notif-content {
        font-size: 0.8rem;
    }
}