/* ===================================
   GenSQQ Digital Solutions - Main Stylesheet
   =================================== */

/* CSS Variables */
:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #7209b7;
    --accent: #4cc9f0;
    --dark: #0a0a0f;
    --dark-light: #1a1a2e;
    --gray-900: #1e1e2d;
    --gray-800: #2d2d3f;
    --gray-700: #3d3d5c;
    --gray-600: #4a4a6a;
    --gray-500: #6b6b8a;
    --gray-400: #9b9baf;
    --gray-300: #c4c4d4;
    --gray-200: #e8e8f0;
    --gray-100: #f5f5f9;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-accent: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
    --gradient-dark: linear-gradient(180deg, var(--dark) 0%, var(--dark-light) 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(67, 97, 238, 0.3);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-200);
    background: var(--dark);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md), 0 0 20px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(67, 97, 238, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--gray-600);
}

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

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.875rem;
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 1.75rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
}

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

.nav-link {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-400);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

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

.nav .cta-btn {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
}

.nav .cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(67, 97, 238, 0.15) 0%, transparent 70%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(67, 97, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 97, 238, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--gray-400);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--white);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header {
    padding: 12px 16px;
    background: var(--gray-800);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gray-600);
}

.mockup-dots span:first-child { background: #ff5f56; }
.mockup-dots span:nth-child(2) { background: #ffbd2e; }
.mockup-dots span:nth-child(3) { background: #27c93f; }

.mockup-content {
    display: flex;
    height: 280px;
}

.mockup-sidebar {
    width: 60px;
    padding: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-item {
    height: 8px;
    background: var(--gray-700);
    border-radius: 4px;
}

.sidebar-item.active {
    background: var(--primary);
    width: 70%;
}

.mockup-main {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 120px;
    padding: 16px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
}

.chart-bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 4px 4px 0 0;
    opacity: 0.8;
}

.mockup-numbers {
    display: flex;
    gap: 16px;
}

.number-card {
    flex: 1;
    padding: 16px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.number-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
}

.number-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Floating Cards */
.hero-visual {
    position: relative;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--gray-800);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 3s ease-in-out infinite;
}

.floating-card span {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--white);
}

.floating-icon {
    font-size: 1.25rem;
}

.card-1 {
    top: 20px;
    left: -40px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 60px;
    right: -30px;
    animation-delay: 1.5s;
}

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

/* Sections */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(67, 97, 238, 0.1);
    border: 1px solid rgba(67, 97, 238, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
}

.section-title {
    margin-bottom: 16px;
}

.section-description {
    color: var(--gray-400);
    font-size: 1.125rem;
}

.section-cta {
    text-align: center;
    margin-top: 48px;
}

/* Services Grid */
.services-overview {
    background: var(--dark-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--gray-400);
    font-size: 0.938rem;
}

/* Why Choose Section */
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    gap: 16px;
}

.feature-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.2);
    color: var(--primary);
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feature-text h4 {
    font-size: 1.125rem;
    margin-bottom: 4px;
}

.feature-text p {
    color: var(--gray-400);
    font-size: 0.938rem;
}

/* Visual Card */
.visual-card {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 24px;
}

.visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.visual-title {
    font-weight: 600;
    color: var(--white);
}

.visual-badge {
    padding: 4px 12px;
    background: rgba(39, 201, 63, 0.2);
    color: #27c93f;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 50px;
}

.visual-chart {
    margin-bottom: 20px;
}

.growth-chart {
    width: 100%;
    height: 100px;
}

.visual-metrics {
    display: flex;
    gap: 24px;
}

.metric {
    display: flex;
    flex-direction: column;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.metric-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.testimonial-card {
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-text {
    font-size: 1rem;
    color: var(--gray-300);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--white);
    font-size: 0.875rem;
}

.author-name {
    display: block;
    font-weight: 600;
    color: var(--white);
    font-size: 0.938rem;
}

.author-company {
    display: block;
    font-size: 0.813rem;
    color: var(--gray-500);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.project-card.large {
    grid-column: span 2;
    height: 350px;
}

.project-image {
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0.8;
}

.project-overlay {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.project-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.project-overlay p {
    font-size: 0.875rem;
    color: var(--gray-300);
    margin-bottom: 16px;
}

/* Benefits Grid */
.client-benefits {
    background: var(--dark-light);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    padding: 32px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--gray-400);
    font-size: 0.938rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255,255,255,0.1) 0%, transparent 60%);
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-outline {
    border-color: var(--white);
}

/* Footer */
.footer {
    background: var(--gray-900);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-description {
    color: var(--gray-400);
    font-size: 0.938rem;
    margin-bottom: 20px;
    max-width: 300px;
}

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

.social-link {
    padding: 8px 16px;
    background: var(--gray-800);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--gray-400);
}

.social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.footer-links h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--gray-400);
    font-size: 0.938rem;
}

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

.footer-links li:not(a) {
    color: var(--gray-400);
    font-size: 0.938rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center top, rgba(67, 97, 238, 0.15) 0%, transparent 60%);
}

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

.page-header h1 {
    margin-bottom: 16px;
}

.page-header p {
    color: var(--gray-400);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Page Specific */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    padding: 48px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    align-items: center;
}

.service-detail-card:nth-child(even) {
    direction: rtl;
}

.service-detail-card:nth-child(even) > * {
    direction: ltr;
}

.service-detail-icon {
    font-size: 4rem;
    margin-bottom: 24px;
}

.service-detail-card h3 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.service-detail-card > div > p {
    color: var(--gray-400);
    margin-bottom: 24px;
}

.service-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.service-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gray-300);
}

.service-benefits li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.service-use-cases {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.use-case-tag {
    padding: 6px 14px;
    background: var(--gray-800);
    border-radius: 50px;
    font-size: 0.813rem;
    color: var(--gray-300);
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}

.process-step {
    display: flex;
    gap: 32px;
    padding: 40px 0;
    position: relative;
}

.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 28px;
    top: 96px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), transparent);
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--gray-400);
    max-width: 500px;
}

/* Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    padding: 40px 32px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.popular::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 8px;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--gray-500);
}

.pricing-card .description {
    color: var(--gray-400);
    margin-bottom: 24px;
    font-size: 0.938rem;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    text-align: left;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--gray-300);
    font-size: 0.938rem;
}

.pricing-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
}

.pricing-note {
    text-align: center;
    margin-top: 48px;
    padding: 24px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    color: var(--gray-400);
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-form {
    background: var(--gray-900);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--white);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-800);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

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

.form-group select {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-card {
    padding: 32px;
    background: var(--gray-900);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    width: 48px;
    height: 48px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.info-text span {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 2px;
}

.info-text p {
    font-weight: 500;
    color: var(--white);
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-visual {
        display: none;
    }

    .services-grid,
    .benefits-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.large {
        grid-column: span 1;
    }

    .why-choose-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-detail-card:nth-child(even) {
        direction: ltr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--dark);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

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

    .mobile-menu-btn {
        display: flex;
    }

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

    .pricing-card.popular {
        transform: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-description {
        max-width: 100%;
    }

    .footer-social {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .video-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .video-card.video-large {
        grid-column: span 1;
        grid-row: span 1;
    }

    .video-card {
        height: 250px;
    }

    .video-card iframe {
        position: relative;
        width: 100%;
        height: 100%;
    }
}

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

.section {
    animation: fadeIn 0.6s ease-out;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }

/* ===================================
   ENHANCED ANIMATIONS
   =================================== */

/* Particle Background */
.particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 24s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 19s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2.5s; animation-duration: 21s; }
.particle:nth-child(8) { left: 80%; animation-delay: 0.5s; animation-duration: 17s; }
.particle:nth-child(9) { left: 90%; animation-delay: 3.5s; animation-duration: 23s; }
.particle:nth-child(10) { left: 95%; animation-delay: 1.5s; animation-duration: 20s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.3; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* Glowing Orb Animation */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--secondary);
    bottom: 20%;
    left: -5%;
    animation-delay: 2s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--accent);
    top: 50%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 10px) scale(1.02); }
}

/* Typing Animation */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--primary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    max-width: 0;
}

@keyframes typing {
    from { max-width: 0; }
    to { max-width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.ripple:active::after {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    0% { transform: scale(0) translate(-50%, -50%); opacity: 1; }
    100% { transform: scale(100) translate(-50%, -50%); opacity: 0; }
}

/* Morphing Animation */
.morph {
    animation: morphShape 8s ease-in-out infinite;
}

@keyframes morphShape {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    25% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
    50% { border-radius: 50% 60% 30% 60% / 30% 40% 70% 60%; }
    75% { border-radius: 60% 40% 60% 30% / 70% 50% 40% 60%; }
}

/* Gradient Shift Animation */
.gradient-shift {
    background: linear-gradient(-45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 300% 300%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Scale Pulse Animation */
.scale-pulse {
    animation: scalePulse 2s ease-in-out infinite;
}

@keyframes scalePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Rotate Animation */
.rotate-slow {
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Shake Animation */
.shake:hover {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px) rotate(-2deg); }
    75% { transform: translateX(5px) rotate(2deg); }
}

/* Bounce Animation */
.bounce-in {
    animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

/* Slide In Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

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

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

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

/* Glow Animation */
.glow {
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(67, 97, 238, 0.3); }
    to { box-shadow: 0 0 30px var(--primary), 0 0 60px rgba(67, 97, 238, 0.5); }
}

/* Spin Animation */
.spin {
    animation: spin 4s linear infinite;
}

/* Spinner for form submit button */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}
button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delay classes */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* Marquee Animation */
.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Image Hover Effects */
.img-zoom {
    overflow: hidden;
}

.img-zoom img {
    transition: transform 0.5s ease;
}

.img-zoom:hover img {
    transform: scale(1.1);
}

/* Image Shine Effect */
.img-shine {
    position: relative;
    overflow: hidden;
}

.img-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg) translateX(-100%);
    transition: transform 0.8s ease;
}

.img-shine:hover::after {
    transform: rotate(30deg) translateX(100%);
}

/* Parallax Container */
.parallax-container {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

.parallax-layer {
    position: absolute;
    inset: 0;
}

.parallax-layer-back {
    transform: translateZ(-1px) scale(2);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Magnetic Effect */
.magnetic {
    transition: transform 0.3s ease;
}

/* Neon Border Animation */
.neon-border {
    position: relative;
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent), var(--primary));
    background-size: 400% 400%;
    border-radius: inherit;
    z-index: -1;
    animation: neonBorder 3s ease infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.neon-border:hover::before {
    opacity: 1;
}

@keyframes neonBorder {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: textReveal 0.8s ease forwards;
}

@keyframes textReveal {
    to { transform: translateY(0); }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--gray-800);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spinner 0.8s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Progress Bar Animation */
.progress-bar {
    height: 4px;
    background: var(--gray-800);
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--gradient-primary);
    animation: progressFill 1.5s ease-out;
}

@keyframes progressFill {
    from { width: 0; }
}

/* Image Gallery Grid */
.gallery-grid {
    display: grid;
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* ===================================
   VIDEO SHOWCASE
   =================================== */

.video-showcase {
    background: var(--dark-light);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 250px);
    gap: 20px;
}

.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.video-card.video-large {
    grid-column: span 2;
    grid-row: span 2;
}

.video-card video,
.video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card:hover video,
.video-card:hover iframe {
    transform: scale(1.1);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.video-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 8px;
    width: fit-content;
}

.video-overlay h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--white);
}

.video-overlay p {
    font-size: 0.875rem;
    color: var(--gray-300);
}

/* Video Poster (placeholder for videos) */
.video-poster {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.video-card:hover .video-poster {
    transform: scale(1.05);
}

.video-content-center {
    text-align: center;
    color: var(--white);
}

.video-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.1); opacity: 1; }
}

.video-content-center h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--white);
}

.video-content-center p {
    font-size: 0.85rem;
    color: var(--gray-300);
    margin: 0;
}

.video-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--gray-900);
    min-height: 200px;
}

.video-card.video-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

/* Tech Lines Animation */
.tech-lines {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.1;
}

.tech-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    height: 1px;
    animation: techLine 8s linear infinite;
}

.tech-line:nth-child(1) { top: 20%; width: 100%; animation-delay: 0s; }
.tech-line:nth-child(2) { top: 40%; width: 80%; animation-delay: 2s; animation-direction: reverse; }
.tech-line:nth-child(3) { top: 60%; width: 60%; animation-delay: 4s; }
.tech-line:nth-child(4) { top: 80%; width: 90%; animation-delay: 1s; animation-direction: reverse; }

@keyframes techLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Data Stream Animation */
.data-stream {
    position: relative;
}

.data-stream::before,
.data-stream::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    animation: dataStream 2s ease-in-out infinite;
}

.data-stream::before { left: 10%; animation-delay: 0s; }
.data-stream::after { right: 10%; animation-delay: 1s; }

@keyframes dataStream {
    0%, 100% { opacity: 0; transform: scaleY(0); }
    50% { opacity: 0.5; transform: scaleY(1); }
}

/* Infinity Animation */
.infinity-path {
    stroke-dasharray: 10, 10;
    animation: infinityDash 20s linear infinite;
}

@keyframes infinityDash {
    to { stroke-dashoffset: -1000; }
}

/* Hover Tilt Effect */
.tilt {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Number Counter Animation */
.number-counter {
    font-variant-numeric: tabular-nums;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transform-origin: left;
    transform: scaleX(0);
}

/* Cursor Animation */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.custom-cursor.hover {
    transform: scale(1.5);
    background: rgba(67, 97, 238, 0.2);
}

/* ===================================
   FLOATING TELEGRAM BUTTON - ENHANCED
   =================================== */

/* ===================================
   FLOATING TELEGRAM BUTTON
   =================================== */

.floating-telegram {
    position: fixed !important;
    bottom: 24px !important;
    right: 24px !important;
    z-index: 99998 !important;
    text-decoration: none !important;
}

.floating-telegram-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc 0%, #00aaff 100%);
    border-radius: 50%;
    box-shadow: 
        0 4px 20px rgba(0, 136, 204, 0.35),
        0 0 0 1px rgba(0, 136, 204, 0.1);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.floating-telegram-btn:hover {
    transform: scale(1.08);
    box-shadow: 
        0 8px 30px rgba(0, 136, 204, 0.45),
        0 0 0 1px rgba(0, 136, 204, 0.15);
}

.floating-telegram-btn:active {
    transform: scale(1.02);
}

.floating-telegram-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
    transition: all 0.3s ease;
}

.floating-telegram-btn:hover svg {
    transform: scale(1.05);
}

/* Tooltip */
.floating-telegram-tooltip {
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 12px;
    background: var(--gray-800, #1a1a2e);
    color: var(--white, #fff);
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.floating-telegram-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    width: 8px;
    height: 8px;
    background: var(--gray-800, #1a1a2e);
    transform: rotate(45deg);
    margin-top: -4px;
}

.floating-telegram:hover .floating-telegram-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Accessibility */
.floating-telegram:focus {
    outline: none;
}

.floating-telegram:focus-visible .floating-telegram-btn {
    box-shadow: 
        0 0 0 3px var(--dark, #0a0a0f),
        0 0 0 5px #0088cc;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .floating-telegram {
        bottom: 20px !important;
        right: 20px !important;
    }

    .floating-telegram-btn {
        width: 52px;
        height: 52px;
    }

    .floating-telegram-btn svg {
        width: 24px;
        height: 24px;
    }

    .floating-telegram-tooltip {
        display: none;
    }
}

/* ===================================
   PREMIUM 3D LOGO & ANIMATED LIGHTNING
   =================================== */

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    perspective: 500px;
}

.logo-icon-3d {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo-icon-3d::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffd700 0%, #ffaa00 50%, #ff8c00 100%);
    border-radius: 12px;
    transform: translateZ(-10px) rotateX(10deg);
    box-shadow: 
        5px 5px 15px rgba(0, 0, 0, 0.4),
        inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.logo-icon-3d::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fff5cc 0%, #ffd700 100%);
    border-radius: 12px;
    transform: translateZ(-5px) rotateX(5deg);
    box-shadow: 
        2px 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
}

.lightning-3d {
    position: relative;
    z-index: 1;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.8));
    animation: lightningFlash 2s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 200, 0, 0.8),
        0 0 20px rgba(255, 150, 0, 0.6),
        0 0 30px rgba(255, 100, 0, 0.4);
}

.lightning-glow {
    position: absolute;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.6) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 1.5s ease-in-out infinite;
    z-index: 0;
}

.logo-text-3d {
    font-size: 1.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0ff 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    transform-style: preserve-3d;
    animation: textFloat 3s ease-in-out infinite;
    text-shadow: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text-3d::before {
    content: 'GenSQQ';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(200, 200, 255, 0.2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: translateZ(2px);
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateY(-3px) rotateX(2deg) rotateY(-2deg); }
    50% { transform: translateY(-5px) rotateX(0deg) rotateY(0deg); }
    75% { transform: translateY(-3px) rotateX(-2deg) rotateY(2deg); }
}

@keyframes lightningFlash {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 200, 0, 0.8));
    }
    10% {
        opacity: 0.8;
        transform: scale(0.98);
    }
    20% { 
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 15px rgba(255, 200, 0, 1)) drop-shadow(0 0 30px rgba(255, 150, 0, 0.8));
    }
    30% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.02);
        filter: drop-shadow(0 0 12px rgba(255, 200, 0, 0.9));
    }
    70% {
        opacity: 0.85;
        transform: scale(0.99);
    }
}

@keyframes glowPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: scale(1.5);
        opacity: 0.3;
    }
}

@keyframes textFloat {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-2px) translateZ(2px); }
}

/* Logo hover effect */
.logo-container:hover .logo-icon-3d {
    animation: logoHover 0.5s ease-in-out;
}

.logo-container:hover .lightning-3d {
    animation: lightningHover 0.5s ease-in-out;
}

@keyframes logoHover {
    0% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-8px) rotateX(10deg) rotateY(10deg); }
    100% { transform: translateY(0) rotateX(0) rotateY(0); }
}

@keyframes lightningHover {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.15) rotate(-5deg); }
    50% { transform: scale(1.2) rotate(5deg); }
    75% { transform: scale(1.15) rotate(-3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Premium particles around logo */
.logo-particles {
    position: absolute;
    width: 80px;
    height: 80px;
    pointer-events: none;
}

.logo-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    animation: logoParticleFloat 3s ease-in-out infinite;
}

.logo-particle:nth-child(1) { top: 0; left: 50%; animation-delay: 0s; }
.logo-particle:nth-child(2) { top: 20%; right: 0; animation-delay: 0.5s; }
.logo-particle:nth-child(3) { bottom: 20%; right: 10%; animation-delay: 1s; }
.logo-particle:nth-child(4) { bottom: 0; left: 40%; animation-delay: 1.5s; }
.logo-particle:nth-child(5) { top: 30%; left: 0; animation-delay: 2s; }

@keyframes logoParticleFloat {
    0%, 100% { 
        opacity: 0.3;
        transform: translateY(0) scale(1);
    }
    50% { 
        opacity: 1;
        transform: translateY(-10px) scale(1.5);
    }
}

/* ===================================
   PAGE TRANSITION ANIMATIONS
   =================================== */

.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    z-index: 99999;
    pointer-events: none;
    transform: translateX(-100%);
}

.page-transition-overlay.active {
    animation: pageSlideIn 0.4s ease-out forwards;
}

.page-transition-overlay.exit {
    animation: pageSlideOut 0.4s ease-in forwards;
}

@keyframes pageSlideIn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}

@keyframes pageSlideOut {
    0% { transform: translateX(0); }
    100% { transform: translateX(100%); }
}

/* Page content fade in */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-200);
    background: var(--dark);
    overflow-x: hidden;
    animation: pageContentFadeIn 0.5s ease-out 0.3s both;
}

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

/* Smooth page load animation for sections */
.section {
    animation: sectionFadeIn 0.6s ease-out;
}

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

/* Hero section special animation */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

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

/* Header nav link transitions with slide effect */
.nav-link {
    font-size: 0.938rem;
    font-weight: 500;
    color: var(--gray-400);
    position: relative;
    transition: color 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}