/* Reset & Basic Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --background-color: #0a0a0a;
    --text-color: #f0f0f0;
    --accent-color: #00ffcc; /* Neon cyan for "Forge" feel */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-speed: 0.3s;
    --max-width: 1200px;
    --nav-height: 80px;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: var(--font-body);
    background-color: #0b0f19; /* Deep navy/slate base instead of pure black */
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    /* Rich, subtle mesh gradient background */
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 123, 255, 0.15) 0px, transparent 50%), 
        radial-gradient(at 98% 1%, rgba(0, 255, 204, 0.08) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(100, 50, 255, 0.08) 0px, transparent 50%);
    background-attachment: fixed; /* Parallax-like effect where bg stays */
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 1.5rem;
    color: #cbd5e0;
}

/* Utility Classes */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-speed);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--text-color);
    color: var(--text-color);
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--background-color);
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

/* Header & Navigation - Advanced Desktop */
.main-header {
    background-color: rgba(11, 15, 25, 0.85); /* Slightly more transparent navy */
    backdrop-filter: blur(20px); /* Stronger blur for glassmorphism */
    -webkit-backdrop-filter: blur(20px);
    height: var(--nav-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px; /* Wider container for header */
}

/* Logo Styles */
.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-color);
    position: relative;
}

/* Desktop Navigation */
.main-nav ul {
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Nav Links with Underline Animation */
.main-nav a:not(.btn-primary) {
    font-size: 0.95rem;
    font-weight: 500;
    color: #a0aec0;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.main-nav a:not(.btn-primary)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
    border-radius: 2px;
}

.main-nav a:not(.btn-primary):hover, 
.main-nav a:not(.btn-primary).active {
    color: #fff;
}

.main-nav a:not(.btn-primary):hover::after,
.main-nav a:not(.btn-primary).active::after {
    width: 100%;
}

/* CTA in Header */
.main-nav .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
    border-radius: 50px; /* Rounded pill shape */
    background: linear-gradient(135deg, var(--primary-color) 0%, #00d2ff 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.main-nav .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00d2ff 0%, var(--primary-color) 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.main-nav .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.5);
}

.main-nav .btn-primary:hover::before {
    opacity: 1;
}


/* Mobile Menu Toggle - Sci-fi / Advanced Look */
.mobile-menu-toggle {
    display: none;
    z-index: 2000;
    width: 50px;
    height: 50px;
    position: relative;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.3);
    border-color: var(--primary-color);
}

.mobile-menu-toggle span {
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Three separate lines positioning */
.mobile-menu-toggle span:nth-child(1) { transform: translateY(-8px); width: 24px; }
.mobile-menu-toggle span:nth-child(2) { transform: translateY(0); width: 16px; margin-left: 8px; } /* Staggered width look */
.mobile-menu-toggle span:nth-child(3) { transform: translateY(8px); width: 10px; margin-left: 14px; }

/* Active State (X shape with flair) */
.mobile-menu-toggle.active span:nth-child(1) { transform: rotate(45deg); width: 24px; }
.mobile-menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.mobile-menu-toggle.active span:nth-child(3) { transform: rotate(-45deg); width: 24px; margin-left: 0; }


/* Footer structure */
.main-footer {
    background: linear-gradient(180deg, #050505 0%, #000 100%);
    padding: 80px 0 30px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr; /* Custom column widths */
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.8rem;
    font-weight: 800;
}

.footer-col.brand-col p {
    color: #a0aec0;
    max-width: 300px;
    line-height: 1.6;
}

.footer-col span {
    color: var(--primary-color);
}

.footer-col h4 {
    color: #fff;
    margin-bottom: 25px;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a0aec0;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Newsletter Form */
.newsletter-form {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form .btn-icon {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.newsletter-form .btn-icon:hover {
    transform: scale(1.05);
    background: #0056b3;
}

/* Social Icons */
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #8892b0; /* Improved visibility slightly */
}

@media (max-width: 900px) {
    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-columns {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form, .social-links {
        justify-content: center;
    }
    
    .footer-col.brand-col p {
        margin: 0 auto 20px;
    }
}


/* Menu Overlay (Dim background) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000; /* Just izdar n nav (1001) */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.menu-overlay.active {
    pointer-events: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; 
    }

    
    .mobile-menu-toggle {
        background: rgba(255, 255, 255, 0.1); 
        border-color: rgba(255, 255, 255, 0.2);
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%; /* Don't cover fully, let them see context */
        max-width: 400px;
        height: 100vh;
        background: rgba(20, 25, 40, 0.98); 
        backdrop-filter: blur(50px); 
        -webkit-backdrop-filter: blur(50px);
        transform: translateX(100%); 
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1001;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        box-shadow: -10px 0 50px rgba(0,0,0,0.8);
        border-left: 1px solid rgba(255, 255, 255, 0.2); /* Brighter border */
    }

    /* Add a sci-fi glow line on the left edge */
    .main-nav::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 1px;
        background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
        opacity: 0.7;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 30px; /* Spaced out */
        text-align: left; /* Align left within the drawer */
        width: 100%;
    }

    .main-nav ul li {
        opacity: 0;
        transform: translateX(30px); /* Slide in from right slightly */
        transition: all 0.4s ease;
    }

    /* Staggered animation */
    .main-nav.active ul li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .main-nav.active ul li:nth-child(1) { transition-delay: 0.2s; }
    .main-nav.active ul li:nth-child(2) { transition-delay: 0.3s; }
    .main-nav.active ul li:nth-child(3) { transition-delay: 0.4s; }
    .main-nav.active ul li:nth-child(4) { transition-delay: 0.5s; }
    .main-nav.active ul li:nth-child(5) { transition-delay: 0.6s; }

    .main-nav a {
        font-size: 1.8rem;
        font-weight: 600;
        color: #fff; /* MAX visibility: Pure White */
        display: block;
        transition: all 0.3s;
        padding-left: 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Shadow to pop against any bg */
    }

    .main-nav a:hover, .main-nav a.active {
        color: var(--primary-color);
        padding-left: 15px; /* Slight movement on hover */
        text-shadow: 0 0 20px rgba(0, 123, 255, 0.8);
    }

    /* Add arrow indicator on hover */
    .main-nav a:hover::before {
        content: '›';
        position: absolute;
        left: 0;
        color: var(--accent-color);
        font-size: 1.5rem;
        line-height: 2rem;
    }

    .main-nav a.btn-primary {
        font-size: 1.1rem;
        margin-top: 30px;
        text-align: center;
        background: rgba(0, 123, 255, 0.2);
        border: 1px solid var(--primary-color);
        color: #fff;
    }
    
    .main-nav a.btn-primary:hover {
        background: var(--primary-color);
        padding-left: 30px; /* Keep centering or specific padding */
        transform: scale(1.05);
    }
}