/* 
 * Modern Brutalist-Friendly Design System
 * Design Concept: Oversized typography with soft brutalist cards, animated gradients, and 3D tilt effects
 * This creates a contemporary feel that balances boldness with approachability
 */

/* CSS Variables */
:root {
    --primary-color: #0066ff;
    --primary-dark: #0052cc;
    --secondary-color: #ff3366;
    --accent-color: #00cc99;
    --neutral-100: #ffffff;
    --neutral-200: #f8fafc;
    --neutral-300: #e2e8f0;
    --neutral-400: #cbd5e1;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #00cc99 100%);
    --gradient-secondary: linear-gradient(135deg, #ff3366 0%, #ff6b9d 100%);
    --gradient-accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    
    --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);
    --shadow-brutal: 8px 8px 0px rgba(0, 0, 0, 0.1);
    
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-brutal: 1.5rem;
    
    --font-family-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-family-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.25s ease-out;
    --transition-slow: 0.35s ease-out;
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family-body);
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-100);
    overflow-x: hidden;
}

/* Typography Scale with Brutalist Oversized Elements */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 600;
    line-height: 1.4;
}

p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.7;
    color: var(--neutral-600);
}

/* Container & Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Button System with Brutalist Touch */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius-brutal);
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-brutal);
    transform: translateZ(0);
}

.btn:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--neutral-100);
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: var(--neutral-100);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 4px 4px 0px rgba(0, 102, 255, 0.2);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--neutral-100);
    box-shadow: 8px 8px 0px rgba(0, 102, 255, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--neutral-200);
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--neutral-700);
    font-weight: 500;
    transition: all var(--transition-base);
}

.nav-menu a:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--neutral-700);
    transition: all var(--transition-base);
}

/* Hero Section with Asymmetrical Layout */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23e2e8f0" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)" /></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 60vh;
}

.hero-title {
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--neutral-600);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    position: relative;
}

.hero-card {
    background: var(--neutral-100);
    border-radius: var(--border-radius-brutal);
    box-shadow: var(--shadow-brutal);
    padding: 2rem;
    transform: rotate(-2deg);
    transition: all var(--transition-slow);
}

.hero-card:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.1);
}

.hero-card img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-lg);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.section-header p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--neutral-100);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--neutral-100);
    padding: 2.5rem;
    border-radius: var(--border-radius-brutal);
    box-shadow: var(--shadow-brutal);
    transition: all var(--transition-base);
    border: 3px solid var(--neutral-200);
}

.service-card:hover {
    transform: translateY(-4px) rotate(1deg);
    box-shadow: 12px 12px 0px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.service-icon {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-100);
}

.service-icon svg {
    width: 2rem;
    height: 2rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

/* Work Section */
.work {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.work-item {
    background: var(--neutral-100);
    border-radius: var(--border-radius-brutal);
    overflow: hidden;
    box-shadow: var(--shadow-brutal);
    transition: all var(--transition-base);
}

.work-item:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.1);
}

.work-image {
    aspect-ratio: 16/10;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all var(--transition-slow);
}

.work-item:hover .work-image img {
    transform: scale(1.05);
}

.work-content {
    padding: 2rem;
}

.work-content h3 {
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

.work-content p {
    margin-bottom: 1.5rem;
}

.work-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.work-tags span {
    background: var(--gradient-primary);
    color: var(--neutral-100);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-md);
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--neutral-100);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.5rem;
    color: var(--neutral-800);
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-brutal);
    box-shadow: var(--shadow-brutal);
}

/* Process Section */
.process {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--neutral-100);
}

.process .section-header h2,
.process .section-header p {
    color: var(--neutral-100);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--border-radius-brutal);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
}

.process-step:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.1);
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.process-step h3 {
    margin-bottom: 1rem;
    color: var(--neutral-100);
}

.process-step p {
    color: var(--neutral-300);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--neutral-200);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
    color: var(--neutral-800);
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    display: grid;
    gap: 2rem;
}

.contact-detail h4 {
    margin-bottom: 0.75rem;
    color: var(--neutral-800);
}

/* Contact Form with Brutalist Touch */
.contact-form-container {
    background: var(--neutral-100);
    padding: 3rem;
    border-radius: var(--border-radius-brutal);
    box-shadow: var(--shadow-brutal);
    border: 3px solid var(--neutral-200);
}

.contact-form h3 {
    margin-bottom: 2rem;
    color: var(--neutral-800);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--neutral-700);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: all var(--transition-base);
    background: var(--neutral-100);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--neutral-900);
    color: var(--neutral-300);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--neutral-100);
    margin-bottom: 1.5rem;
}

.footer-contact p {
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: all var(--transition-base);
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: 2rem;
    text-align: center;
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* Cookie Banner - High Contrast Design */
.cookie-banner {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    max-width: 400px;
    background: var(--neutral-900);
    color: var(--neutral-100);
    border-radius: var(--border-radius-brutal);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--primary-color);
    z-index: 1000;
    transition: all var(--transition-base);
}

.cookie-banner.minimized {
    max-width: 60px;
    max-height: 60px;
    overflow: hidden;
}

.cookie-banner.hidden {
    display: none;
}

.cookie-content {
    padding: 2rem;
}

.cookie-banner.minimized .cookie-content {
    padding: 1rem;
    text-align: center;
}

.cookie-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.cookie-header h3 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--neutral-100);
}

.cookie-minimize {
    background: none;
    border: none;
    color: var(--neutral-100);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-md);
    transition: all var(--transition-base);
}

.cookie-minimize:hover {
    background: rgba(255, 255, 255, 0.1);
}

.cookie-banner.minimized .cookie-header h3,
.cookie-banner.minimized .cookie-actions,
.cookie-banner.minimized #cookieDescription {
    display: none;
}

.cookie-banner.minimized .cookie-minimize {
    transform: rotate(45deg);
}

#cookieDescription {
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--neutral-200);
}

.cookie-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cookie-actions .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    box-shadow: none;
    border-radius: var(--border-radius-md);
}

.cookie-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.cookie-details {
    margin-top: 1.5rem;
    border-top: 1px solid var(--neutral-700);
    padding-top: 1.5rem;
}

.cookie-details.hidden {
    display: none;
}

.cookie-option {
    margin-bottom: 1rem;
}

.cookie-option label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--neutral-200);
    cursor: pointer;
}

.cookie-option input[type="checkbox"] {
    accent-color: var(--primary-color);
}

.cookie-custom-actions {
    margin-top: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--neutral-100);
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .cookie-banner {
        left: 1rem;
        right: 1rem;
        max-width: none;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .work-grid {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 6rem 0 3rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .services,
    .work,
    .about,
    .process,
    .contact {
        padding: 4rem 0;
    }
    
    .cookie-content {
        padding: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat h3 {
        font-size: 2rem;
    }
}

/* Focus states for accessibility */
.btn:focus,
.nav-menu a:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Space section styling for index_space.html */
#space {
    min-height: 60vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 5rem 0;
    border-radius: var(--border-radius-brutal);
    border: 3px solid var(--neutral-300);
    box-shadow: var(--shadow-brutal);
}

/* Ensure all animations are smooth and performant */
* {
    backface-visibility: hidden;
    perspective: 1000px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --neutral-600: #000000;
        --neutral-700: #000000;
        --neutral-800: #000000;
    }
    
    .btn-outline {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}
