/* ===================================
   NextLakeLabs - Modern UI Design
   Clean, minimal, professional
   =================================== */

/* CSS Variables */
:root {
    /* Modern color palette - Purple/Indigo theme */
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-primary-light: #818cf8;
    --color-secondary: #0f172a;
    --color-accent: #8b5cf6;
    
    /* Text colors */
    --color-text: #475569;
    --color-text-light: #64748b;
    --color-heading: #0f172a;
    
    /* Background colors */
    --color-bg: #ffffff;
    --color-bg-alt: #f8fafc;
    --color-bg-dark: #0f172a;
    --color-bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    /* Border & surfaces */
    --color-border: #e2e8f0;
    --color-surface: rgba(255, 255, 255, 0.8);
    
    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Shadows - softer, modern */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
    
    /* Border radius - more rounded */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--color-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.875rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

p { margin-bottom: 1rem; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons - Modern pill style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--color-bg-gradient);
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: white;
}

.btn-secondary {
    background: var(--color-bg);
    color: var(--color-heading);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-alt);
    border-color: var(--color-primary-light);
    color: var(--color-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    display: flex;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-heading);
}

.logo-highlight {
    background: var(--color-bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-heading);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    padding: 10rem 0 6rem;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99, 102, 241, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(139, 92, 246, 0.1), transparent);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--color-heading) 0%, #374151 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    color: var(--color-text-light);
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Section Styles ===== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    padding: 0.375rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-tag.light {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.section-intro {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--color-text-light);
    font-size: 1.1rem;
}

/* ===== What We Do ===== */
.what-we-do {
    background: var(--color-bg-alt);
}

.intro-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.125rem;
}

.intro-text strong {
    color: var(--color-primary);
}

/* ===== Services Grid ===== */
.services {
    background: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-light);
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-gradient);
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
}

.service-icon svg {
    stroke: white;
}

.service-card h3 {
    margin-bottom: 0.75rem;
}

.service-card p {
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.service-card ul {
    padding-left: 0;
}

.service-card li {
    position: relative;
    padding-left: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text);
    font-size: 0.9rem;
}

.service-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* ===== Solutions ===== */
.solutions {
    background: var(--color-bg-alt);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.solution-card {
    background: var(--color-bg);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    text-align: center;
    transition: all var(--transition);
}

.solution-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.solution-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.solution-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.solution-card p {
    color: var(--color-text-light);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* ===== Why Us ===== */
.why-us {
    background: var(--color-bg-dark);
    color: white;
}

.why-us h2 {
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature h3 {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature p {
    color: #94a3b8;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.tech-stack-feature {
    grid-column: 1 / -1;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

/* ===== Engagement ===== */
.engagement {
    background: var(--color-bg);
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.engagement-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--color-bg-alt);
    border-radius: var(--radius-xl);
    position: relative;
}

.engagement-number {
    font-size: 4rem;
    font-weight: 800;
    background: var(--color-bg-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.3;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.engagement-card h3 {
    margin-bottom: 0.75rem;
}

.engagement-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* ===== Industries ===== */
.industries {
    background: var(--color-bg-alt);
}

.industries-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.industry-badge {
    background: var(--color-bg);
    padding: 1rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-text);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.industry-badge:hover {
    background: var(--color-bg-gradient);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ===== About ===== */
.about {
    background: var(--color-bg-gradient);
    color: white;
}

.about h2 {
    color: white;
}

.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.about-content .highlight {
    font-size: 1.35rem;
    font-weight: 600;
    opacity: 1;
    margin-top: 1.5rem;
    line-height: 1.5;
}

/* ===== Contact ===== */
.contact {
    background: var(--color-bg);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-bg);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-heading);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-light);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: var(--color-bg);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.contact-form .btn {
    width: 100%;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--color-bg-dark);
    color: #94a3b8;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .logo-text {
    font-size: 1.5rem;
    color: white;
}

.footer-tagline {
    margin-top: 0.75rem;
    color: #64748b;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    color: #94a3b8;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.9rem;
}

.footer-email {
    color: var(--color-primary-light);
}

.footer-email:hover {
    color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-links {
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .service-card,
    .solution-card,
    .feature {
        padding: 1.5rem;
    }
}

/* ===== Blog Page Styles ===== */
.blog-hero {
    padding: 9rem 0 4rem;
}

.blog-hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.blog-section {
    min-height: 50vh;
}

.blog-coming-soon {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 0;
}

.coming-soon-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.blog-coming-soon h2 {
    margin-bottom: 1rem;
}

.blog-coming-soon p {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.subscribe-form {
    display: flex;
    gap: 0.75rem;
    max-width: 400px;
    margin: 2rem auto;
}

.subscribe-form input {
    flex: 1;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    background: var(--color-bg-alt);
}

.subscribe-form input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.blog-topics {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.blog-topics h3 {
    font-size: 1rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.topic-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.topic-tag {
    background: var(--color-bg-alt);
    color: var(--color-text);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--color-bg);
    border-radius: var(--radius-xl);
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    background: var(--color-bg-alt);
    object-fit: cover;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.blog-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.blog-read-more {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-menu a.active {
    color: var(--color-primary);
}

@media (max-width: 480px) {
    .subscribe-form {
        flex-direction: column;
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-cta,
    .contact-form,
    .footer {
        display: none;
    }
    
    .section {
        padding: 2rem 0;
    }
}
