/* ==========================================================================
   CSS Variables & Theme Setup (Eyecandy & Dark Mode)
   ========================================================================== */
:root {
    /* Brand Colors derived from logo */
    --color-magenta: #C81D77;
    /* Vibrant Pink/Magenta bottom left */
    --color-purple: #673995;
    /* Deep Purple top right */

    /* Backgrounds */
    --bg-dark: #06050A;
    --bg-surface: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(10, 8, 15, 0.6);

    /* Text Colors */
    --text-main: #F3F4F6;
    --text-muted: #9CA3AF;

    /* Gradients */
    --gradient-main: linear-gradient(135deg, var(--color-magenta), var(--color-purple));
    --gradient-glow: linear-gradient(135deg, rgba(200, 29, 119, 0.5), rgba(103, 57, 149, 0.5));

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* UI Elements */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --border-radius-pill: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index */
    --z-nav: 1000;
    --z-modal: 2000;
}

/* ==========================================================================
   Global Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* Offset for fixed header */
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    /* Fallback */
    display: inline-block;
}

.section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.text-center {
    text-align: center;
}

.section-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-magenta);
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    margin: 1rem auto 3rem;
}

.section-flex {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.section-flex.reverse {
    flex-direction: row-reverse;
}

.section-content,
.section-visual {
    flex: 1;
}

.feature-list {
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: rgba(200, 29, 119, 0.1);
    color: var(--color-magenta);
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: bold;
}

/* ==========================================================================
   Glassmorphism & Common Components
   ========================================================================== */
.glass-border {
    position: relative;
    background: var(--bg-surface);
    border-radius: var(--border-radius-lg);
    padding: 1px;
    /* Creates border effect */
}

.glass-border::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: var(--border-radius-pill);
    cursor: pointer;
    border: none;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(200, 29, 119, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(200, 29, 119, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-nav);
    padding: 1.5rem 0;
    transition: padding var(--transition-normal), background var(--transition-normal);
}

.header.scrolled {
    padding: 1rem 0;
    background: rgba(6, 5, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 60px;
    /* Adjust according to logo aspect ratio */
    width: auto;
    transition: transform var(--transition-fast);
}

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

.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-main);
}

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.mobile-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    width: 400px;
    height: 400px;
    max-width: 80vw;
    max-height: 80vw;
    background: var(--color-magenta);
    top: -10%;
    left: -5%;
}

.shape-2 {
    width: 500px;
    height: 500px;
    max-width: 90vw;
    max-height: 90vw;
    background: var(--color-purple);
    bottom: -10%;
    right: -5%;
    animation-delay: -5s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-card {
    position: absolute;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: float-y 6s infinite ease-in-out;
}

.floating-card h3 {
    margin: 0;
    font-size: 1.1rem;
}

.card-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.05);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card-1 {
    top: 15%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 25%;
    right: 5%;
    animation-delay: -2s;
}

.card-3 {
    top: 25%;
    right: 15%;
    animation-delay: -4s;
}

.card-4 {
    bottom: 15%;
    left: 15%;
    animation-delay: -1s;
}

/* ==========================================================================
   Vision Section
   ========================================================================== */
.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vision-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.vision-text strong {
    color: var(--text-main);
    font-size: 1.4rem;
}

.vision-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-box {
    padding: 2.5rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Section Visuals (Placeholders)
   ========================================================================== */
.image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 250px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    /* Ensure it constrains absolutely positioned children like the sliders */
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: rgba(255, 255, 255, 0.02);
    transition: transform 0.5s ease;
}

.placeholder-img:hover {
    transform: scale(1.05);
}

/* Image Rotator/Carousel */
.image-rotator {
    position: relative;
    width: 100%;
    height: 100%;
}

.rotator-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.rotator-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity var(--transition-slow);
    z-index: 1;
}

.rotator-slide.active {
    opacity: 1;
    z-index: 2;
}

.rotator-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.8rem;
    z-index: 10;
    max-width: 90%;
    flex-wrap: wrap;
    justify-content: center;
}

.rotator-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.rotator-dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

.rotator-dot.active {
    background: var(--color-magenta);
    transform: scale(1.2);
    box-shadow: 0 0 10px var(--color-magenta);
}

/* Gradient accents for sections */
.futbol::before {
    content: '';
    position: absolute;
    top: 20%;
    right: 0;
    width: 300px;
    height: 300px;
    background: var(--color-purple);
    filter: blur(100px);
    opacity: 0.2;
    z-index: -1;
}

.ofis::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 0;
    width: 400px;
    max-width: 100%;
    height: 400px;
    background: var(--color-magenta);
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
}

.futbol-bg {
    background: linear-gradient(45deg, rgba(8, 8, 12, 1), rgba(103, 57, 149, 0.3));
}

.ofis-bg {
    background: linear-gradient(-45deg, rgba(8, 8, 12, 1), rgba(200, 29, 119, 0.3));
}

.reklam-bg {
    background: linear-gradient(135deg, rgba(8, 8, 12, 1), rgba(103, 57, 149, 0.2), rgba(200, 29, 119, 0.2));
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.1);
    }
}

@keyframes float-y {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Scroll Reveal Classes */
.reveal-up,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-up.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* ==========================================================================
   Responsive (Mobile First Overrides)
   ========================================================================== */
@media (max-width: 968px) {

    .section {
        padding: 3.6rem 0;
        /* 40% less than desktop 6rem */
    }

    .section-flex,
    .vision-grid {
        grid-template-columns: 1fr;
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .section-flex.reverse {
        flex-direction: column;
    }

    .feature-list li {
        justify-content: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 2.5rem;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-visual {
        height: 250px;
        /* Content appears before visual in HTML, so no order override needed */
    }

    .floating-card {
        padding: 1rem;
    }

    .floating-card h3 {
        font-size: 0.9rem;
    }

    .nav-cta {
        display: none;
        /* Hide button in header on clear tablet/mobile */
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(6, 5, 10, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right var(--transition-normal);
        border-left: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-link {
        font-size: 1.5rem;
    }

    /* Toggle Animation */
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }

    .btn-large {
        width: 100%;
    }

    /* Shrink floating cards background, increase text for mobile */
    .hero-visual {
        height: 210px;
        /* Cut in half */
    }

    .floating-card {
        padding: 0.2rem 0.4rem;
        gap: 0.4rem;
    }

    .floating-card h3 {
        font-size: 1.2rem;
        font-weight: 700;
        margin: 0;
    }

    .card-icon {
        width: 30px;
        height: 30px;
        font-size: 1.4rem;
    }

    .card-1 {
        top: 5%;
        left: 0%;
        bottom: auto;
        right: auto;
    }

    .card-2 {
        top: 15%;
        right: 0%;
        bottom: auto;
        left: auto;
    }

    .card-3 {
        bottom: 20%;
        left: 0%;
        top: auto;
        right: auto;
    }

    .card-4 {
        bottom: 5%;
        right: 0%;
        top: auto;
        left: auto;
    }

    .vision-stats {
        grid-template-columns: 1fr;
    }

    /* Convert horizontal reveals to vertical on mobile to prevent overflow bugs */
    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-card {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 0;
    overflow: hidden;
}

.contact-info {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(200, 29, 119, 0.1), rgba(103, 57, 149, 0.1));
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item .icon {
    font-size: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.contact-item strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-main);
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
}

.contact-form {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.2rem;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group label {
    position: absolute;
    left: 1.2rem;
    top: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: all var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-magenta);
    background: rgba(0, 0, 0, 0.4);
}

/* Float label effect */
.form-group input:focus~label,
.form-group textarea:focus~label,
.form-group input:not(:placeholder-shown)~label,
.form-group textarea:not(:placeholder-shown)~label {
    top: -0.5rem;
    left: 0.8rem;
    font-size: 0.8rem;
    background: var(--bg-dark);
    /* Solid background to hide input border behind text */
    padding: 0 0.4rem;
    color: var(--color-magenta);
}

.form-group select {
    appearance: none;
    cursor: pointer;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
    font-size: 1.1rem;
}

.submit-btn span {
    margin-left: 0.5rem;
    transition: transform var(--transition-fast);
}

.submit-btn:hover span {
    transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #030205;
    padding: 5rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 1.5rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 300px;
}

.footer h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    text-align: right;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-end;
}

.footer-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-magenta);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    transition: all var(--transition-normal);
    font-weight: bold;
}

.social-icon:hover {
    background: var(--gradient-main);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Updates for Contact & Footer
   ========================================================================== */
@media (max-width: 968px) {
    .contact-card {
        grid-template-columns: 1fr;
    }

    .contact-info {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        padding: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links {
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .social-icons {
        justify-content: center;
    }
}

/* ====== CAROUSEL FLEX ALIGNMENT ====== */
.rotator-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}