@import url('variables.css');

/* -------------------------------------------------------------
   1. RESET & BASE STYLES
   ------------------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.light-theme {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

img, video {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: var(--border-radius-sm);
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-orange);
}

/* -------------------------------------------------------------
   2. TYPOGRAPHY
   ------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.75rem;
    font-weight: 800;
}

h2 {
    font-size: 2.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

/* Title Underlines */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-volt));
    border-radius: 2px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
    font-weight: 400;
}

.lead {
    font-size: 1.15rem;
    color: var(--text-muted-light);
}

body.light-theme .lead {
    color: var(--text-muted-dark);
}

/* -------------------------------------------------------------
   3. LAYOUT & CONTAINERS
   ------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 5rem 0;
    position: relative;
}

.section-dark {
    background-color: var(--bg-dark);
    color: var(--text-light);
}

.section-light {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

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

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

.grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 2.75rem; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* -------------------------------------------------------------
   4. NAVIGATION (HEADER)
   ------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: rgba(6, 18, 11, 0.8);
    backdrop-filter: var(--blur-normal);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    height: 70px;
    background-color: rgba(6, 18, 11, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-orange));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: white;
    font-family: var(--font-title);
    border: 1px solid var(--accent-volt);
}

.logo-text {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.05em;
    color: var(--text-light);
}

.logo-text span {
    color: var(--accent-orange);
}

.nav-links {
    display: none;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted-light);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-volt);
    transition: var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: none;
}

/* Hamburger Menu Button */
.hamburger {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1100;
    padding: 0.5rem;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-light);
    transition: var(--transition-normal);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background-color: var(--accent-orange);
}

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

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background-color: var(--accent-orange);
}

/* Mobile Nav Overlay */
.nav-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-normal);
}

.nav-mobile-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-mobile-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.nav-mobile-link {
    font-family: var(--font-title);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-light);
}

.nav-mobile-link:hover {
    color: var(--accent-orange);
}

@media (min-width: 992px) {
    .nav-links { display: flex; }
    .nav-actions { display: block; }
    .hamburger { display: none; }
}

/* -------------------------------------------------------------
   5. UTILITIES & ANIMATIONS
   ------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent-orange { color: var(--accent-orange); }
.text-accent-volt { color: var(--accent-volt); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    background-color: var(--primary);
    border: 1px solid var(--accent-volt);
    color: var(--accent-volt);
}

.badge-orange {
    background-color: rgba(255, 107, 0, 0.15);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animation-delay-1 { animation-delay: 0.1s; }
.animation-delay-2 { animation-delay: 0.2s; }
.animation-delay-3 { animation-delay: 0.3s; }

/* -------------------------------------------------------------
   6. FOOTER
   ------------------------------------------------------------- */
.footer {
    background-color: #030a06;
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
    color: var(--text-muted-light);
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-description {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    max-width: 320px;
}

.footer-links-title {
    font-family: var(--font-title);
    color: var(--text-light);
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--accent-orange);
    transform: translateX(3px);
    display: inline-block;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-contact-icon {
    color: var(--accent-volt);
    margin-top: 0.2rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.8rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}
