/* 
*   Dominicall EBD - Modern CSS 
*   Author: Lucas Roberto (Refactored)
*/

/* --- Variables & Theme Options --- */
:root {
    /* Colors - Dark Modern Theme */
    --bg-main: #06090f;
    --bg-secondary: #0d1117;
    --bg-accent: #161b22;
    --bg-card: rgba(22, 27, 34, 0.7);
    --text-main: #e6edf3;
    --text-muted: #8b949e;

    /* Primary Gradient Colors */
    --primary-light: #f3f4f6;
    --primary-main: #ffffff;
    --primary-dark: #9ca3af;

    /* Gradients */
    --accent-gradient: linear-gradient(135deg, #4b5563 0%, #111827 100%);
    --text-gradient: linear-gradient(to right, #ffffff, #d1d5db, #9ca3af);
    --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);

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

    /* Spacing & Sizes */
    --container-max: 1200px;
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

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

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

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.text-gradient {
    background: var(--text-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: #fff;
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Shine Effect for Buttons */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(6, 9, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
}

.logo-img {
    height: 36px;
    width: auto;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    display: flex;
    align-items: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
}

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

.hero-content {
    max-width: 600px;
}

.badge-wrap {
    margin-bottom: 1.5rem;
}

.badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.quote-card {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--surface-gradient);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-main);
}

.quote-text {
    font-style: italic;
    color: #fff;
}

.quote-author {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--primary-light);
    font-weight: 600;
}

.quote-author:hover {
    color: #fff;
    text-decoration: underline;
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.app-mockup {
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.floating-img {
    max-height: 600px;
    border-radius: 20px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--primary-main);
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
    border-radius: 50%;
}

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

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

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

/* --- Showcase / Sliders Section --- */
.showcase {
    padding: 5rem 0;
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    background: var(--bg-main);
    padding: 2rem;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    min-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide img {
    border-radius: var(--border-radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.slide img:hover {
    transform: scale(1.02);
}

.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.slider-btn {
    pointer-events: auto;
    background: rgba(22, 27, 34, 0.8);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--primary-main);
    color: #000;
    transform: scale(1.1);
}

.slider-hint {
    text-align: center;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-main);
    width: 20px;
    border-radius: 4px;
}

/* Show/Hide Sliders based on screen */
.desktop-slider {
    display: block;
}

.mobile-slider {
    display: none;
}

/* --- Video Section --- */
.video-section {
    padding: 4rem 0;
    background-color: var(--bg-main);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Footer --- */
.footer {
    background-color: var(--bg-accent);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 48px;
    margin-bottom: 1rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.link-group h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.link-group h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--primary-main);
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-light);
    transform: translateX(5px);
}

.footer-link i {
    width: 18px;
    height: 18px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}

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

.social-icon:hover {
    background: var(--primary-main);
    color: #000;
    transform: translateY(-3px);
}

.projects-link {
    color: var(--primary-light);
    font-weight: 600;
    display: inline-block;
    margin-top: 0.5rem;
}

.projects-link:hover {
    text-decoration: underline;
}

.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;
}

/* --- Animations Setup (Scroll Reveals) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}


/* --- Responsive Adjustments --- */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }

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

    .hero-content {
        margin: 0 auto;
    }

    .badge-wrap {
        display: flex;
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
        display: flex;
    }

    .quote-card {
        text-align: left;
    }

    .floating-img {
        max-height: 500px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .desktop-slider {
        display: none;
    }

    .mobile-slider {
        display: block;
    }

    .slide img {
        max-height: 500px;
        width: auto;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices (phones, 375px and down) */
@media screen and (max-width: 375px) {
    html {
        font-size: 14px;
    }

    .hero {
        padding-top: 6rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 0.8rem 1.5rem;
        width: 100%;
        justify-content: center;
    }

    .floating-img,
    .slide img {
        max-height: 400px;
    }

    .slider-container {
        padding: 1rem;
    }
}

@media screen and (max-width: 320px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .floating-img,
    .slide img {
        max-height: 350px;
    }
}