/* ==========================================================================
   CSS Variables & Resets (Elite Bespoke Cyber-Theme)
   ========================================================================== */
:root {
    /* Color Palette */
    --bg-color: #060913;
    --card-bg: rgba(13, 20, 38, 0.4);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
    
    /* Neon Accents */
    --primary-color: #00f2fe;
    --primary-glow: rgba(0, 242, 254, 0.4);
    --secondary-color: #9d4edd;
    --secondary-glow: rgba(157, 78, 221, 0.4);
    --accent-color: #10b981;
    
    /* Telegram Theme Colors */
    --tg-color: #229ed9;
    --tg-glow: rgba(34, 158, 217, 0.4);
    
    /* Glassmorphism Tokens */
    --glass-bg: rgba(13, 20, 38, 0.45);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-border-glow: rgba(0, 242, 254, 0.2);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', 'Courier New', monospace;
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ==========================================================================
   Cyber Grid Background & Shapes
   ========================================================================== */
.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(18, 30, 49, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(18, 30, 49, 0.2) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center;
    z-index: -2;
    pointer-events: none;
    opacity: 0.85;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.35;
    pointer-events: none;
}

.bg-shape-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    animation: float 12s infinite ease-in-out alternate;
}

.bg-shape-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: 10%;
    right: -5%;
    animation: float 15s infinite ease-in-out alternate-reverse;
}

.bg-shape-3 {
    width: 300px;
    height: 300px;
    background: var(--tg-color);
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

@keyframes float {
    0% { transform: translateY(0) scale(1) rotate(0deg); }
    100% { transform: translateY(60px) scale(1.15) rotate(10deg); }
}

/* ==========================================================================
   Typography & Global Utilities
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

h1 span, h2 span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 242, 254, 0.15);
}

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

/* Status Badge */
.status-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    padding: 8px 16px;
    border-radius: 30px;
    margin-bottom: 25px;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 1.8s infinite ease-in-out;
}

.badge-status {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Premium Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm, .btn-secondary-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    font-size: 1rem;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #060913;
    box-shadow: 0 4px 20px var(--primary-glow);
    font-weight: 700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
    filter: brightness(1.1);
}

.btn-primary-sm {
    padding: 9px 22px;
    font-size: 0.9rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #060913;
    font-weight: 700;
}

.btn-primary-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.btn-secondary-hero {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary-hero:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
    transform: translateY(-3px);
}

.w-100 {
    width: 100%;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--glass-border-glow);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
    background: rgba(6, 9, 19, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

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

.nav-links a:not(.btn-primary-sm) {
    font-weight: 500;
    position: relative;
    color: var(--text-muted);
}

.nav-links a:not(.btn-primary-sm):hover {
    color: white;
}

.nav-links a:not(.btn-primary-sm)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: var(--transition);
}

.nav-links a:not(.btn-primary-sm):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: white;
}

/* ==========================================================================
   Hero Section & Interactive Terminal
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: 4.2rem;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 35px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Terminal Window Styles */
.terminal-window {
    background: rgba(10, 15, 30, 0.75);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 80px rgba(0, 242, 254, 0.08);
    font-family: var(--font-code);
    height: 400px;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: var(--transition);
}

.terminal-window:hover {
    border-color: rgba(0, 242, 254, 0.35);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 100px rgba(0, 242, 254, 0.12);
}

.terminal-header {
    background: rgba(6, 9, 19, 0.92);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.terminal-buttons {
    display: flex;
    gap: 7px;
}

.terminal-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ef4444; }
.terminal-dot.yellow { background: #eab308; }
.terminal-dot.green { background: #22c55e; }

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.terminal-badge {
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-color);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 4px;
    font-weight: 700;
    border: 1px solid rgba(0, 242, 254, 0.15);
}

.terminal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.45;
}

/* Scrollbar styling for terminal */
.terminal-body::-webkit-scrollbar {
    width: 6px;
}
.terminal-body::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.terminal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.terminal-line {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.prompt {
    color: var(--secondary-color);
    font-weight: 600;
}

.command-typed {
    color: white;
}

.terminal-output {
    margin-bottom: 18px;
    animation: terminalFade 0.25s ease-out;
}

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

.terminal-ascii {
    color: var(--primary-color);
    font-size: 0.75rem;
    line-height: 1.15;
    margin-bottom: 12px;
    white-space: pre;
    font-weight: bold;
}

.terminal-text {
    margin-bottom: 6px;
}

.text-cyan {
    color: var(--primary-color);
    font-weight: 600;
}

.cmd-highlight {
    background: rgba(255,255,255,0.06);
    color: white;
    padding: 1px 6px;
    border-radius: 3px;
    border: 1px solid rgba(255,255,255,0.08);
}

/* Terminal Input Line */
.terminal-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    position: relative;
}

#terminal-input {
    background: transparent;
    border: none;
    color: white;
    font-family: inherit;
    font-size: inherit;
    width: 100%;
    outline: none;
    caret-color: transparent; /* custom cursor will be used */
    padding: 0;
}

.terminal-cursor {
    width: 8px;
    height: 15px;
    background: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    position: absolute;
    left: 0;
    animation: blink 1s infinite steps(2, start);
    pointer-events: none;
}

@keyframes blink {
    to { visibility: hidden; }
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services {
    padding: 120px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.glass-panel-glow {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 30px;
    border-radius: 22px;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-panel-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(0, 242, 254, 0.08), transparent 60%);
    opacity: 0;
    transition: var(--transition);
}

.glass-panel-glow:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 25px 50px rgba(0, 242, 254, 0.06), var(--glass-shadow);
}

.glass-panel-glow:hover::before {
    opacity: 1;
}

.icon-wrapper {
    width: 65px;
    height: 65px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.glass-panel-glow:hover .icon-wrapper {
    background: var(--primary-color);
    color: #060913;
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px var(--primary-glow);
    transform: scale(1.05);
}

.glass-panel-glow h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.glass-panel-glow p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================================================
   Telegram Community Hub Section
   ========================================================================== */
.telegram-section {
    padding: 80px 0;
    position: relative;
}

.telegram-card {
    padding: 60px 40px;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(34, 158, 217, 0.15);
    text-align: center;
}

.telegram-glow-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, rgba(34, 158, 217, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.telegram-card-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.telegram-badge-network {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 158, 217, 0.1);
    border: 1px solid rgba(34, 158, 217, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    color: #229ed9;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.telegram-card h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.telegram-card p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.telegram-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 45px;
    flex-wrap: wrap;
}

.t-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 4px;
    text-shadow: 0 0 20px rgba(255,255,255,0.1);
}

.stat-lbl {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.btn-telegram-join {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #229ed9, #0088cc);
    color: white;
    border-radius: 35px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px var(--tg-glow);
    transition: var(--transition);
}

.btn-telegram-join:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(34, 158, 217, 0.6);
}

/* ==========================================================================
   About Section & 3D Photo Frame
   ========================================================================== */
.about {
    padding: 120px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-image {
    perspective: 1200px;
}

.image-3d-wrapper {
    position: relative;
    border-radius: 28px;
    background: rgba(13, 20, 38, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform-style: preserve-3d;
    transition: transform 0.15s ease-out;
    padding: 16px;
}

.image-3d-wrapper:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 35px 80px rgba(0, 242, 254, 0.08), 0 30px 60px rgba(0,0,0,0.6);
}

.frame-decorations .corner-dec {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--primary-color);
    border-style: solid;
    z-index: 10;
    pointer-events: none;
    opacity: 0.7;
}

.corner-dec.top-left { top: -1px; left: -1px; border-width: 3px 0 0 3px; }
.corner-dec.top-right { top: -1px; right: -1px; border-width: 3px 3px 0 0; }
.corner-dec.bottom-left { bottom: -1px; left: -1px; border-width: 0 0 3px 3px; }
.corner-dec.bottom-right { bottom: -1px; right: -1px; border-width: 0 3px 3px 0; }

.about-us-img {
    width: 100%;
    aspect-ratio: 0.95;
    object-fit: cover;
    border-radius: 20px;
    display: block;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.about-card-badge {
    position: absolute;
    bottom: -15px;
    right: 25px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #060913;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 6px 18px;
    border-radius: 20px;
    box-shadow: 0 5px 15px var(--primary-glow);
    transform: translateZ(25px); /* high 3D lift */
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 25px;
}

.about-content p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.15rem;
    line-height: 1.75;
}

.stats {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid var(--glass-border);
}

.stat h3 {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 800;
    text-shadow: 0 0 15px var(--primary-glow);
}

.stat span {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    padding: 120px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.contact-info {
    padding: 60px;
    background: rgba(10, 15, 30, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 45px;
    font-size: 1.1rem;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.item {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 1.1rem;
}

.item i {
    width: 48px;
    height: 48px;
    background: rgba(0, 242, 254, 0.06);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.25rem;
}

.contact-form {
    padding: 60px;
}

.input-group {
    margin-bottom: 22px;
}

input, textarea {
    width: 100%;
    padding: 16px 20px;
    background: rgba(13, 20, 38, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(13, 20, 38, 0.8);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.12);
}

/* ==========================================================================
   Footer & Floating Elements
   ========================================================================== */
footer {
    background: rgba(6, 9, 19, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 50px 0 25px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.footer-logo {
    font-size: 1.6rem;
    font-weight: 800;
}

.footer-logo span {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #060913;
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 15px var(--primary-glow);
}

.social-links a.tg-footer:hover {
    background: var(--tg-color);
    color: white;
    border-color: var(--tg-color);
    box-shadow: 0 6px 15px var(--tg-glow);
}

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

.heart-pulse {
    display: inline-block;
    color: #ef4444;
    animation: heartPulse 1s infinite alternate;
}

@keyframes heartPulse {
    from { transform: scale(1); }
    to { transform: scale(1.2); }
}



/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero h1 { font-size: 3.2rem; }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .hero-visual {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }
    .about-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .about-image {
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
        order: 2;
    }
    .about-content {
        order: 1;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        left: -280px;
        width: 280px;
        height: 100vh;
        background: rgba(6, 9, 19, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        padding: 100px 30px 30px;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        transition: left 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
        align-items: flex-start;
        box-shadow: 10px 0 40px rgba(0,0,0,0.6);
        gap: 25px;
    }
    
    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        position: relative;
    }

    .hero h1 { font-size: 2.6rem; }
    .hero p { font-size: 1.1rem; }
    
    .telegram-card {
        padding: 40px 20px;
    }
    
    .telegram-card h2 {
        font-size: 2.2rem;
    }
    .telegram-stats {
        gap: 30px;
    }
    
    .contact-info, .contact-form {
        padding: 40px 24px;
    }
    

}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary-hero {
        width: 100%;
        justify-content: center;
    }

    .stats {
        gap: 25px;
        flex-wrap: wrap;
    }

    .stat {
        flex: 1 1 calc(50% - 15px);
        min-width: 110px;
    }

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

/* ==========================================================================
   Form Success Message
   ========================================================================== */
.success-msg {
    margin-top: 15px;
    padding: 12px 18px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 10px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
    font-weight: 600;
}

.success-msg.show {
    display: block;
}

.success-msg i {
    margin-right: 5px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Advanced Phone Responsive Optimizations (Mobile SE/iPhone/Android 🚀)
   ========================================================================== */
@media (max-width: 576px) {
    /* Typographies & Spacings */
    /* Hero Section Full Fix */
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 60px;
        align-items: flex-start;
    }
    .hero-container {
        gap: 30px;
    }
    .hero h1 {
        font-size: 2rem !important;
        line-height: 1.25;
        margin-bottom: 14px;
        word-break: break-word;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
        max-width: 100%;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary-hero {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 1rem;
    }
    .status-wrapper {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .section-title h2 {
        font-size: 2rem;
    }
    .services, .about, .contact, .telegram-section {
        padding: 60px 0;
    }

    /* Terminal Mobile Scaler (Compact & Clean) */
    .terminal-window {
        height: 240px;
        margin-top: 10px;
        border-radius: 12px;
    }
    .terminal-header {
        padding: 9px 14px;
    }
    .terminal-title {
        font-size: 0.7rem;
    }
    .terminal-body {
        padding: 10px 12px;
        font-size: 0.72rem;
    }
    .terminal-ascii {
        display: none; /* ASCII art chhota screen pe acha nahi lagta, hide karo */
    }
    .terminal-input-row {
        font-size: 0.72rem;
    }
    .terminal-dot {
        width: 9px;
        height: 9px;
    }
    .cmd-highlight {
        font-size: 0.72rem;
    }

    /* Telegram Card */
    .telegram-card {
        padding: 35px 15px;
    }
    .telegram-card h2 {
        font-size: 1.8rem;
    }
    .telegram-card p {
        font-size: 0.98rem;
        margin-bottom: 25px;
    }
    .telegram-stats {
        gap: 15px;
    }
    .stat-num {
        font-size: 1.6rem;
    }
    .stat-lbl {
        font-size: 0.75rem;
    }
    .btn-telegram-join {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    /* About Section */
    .about-content h2 {
        font-size: 2.1rem;
    }
    .about-content p {
        font-size: 1rem;
    }
    .stats {
        margin-top: 25px;
        padding-top: 25px;
        gap: 20px;
    }
    .stat h3 {
        font-size: 1.8rem;
    }

    /* Contact Details */
    .contact-info h2 {
        font-size: 2rem;
    }
    .contact-info, .contact-form {
        padding: 30px 15px;
    }
    .item {
        font-size: 0.95rem;
    }
    .item i {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}
