/* Section-specific styles - COMPLETELY FIXED animations */

/* Hero section */
.hero-section {
    position: relative;
    height: 100vh;
}

.hero-background {
    position: relative;
    z-index: 20;
    display: flex;
    height: 100%;
    width: 100%;
    justify-content: center;
    background-image: url('/images/bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Hero text sizing and positioning */
.hero-text {
    position: fixed;
    top: 63vh;
    left: 50%;
    transform: translate(-50%, -70%);
    z-index: -10;
    font-family: var(--font-heading);
    font-size: clamp(80px, 12vw, 200px);
    font-weight: 700;
    text-transform: uppercase;
    color: transparent;
    background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.00) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}

.sand-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 0;
    height: 39.5vh;
    width: 100%;
    background-image: url('/images/sand.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

/* Section headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.section-number-container {
    display: flex;
    width: 100%;
    align-items: center;
}

.section-number-wrapper {
    position: relative;
    display: flex;
    height: 80px;
    width: 80px;
    align-items: center;
    justify-content: center;
}

.section-number-wrapper img {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
}

.section-number {
    font-family: var(--font-heading);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-white);
}

.section-line {
    margin-left: -1px;
    height: 100%;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 80px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 100%;
    color: transparent;
    -webkit-text-stroke: 1px var(--color-white);
}

/* About section - COMPLETELY FIXED ANIMATIONS */


.about-content {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden; /* FIXED: Hide overflow to prevent showing elements during animation */
}

.about-item {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    
    /* FIXED: Default state - hidden and positioned off-screen */
    opacity: 0;
    transform: translateX(-100%);
}

/* FIXED: Specific initial positions for each item */
.about-item:nth-child(2) {
    transform: translateX(100%); /* Second item comes from right */
}

.about-item:nth-child(3) {
    transform: translateX(-100%); /* Third item comes from left */
}

/* FIXED: Final animated state - visible and in position */
.about-item.animate {
    opacity: 1;
    transform: translateX(0%);
}

.about-image {
    position: relative;
    height: 400px;
    flex: 1;
    min-width: 0;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.about-text {
    display: flex;
    height: 400px;
    width: 40%;
    min-width: 560px;
    flex-direction: column;
    gap: 24px;
    background-color: var(--color-white);
    padding: 40px;
    box-sizing: border-box;
}

.about-text h1 {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
}

.about-text p {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 500;
    line-height: 21px;
    color: var(--color-text);
}

/* Gallery section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.gallery-column {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery-item {
    border: 2px solid var(--color-border);
    border-bottom: none;
    border-right: none;
    padding: 16px;
}

.gallery-item:last-child {
    border-bottom: 2px solid var(--color-border);
}

.gallery-column:last-child .gallery-item {
    border-right: 2px solid var(--color-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item-1 { height: 385px; }
.gallery-item-2 { height: 320px; }
.gallery-item-3 { height: 275px; }
.gallery-item-4 { height: 340px; }
.gallery-item-5 { height: 427px; }

/* Social media card */
.social-media-card {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    background-color: var(--color-white);
    padding: 40px;
}

.social-media-card h1 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.social-icons {
    display: flex;
    gap: 24px;
}

.social-icons img {
    width: 64px;
    height: 64px;
    cursor: pointer;
    transition: opacity var(--transition);
}

.social-icons img:hover {
    opacity: 0.7;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-text {
        font-size: clamp(70px, 10vw, 180px);
    }
    
    .section-title {
        font-size: 70px;
    }
}

@media (max-width: 768px) {
    .hero-text {
        font-size: clamp(50px, 8vw, 120px);
        top: 55vh;
    }
    
    .sand-overlay {
        height: 45vh;
    }
    
    .section-title {
        font-size: 50px;
    }
    
    .section-number-wrapper {
        height: 64px;
        width: 64px;
    }
    
    .section-number {
        font-size: 24px;
    }
    
    .section-header {
        gap: 16px;
    }
    
    /* MOBILE LAYOUT CHANGES - Keep animations but change layout */
    .about-item {
        flex-direction: column;
        width: 100%;
    }
    
    .about-text {
        width: 100%;
        min-width: 100%;
        padding: 24px;
        height: auto;
    }
    
    .about-image {
        width: 100%;
        height: 250px;
    }
    
    .about-text h1 {
        font-size: 28px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-text {
        font-size: clamp(35px, 12vw, 80px);
        top: 50vh;
        max-width: 85vw;
    }
    
    .sand-overlay {
        height: 50vh;
    }
    
    .section-title {
        font-size: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        border-right: 2px solid var(--color-border);
    }
    
    .about-text {
        padding: 16px;
        gap: 16px;
    }
    
    .about-text h1 {
        font-size: 24px;
    }
    
    .about-text p {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .about-image {
        height: 200px;
    }
}

/* Extra small screens */
@media (max-width: 320px) {
    .hero-text {
        font-size: clamp(30px, 10vw, 60px);
        top: 45vh;
        max-width: 80vw;
    }
    
    .sand-overlay {
        height: 55vh;
    }
    
    .about-text {
        padding: 12px;
    }
    
    .about-text h1 {
        font-size: 20px;
    }
    
    .about-text p {
        font-size: 13px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-text {
        top: 40vh;
        font-size: clamp(40px, 8vh, 80px);
    }
    
    .sand-overlay {
        height: 60vh;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-text {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}