/* ================================
   GERMANIUM.GE - Futuristic Theme
   ================================ */

:root {
    /* Core Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;

    /* Germanium-inspired accent colors */
    --accent-primary: #00d4ff;
    --accent-secondary: #7b68ee;
    --accent-tertiary: #00ff88;
    --accent-glow: rgba(0, 212, 255, 0.5);

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --text-muted: #6a6a7a;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    --gradient-glow: linear-gradient(135deg, rgba(0, 212, 255, 0.2), rgba(123, 104, 238, 0.2));

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ================================
   Reset & Base Styles
   ================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ================================
   Particle Background
   ================================ */

#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.5;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0.5; }
    25% { transform: translateY(-100px) translateX(50px); opacity: 0.8; }
    50% { transform: translateY(-50px) translateX(-30px); opacity: 0.3; }
    75% { transform: translateY(-150px) translateX(20px); opacity: 0.6; }
}

/* ================================
   Navigation
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition-normal);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

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

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

.element-box {
    background: var(--gradient-glow);
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.element-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.element-box:hover::before {
    left: 100%;
}

.element-box .atomic-number {
    font-family: 'Orbitron', monospace;
    font-size: 10px;
    color: var(--accent-primary);
}

.element-box .symbol {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.element-box .element-name {
    font-size: 8px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.element-box.small {
    padding: 6px 10px;
}

.element-box.small .symbol {
    font-size: 18px;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    position: relative;
    transition: var(--transition-normal);
}

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

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

.nav-links a:hover::after {
    width: 100%;
}

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

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

/* ================================
   Hero Section
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 100px 24px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(123, 104, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
    max-width: var(--container-width);
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-element {
    flex-shrink: 0;
}

.periodic-card {
    width: 220px;
    height: 280px;
    background: var(--gradient-glow);
    border: 2px solid var(--accent-primary);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 0 60px rgba(0, 212, 255, 0.3),
        inset 0 0 60px rgba(0, 212, 255, 0.1);
    animation: cardPulse 4s ease-in-out infinite;
}

@keyframes cardPulse {
    0%, 100% { box-shadow: 0 0 60px rgba(0, 212, 255, 0.3), inset 0 0 60px rgba(0, 212, 255, 0.1); }
    50% { box-shadow: 0 0 80px rgba(0, 212, 255, 0.5), inset 0 0 80px rgba(0, 212, 255, 0.2); }
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-primary), transparent, var(--accent-secondary), transparent);
    animation: rotate 10s linear infinite;
    opacity: 0.3;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.periodic-card .p-atomic {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--accent-primary);
    position: relative;
    z-index: 1;
}

.periodic-card .p-symbol {
    font-family: 'Orbitron', monospace;
    font-size: 80px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.periodic-card .p-name {
    font-family: 'Orbitron', monospace;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

.periodic-card .p-mass {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    margin-top: 20px;
}

.hero-text {
    max-width: 600px;
}

.hero-text h1 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    letter-spacing: 8px;
    margin-bottom: 20px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    -webkit-background-clip: text;
    background-clip: text;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--accent-tertiary);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes glitch-anim {
    0% { clip: rect(51px, 9999px, 28px, 0); }
    5% { clip: rect(70px, 9999px, 19px, 0); }
    10% { clip: rect(92px, 9999px, 60px, 0); }
    15% { clip: rect(10px, 9999px, 50px, 0); }
    20% { clip: rect(35px, 9999px, 85px, 0); }
    25% { clip: rect(65px, 9999px, 25px, 0); }
    30% { clip: rect(15px, 9999px, 75px, 0); }
    35% { clip: rect(80px, 9999px, 45px, 0); }
    40% { clip: rect(28px, 9999px, 92px, 0); }
    45% { clip: rect(55px, 9999px, 35px, 0); }
    50% { clip: rect(42px, 9999px, 68px, 0); }
    55% { clip: rect(78px, 9999px, 22px, 0); }
    60% { clip: rect(5px, 9999px, 88px, 0); }
    65% { clip: rect(62px, 9999px, 40px, 0); }
    70% { clip: rect(30px, 9999px, 70px, 0); }
    75% { clip: rect(95px, 9999px, 15px, 0); }
    80% { clip: rect(18px, 9999px, 55px, 0); }
    85% { clip: rect(48px, 9999px, 82px, 0); }
    90% { clip: rect(72px, 9999px, 32px, 0); }
    95% { clip: rect(8px, 9999px, 65px, 0); }
    100% { clip: rect(38px, 9999px, 48px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(12px, 9999px, 78px, 0); }
    5% { clip: rect(45px, 9999px, 32px, 0); }
    10% { clip: rect(88px, 9999px, 55px, 0); }
    15% { clip: rect(22px, 9999px, 95px, 0); }
    20% { clip: rect(68px, 9999px, 18px, 0); }
    25% { clip: rect(35px, 9999px, 72px, 0); }
    30% { clip: rect(82px, 9999px, 42px, 0); }
    35% { clip: rect(15px, 9999px, 62px, 0); }
    40% { clip: rect(58px, 9999px, 28px, 0); }
    45% { clip: rect(92px, 9999px, 48px, 0); }
    50% { clip: rect(25px, 9999px, 85px, 0); }
    55% { clip: rect(65px, 9999px, 12px, 0); }
    60% { clip: rect(38px, 9999px, 75px, 0); }
    65% { clip: rect(8px, 9999px, 58px, 0); }
    70% { clip: rect(52px, 9999px, 35px, 0); }
    75% { clip: rect(78px, 9999px, 92px, 0); }
    80% { clip: rect(42px, 9999px, 22px, 0); }
    85% { clip: rect(18px, 9999px, 68px, 0); }
    90% { clip: rect(62px, 9999px, 45px, 0); }
    95% { clip: rect(95px, 9999px, 8px, 0); }
    100% { clip: rect(28px, 9999px, 82px, 0); }
}

.tagline {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: var(--transition-slow);
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: bounce 2s ease-in-out infinite;
}

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

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--accent-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0; top: 20px; }
}

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

/* ================================
   Section Styles
   ================================ */

section {
    padding: var(--section-padding);
    position: relative;
}

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

.section-tag {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    display: block;
    margin-bottom: 20px;
}

.section-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
}

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

/* ================================
   About Section
   ================================ */

.about {
    background: var(--bg-secondary);
}

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

.about-content .lead {
    font-size: 22px;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.stats-row {
    display: flex;
    gap: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Atom Model */
.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.atom-model {
    width: 300px;
    height: 300px;
    position: relative;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 40px var(--accent-glow);
}

.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    animation: orbit linear infinite;
}

.orbit-1 { width: 100px; height: 100px; margin: -50px 0 0 -50px; animation-duration: 3s; }
.orbit-2 { width: 160px; height: 160px; margin: -80px 0 0 -80px; animation-duration: 5s; }
.orbit-3 { width: 220px; height: 220px; margin: -110px 0 0 -110px; animation-duration: 7s; }
.orbit-4 { width: 280px; height: 280px; margin: -140px 0 0 -140px; animation-duration: 9s; }

@keyframes orbit {
    100% { transform: rotate(360deg); }
}

.electron {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-primary);
    top: -5px;
    left: 50%;
    margin-left: -5px;
}

.electron.e2 { top: 50%; left: -5px; margin-left: 0; margin-top: -5px; }
.electron.e3 { top: auto; bottom: -5px; left: 50%; margin-left: -5px; }
.electron.e4 { top: 50%; left: auto; right: -5px; margin-top: -5px; }

/* ================================
   Services Section
   ================================ */

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

.service-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

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

.service-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    color: var(--accent-primary);
}

.service-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    margin-bottom: 16px;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-link {
    font-family: 'Orbitron', monospace;
    font-size: 12px;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition-normal);
}

.service-link:hover {
    color: var(--accent-secondary);
}

/* ================================
   Technology Section
   ================================ */

.technology {
    background: var(--bg-secondary);
}

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

.tech-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.circuit-board {
    width: 300px;
    height: 300px;
    position: relative;
    background:
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.circuit-line {
    position: absolute;
    background: rgba(0, 212, 255, 0.3);
}

.cl-1 { width: 2px; height: 100px; top: 50px; left: 60px; }
.cl-2 { width: 100px; height: 2px; top: 149px; left: 60px; }
.cl-3 { width: 2px; height: 80px; top: 150px; left: 159px; }

.circuit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-primary);
}

.cn-1 { top: 45px; left: 55px; }
.cn-2 { top: 145px; left: 55px; }
.cn-3 { top: 145px; left: 155px; }
.cn-4 { top: 225px; left: 155px; }

.circuit-chip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-tertiary);
    border: 2px solid var(--accent-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
}

.circuit-chip span {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tech-feature {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 24px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid transparent;
    transition: var(--transition-normal);
}

.tech-feature:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(10px);
}

.feature-number {
    font-family: 'Orbitron', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-primary);
    opacity: 0.5;
    line-height: 1;
}

.feature-content h4 {
    font-family: 'Orbitron', monospace;
    font-size: 18px;
    margin-bottom: 8px;
}

.feature-content p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* ================================
   Contact Section
   ================================ */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h3 {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

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

.contact-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-glow);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent-primary);
}

.contact-item .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.contact-item .value {
    font-size: 16px;
    color: var(--text-primary);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--bg-secondary);
    border: none;
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
    padding: 16px 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition-normal);
}

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

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

.form-group label {
    position: absolute;
    top: 16px;
    left: 0;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    transition: var(--transition-normal);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -10px;
    font-size: 11px;
    color: var(--accent-primary);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-normal);
}

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

.contact-form .btn {
    align-self: flex-start;
}

.contact-form .btn svg {
    width: 18px;
    height: 18px;
}

/* ================================
   Footer
   ================================ */

.footer {
    background: var(--bg-secondary);
    padding: 80px 0 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    margin-top: 20px;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-column h4 {
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.footer-column a {
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

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

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

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

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

.social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.element-fact {
    font-family: 'Orbitron', monospace;
    font-size: 12px !important;
    letter-spacing: 2px;
}

/* ================================
   Responsive Design
   ================================ */

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .about-grid,
    .tech-showcase,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

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

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

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

    .footer-content {
        flex-direction: column;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition-normal);
    }

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

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .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);
    }

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

    .periodic-card {
        width: 180px;
        height: 230px;
    }

    .periodic-card .p-symbol {
        font-size: 60px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

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

    .stats-row {
        flex-direction: column;
        gap: 30px;
    }

    .atom-model {
        width: 250px;
        height: 250px;
    }

    .orbit-4 {
        display: none;
    }
}

/* ================================
   Utility Classes
   ================================ */

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Selection Styling */
::selection {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}
