/* ===== INDITEX Style Portfolio - CSS Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --primary-white: #ffffff;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--primary-black);
    line-height: 1.6;
    overflow-x: hidden;
    background: var(--primary-white);
}

/* ===== Navigation ===== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.main-nav.scrolled {
    background: var(--primary-white);
    box-shadow: 0 1px 0 var(--border-gray);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-black) !important;
    text-decoration: none !important;
    border-bottom: none !important;
    transition: var(--transition);
}

.nav-logo:visited,
.nav-logo:hover,
.nav-logo:active {
    color: var(--primary-black) !important;
    text-decoration: none !important;
    border-bottom: none !important;
}

.main-nav.scrolled .nav-logo {
    color: var(--primary-black);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary-black);
    transition: var(--transition);
}

.main-nav.scrolled .menu-toggle span {
    background: var(--primary-black);
}

/* ===== Full Menu Overlay ===== */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--primary-white);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.menu-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary-black);
}

.menu-list {
    list-style: none;
    text-align: center;
}

.menu-link {
    display: block;
    font-size: 3rem;
    font-weight: 300;
    color: var(--primary-black);
    text-decoration: none;
    padding: 1rem 0;
    transition: var(--transition);
    letter-spacing: -1px;
}

.menu-link:hover {
    opacity: 0.5;
}

.menu-footer {
    position: absolute;
    bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    color: var(--primary-black);
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 0.5;
}

/* ===== Hero Fullscreen ===== */
.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

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

.hero-bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.hero-text {
    position: absolute;
    bottom: 8rem;
    left: 3rem;
    z-index: 10;
    color: var(--primary-white);
}

.hero-heading {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-subheading {
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    opacity: 0.9;
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--primary-white);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: var(--primary-white);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* ===== Section Styles ===== */
.section-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 8rem 3rem;
}

.section-label {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-gray);
    display: block;
    margin-bottom: 1rem;
}

.section-heading {
    font-size: 3.5rem;
    font-weight: 300;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    max-width: 600px;
}

/* ===== About Section ===== */
.about-section {
    background: var(--primary-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.about-image {
    height: 600px;
}

.image-box {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    border-radius: 2px;
}

/* ===== Work Section ===== */
.work-section {
    background: #fafafa;
}

.section-header-inline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

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

.work-item {
    cursor: pointer;
    transition: var(--transition);
}

.work-item:hover {
    transform: translateY(-8px);
}

.work-image {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.work-info h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.work-link {
    text-decoration: none;
    color: #000;
    display: block;
}

.work-link:hover {
    text-decoration: none;
}

.work-link h3 {
    color: #000;
}

.work-info p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* ===== Expertise Section ===== */
.expertise-section {
    background: var(--primary-white);
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    margin-top: 4rem;
}

.expertise-item {
    padding: 2rem 0;
}

.expertise-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-black);
}

.expertise-item h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.expertise-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-gray);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--primary-black);
    color: var(--primary-white);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.contact-section .section-label {
    color: rgba(255, 255, 255, 0.6);
}

.contact-section .section-heading {
    color: var(--primary-white);
}

.contact-section .section-description {
    color: rgba(255, 255, 255, 0.7);
}

.contact-info {
    margin-top: 3rem;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-detail i {
    font-size: 1.2rem;
}

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

.contact-form-simple input,
.contact-form-simple textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding: 1rem 0;
    color: var(--primary-white);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.contact-form-simple input::placeholder,
.contact-form-simple textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form-simple input:focus,
.contact-form-simple textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-white);
}

.submit-btn {
    align-self: flex-start;
    padding: 1rem 3rem;
    background: var(--primary-white);
    color: var(--primary-black);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: var(--transition);
}

.submit-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== Footer ===== */
.main-footer {
    background: var(--primary-black);
    color: var(--primary-white);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

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

.footer-content p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition);
}

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

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    .about-grid,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .work-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .expertise-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-heading {
        font-size: 3.5rem;
    }

    .section-heading {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }

    .section-container {
        padding: 4rem 1.5rem;
    }

    .hero-text {
        left: 1.5rem;
        bottom: 6rem;
    }

    .hero-heading {
        font-size: 2.5rem;
    }

    .hero-subheading {
        font-size: 1rem;
    }

    .scroll-down {
        right: 1.5rem;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-link {
        font-size: 2rem;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(60px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(60px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Initial Hidden State */
.animate-on-scroll {
    opacity: 0;
    will-change: transform, opacity;
}

/* Animation Triggers */
.animate-on-scroll.visible.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.visible.fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.visible.slide-in-left {
    animation: slideInLeft 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.visible.slide-in-right {
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-on-scroll.visible.scale-in {
    animation: scaleIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Staggered Animation Delays */
.animate-on-scroll.delay-1 { animation-delay: 0.15s; }
.animate-on-scroll.delay-2 { animation-delay: 0.3s; }
.animate-on-scroll.delay-3 { animation-delay: 0.45s; }
.animate-on-scroll.delay-4 { animation-delay: 0.6s; }
.animate-on-scroll.delay-5 { animation-delay: 0.75s; }
.animate-on-scroll.delay-6 { animation-delay: 0.9s; }
