/* Tactile Neo-Pop "Swirlzy" Design System */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&display=swap');

:root {
    /* Color Palette - Tech-Organic */
    --bg-body: #FFFBF6;
    /* Warm organic white */
    --bg-surface: #FFFFFF;

    --text-main: #2D2A32;
    /* Soft charcoal */
    --text-muted: #646470;

    /* Branding Colors */
    --color-intelligence: #4F46E5;
    /* Electric Indigo */
    --color-clarity: #06B6D4;
    /* Cyan */
    --color-energy: #F97316;
    /* Vibrant Orange */
    --color-human: #EC4899;
    /* Approachable Pink */
    --color-ground: #78350F;
    /* Deep Earth/Wood for grounding */

    /* Shadows & Tactility */
    --shadow-depth: 0 10px 40px -10px rgba(79, 70, 229, 0.1);
    --shadow-tactile: 0 6px 0 rgba(0, 0, 0, 0.08);
    /* The "Button" feel */
    --shadow-button: 0 5px 0 #3730A3, 0 12px 20px rgba(79, 70, 229, 0.3);
    --shadow-float: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Typography */
    --font-main: 'Nunito', sans-serif;

    /* Dimensions */
    --radius-card: 48px;
    /* Hyper-rounded */
    --radius-btn: 16px;
    --radius-pill: 100px;

    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
}

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

body {
    background-color: var(--bg-body);
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* Subtle noise texture */
    background-image: radial-gradient(#4F46E5 0.5px, transparent 0.5px), radial-gradient(#4F46E5 0.5px, var(--bg-body) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    background-blend-mode: multiply;
    opacity: 0.98;
    /* Softens the pattern */
}

/* Typography - The "Button" Aesthetic */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    margin-bottom: var(--spacing-sm);
}

h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    font-weight: 500;
    max-width: 60ch;
    margin-bottom: 1.5rem;
}

.mono {
    font-family: var(--font-main);
    /* Override mono with heavy sans for this style? Or keep mono? Request says "Heavy Rounded Sans" for tabs/headers. */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    color: var(--color-intelligence);
    background: rgba(79, 70, 229, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 1rem;
}

/* Navigation - Tactile Tabs */
.navbar {
    position: fixed;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    z-index: 1000;
    background: var(--bg-surface);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06), 0 2px 0 rgba(0, 0, 0, 0.05);
    /* Floating island */
    border: 2px solid white;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    /* Override container padding */
    width: 100%;
}

.nav-brand a {
    font-size: 1.4rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--color-intelligence);
    padding-left: 1rem;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    list-style: none;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-pill);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.95rem;
}

.nav-menu a:hover {
    background: rgba(79, 70, 229, 0.05);
    color: var(--color-intelligence);
}

.nav-menu a.active {
    background: var(--color-intelligence);
    color: white;
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

/* Hero Section */
.hero {
    min-height: 90vh;
    padding-top: 150px;
    /* Space for nav */
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-short {
    min-height: 60vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--spacing-lg);
    align-items: center;
}

/* Floating Elements / Images */
.hero-image-wrapper {
    position: relative;
    border-radius: 50% 50% 40% 40%;
    /* Organic shape */
    background: var(--color-clarity);
    /* Fallback */
    padding: 0;
    box-shadow: var(--shadow-float);
    transform: rotate(2deg);
    /* Playful tilt */
    z-index: 1;
    transition: transform 0.5s ease;
    border: 8px solid white;
}

.hero-image-wrapper:hover {
    transform: rotate(0deg) scale(1.02);
}

.hero-image {
    width: 100%;
    border-radius: inherit;
    display: block;
}

.hero-image-container {
    position: relative;
}

.hero-image-badge {
    position: absolute;
    bottom: -30px;
    left: -40px;
    width: 48%;
    border-radius: var(--radius-card);
    background: var(--color-human);
    box-shadow: var(--shadow-float);
    transform: rotate(-3deg);
    border: 6px solid white;
    z-index: 2;
    transition: transform 0.5s ease;
    overflow: hidden;
}

.hero-image-badge:hover {
    transform: rotate(0deg) scale(1.05);
}

.hero-image-wrapper::after {
    /* Decorative element "floating" behind */
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: var(--color-energy);
    border-radius: 50%;
    z-index: -1;
}

/* Buttons - High Tactility */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 3rem;
    background: var(--color-intelligence);
    color: white;
    font-weight: 800;
    text-decoration: none;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-button);
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.btn:hover {
    transform: translateY(2px);
    box-shadow: 0 3px 0 #3730A3, 0 8px 15px rgba(79, 70, 229, 0.2);
}

.btn:active {
    transform: translateY(5px);
    box-shadow: 0 0 0 #3730A3, inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Core Cards - Islands */
.core-areas-grid,
.grid {
    display: grid;
    gap: 2rem;
}

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

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.core-area-card,
.project-card,
.blog-item {
    background: var(--bg-surface);
    border-radius: var(--radius-card);
    padding: 3rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy */
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
}

/* Specific Card Styling for "Islands of Color" */
.core-area-card:nth-child(1) {
    border-top: 8px solid var(--color-intelligence);
}

.core-area-card:nth-child(2) {
    border-top: 8px solid var(--color-clarity);
}

.core-area-card:nth-child(3) {
    border-top: 8px solid var(--color-energy);
}

.core-area-card:nth-child(4) {
    border-top: 8px solid var(--color-human);
}

.core-area-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-float);
}

.core-area-card h3 {
    margin-bottom: 1rem;
    font-size: 1.6rem;
}

/* Project Cards */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    /* For image */
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-visual {
    background: #E0E7FF;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--color-intelligence);
    font-size: 2rem;
}

.project-info {
    padding: 2.5rem;
}

/* Search Bar */
.search-container {
    margin: 2rem 0 3rem;
    position: relative;
    max-width: 600px;
}

.search-input {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.2rem;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-main);
    border: 3px solid #E2E8F0;
    border-radius: var(--radius-pill);
    background: white;
    transition: all 0.2s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
    outline: none;
    border-color: var(--color-intelligence);
    box-shadow: 0 0 0 5px rgba(79, 70, 229, 0.1);
}

/* Contact Form */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
}

.contact-form {
    background: white;
    padding: 3.5rem;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}

.contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 3px solid #E2E8F0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s;
    background: #F8FAFC;
    margin-bottom: 1.5rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-energy);
    background: white;
    box-shadow: 0 4px 10px rgba(249, 115, 22, 0.1);
}

/* Feature Lists */
.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 600;
    color: var(--text-muted);
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-clarity);
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        border: none;
        border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    }

    .nav-toggle {
        display: block;
        /* Ensure toggle is shown if JS expects it, though not fully styled here */
        background: none;
        border: none;
        font-size: 1.5rem;
        cursor: pointer;
    }

    .nav-menu {
        display: none;
        /* Needs JS toggle implementation or CSS hover */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        display: flex;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-image-wrapper {
        margin: 0 auto 2rem;
        max-width: 300px;
    }

    h1 {
        font-size: 2.8rem;
    }
}

/* Nav Toggle Icon Styles (Added for completeness if not present) */
.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-main);
    margin: 5px 0;
    border-radius: 3px;
}
/* Update Blog List for cleaner list view */
.blog-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.blog-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    background: var(--bg-surface);
    border-radius: 24px; /* Smaller radius for list items */
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(0,0,0,0.02);
}

.blog-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
    background: white;
}

.blog-item h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

.blog-item .date {
    font-size: 0.9rem;
    color: var(--color-intelligence);
    font-weight: 800;
    white-space: nowrap;
    margin-left: 2rem;
    background: rgba(79, 70, 229, 0.08); /* Soft pill background for date */
    padding: 0.4rem 1rem;
    border-radius: 20px;
}

/* Sort Buttons */
.btn-sort {
    background: transparent;
    border: 2px solid #E2E8F0;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-family: var(--font-main);
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.btn-sort:hover {
    border-color: var(--color-intelligence);
    color: var(--color-intelligence);
}

.btn-sort.active {
    background: var(--color-intelligence);
    color: white;
    border-color: var(--color-intelligence);
    box-shadow: 0 4px 10px rgba(79, 70, 229, 0.2);
}
