/* ==========================================
   AICAR Engine - Portfolite Redesign
   ========================================== */

/* Font Import - Using Inter as a close alternative to Satoshi */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Colors */
    --color-bg: #000000;
    --color-text: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.5);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-accent: #00D4FF;
    /* Retaining the brand blue but unused in main bg */
    --color-card-bg: #0A0A0A;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-lg: 20px;
    --text-xl: 32px;
    --text-2xl: 64px;
    --text-hero: clamp(60px, 8vw, 120px);

    /* Animation */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.2;
}

img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

/* Navigation - Floating Glass */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 24px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 32px;
    width: auto;
    transition: all 0.3s ease;
}

.logo {
    font-weight: 600;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    font-size: 14px;
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

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

.nav-cta {
    background: #FFFFFF;
    color: #000000 !important;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 500;
}

.nav-cta:hover {
    background: #E0E0E0;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: 400;
    /* Regular weight for that chic look */
    letter-spacing: -0.04em;
    line-height: 0.95;
    margin-bottom: 40px;
    max-width: 900px;
}

.hero-title span {
    color: var(--color-text-muted);
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 500px;
    line-height: 1.5;
    margin-bottom: 80px;
}

/* Featured Image in Hero */
.hero-visual {
    width: 100%;
    height: 60vh;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--color-border);
}

.hero-visual img {
    height: 100%;
    /* The core effect: grayscale by default */
    filter: grayscale(100%) opacity(0.8);
    transform: scale(1.01);
    transition: all 0.8s var(--ease-out-expo);
}

.hero-visual:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.06);
}

/* Grid Layout for Products/Gallery */
.gallery-section {
    padding: 120px 0;
}

.section-header {
    margin-bottom: 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-title {
    font-size: var(--text-2xl);
    font-weight: 400;
    letter-spacing: -0.03em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.grid-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    border: 1px solid var(--color-border);
    cursor: pointer;
    background: var(--color-card-bg);
}

.grid-item img {
    height: 100%;
    width: 100%;
    filter: grayscale(100%) opacity(0.7);
    transition: all 0.6s var(--ease-out-expo);
}

/* The "Other items dim" effect will be handled by JS or CSS sibling selectors usually,
   but pure CSS :hover on parent is easiest */
.grid:hover .grid-item:not(:hover) img {
    opacity: 0.3;
    filter: grayscale(100%) blur(2px);
}

.grid-item:hover img {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

/* Floating Label on Hover */
.item-overlay {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: all 0.4s var(--ease-out-expo);
    pointer-events: none;
}

.grid-item:hover .item-overlay {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.item-title {
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* Stats Section */
.stats-section {
    padding: 100px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 8px;
    background: linear-gradient(to bottom, #fff, #666);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Contact/Footer styling */
.footer {
    padding: 120px 0 40px;
    text-align: center;
}

.footer-title {
    font-size: var(--text-hero);
    font-weight: 400;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
    color: var(--color-text);
}

.footer-btn {
    display: inline-block;
    font-size: 24px;
    padding: 20px 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    margin-bottom: 80px;
    transition: all 0.3s ease;
}

.footer-btn:hover {
    background: white;
    color: black;
    border-color: white;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    font-size: 14px;
    color: var(--color-text-muted);
}