/* ============================================
   B.NET Srl - Super Tech 2026 Design
   Gradient: Blu #0066FF → #00AAFF | Rosso #E60012
   ============================================ */

/* === CSS Variables === */
:root {
    --blue-dark: #003399;
    --blue-main: #0066FF;
    --blue-light: #00AAFF;
    --blue-glow: #0088FF;
    --red-main: #E60012;
    --red-light: #FF2D3B;
    --gradient-main: linear-gradient(135deg, #0066FF 0%, #00AAFF 50%, #0066FF 100%);
    --gradient-accent: linear-gradient(135deg, #0066FF 0%, #E60012 100%);
    --gradient-text: linear-gradient(135deg, #00AAFF 0%, #0066FF 50%, #E60012 100%);
    --gradient-card: linear-gradient(145deg, rgba(0,102,255,0.08) 0%, rgba(0,170,255,0.04) 100%);
    --bg-dark: #030712;
    --bg-section: #060B18;
    --bg-card: rgba(10, 20, 50, 0.6);
    --text-primary: #F0F4FF;
    --text-secondary: rgba(200, 215, 255, 0.7);
    --text-muted: rgba(150, 170, 210, 0.5);
    --border-subtle: rgba(0, 102, 255, 0.12);
    --border-glow: rgba(0, 136, 255, 0.3);
    --glass: rgba(10, 20, 60, 0.4);
    --glass-border: rgba(0, 102, 255, 0.15);
    --shadow-blue: 0 0 60px rgba(0, 102, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background: rgba(0, 102, 255, 0.3);
    color: #fff;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

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

/* === Cursor Glow === */
.cursor-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,102,255,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* === Particle Canvas === */
#particleCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

/* === Navigation === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 8px 0;
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    z-index: 1001;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(0,102,255,0.3));
}

.navbar.scrolled .logo-img {
    height: 40px;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(0, 102, 255, 0.1);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--gradient-main);
    border-radius: 2px;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-area-riservata {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: transparent;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.btn-area-riservata:hover {
    color: var(--red-main);
    border-color: var(--red-main);
    background: rgba(230, 0, 18, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(230, 0, 18, 0.2);
}

.btn-area-riservata i {
    font-size: 11px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* === 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: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,102,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,102,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 100%);
}

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

.hero-orb-1 {
    width: 600px;
    height: 600px;
    background: rgba(0, 102, 255, 0.15);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(230, 0, 18, 0.08);
    bottom: -100px;
    left: -100px;
    animation-delay: -7s;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: rgba(0, 170, 255, 0.1);
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

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

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--blue-light);
    margin-bottom: 32px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--blue-light);
    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.5); }
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(40px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.title-line {
    display: block;
    animation: fadeInUp 1s ease-out both;
}

.title-line:nth-child(1) { animation-delay: 0.3s; }
.title-line:nth-child(2) { animation-delay: 0.5s; }

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out 0.7s both;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 64px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: var(--gradient-main);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(0, 102, 255, 0.5);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary i {
    transition: transform 0.3s;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glow);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(0, 102, 255, 0.1);
    border-color: var(--blue-main);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 40px;
    animation: fadeInUp 1s ease-out 1.1s both;
}

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

.stat-number {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-suffix {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--blue-light);
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-subtle);
}

/* Hero 3D Element */
.hero-3d-element {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    perspective: 800px;
}

.floating-cube {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s linear infinite;
}

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

.cube-face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(0, 102, 255, 0.2);
    background: rgba(0, 102, 255, 0.03);
    backdrop-filter: blur(2px);
}

.cube-face.front  { transform: translateZ(100px); }
.cube-face.back   { transform: rotateY(180deg) translateZ(100px); }
.cube-face.right  { transform: rotateY(90deg) translateZ(100px); }
.cube-face.left   { transform: rotateY(-90deg) translateZ(100px); }
.cube-face.top    { transform: rotateX(90deg) translateZ(100px); }
.cube-face.bottom { transform: rotateX(-90deg) translateZ(100px); }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 1.5s both;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--blue-main), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

.scroll-indicator span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

/* === Sections Common === */
.section {
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 102, 255, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--blue-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* === About Section === */
.about-section {
    background: var(--bg-section);
}

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

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: var(--blue-main);
    background: rgba(0, 102, 255, 0.08);
    transform: translateY(-2px);
}

.feature-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.feature-item span {
    font-size: 14px;
    font-weight: 500;
}

/* About Visual */
.about-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-sphere {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(0,170,255,0.2), rgba(0,102,255,0.05));
    border: 1px solid rgba(0, 102, 255, 0.15);
    box-shadow: var(--shadow-blue);
    animation: spherePulse 6s ease-in-out infinite;
}

@keyframes spherePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(0,102,255,0.15); }
    50% { transform: scale(1.05); box-shadow: 0 0 100px rgba(0,102,255,0.25); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-card);
    animation: floatCard 6s ease-in-out infinite;
    z-index: 2;
}

.floating-card i {
    font-size: 24px;
    color: var(--blue-light);
}

.floating-card span {
    font-size: 15px;
    font-weight: 600;
}

.card-1 { top: 10%; left: 5%; animation-delay: 0s; }
.card-2 { top: 5%; right: 5%; animation-delay: -1.5s; }
.card-3 { bottom: 15%; left: 0; animation-delay: -3s; }
.card-4 { bottom: 5%; right: 10%; animation-delay: -4.5s; }

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

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

.service-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: var(--transition);
}

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

.service-card:hover::before {
    opacity: 1;
}

.service-icon-wrap {
    position: relative;
    margin-bottom: 24px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-md);
    font-size: 24px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.service-glow {
    position: absolute;
    top: 50%;
    left: 28px;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover .service-glow {
    opacity: 1;
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-arrow {
    position: absolute;
    bottom: 32px;
    right: 32px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 102, 255, 0.1);
    color: var(--blue-light);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.service-card:hover .service-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* === Products Section === */
.products-section {
    background: var(--bg-section);
}

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

.product-card {
    position: relative;
    padding: 48px 28px 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    overflow: hidden;
}

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

.product-visual {
    position: relative;
    margin-bottom: 24px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon-3d {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-lg);
    font-size: 36px;
    color: #fff;
    transform: perspective(500px) rotateY(-5deg) rotateX(5deg);
    transition: var(--transition);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.2);
}

.product-card:hover .product-icon-3d {
    transform: perspective(500px) rotateY(5deg) rotateX(-5deg) scale(1.1);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.3);
}

.product-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.product-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === Portfolio Section === */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 48px;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0, 102, 255, 0.3);
}

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

.portfolio-item {
    transition: var(--transition);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.portfolio-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-6px);
    box-shadow: var(--shadow-blue);
}

.portfolio-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border-radius: var(--radius-md);
    font-size: 22px;
    color: var(--blue-light);
    margin-bottom: 20px;
}

.portfolio-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.portfolio-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.portfolio-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    color: var(--blue-light);
}

/* === Certifications Section === */
.certifications-section {
    background: var(--bg-section);
    overflow: hidden;
}

.certifications-marquee {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 24px;
    animation: marquee 40s linear infinite;
    width: max-content;
}

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

.cert-item {
    opacity: 1 !important;
    transform: none !important;
}

.cert-card {
    width: 220px;
    padding: 32px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.cert-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-blue);
}

.cert-logo {
    width: 80px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin: 0 auto 16px;
    overflow: hidden;
}

.cert-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    transition: var(--transition);
}

.cert-card:hover .cert-logo img {
    transform: scale(1.05);
}

.cert-logo i {
    font-size: 24px;
    color: var(--blue-light);
}

.cert-card h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.cert-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.cert-year {
    display: inline-block;
    padding: 2px 10px;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--blue-light);
}

/* === CTA Section === */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(0, 102, 255, 0.15);
    top: -200px;
    left: -100px;
}

.cta-orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(230, 0, 18, 0.08);
    bottom: -150px;
    right: -100px;
}

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

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.cta-content p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

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

/* === Contact Section === */
.contact-section {
    background: var(--bg-section);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.contact-info {
    display: grid;
    gap: 16px;
}

.contact-card {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.contact-card:hover {
    border-color: var(--border-glow);
    transform: translateX(4px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-main);
    border-radius: var(--radius-sm);
    font-size: 18px;
    color: #fff;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-card a {
    color: var(--blue-light);
    text-decoration: none;
    transition: var(--transition);
}

.contact-card a:hover {
    color: var(--text-primary);
}

/* Contact Form */
.contact-form-wrap {
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
}

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

.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    outline: none;
    transition: var(--transition);
}

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

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--blue-main);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.4s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

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

.btn-submit {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 16px;
}

/* === Footer === */
.footer {
    padding: 80px 0 0;
    border-top: 1px solid var(--border-subtle);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(0,102,255,0.3));
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--gradient-main);
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--blue-light);
    transform: translateX(4px);
}

.footer-contact p {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--blue-light);
    width: 16px;
    text-align: center;
}

.footer-bottom {
    padding: 24px 0;
    border-top: 1px solid var(--border-subtle);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-3d-element {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-visual {
        height: 350px;
    }

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

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

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

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

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

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 360px;
        height: 100vh;
        background: rgba(3, 7, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        gap: 8px;
        padding: 40px;
        transition: right 0.4s ease;
        z-index: 1000;
        border-left: 1px solid var(--border-subtle);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: clamp(32px, 8vw, 52px);
    }

    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-grid,
    .products-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-filters {
        flex-wrap: wrap;
    }

    .about-features {
        grid-template-columns: 1fr;
    }

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

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

    .section {
        padding: 80px 0;
    }

    .contact-form-wrap {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}
