/* ============================================
   OFFERTE SRL - Startup Innovativa
   Styles CSS
   ============================================ */

/* ============================================
   CSS Variables / Custom Properties
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    
    /* Secondary Colors */
    --secondary-color: #8b5cf6;
    --secondary-dark: #7c3aed;
    
    /* Accent Colors */
    --accent-color: #a855f7;
    --accent-light: #c084fc;
    
    /* Neutrals */
    --dark-bg: #0f0f1a;
    --darker-bg: #080810;
    --card-bg: #1a1a2e;
    --card-bg-light: #252542;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    --gradient-dark: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(168, 85, 247, 0.3) 100%);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-padding: 0 15px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

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

/* ============================================
   Utility Classes
   ============================================ */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-light {
    background: linear-gradient(135deg, #c084fc 0%, #f0abfc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-padding {
    padding: var(--section-padding);
}

.section-dark {
    background: var(--gradient-dark);
}

.section-gradient {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.section-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    padding: 1rem 0;
    background: transparent;
    transition: var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 0.75rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-logo {
    height: 45px;
    max-height: 45px;
    width: auto;
    transition: var(--transition-normal);
    display: block;
}

.navbar-logo:hover {
    transform: scale(1.05);
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
}

.brand-text {
    color: var(--text-primary);
}

.navbar-nav .nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--text-primary);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

.btn-nav {
    background: var(--gradient-primary);
    color: var(--text-primary) !important;
    border-radius: var(--radius-xl);
    padding: 0.5rem 1.5rem !important;
    margin-left: 1rem;
}

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

.btn-nav::after {
    display: none !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--darker-bg);
    overflow: hidden;
}

.hero-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gradient-sphere {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite ease-in-out;
}

.sphere-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-color);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.sphere-2 {
    width: 400px;
    height: 400px;
    background: var(--secondary-color);
    bottom: -100px;
    left: -50px;
    animation-delay: -5s;
}

.sphere-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

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

.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 40%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 80px;
}

.badge-wrapper {
    margin-bottom: 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary-light);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-cta {
    margin-bottom: 3rem;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    background: var(--gradient-primary);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

.btn-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-glow:hover::before {
    left: 100%;
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    padding: 0.9rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 600;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stat-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    color: var(--primary-light);
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

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

/* ============================================
   Animations
   ============================================ */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

/* Scroll Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ============================================
   Section Styles
   ============================================ */
.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-xl);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-light {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Chi Siamo Section
   ============================================ */
.about-image-wrapper {
    position: relative;
    padding: 30px;
}

.about-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 30px;
    bottom: 30px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    opacity: 0.3;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
}

.floating-card {
    position: absolute;
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    animation: floatCard 3s ease-in-out infinite;
}

.floating-card i {
    font-size: 1.5rem;
    color: var(--primary-light);
}

.floating-card span {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: -1.5s;
}

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

.about-content {
    padding-left: 2rem;
}

.lead-text {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.25rem;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
}

/* ============================================
   Tecnologie Section
   ============================================ */
.tech-card {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.tech-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.tech-card:hover::before {
    transform: scaleX(1);
}

.tech-card-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.15);
    border-radius: var(--radius-md);
    font-size: 1.75rem;
    color: var(--primary-light);
    margin-bottom: 1.5rem;
    transition: var(--transition-normal);
}

.tech-card:hover .tech-card-icon {
    background: var(--gradient-primary);
    color: var(--text-primary);
    transform: scale(1.1);
}

.tech-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-card-tags span {
    padding: 0.35rem 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-xl);
    font-size: 0.8rem;
    color: var(--primary-light);
    font-weight: 500;
}

/* ============================================
   Prodotti Section
   ============================================ */
.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    gap: 1.5rem;
    transition: var(--transition-normal);
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.product-icon-wrapper {
    flex-shrink: 0;
}

.product-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    font-size: 1.5rem;
}

.product-icon-wrapper.large .product-icon {
    width: 80px;
    height: 80px;
    font-size: 2rem;
}

.product-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.product-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.product-features li i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.product-card-featured {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-light) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

/* ============================================
   Startup Section
   ============================================ */
.startup-content {
    padding-right: 2rem;
}

.startup-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.startup-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition-normal);
}

.startup-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(10px);
}

.startup-card h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.startup-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.startup-card li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.startup-card li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Team Section
   ============================================ */
.team-card {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: var(--transition-normal);
    height: 100%;
}

.team-card:hover {
    transform: translateY(-10px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: var(--shadow-glow);
}

.team-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    transition: var(--transition-normal);
}

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

.team-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.team-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Contatti Section
   ============================================ */
.contact-wrapper {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-lg);
    padding: 3rem;
}

.contact-form .form-label {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-form .form-control {
    background: var(--darker-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.contact-form .form-control:focus {
    background: var(--darker-bg);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
    color: var(--text-primary);
}

.contact-form .form-control::placeholder {
    color: var(--text-muted);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-info {
    padding-top: 2rem;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.contact-info-item {
    padding: 1.5rem;
}

.contact-info-item i {
    font-size: 2rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.contact-info-item h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.contact-info-item p {
    color: var(--text-secondary);
    margin: 0;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--darker-bg);
    padding: 2rem 0;
    border-top: 1px solid rgba(99, 102, 241, 0.1);
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
}

.footer-brand .brand-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    transition: var(--transition-normal);
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-legal {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.8;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   Back to Top Button
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
    box-shadow: var(--shadow-lg);
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    color: var(--text-primary);
}

/* ============================================
   Toast Notification
   ============================================ */
.toast {
    background: var(--card-bg);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--radius-md);
}

.toast-header {
    background: transparent;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

.toast-body {
    color: var(--text-secondary);
}

/* ============================================
   Responsive Styles
   ============================================ */
@media (max-width: 991.98px) {
    :root {
        --section-padding: 80px 0;
    }

    .navbar-logo {
        height: 38px;
        max-height: 38px;
    }

    .navbar-collapse {
        background: var(--card-bg);
        border-radius: var(--radius-md);
        margin-top: 1rem;
        padding: 1rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
    }

    .btn-nav {
        margin-left: 0;
        margin-top: 0.5rem;
        display: inline-block;
        width: auto;
    }
    
    .hero-stats {
        gap: 1.5rem;
    }
    
    .about-content {
        padding-left: 0;
        margin-top: 2rem;
    }
    
    .floating-card {
        display: none;
    }
    
    .startup-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }
    
    .product-card {
        flex-direction: column;
        text-align: center;
    }
    
    .product-card-featured .row {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 60px 0;
    }

    .navbar-logo {
        height: 32px;
        max-height: 32px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta .btn {
        display: block;
        width: 100%;
        margin: 0 0 1rem 0 !important;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
    
    .contact-wrapper {
        padding: 1.5rem;
    }
    
    .footer {
        text-align: center;
    }
    
    .footer-legal {
        margin: 1rem 0;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 575.98px) {
    .about-image-wrapper {
        padding: 15px;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .team-card {
        padding: 1.5rem;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .navbar,
    .hero-bg-animation,
    .hero-grid,
    .scroll-indicator,
    .back-to-top,
    .floating-card {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section-dark,
    .section-gradient {
        background: white;
    }
    
    .text-gradient,
    .text-gradient-light {
        -webkit-text-fill-color: initial;
        background: none;
        color: #6366f1;
    }
}
