/* 
   LAKSHMI AI - PORTFOLIO PREMIUM
   Dark Cinematographic Theme - Mobile First
*/

/* Custom Font */
@font-face {
    font-family: 'Matcha Vibes';
    src: url('../assets/fonts/MatchaVibes-Regular.ttf') format('truetype'),
        url('../assets/fonts/MatchaVibes-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

/* Design System */
:root {
    /* Colors - Premium Dark Palette */
    --color-bg: #0a0a0a;
    --color-bg-dark: #000000;
    --color-bg-light: #161616;

    --color-text: #FFFFFF;
    --color-text-muted: #E0E0E0;
    --color-text-subtle: #a0a0a0;

    --color-accent-magenta: #FF1493;
    --color-accent-pink: #FF69B4;
    --color-accent-blue: #00D4FF;
    --color-accent-premium: #0047AB;

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-logo: 'Matcha Vibes', 'Space Grotesk', sans-serif;

    /* Spacing - Mobile First */
    --section-padding-mobile: 60px 20px;
    --section-padding-desktop: 80px 40px;
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.3s ease;
    --transition-slow: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom one */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text);
}

h1 {
    font-size: 32px;
}

h2 {
    font-size: 28px;
}

h3 {
    font-size: 24px;
}

h4 {
    font-size: 20px;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

img,
video {
    max-width: 100%;
    display: block;
}

ul {
    list-style: none;
}

button,
a,
.portfolio-card,
.service-item {
    cursor: none;
    /* Custom cursor for interactive elements */
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: var(--section-padding-mobile);
}

.text-center {
    text-align: center;
}

.dark-bg {
    background-color: var(--color-bg-dark);
}

/* Section Titles */
.section-title {
    font-size: 28px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--color-accent-blue);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ==================== NAVIGATION ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px;
    transition: var(--transition-smooth);
}

header.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(74, 144, 226, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    font-family: var(--font-logo);
    font-size: 24px;
    font-weight: 400;
    order: 2;
    /* Logo a la derecha en móvil */
}

.logo .accent {
    color: var(--color-accent-blue);
}

.nav-links {
    display: none;
    /* Oculto en móvil por defecto */
    gap: 24px;
    order: 1;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-accent-blue);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    order: 1;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    padding-bottom: 60px;
    background: var(--color-bg);
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(10, 10, 10, 0.9) 0%,
            rgba(10, 10, 10, 0.7) 100%);
    z-index: 1;
}

.hero-container {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: var(--color-accent-magenta);
}

.hero-image-wrapper {
    width: 100%;
    max-width: 600px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    max-width: 600px;
    line-height: 1.6;
    margin: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: var(--color-accent-blue);
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* ==================== HOOK SECTION ==================== */
.hook-section {
    background-color: var(--color-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--color-bg-light);
    border-radius: 12px;
    border: 1px solid rgba(74, 144, 226, 0.1);
    transition: var(--transition-smooth);
}

.service-item:hover {
    border-color: var(--color-accent-blue);
    transform: translateX(10px);
}

.service-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 8px;
    color: var(--color-accent-blue);
    flex-shrink: 0;
}

.service-text {
    font-size: 16px;
    color: var(--color-text-muted);
}

/* ==================== PORTFOLIO SECTION ==================== */
.portfolio-section {
    background-color: var(--color-bg-dark);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.portfolio-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: var(--color-bg-light);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.portfolio-card:hover {
    border-color: var(--color-accent-magenta);
    transform: translateY(-5px);
}

.portfolio-thumbnail {
    position: relative;
    width: 100%;
    padding-top: 75%;
    /* 4:3 aspect ratio */
    overflow: hidden;
}

.portfolio-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .portfolio-thumbnail img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 24px;
}

.portfolio-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.portfolio-info p {
    color: var(--color-text-subtle);
    font-size: 14px;
}

/* Portfolio Expandido */
.portfolio-card.expanded {
    grid-column: 1 / -1;
}

.portfolio-expanded-content {
    display: none;
    padding: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-card.expanded .portfolio-expanded-content {
    display: block;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.portfolio-gallery img {
    width: 100%;
    border-radius: 8px;
}

.portfolio-video {
    max-width: 100%;
    margin: 0 auto;
}

/* ==================== TRENDS SECTION ==================== */
.trends-section {
    background-color: var(--color-bg);
}

.trends-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.trend-tag {
    padding: 12px 24px;
    background: var(--color-bg-light);
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
}

.trend-tag.accent1 {
    border-color: var(--color-accent-magenta);
    color: var(--color-accent-magenta);
}

.trend-tag.accent2 {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
}

.trend-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.2);
}

/* ==================== COLLABORATIONS ==================== */
.collaborations-grid {
    max-width: 800px;
    margin: 0 auto;
}

.collab-category {
    margin-bottom: 24px;
    background: var(--color-bg-light);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.collab-header {
    padding: 20px;
    background: rgba(74, 144, 226, 0.05);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.collab-header:hover {
    background: rgba(74, 144, 226, 0.1);
}

.collab-title {
    font-size: 18px;
    text-transform: uppercase;
}

.collab-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.collab-category.open .collab-content {
    max-height: 3000px;
    padding: 20px;
}

.collab-videos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.collab-video {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    background-color: var(--color-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.about-photo {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.about-photo img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--color-accent-magenta);
}

.about-bio {
    color: var(--color-text-muted);
    font-size: 16px;
    line-height: 1.8;
}

.about-bio p {
    margin-bottom: 16px;
    white-space: pre-line;
}

/* ==================== CONTACT SECTION ==================== */
.contact-section {
    background-color: var(--color-bg-dark);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--color-bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input[type="number"] {
    -moz-appearance: textfield;
}

.form-group input[type="number"]::-webkit-inner-spin-button,
.form-group input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.btn-primary {
    width: 100%;
    padding: 18px 32px;
    background: var(--color-accent-magenta);
    border: none;
    border-radius: 8px;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    background: var(--color-accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 226, 0.3);
}

.btn-large {
    font-size: 18px;
    padding: 20px 40px;
}

/* ==================== FOOTER ==================== */
.footer {
    padding: 40px 20px;
    background: var(--color-bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.social-link:hover {
    border-color: var(--color-accent-blue);
    color: var(--color-accent-blue);
    transform: translateY(-3px);
}

.footer-language {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--color-text-subtle);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-btn.active {
    color: var(--color-accent-blue);
}

.lang-btn:hover {
    color: var(--color-text);
}

.lang-separator {
    color: var(--color-text-subtle);
}

.footer-copyright {
    color: var(--color-text-subtle);
    font-size: 12px;
    text-align: center;
}

/* ==================== MODAL ==================== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
}

.modal-content {
    position: relative;
    z-index: 2001;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    margin: auto;
    overflow-y: auto;
    padding: 40px 20px;
}

.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2002;
    transition: var(--transition-smooth);
}

.modal-close:hover {
    background: var(--color-accent-magenta);
    border-color: var(--color-accent-magenta);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.modal-nav {
    display: none;
    /* Oculto por ahora, se puede implementar para galerías */
}

/* ==================== ANIMATIONS ==================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.loading {
    opacity: 0;
}

body:not(.loading) {
    opacity: 1;
    transition: opacity 0.5s ease;
}

/* ==================== RESPONSIVE - TABLET ==================== */
@media (min-width: 768px) {

    /* Typography */
    h1 {
        font-size: 48px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 28px;
    }

    .section-title {
        font-size: 36px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Layout */
    .section-padding {
        padding: var(--section-padding-desktop);
    }

    .container {
        padding: 0 40px;
    }

    /* Navigation */
    .mobile-menu-btn {
        display: none;
    }

    .nav-links {
        display: flex;
        order: 1;
    }

    .logo {
        order: 2;
    }

    /* Hero */
    .hero-title {
        font-size: 56px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 24px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .portfolio-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* Collaborations */
    .collab-videos {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    /* About */
    .about-content {
        grid-template-columns: 1fr 1.5fr;
        gap: 48px;
    }

    /* Footer */
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==================== RESPONSIVE - DESKTOP ==================== */
@media (min-width: 1024px) {

    /* Hero */
    .hero-title {
        font-size: 64px;
    }

    /* Portfolio */
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-gallery {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Collaborations */
    .collab-videos {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==================== CUSTOM CURSOR (DESKTOP) ==================== */
.custom-cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: screen;
}

.custom-cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid var(--color-accent-magenta);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: left 0.15s ease, top 0.15s ease, width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.custom-cursor.hover {
    width: 16px;
    height: 16px;
    background-color: var(--color-accent-pink);
}

.custom-cursor-follower.hover {
    width: 50px;
    height: 50px;
    border-color: var(--color-accent-blue);
    background-color: rgba(0, 212, 255, 0.1);
}

/* Hide custom cursor on mobile */
@media (max-width: 768px) {

    .custom-cursor,
    .custom-cursor-follower {
        display: none !important;
    }

    body,
    button,
    a,
    .portfolio-card,
    .service-item {
        cursor: auto !important;
    }
}

/* ==================== RIPPLE EFFECT (MOBILE) ==================== */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 20, 147, 0.4) 0%,
            rgba(0, 212, 255, 0.2) 50%,
            rgba(255, 105, 180, 0) 100%);
    transform: scale(0);
    animation: ripple-animation 0.8s ease-out;
    pointer-events: none;
    z-index: 1000;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Ripple container for positioning */
.ripple-container {
    position: relative;
    overflow: hidden;
}

.portfolio-card,
.service-item,
.btn-primary,
.social-link,
.trend-tag,
.collab-header,
.lang-btn {
    position: relative;
    overflow: hidden;
}

/* ==================== PRINT STYLES ==================== */
@media print {

    header,
    .scroll-indicator,
    .modal,
    .footer-language {
        display: none;
    }
}