/* ============================================
   BASE STYLES - Digital Motion Website
   ============================================
   Αρχείο: base.css
   Περιγραφή: Βασικά στυλ, reset, typography, CSS variables
   Αφορά: Όλες τις σελίδες του website
   ============================================ */

/* --------------------------------------------
   CSS CUSTOM PROPERTIES (Variables)
   Κεντρικές μεταβλητές για χρώματα, fonts, spacing
   -------------------------------------------- */
:root {
    /* Χρωματική παλέτα */
    --color-primary: #667eea;
    --color-secondary: #764ba2;
    --color-accent: #f093fb;
    --color-bg: #000;
    --color-bg-dark: #0a0a0a;
    --color-text: #fff;
    --color-text-muted: rgba(255, 255, 255, 0.6);
    --color-text-light: rgba(255, 255, 255, 0.8);
    --color-border: rgba(255, 255, 255, 0.1);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    --gradient-full: linear-gradient(135deg, var(--color-primary), var(--color-secondary), var(--color-accent));
    --gradient-animated: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #667eea 75%, #764ba2 100%);

    /* Typography */
    --font-primary: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing - Βασισμένο σε 0.5rem (8px) grid */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 8rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Container widths */
    --container-max: 87.5rem;
    --container-narrow: 62.5rem;
}

/* --------------------------------------------
   GOOGLE FONTS IMPORT
   Space Grotesk - Modern geometric sans-serif
   -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------
   CSS RESET
   Επαναφορά προεπιλεγμένων browser styles
   -------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --------------------------------------------
   HTML & BODY BASE STYLES
   Βασικές ρυθμίσεις για ολόκληρη τη σελίδα
   -------------------------------------------- */
html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base for rem calculations */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

html,
body {
    width: 100%;
    font-family: var(--font-primary);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none; /* Custom cursor on desktop */
}

/* --------------------------------------------
   ACCESSIBILITY
   Visually hidden για screen readers
   -------------------------------------------- */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles για keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* --------------------------------------------
   UTILITY CLASSES - GRADIENT TEXT
   Κλάσεις για gradient text effects
   -------------------------------------------- */

/* Static gradient text */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-primary); /* Fallback */
}

/* Animated gradient text - Κινούμενο gradient */
.gradient-text-animated {
    background: var(--gradient-animated);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-primary); /* Fallback */
    -webkit-animation: gradient-shift 4s ease infinite;
    animation: gradient-shift 4s ease infinite;
}

/* Full gradient text - Τρία χρώματα */
.gradient-text-full {
    background: var(--gradient-full);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--color-primary); /* Fallback */
}

/* Gradient animation keyframes */
@-webkit-keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --------------------------------------------
   LAYOUT CONTAINERS
   Containers για περιεχόμενο σελίδων
   -------------------------------------------- */

/* Main container - Max width με padding */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-xl);
    width: 100%;
}

/* Wrapper - Ευρύτερο container */
.wrapper {
    max-width: 97.5rem;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* --------------------------------------------
   CONTENT SECTIONS
   Βασικά styles για sections
   -------------------------------------------- */
.content-section {
    position: relative;
    padding: var(--space-2xl) 0;
    min-height: 100vh;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Section header με τίτλο και περιγραφή */
.section-header {
    margin-bottom: var(--space-xl);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: var(--space-lg);
}

/* Section title - Μεγάλος τίτλος */
.section-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.02em;
}

/* Section description - Υπότιτλος */
.section-desc {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 37.5rem;
}

/* --------------------------------------------
   ANIMATIONS
   Keyframes για animations
   -------------------------------------------- */

/* Fade in με slide up */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(1.25rem);
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(1.25rem);
        transform: translateY(1.25rem);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* Bounce animation για scroll indicator */
@-webkit-keyframes bounce {
    0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(0.625rem);
        transform: translateY(0.625rem);
    }
}

@keyframes bounce {
    0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(0.625rem);
        transform: translateY(0.625rem);
    }
}

/* --------------------------------------------
   RESPONSIVE - TABLET (max 968px)
   -------------------------------------------- */
@media (max-width: 60.5rem) {
    .container {
        padding: 0 var(--space-lg);
    }

    .content-section {
        padding: var(--space-xl) 0;
    }

    .section-header {
        margin-bottom: var(--space-lg);
    }
}

/* --------------------------------------------
   RESPONSIVE - MOBILE (max 768px)
   -------------------------------------------- */
@media (max-width: 48rem) {
    html {
        /* Prevent text size adjustment on orientation change */
        -webkit-text-size-adjust: 100%;
    }

    body {
        cursor: default; /* Κανονικός cursor σε mobile */
        /* Prevent pull-to-refresh */
        overscroll-behavior-y: contain;
        line-height: 1.5;
    }

    .container {
        padding: 0 1.25rem;
    }

    .wrapper {
        padding: 0 1rem;
    }

    .content-section {
        padding: 3rem 0;
        min-height: auto;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }

    .section-header {
        margin-bottom: 1.5rem;
        gap: 1rem;
    }

    .section-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }

    .section-desc {
        font-size: 1rem;
        max-width: 100%;
    }

    /* Reduce animation intensity on mobile for performance */
    .gradient-text-animated {
        -webkit-animation-duration: 6s;
        animation-duration: 6s;
    }
}

/* --------------------------------------------
   RESPONSIVE - SMALL MOBILE (max 480px)
   -------------------------------------------- */
@media (max-width: 30rem) {
    body {
        line-height: 1.5;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .wrapper {
        padding: 0 0.75rem;
    }

    .content-section {
        padding: var(--space-lg) 0;
    }

    .section-header {
        margin-bottom: 1.25rem;
        gap: 0.75rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        letter-spacing: 0.01em;
    }

    .section-desc {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Slower animation on small screens for battery savings */
    .gradient-text-animated {
        -webkit-animation-duration: 8s;
        animation-duration: 8s;
    }
}
