/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1D1D1F;
}

/* === CSS CUSTOM PROPERTIES === */
:root {
    /* Kolega Brand Colors */
    --color-lime-green: #ADDD30;
    --color-dark-lime: #9CC429;
    --color-bright-lime: #C4F03E;
    --color-purple: #7E22CE;
    --color-light-purple: #A076F9;
    --color-lavender: #9063CD;

    /* Text Colors */
    --color-dark-gray: #1D1D1F;
    --color-medium-gray: #6E6E73;
    --color-light-gray: #A1A1A6;

    /* Background Colors */
    --color-white: #FFFFFF;
    --color-light-bg: #F5F5F7;
    --color-black: #000000;

    /* UI Colors */
    --color-border-gray: #D2D2D7;
    --color-separator-gray: #E8E8ED;

    /* Typography */
    --font-serif: 'Inter', system-ui, sans-serif;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', Consolas, monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 700;
    color: #1D1D1F;
}

p, li, span, div {
    font-family: 'Inter', system-ui, sans-serif;
}

code, pre, kbd {
    font-family: 'JetBrains Mono', Consolas, monospace;
}

/* === SELECTION STYLING === */
::selection {
    background-color: #ADDD30;
    color: #1D1D1F;
}

::-moz-selection {
    background-color: #ADDD30;
    color: #1D1D1F;
}

/* === FOCUS STYLES === */
:focus-visible {
    outline: 2px solid #ADDD30;
    outline-offset: 2px;
}

/* === HEADER STYLES === */
#header {
    transition: all 0.3s ease;
}

#header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 64px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === ANIMATION CLASSES === */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* === BUTTON STYLES === */
button {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: inherit;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* === SCROLLBAR STYLING === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ADDD30;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9CC429;
}

/* === GRAYSCALE FILTER === */
.grayscale {
    filter: grayscale(100%);
}

.grayscale:hover {
    filter: grayscale(0%);
}

/* === MOBILE MENU === */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === CONTACT FORM MODAL === */
#contact-form-overlay {
    animation: fadeIn 0.3s ease-out;
}

#contact-form-overlay > div {
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* === FORM INPUTS === */
input:focus,
select:focus,
textarea:focus {
    border-color: #ADDD30 !important;
    ring-color: #ADDD30;
}

/* === RESPONSIVE DESIGN === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === SECTION SPACING === */
section {
    position: relative;
}

/* === CARD HOVER EFFECTS === */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* === SMOOTH TRANSITIONS === */
a,
button {
    transition: all 0.3s ease;
}

/* === NAVIGATION LINKS === */
nav a {
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #ADDD30;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* === LOADING STATE === */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* === UTILITY CLASSES === */
.text-gradient {
    background: linear-gradient(to right, #ADDD30, #7E22CE);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-glow {
    box-shadow: 0 0 20px rgba(173, 221, 48, 0.3);
}

.shadow-glow-purple {
    box-shadow: 0 0 20px rgba(126, 34, 206, 0.3);
}

/* === BACKDROP BLUR === */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* === IMAGE OPTIMIZATION === */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* === PREVENT LAYOUT SHIFT === */
img[width][height] {
    height: auto;
}

/* === ACCESSIBILITY === */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* === SPINNER ANIMATION === */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(173, 221, 48, 0.2);
    border-top-color: #ADDD30;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* === SUCCESS CHECKMARK ANIMATION === */
.success-checkmark svg {
    animation: scaleIn 0.5s ease-out;
}

.success-checkmark circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: strokeAnimation 0.6s ease-out forwards 0.2s;
}

.success-checkmark path {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: strokeAnimation 0.3s ease-out forwards 0.6s;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes strokeAnimation {
    to {
        stroke-dashoffset: 0;
    }
}

/* === ERROR BANNER ANIMATION === */
#error-banner:not(.hidden) {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* === SUCCESS STATE ANIMATION === */
#success-state:not(.hidden) {
    animation: fadeIn 0.5s ease-out;
}

/* === LOADING OVERLAY === */
#loading-overlay {
    backdrop-filter: blur(2px);
}

/* === FORM INPUT ERROR STATE === */
.input-error {
    border-color: #ef4444 !important;
    border-width: 2px;
}

.input-error:focus {
    ring-color: #ef4444 !important;
}

/* === BUTTON DISABLED STATE === */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* === PRINT STYLES === */
@media print {
    header,
    footer,
    #contact-form-overlay {
        display: none;
    }
}
