/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[11].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;600;800&family=Inter:wght@400;500;700&family=Fira+Code&display=swap');

:root {
    --lego-red: #E3000B;
    --lego-yellow: #FFCF00;
    --lego-blue: #0055BF;
    --lego-green: #237841;
    --lego-black: #111111;
    --lego-white: #FFFFFF;
    --lego-grey: #9BA1A6;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --font-heading: 'Kanit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: #e5e5e5;
    background-color: var(--dark-bg);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-gray-900 { background-color: var(--dark-bg); }
.bg-black { background-color: #000; }
.bg-darker { background-color: #050505; }
.text-white { color: #fff; }
.text-lego-red { color: var(--lego-red); text-shadow: 0 0 20px rgba(227, 0, 11, 0.4); }
.text-lego-yellow { color: var(--lego-yellow); }

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    font-weight: 800;
    line-height: 1.1;
}

h1 { font-size: 4rem; margin-bottom: 1.5rem; letter-spacing: -1px; }
h2 { font-size: 3rem; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
p { font-size: 1.1rem; color: #9ca3af; max-width: 60ch; }

.brick-text {
    font-family: var(--font-heading);
    background: var(--lego-red);
    color: white;
    padding: 0px 6px;
    display: inline-block;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* Navigation */
.navbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 2rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--lego-yellow); }

.btn-nav {
    background: var(--lego-yellow);
    color: var(--lego-black) !important;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    -webkit-clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
            clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: transform 0.3s ease !important;
}
.btn-nav:hover { transform: translateY(-3px); }

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    transform: scale(1.1);
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0,85,191,0.2), transparent 40%),
                linear-gradient(90deg, #0a0a0a 0%, rgba(10,10,10,0.8) 50%, rgba(10,10,10,0.2) 100%);
    z-index: -1;
}

.hero-content {
    padding-top: 4rem;
}

.badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}
.btn-primary {
    background: var(--lego-red);
    color: white;
    border: none;
    box-shadow: 0 4px 0 #9f131f; /* 3D bottom edge */
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 0 0 #9f131f; }
.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 0 #9f131f, 0 15px 20px rgba(0,0,0,0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover { border-color: white; background: rgba(255,255,255,0.1); }

/* Features (Cards) */
.features { background: #111111; color: white; z-index: 10; position: relative; }
.features::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, #222 1px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 0.3;
    pointer-events: none;
}
.features h2 { color: white; text-shadow: 0 0 20px rgba(255,255,255,0.2); }
.features p { color: #9ca3af; }

.grid { display: grid; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.gap-8 { gap: 2rem; }
.mt-16 { margin-top: 4rem; }
.py-24 { padding-top: 8rem; padding-bottom: 8rem; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* The Lego Card Style - DARK MODE */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.05);
}

.card:hover { 
    transform: translateY(-15px) scale(1.02); 
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border-color: rgba(255,255,255,0.1);
}

/* Add studs to top of card */
.card-studs {
    height: 30px;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding: 0 10%;
    position: relative;
}
.card-studs span {
    width: 18px;
    height: 10px;
    border-radius: 4px 4px 0 0;
    background: rgba(0,0,0,0.2);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.2);
}

/* Card variants with NEON GLOW */
.card-red { border-top: 4px solid var(--lego-red); }
.card-red .card-studs { background: var(--lego-red); box-shadow: 0 5px 20px rgba(227, 0, 11, 0.4); }
.card-red .card-studs span { background: #9f131f; }
.card-red:hover { box-shadow: 0 30px 60px rgba(227, 0, 11, 0.15); }

.card-blue { border-top: 4px solid var(--lego-blue); }
.card-blue .card-studs { background: var(--lego-blue); box-shadow: 0 5px 20px rgba(0, 85, 191, 0.4); }
.card-blue .card-studs span { background: #003e8c; }
.card-blue:hover { box-shadow: 0 30px 60px rgba(0, 85, 191, 0.15); }

.card-yellow { border-top: 4px solid var(--lego-yellow); }
.card-yellow .card-studs { background: var(--lego-yellow); box-shadow: 0 5px 20px rgba(255, 207, 0, 0.4); }
.card-yellow .card-studs span { background: #d4ac00; }
.card-yellow:hover { box-shadow: 0 30px 60px rgba(255, 207, 0, 0.15); }

.card-content { padding: 2rem; display: flex; flex-direction: column; height: 100%; color: #eee; }
.card-content h3 { color: white; margin-bottom: 0.5rem; letter-spacing: 0.5px; }
.card-content p { color: #aaa; font-size: 0.95rem; }

.card-image-wrapper { 
    width: 100%; 
    height: 240px; 
    overflow: hidden; 
    border-radius: 8px; 
    margin: 1.5rem 0;
    background: #000;
    position: relative;
}
.card-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0.6;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.card:hover img { transform: scale(1.15); }

.btn-text {
    margin-top: auto;
    color: white;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
}
.btn-text:hover { gap: 1rem; color: var(--lego-yellow); }

/* API Section */
.flex-split { display: flex; align-items: center; gap: 4rem; }
.content-side { flex: 1 1; }
.api-console {
    background: rgba(10,10,10,0.95);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.1);
    margin-top: 3rem;
    overflow: hidden;
    font-family: 'Fira Code', monospace;
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
}
.console-header {
    background: #252526;
    padding: 0.8rem 1.2rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.console-body { padding: 2rem; color: #d4d4d4; }
.comment { color: #6a9955; margin-bottom: 0.5rem; }
.keyword { color: #c586c0; }
.function { color: #dcdcaa; }
.code-line { margin-bottom: 1.5rem; font-size: 1.1rem; }

.btn-code {
    background: #0e639c;
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}
.btn-code:hover { background: #1177bb; }

.response-area {
    margin-top: 1rem;
    color: #ce9178;
    background: #2d2d2d;
    padding: 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    min-height: 3rem;
    border-left: 3px solid #0e639c;
}

/* Lego Studs Decoration */
.studs-decoration {
    position: absolute;
    left: 0;
    width: 100%;
    height: 20px;
    background-image: radial-gradient(circle at center, rgba(0,0,0,0.2) 2px, transparent 3px);
    background-size: 20px 20px;
    opacity: 0.5;
}
.studs-decoration.bottom { bottom: 0; }
.studs-decoration.top { top: 0; }

/* Responsive */
@media (max-width: 900px) {
    .grid-cols-3 { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .flex-split { flex-direction: column; }
}
