﻿:root {
    --primary: #00E5FF;
    --primary-dark: #00B8CC;
    --bg-dark: #050505;
    --bg-card: #0F0F0F;
    --text-main: #FFFFFF;
    --text-muted: #A1A1AA;
    --gradient-text: linear-gradient(45deg, #00E5FF, #00FF9D);
    --glass: rgba(0, 229, 255, 0.05);
    --glass-border: rgba(0, 229, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Scroll offset for fixed navbar */
section {
    scroll-margin-top: 70px;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn-primary {
    display: inline-block;
    background: var(--primary);
    color: #000;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--glass);
    border-color: var(--primary);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    flex: 0 0 auto;
}

.logo .accent {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    margin: 0;
    padding: 0;
}

.nav-cta {
    flex: 0 0 auto;
}

/* Hamburger (mobile) */
.hamburger {
    display: none;
    flex: 0 0 auto;
    cursor: pointer;
    z-index: 1001;
    overflow: visible;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10.7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10.7px);
}

.mobile-only {
    display: none;
}

.nav-links a:not(.btn-primary) {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:not(.btn-primary):hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('hero_nanofire.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(5, 5, 5, 0.95) 0%, rgba(5, 5, 5, 0.6) 50%, rgba(5, 5, 5, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Services */
.services {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-muted);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Custom hover colors for each service card */
.card-robot:hover {
    border-color: #7B68EE;
}

.card-plant:hover {
    border-color: #4CAF50;
}

.card-lightning:hover {
    border-color: #FFD700;
}

.card-shield:hover {
    border-color: #2196F3;
}

.card-tool:hover {
    border-color: #90A4AE;
}

.card-chart:hover {
    border-color: #00BCD4;
}

/* About */
.about {
    padding: 6rem 0;
    background: #080808;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature-list {
    list-style: none;
    margin-top: 2rem;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.about-image {
    height: 400px;
    background: linear-gradient(45deg, #0F0F0F, #1A1A1A);
    border-radius: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.about-image::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    opacity: 0.15;
    animation: pulse 10s infinite;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 2rem 3rem;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-align: center;
    z-index: 2;
}

.glass-panel h3 {
    font-size: 3rem;
    color: var(--primary);
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    background: var(--bg-card);
    padding: 3rem;
    border-radius: 30px;
    border: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.info-item .icon {
    color: var(--primary);
    font-size: 1.2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

input,
select,
textarea {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    color: white;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.full-width {
    width: 100%;
}

/* Phone Input */
.phone-input-wrapper {
    display: flex;
    align-items: stretch;
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary);
}

.phone-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: rgba(0, 229, 255, 0.08);
    color: var(--primary);
    font-weight: 600;
    border-right: 1px solid var(--glass-border);
    white-space: nowrap;
}

.phone-input-wrapper input[type="tel"] {
    border: none;
    border-radius: 0;
    flex: 1;
    background: transparent;
}

.phone-input-wrapper input[type="tel"]:focus {
    border: none;
}

/* Footer */
footer {
    padding: 2rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.25;
    }

    100% {
        transform: scale(1);
        opacity: 0.1;
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
/* Ensure mobile-only elements stay hidden on larger screens */
@media (min-width: 769px) {
    .mobile-only {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .hamburger {
        display: flex;
        flex-direction: column;
        margin-right: 1rem;
    }

    .nav-cta {
        display: none;
    }

    .mobile-only {
        display: list-item;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem 2rem;
        gap: 2rem;
        transition: right 0.4s ease;
        border-left: 1px solid var(--glass-border);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 10px;
        transition: all 0.3s ease;
    }

    .nav-links a:not(.btn-primary):hover {
        background: rgba(0, 229, 255, 0.1);
    }

    .nav-links .btn-primary {
        width: 100%;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .about-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-wrapper {
        padding: 2rem 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-links {
        width: 100%;
        right: -100%;
    }

    .hero {
        min-height: 100vh;
        height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services,
    .about {
        padding: 3rem 0;
    }

    /* Optimized contact section for mobile */
    .contact {
        padding: 2rem 0;
    }

    .contact-wrapper {
        padding: 1rem;
        gap: 1.5rem;
    }

    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .contact-info>p {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .info-item {
        font-size: 0.85rem;
        margin-top: 0.75rem;
        gap: 0.75rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .form-group {
        gap: 0.3rem;
    }

    .form-group label {
        font-size: 0.85rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .phone-prefix {
        padding: 0 0.75rem;
        font-size: 0.9rem;
    }

    input,
    select,
    textarea {
        padding: 0.75rem;
        font-size: 16px;
    }

    textarea {
        min-height: 80px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .glass-panel {
        padding: 1.5rem 2rem;
    }

    .glass-panel h3 {
        font-size: 2.5rem;
    }

    /* Footer optimization for mobile */
    footer {
        padding: 0.6rem 0;
        font-size: 0.85rem;
    }
}