:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #00f2ff;
    --accent-glow: rgba(0, 242, 255, 0.4);
    --secondary-color: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Orbitron', sans-serif;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* Backgrounds & Overlay */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 242, 255, 0.1) 0%, transparent 40%);
    z-index: -2;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: -1;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Layout - Mobile First */
.container {
    width: 100%;
    padding: 0 1.5rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1100px;
    }
}

.section {
    padding: 4rem 0;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .section {
        min-height: 80vh;
        padding: 6rem 0;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 100;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo img {
    height: 35px;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    z-index: 102;
    /* Above mobile menu */
    position: relative;
}

/* Hamburger Menu */
.hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 102;
    /* Above mobile menu */
}

.hamburger-menu span {
    width: 30px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (min-width: 768px) {
    .hamburger-menu {
        display: none;
    }
}

/* Mobile Nav Overlay */
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.4s ease-in-out;
    z-index: 101;
    list-style: none;
}

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

@media (min-width: 768px) {
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        backdrop-filter: none;
        flex-direction: row;
        right: 0;
    }
}

.nav-link {
    position: relative;
    font-size: 1.5rem;
    /* Larger for mobile */
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

@media (min-width: 768px) {
    .nav-link {
        font-size: 0.9rem;
    }
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    color: var(--accent-color);
    transition: width 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover::before {
    width: 100%;
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-glow);
}

/* Hero Section */
.hero {
    height: 100vh;
    /* Keeps full height */
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background-image: url('../assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
}

.hero-content {
    text-align: center;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    /* Smaller for mobile */
    font-weight: 900;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    /* Added standard property */
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 6rem;
    }
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

.floating-shape {
    width: 120px;
    height: auto;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px var(--secondary-color));
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .floating-shape {
        width: 150px;
    }
}

.btn-primary {
    padding: 1rem 2.5rem;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px var(--accent-glow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

/* Glassmorphism */
.glass {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
}

/* Philosophy Section */
.philosophy-section {
    position: relative;
}

.philosophy-content {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.line {
    height: 2px;
    width: 60px;
    margin: 0 auto 2rem;
    background: var(--accent-color);
}

.lead-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #fff;
    font-weight: 500;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: left;
}

@media (min-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr 1fr;
        text-align: center;
    }
}

.philosophy-item h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.philosophy-item p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

/* Services */
.services-section {
    position: relative;
    /* Fixed empty ruleset */
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Side-by-side on desktop for big cards */
@media (min-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .small-card {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
    }
}

.service-card {
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-content p {
    color: rgba(255, 255, 255, 0.7);
}

/* Contact */
.contact-container {
    display: flex;
    justify-content: center;
}

.contact-card {
    text-align: center;
    padding: 3rem 1.5rem;
    width: 100%;
}

@media (min-width: 768px) {
    .contact-card {
        padding: 4rem 6rem;
    }
}

.contact-card h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .contact-card h2 {
        font-size: 3rem;
    }
}

.contact-card p {
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
    background: rgba(0, 0, 0, 0.5);
}

.footer-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.company-details h4 {
    color: var(--accent-color);
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.company-details p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Reveal on Scroll */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease;
}

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