/* 
   MLogic One LLC - Premium Design System
   Minimal, Modern, and Scalable
*/

:root {
    --bg-color: #0c0c0c;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-color: #cfa551; /* Premium Gold */
    --accent-glow: rgba(207, 165, 81, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --nav-height: 80px;
    --container-width: 1200px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Atmospheric Lighting */
    --glow-1: radial-gradient(circle at 0% 0%, rgba(207, 165, 81, 0.08) 0%, transparent 40%);
    --glow-2: radial-gradient(circle at 100% 100%, rgba(207, 165, 81, 0.05) 0%, transparent 40%);
    --glow-3: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 60%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: var(--glow-1), var(--glow-2), var(--glow-3);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .logo span {
    font-family: 'Outfit', sans-serif;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid transparent;
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.nav-links .btn-primary {
    color: #000;
}

.btn-primary {
    background: var(--accent-color);
    color: #000;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--accent-color);
    display: inline-block;
}

.btn-primary:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid var(--glass-border);
    display: inline-block;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-bg-accent {
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    transform: translateY(-50%);
}

/* Solutions Section */
.solutions {
    background: linear-gradient(180deg, var(--bg-color) 0%, #0a0a0a 100%);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.solution-card {
    display: flex;
    flex-direction: column;
    padding: 3rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.project-icon {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--accent-glow));
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
}

.tech-tags span {
    background: rgba(207, 165, 81, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid rgba(207, 165, 81, 0.2);
}

.project-link {
    margin-top: auto;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

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

/* About Section */
.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    border-color: rgba(207, 165, 81, 0.3);
}

.card-dots {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.card-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.card-code {
    font-family: monospace;
    color: var(--accent-color);
    background: rgba(0,0,0,0.3);
    padding: 1.5rem;
    border-radius: 8px;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.email-display {
    display: block;
    margin-top: 2rem;
    font-size: 1.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255,255,255,0.08);
}

.w-full { width: 100%; }

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.footer-logo { font-weight: 700; font-size: 1.25rem; }

.footer-links {
    display: flex;
    gap: 2rem;
}

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

.footer-copy {
    color: var(--text-secondary);
    font-size: 0.85rem;
    width: 100%;
    margin-top: 2rem;
}

/* Premium Animations */
.reveal {
    opacity: 0;
    filter: blur(20px);
    transform: translateY(50px) scale(0.98);
    transition: opacity 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                filter 1.2s cubic-bezier(0.2, 0.8, 0.2, 1), 
                transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, filter, transform;
}

.reveal.active {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
}

/* Staggered entry for grid elements */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }

.hero-btns { transition-delay: 0.3s; }
.hero-content p { transition-delay: 0.2s; }

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: #fff;
}

@media (max-width: 968px) {
    .grid, .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hero h1 { font-size: 3rem; }
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }
}
