/* 
 * Luckys INC - Premium Corporate Light Theme
 * Professional, Trustworthy, Modern
 */

:root {
    /* Colors - Premium Light Strategy */
    --color-bg: #ffffff;
    /* Pure White */
    --color-bg-alt: #f8fafc;
    /* Slate 50 (Very Light Gray) */
    --color-bg-subtle: #f1f5f9;
    /* Slate 100 */

    --color-text: #0f172a;
    /* Slate 900 (Deep Navy/Black) */
    --color-text-muted: #64748b;
    /* Slate 500 */
    --color-text-light: #94a3b8;
    /* Slate 400 */

    --color-primary: #0f172a;
    /* Corporate Navy (Luckys INC Brand) */
    --color-accent: #d4af37;
    /* Metallic Gold (for borders/highlights) */

    /* Subsidiary Brands (Refined for Light Theme) */
    --color-tech: #0369a1;
    /* Sky 700 (LuckysCloud) */
    --color-digital: #7c3aed;
    /* Violet 600 (Cloud Plixels) */
    --color-food: #ea580c;
    /* Orange 600 (Mithra Sri Foods) */

    --color-border: #e2e8f0;
    /* Slate 200 */
    --color-white: #ffffff;

    /* Shadows - Soft & Diffused */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-family-base: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;

    /* Animation */
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-base);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

/* Background Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    /* Slight fade for subtle effect */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-family-heading);
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

ul {
    list-style: none;
}

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

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
    position: relative;
    z-index: 1;
}

.section {
    padding: var(--spacing-lg) 0;
    position: relative;
}

.section-sm {
    padding: var(--spacing-md) 0;
}

.section-bg-alt {
    background-color: var(--color-bg-alt);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

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

.text-primary {
    color: var(--color-primary);
}

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

.mb-4 {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 600;
    border-radius: 2rem;
    /* Pill shape */
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: #1e293b;
    /* Slightly lighter navy */
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Header */
/* Header - Dark Theme */
.header {
    background: rgba(15, 23, 42, 0.95);
    /* Slate 900 with opacity */
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1.25rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    /* Removed text styles */
}

.logo img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: #94a3b8;
    /* Slate 400 */
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff;
    /* White */
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ffffff;
}

/* Hero Section - Clean & Airy */
/* Hero Section - Clean & Airy & 3D */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 0.8) 100%);
    perspective: 1000px;
    /* Enables 3D space */
    position: relative;
    z-index: 2;
    /* Content above WebGL */
}

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

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    line-height: 1.05;
}

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

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Cards - Premium Style */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-accent);
    /* Gold border on hover */
}

/* Identity Accents */
.card[style*="--color-primary"] .card-icon {
    color: var(--color-tech);
}

/* LuckysCloud */
.card[style*="--color-tertiary"] .card-icon {
    color: var(--color-digital);
}

/* Cloud Plixels */
.card[style*="--color-secondary"] .card-icon {
    color: var(--color-food);
}

/* Mithra Sri Foods */

.card-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--color-bg-subtle);
    border-radius: 50%;
    width: 5rem;
    height: 5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.card:hover .card-icon {
    background: var(--color-primary);
    color: white !important;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

/* Footer - Grounding Dark */
/* Footer - Premium Dark */
.footer {
    background-color: #0f172a;
    /* Slate 900 - Matches Header Base */
    color: #cbd5e1;
    /* Slate 300 - Softer text */
    padding: 6rem 0 3rem;
    margin-top: 5rem;
    font-size: 0.95rem;
    border-top: 1px solid #1e293b;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    /* 4 Columns: Brand, Links, Services, Contact/Social */
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer h4 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.footer p {
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.75rem;
}

.footer a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer a:hover {
    color: #d4af37;
    /* Gold Accent */
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    /* Slate 800 */
    padding-top: 2rem;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: #cbd5e1;
    font-size: 1.25rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #d4af37;
    transform: translateY(-3px);
}

/* Responsive Design */

/* Tablet & Smaller Laptops (1024px and down) */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 4rem;
        --spacing-xl: 6rem;
    }

    .hero h1 {
        font-size: 3.5rem;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Devices (768px and down) */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

    /* Navigation */
    .mobile-toggle {
        display: block;
        padding: 0.5rem;
        /* Larger touch target */
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        /* Matches header height */
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        padding: 3rem 1.5rem;
        gap: 2rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-link {
        font-size: 1.25rem;
    }

    /* Hero */
    .hero {
        padding-top: 5rem;
        padding-bottom: 4rem;
        background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0) 0%, rgba(248, 250, 252, 1) 80%);
    }

    .hero h1 {
        font-size: 2.75rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        padding: 0 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Cards */
    .card {
        padding: 2rem 1.5rem;
    }

    .card-icon {
        width: 4rem;
        height: 4rem;
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .card h3 {
        font-size: 1.25rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 0 2rem;
        text-align: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        /* Stack vertically */
        gap: 2.5rem;
        text-align: center;
    }

    .footer h4 {
        justify-content: center;
    }
}

/* Small Phones (480px and down) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Ensure cards don't overflow */
    .card-grid {
        grid-template-columns: 1fr;
    }
}