/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --primary-color: #00f2ff;
    --secondary-color: #ff006e;
    --accent-color: #8338ec;
    --background-dark: #0a0e27;
    --background-darker: #050814;
    --text-light: #ffffff;
    --text-gray: #a0a0a0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: var(--transition-smooth);
    mix-blend-mode: difference;
}

/* Social Media Quick Access Bar */
.social-quick-access {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 242, 255, 0.1);
    backdrop-filter: blur(10px);
    z-index: 1001;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 242, 255, 0.2);
}

.social-quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-label {
    color: var(--text-gray);
    font-size: 14px;
    font-weight: 500;
}

.social-quick-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 15px;
    background: rgba(0, 242, 255, 0.05);
    transition: var(--transition-smooth);
}

.social-quick-links a:hover {
    background: rgba(0, 242, 255, 0.15);
    transform: translateY(-2px);
}

.social-quick-links a i {
    font-size: 16px;
}

/* Adjust navbar positioning when social bar is present */
body:has(.social-quick-access) .navbar {
    top: 38px;
}

body:has(.social-quick-access) .hero {
    padding-top: 150px;
}

body:has(.social-quick-access) .hero-small {
    padding-top: 180px;
}

/* Binary Animation Background - Reduced for performance */
.binary-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.5; /* Reduced opacity for less distraction */
}

.binary-digit {
    position: absolute;
    top: -50px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 20px;
    opacity: 0.2; /* Reduced from 0.3 */
    animation: float-binary linear infinite;
    filter: drop-shadow(0 0 3px rgba(0, 242, 255, 0.3)); /* Reduced glow */
}

@keyframes float-binary {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }
    10% {
        opacity: 0.2;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 30px rgba(0, 242, 255, 0.1);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 70px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    background: transparent;
    mix-blend-mode: normal;
}

.logo-img:hover {
    filter: drop-shadow(0 0 15px var(--primary-color)) brightness(1.2);
    transform: scale(1.05);
}

.footer-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    margin-bottom: 10px;
    background: transparent;
    mix-blend-mode: normal;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-smooth);
}

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

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

.cta-nav {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 25px;
    transition: var(--transition-smooth);
}

.cta-nav::after {
    display: none;
}

.cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 242, 255, 0.3);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    left: var(--x);
    top: var(--y);
    animation: float-particle var(--duration) ease-in-out infinite;
    box-shadow: 0 0 20px var(--primary-color);
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0);
    }
    33% {
        transform: translate(30px, -30px);
    }
    66% {
        transform: translate(-20px, 20px);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

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

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-light);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: rgba(0, 242, 255, 0.1);
    transform: translateY(-3px);
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--background-dark);
}

.btn-large {
    padding: 18px 40px;
    font-size: 18px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-gray);
    font-size: 14px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll-animation 2s infinite;
}

@keyframes scroll-animation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* Sections */
.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

/* Who We Are */
.about-text {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 30px;
}

.about-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Horizontal Product Cards */
.horizontal-product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 25px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    transition: var(--transition-smooth);
}

.horizontal-product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(0, 242, 255, 0.2);
    transform: translateY(-5px);
}

.horizontal-product-icon {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    flex-shrink: 0;
}

.horizontal-product-logo {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.horizontal-product-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

.horizontal-product-content {
    flex: 1;
}

.product-badge {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(131, 56, 236, 0.2);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.horizontal-product-content h3 {
    font-size: 28px;
    margin-bottom: 12px;
    color: var(--text-light);
}

.horizontal-product-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.horizontal-feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0;
}

.horizontal-feature-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-gray);
}

.horizontal-feature-list i {
    color: var(--primary-color);
    font-size: 14px;
}

.horizontal-product-cta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    min-width: 200px;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-smooth);
    width: 100%;
}

.store-btn:hover {
    background: rgba(0, 242, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.store-btn i {
    font-size: 32px;
}

.store-btn.web-link i,
.store-btn.social-link i {
    color: var(--primary-color);
}

.store-btn div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.store-label {
    font-size: 10px;
    text-transform: uppercase;
    opacity: 0.7;
    line-height: 1;
}

.store-name {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    margin-top: 2px;
}

.horizontal-product-cta .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
}

/* Responsive for horizontal cards */
@media (max-width: 968px) {
    .horizontal-product-card {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 30px 20px;
        justify-items: center;
    }

    .horizontal-product-icon {
        margin: 0 auto 20px;
    }

    .horizontal-product-logo {
        margin: 0 auto 20px;
    }

    .horizontal-product-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .horizontal-feature-list {
        grid-template-columns: 1fr;
        justify-content: center;
        text-align: left;
        display: inline-grid;
    }

    .horizontal-feature-list li {
        justify-content: flex-start;
    }

    .horizontal-product-cta {
        width: 100%;
        min-width: auto;
    }
}

.product-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 242, 255, 0.2);
}

.product-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.product-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-card p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.product-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.product-link:hover {
    gap: 15px;
}

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

/* Realtech & Knowledge Hub */
.realtech-content,
.knowledge-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.realtech-text,
.knowledge-text {
    padding: 40px;
}

.realtech-text h2,
.knowledge-text h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.realtech-text p,
.knowledge-text p {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.feature-list {
    list-style: none;
    margin-bottom: 30px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.feature-list i {
    color: var(--primary-color);
    font-size: 20px;
}

.realtech-visual,
.knowledge-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    animation: float-visual 6s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(0, 242, 255, 0.3);
}

.visual-card.logo-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    padding: 30px;
}

.visual-card.logo-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
}

@keyframes float-visual {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 242, 255, 0.1);
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

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

.feature-card p {
    color: var(--text-gray);
}

/* Testimonials */
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

.quote-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-content p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

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

.author-avatar {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Demo Popup Modal */
.demo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.demo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.demo-modal {
    background: var(--background-dark);
    border-radius: 25px;
    border: 1px solid rgba(0, 242, 255, 0.2);
    max-width: 550px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: translateY(-30px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 25px 80px rgba(0, 242, 255, 0.15);
}

.demo-modal-overlay.active .demo-modal {
    transform: translateY(0) scale(1);
}

.demo-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-modal-close:hover {
    background: var(--secondary-color);
    transform: rotate(90deg);
}

.demo-modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.demo-modal-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.demo-modal-header h2 i {
    color: var(--primary-color);
}

.demo-modal-header p {
    color: var(--text-gray);
    font-size: 15px;
}

.demo-modal .contact-form {
    padding: 0;
    background: transparent;
    border: none;
}

/* Mobile responsiveness for modal */
@media (max-width: 640px) {
    .demo-modal {
        padding: 25px 20px;
        margin: 10px;
    }
    
    .demo-modal-header h2 {
        font-size: 22px;
    }
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 80px 20px;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

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

.cta-buttons .btn {
    background: var(--background-dark);
    color: var(--text-light);
}

.cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: var(--background-darker);
    padding: 60px 0 20px;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3,
.footer-column h4 {
    margin-bottom: 20px;
}

.footer-column p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a,
.footer-column ul li {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

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

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(0, 242, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--background-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 999;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 242, 255, 0.4);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

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

/* Contact Form Styles */
.contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 16px;
    font-family: inherit;
    transition: var(--transition-smooth);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-gray);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300f2ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.form-group select option {
    background: var(--background-darker);
    color: var(--text-light);
    padding: 10px;
}

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

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 30px 20px;
    }
}

/* --- Responsive Enhancements for Mobile --- */
@media (max-width: 480px) {
  .container {
    padding: 0 8px;
  }
  .hero-content, .section-header, .about-text, .cta-content {
    padding: 0 5px;
  }
  .product-card, .feature-card, .testimonial-card, .contact-form {
    padding: 18px 8px;
  }
  .visual-card {
    width: 100%;
    height: auto;
    min-height: 180px;
    border-radius: 18px;
    font-size: 60px;
  }
  .realtech-visual img, .knowledge-visual img, .visual-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
  }
  .footer-content {
    gap: 18px;
  }
  .footer-logo {
    height: 28px;
  }
  .btn, .btn-large {
    padding: 12px 10px;
    font-size: 15px;
  }
  .section {
    padding: 30px 0;
  }
  .hero-title, .cta-content h2, .section-header h2 {
    font-size: 20px;
  }
  .stat-number {
    font-size: 22px;
  }
  .nav-menu {
    gap: 18px;
    padding: 30px 0;
  }
}
/* --- End Responsive Enhancements --- */

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 39, 0.98);
        width: 100%;
        padding: 40px 0;
        transition: var(--transition-smooth);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .realtech-content,
    .knowledge-content {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
}

@media (max-width: 640px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .products-grid,
    .features-grid,
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    
    .cta-content h2 {
        font-size: 28px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    /* Mobile optimization for social bar */
    .social-quick-access {
        padding: 5px 0;
    }

    .social-quick-links {
        gap: 8px;
        font-size: 12px;
        justify-content: center;
    }

    .social-label {
        display: none; /* Hide label on mobile */
    }

    .social-quick-links a {
        padding: 8px 12px;
        font-size: 0; /* Hide text on mobile */
    }

    .social-quick-links a i {
        font-size: 18px; /* Show only icons */
    }

    body:has(.social-quick-access) .navbar {
        top: 30px;
    }
}

/* AOS Animation - Faster and more subtle */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.3s; /* Reduced from 0.8s for faster animations */
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(20px); /* Reduced from 50px */
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-20px); /* Reduced from -50px */
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(20px); /* Reduced from 50px */
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.95); /* Reduced from 0.8 for subtler effect */
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}
