/* ========================================
   Global Optronics Inc. — Stylesheet
   ======================================== */

:root {
    --primary: #00d4ff;
    --primary-dark: #00a8cc;
    --accent: #0066ff;
    --bg-dark: #0a0e1a;
    --bg-darker: #060911;
    --bg-card: #111627;
    --bg-card-hover: #161d35;
    --surface: #0d1225;
    --text: #e4e8f1;
    --text-muted: #8891a8;
    --text-dim: #5a6380;
    --border: #1a2040;
    --border-light: #252d4a;
    --gradient: linear-gradient(135deg, #00d4ff, #0066ff);
    --gradient-text: linear-gradient(135deg, #00d4ff 0%, #0088ff 50%, #00d4ff 100%);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::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);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

a:hover {
    color: #fff;
}

img {
    max-width: 100%;
    display: block;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }

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

.lead { font-size: 1.15rem; color: var(--text); margin-bottom: 1rem; }

/* ---- Buttons ---- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    text-decoration: none;
    gap: 8px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #000;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
    color: #000;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.85rem;
    background: var(--gradient);
    color: #000;
    font-weight: 600;
    border-radius: var(--radius-sm);
}

.btn-full {
    width: 100%;
}

/* ---- Navbar ---- */

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

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.logo:hover { color: #fff; }

.logo-icon {
    font-size: 1.6rem;
    color: var(--primary);
}

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

.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-links a:hover {
    color: #fff;
}

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

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

/* ---- Hero ---- */

.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-bg canvas {
    width: 100%;
    height: 100%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.03em;
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 700px;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 580px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

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

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

.stat-num {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: block;
    width: 28px;
    height: 44px;
    border: 2px solid var(--border-light);
    border-radius: 14px;
    position: relative;
}

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

@keyframes scrollDown {
    0%, 100% { opacity: 1; top: 8px; }
    50% { opacity: 0.3; top: 22px; }
}

/* ---- Sections ---- */

.section {
    padding: 100px 0;
}

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

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

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}

/* ---- About ---- */

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

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.about-highlights {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.highlight-icon {
    color: var(--primary);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.highlight strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
}

.highlight span {
    font-size: 0.85rem;
    color: var(--text-dim);
}

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

.tech-graphic {
    position: relative;
    width: 360px;
    height: 360px;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.ring-1 {
    inset: 0;
    animation: rotate 30s linear infinite;
    border-color: rgba(0, 212, 255, 0.15);
}

.ring-2 {
    inset: 50px;
    animation: rotate 20s linear infinite reverse;
    border-color: rgba(0, 102, 255, 0.2);
}

.ring-3 {
    inset: 100px;
    animation: rotate 15s linear infinite;
    border-color: rgba(0, 212, 255, 0.25);
}

.ring::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px var(--primary);
}

.ring-center {
    position: absolute;
    inset: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
}

.ring-center span {
    font-size: 2.5rem;
    color: var(--primary);
}

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

/* ---- Technology ---- */

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

.tech-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.tech-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.tech-card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
    margin-bottom: 20px;
}

.tech-card-icon svg {
    width: 100%;
    height: 100%;
}

.tech-card h3 {
    margin-bottom: 12px;
}

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

.tech-specs {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tech-specs li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
}

.tech-specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.6;
}

/* ---- Products ---- */

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

.product-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    transition: all var(--transition);
}

.product-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.product-header {
    margin-bottom: 16px;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.product-card > p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.product-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.product-features li {
    font-size: 0.85rem;
    color: var(--text-dim);
    padding-left: 20px;
    position: relative;
}

.product-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 0.8rem;
}

.product-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary);
    transition: all var(--transition);
}

.product-link:hover {
    color: #fff;
    letter-spacing: 0.02em;
}

/* ---- Services ---- */

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

.service-item {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.service-item:hover {
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateY(-4px);
}

.service-num {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.service-item h3 {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.service-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---- CTA ---- */

.section-cta {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 16px 0 32px;
}

.cta-content .hero-actions {
    justify-content: center;
    margin-bottom: 0;
}

/* ---- Contact ---- */

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

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

.contact-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

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

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: inherit;
    font-size: 0.95rem;
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.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='8' fill='%238891a8'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

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

.form-note {
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: center;
}

/* ---- Footer ---- */

.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}

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

.footer-brand p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 16px;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--text-dim);
    font-size: 0.9rem;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-dim);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* ---- Animations ---- */

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

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

/* ---- Responsive ---- */

@media (max-width: 1024px) {
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-darker);
        flex-direction: column;
        padding: 80px 32px 32px;
        gap: 4px;
        transition: right var(--transition);
        border-left: 1px solid var(--border);
    }

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

    .nav-links a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .hero { min-height: auto; padding: 140px 0 80px; }
    .hero-stats { gap: 32px; }
    .hero-scroll { display: none; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { display: none; }
    .tech-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }

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

    .section { padding: 64px 0; }
}

@media (max-width: 480px) {
    .hero-stats { flex-direction: column; gap: 20px; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}
