/* Custom CSS for Ikona Labb */

/* Tailwind Configuration */
@tailwind base;
@tailwind components;
@tailwind utilities;

/* Custom Font Classes */
.font-outfit {
    font-family: 'Outfit', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Logo Styles */
.logo {
    height: 6rem;
    width: auto;
    transition: all 0.3s ease;
}

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

.logo-footer {
    height: 6rem;
    width: auto;
    filter: brightness(0) invert(1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Color Variables */
:root {
    --color-white: #fdfdfd;
    --color-cream: #fdfbec;
    --color-black: #121214;
    --color-coral: #f4564a;
    --color-gold: #e3c979;
    --color-blue: #92b4bd;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--color-black);
    background-color: var(--color-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--color-coral);
    color: white;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--color-gold);
    color: var(--color-black);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-coral);
    padding: 1rem 2rem;
    font-weight: 600;
    border: 2px solid var(--color-coral);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-secondary:hover {
    background-color: var(--color-coral);
    color: white;
    transform: translateY(-2px);
}

/* Card Styles */
.card {
    background-color: white;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* Service Card Specific Styles */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-coral), var(--color-gold), var(--color-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-cream);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(244, 86, 74, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-cream);
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
    resize: vertical;
    min-height: 120px;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-coral);
    box-shadow: 0 0 0 3px rgba(244, 86, 74, 0.1);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-coral);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-gradient {
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-cream) 100%);
}

/* Geometric Elements */
.geometric-element {
    position: relative;
}

.geometric-element::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--color-coral);
    border-radius: 50%;
    opacity: 0.3;
}

.geometric-element::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -10px;
    width: 15px;
    height: 15px;
    background-color: var(--color-gold);
    border-radius: 50%;
    opacity: 0.3;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Mobile Menu Styles */
.mobile-menu {
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .card {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        color: black !important;
        background: white !important;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
textarea:focus,
a:focus {
    outline: 2px solid var(--color-coral);
    outline-offset: 2px;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .card {
        border: 2px solid var(--color-black);
    }
    
    .btn-primary {
        border: 2px solid var(--color-black);
    }
}

/* Russian Constructivism Inspired Design Elements */
.constructivist-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.9;
}

.constructivist-accent {
    position: relative;
}

.constructivist-accent::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--color-coral);
    border-radius: 50%;
    z-index: -1;
}

.constructivist-accent::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 15px;
    height: 15px;
    background-color: var(--color-gold);
    border-radius: 50%;
    z-index: -1;
}

/* Geometric Elements */
.geometric-line {
    position: relative;
}

.geometric-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -20px;
    width: 40px;
    height: 2px;
    background-color: var(--color-coral);
    transform: translateY(-50%);
}

.geometric-block {
    position: relative;
    overflow: hidden;
}

.geometric-block::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--color-coral), var(--color-gold));
    clip-path: polygon(0 0, 100% 0, 100% 100%);
}

/* Large Typography Styles */
.mega-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 8vw, 8rem);
    line-height: 0.8;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

/* Constructivist Grid */
.constructivist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
}

.constructivist-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, transparent 98%, var(--color-coral) 100%),
        linear-gradient(0deg, transparent 98%, var(--color-coral) 100%);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

/* Modern Constructivist Cards */
.constructivist-card {
    background: white;
    border: 2px solid var(--color-black);
    position: relative;
    transition: all 0.3s ease;
}

.constructivist-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 10px 10px 0 var(--color-coral);
}

.constructivist-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--color-coral), var(--color-gold), var(--color-blue));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.constructivist-card:hover::before {
    opacity: 1;
}

/* Typography Scale */
.text-scale-1 { font-size: clamp(1.5rem, 4vw, 3rem); }
.text-scale-2 { font-size: clamp(1.25rem, 3vw, 2rem); }
.text-scale-3 { font-size: clamp(1rem, 2.5vw, 1.5rem); }

/* Breathing Room */
.breathing-room {
    padding: clamp(2rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem);
}

/* Constructivist Button */
.btn-constructivist {
    background: var(--color-black);
    color: white;
    padding: 1rem 2rem;
    border: 2px solid var(--color-black);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-constructivist::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-coral);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-constructivist:hover::before {
    left: 0;
}

.btn-constructivist:hover {
    color: white;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 var(--color-gold);
}
