/* Estils principals per a la web de MAGUIU */

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffffff;
    --accent-color: #f8f8f8;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e5e5e5;
}

body {
    font-family: 'Playfair Display', serif;
    background: #ffffff;
    color: var(--text-dark);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.magic-font {
    font-family: 'Cinzel', serif;
}

/* Efectes de partícules màgiques */
.magic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--magic-sparkle);
    border-radius: 50%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    50% { transform: translateY(-100px) rotate(180deg); opacity: 1; }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('/images/hero-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-text {
    padding: 2rem 0;
}

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

.magic-title {
    font-size: 3rem;
    font-weight: 300;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.magic-subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botons professionals */
.magic-btn {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: white;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0.5rem;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.magic-btn:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.magic-btn.secondary {
    background: transparent;
    color: var(--primary-color);
}

.magic-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
}

/* Cards voladores */
.flying-cards {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card {
    position: absolute;
    width: 60px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fly 8s infinite linear;
}

.card::before {
    content: '♠';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
}

@keyframes fly {
    0% { transform: translateX(-100px) translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateX(100vw) translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Seccions */
.section {
    padding: 5rem 0;
    position: relative;
    background: #ffffff;
}

.section:nth-child(even) {
    background: #f8f9fa;
}

/* Fons negre pla per galeria i testimonials */
.dark-pattern {
    background: #1a1a1a;
    position: relative;
}

/* Fons específic per la galeria */
.gallery-section,
#gallery {
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 50%, #2d2d2d 100%);
    position: relative;
}

.gallery-section::before,
#gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #1a1a1a;
    font-weight: 300;
    letter-spacing: 1px;
}

.dark-pattern .section-title {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Estils per a la secció about */
.section p {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.section h3 {
    color: #1a1a1a;
    font-weight: 600;
}

.section .text-gray-300 {
    color: #666666 !important;
}

.section .text-gray-400 {
    color: #999999 !important;
}

.section .text-yellow-400 {
    color: #1a1a1a !important;
}

/* Navigation */
.magic-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

/* Assegurar que el lightbox estigui per sobre de tot */
.lightbox {
    z-index: 99999 !important;
}

/* Navegació amb scroll */
.magic-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.main-logo {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    transition: all 0.3s ease;
}

.main-logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(26, 26, 26, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
}

.mobile-nav-link {
    color: var(--text-dark);
    text-decoration: none;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
}

.mobile-nav-link:hover {
    background: rgba(26, 26, 26, 0.1);
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    .magic-title {
        font-size: 2.5rem;
    }

    .magic-subtitle {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .nav-logo-img {
        height: 30px;
    }

    .main-logo {
        max-height: 300px;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .magic-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.3rem;
    }

    /* Sobre Mi responsive */
    .grid.md\\:grid-cols-2.lg\\:grid-cols-4 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .text-xl {
        font-size: 1rem;
    }

    .text-4xl {
        font-size: 2.5rem;
    }

    .text-xl.font-bold {
        font-size: 1.1rem;
    }

    .text-gray-400 {
        font-size: 0.9rem;
    }
}
