/* Custom Fonts */
@font-face {
    font-family: 'Acumin';
    src: url(../storage/fonts/Acumin-Pro-Thin.ttf) format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'ItalicT';
    src: url(../storage/fonts/ItalicT.ttf) format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans-Light';
    src: url(../storage/fonts/OpenSans-Light.ttf) format("truetype");
    font-display: swap;
}

@font-face {
    font-family: 'OpenSans-ExtraBold';
    src: url(../storage/fonts/OpenSans-ExtraBold.ttf) format("truetype");
    font-display: swap;
}

/* Font Utility Classes */
.Acumin {
    font-family: 'Acumin', sans-serif;
    letter-spacing: -2px;
    font-size: clamp(3rem, 8vw, 4rem);
    line-height: 1;
}

.ItalicT {
    font-family: 'ItalicT', sans-serif;
    letter-spacing: -2px;
    font-size: clamp(2rem, 5vw, 2.5rem);
    line-height: 1;
}

.openSans-Light {
    font-family: 'OpenSans-Light', sans-serif;
}

.openSans-ExtraBold {
    font-family: 'OpenSans-ExtraBold', sans-serif;
}

/* Timeline Section Horizontal Lines */
.timeline-section {
    position: relative;
    /* ...existing code... */
}

.timeline-lines-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.timeline-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, rgba(134,168,231,0.10) 0%, white 100%, rgba(134,168,231,0.10) 100%);
    opacity: 0.45;
    border-radius: 2px;
}
.timeline-line-top {
    top: 3.5rem;
}
.timeline-line-middle {
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    opacity: 0.7;
}
.timeline-line-bottom {
    bottom: 2.5rem;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --bg-secondary: #000000;
    --bg-tertiary: #000000;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --accent: #ffffff;
    --accent-glow: #b7b7b7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', 'Montserrat', 'Segoe UI', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    will-change: scroll-position;
    opacity: 0;
}

/* Smooth rendering */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    perspective: 1000px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0f0f0f 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(201, 169, 110, 0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(10, 10, 10, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.hero-title {
    font-size: clamp(3rem, 16vw, 10rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1.2s ease-out forwards;
}

.hero-title .word:nth-child(1) {
    animation-delay: 0.3s;
}

.hero-title .word:nth-child(2) {
    animation-delay: 0.6s;
    color: var(--accent);
}

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

.hero-subtitle {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}


.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent));
    animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 0.3; }
    50% { transform: translateY(10px); opacity: 1; }
}

/* Split Text Section */
.split-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #23243a 0%, #3a2c5e 100%);
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
}

.split-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle at 60% 40%, rgba(134,168,231,0.13) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.container-large {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 0 2rem;
}

.split-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.split-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100px) rotateX(-90deg);
    transform-origin: center bottom;
    color: #f7f7fa;
    text-shadow: 0 2px 16px rgba(134,168,231,0.18), 0 1px 0 #23243a;
    background: none;
    transition: color 0.4s, text-shadow 0.3s, transform 0.2s;
    cursor: pointer;
}

.split-word.animate {
    animation: splitReveal 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.split-word.active, .split-word:hover {
    color: #fff;
    text-shadow: 0 4px 32px #86a8e7, 0 1px 0 #23243a;
    background: none;
    transform: scale(1.10) rotate(-2deg);
    z-index: 2;
}

.split-word:nth-child(2) { animation-delay: 0.2s; }
.split-word:nth-child(4) { animation-delay: 0.4s; }

@keyframes splitReveal {
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.spacer {
    width: 100%;
    height: 2rem;
}

/* Journey Section */

.journey-section {
    padding: 6rem 2rem;
    background: var(--bg-secondary);
}

.section-label {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.reveal-text {
    opacity: 0;
    transform: translateY(30px);
}

.reveal-text.visible {
    animation: revealText 0.8s ease-out forwards;
}

@keyframes revealText {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.image-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4/5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    transition: box-shadow 0.4s, transform 0.4s;
    cursor: pointer;
    will-change: transform;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

.zoom-in.visible img {
    animation: zoomIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.zoom-in.delay-1.visible img { animation-delay: 0.2s; }
.zoom-in.delay-2.visible img { animation-delay: 0.4s; }

@keyframes zoomIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-item:hover img {
    transform: scale(1.08) rotate(-2deg);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.image-item:hover {
    box-shadow: 0 12px 36px 0 rgba(134,168,231,0.18);
    transform: translateY(-4px) scale(1.03);
}

.project-name-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    z-index: 5;
    max-width: 70%;
    word-wrap: break-word;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s;
}

.image-item:hover .project-name-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Feature Section */
.feature-section {
    position: relative;
    padding: 8rem 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.feature-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, var(--bg-dark), var(--bg-tertiary));
    z-index: 0;
}

.parallax-slow {
    transform: translateY(0);
    will-change: transform;
}

.feature-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.feature-title {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.feature-title .line {
    display: block;
    opacity: 0;
    transform: translateX(-50px);
}

.feature-title .line.animate {
    animation: slideInLeft 0.8s ease-out forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
    will-change: transform, opacity;
}

.scale-up.visible {
    animation: scaleUp 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Description Section */
.description-section {
    padding: 8rem 2rem;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.desc-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.desc-subtitle {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
}

.desc-text p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.floating-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.float-item {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
    aspect-ratio: 1;
    opacity: 0;
}

.float-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.float-1.visible { animation: floatIn 1s ease-out forwards; }
.float-2.visible { animation: floatIn 1s ease-out 0.2s forwards; }
.float-3.visible { animation: floatIn 1s ease-out 0.4s forwards; }

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

.float-item:hover img {
    transform: scale(1.1);
}

/* HORIZONTAL SCROLLING TIMELINE SECTION */
.timeline-section {
    position: relative;
    background: var(--bg-dark);
    padding: 0;
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.timeline-sticky {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    z-index: 10;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.timeline-header {  
    margin: 0 auto;
    padding: 0.5rem 0;
    min-height: unset;
}

.timeline-title {
    font-size: clamp(1.3rem, 4vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 0.05em;
    margin-bottom: 0.1rem;
}

.timeline-title .highlight {
    color: var(--accent);
    font-style: italic;
    font-weight: 200;
}

.timeline-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-top: 0;
    margin-bottom: 0;
}

.horizontal-scroll-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    padding: 0;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    display: none;
}

.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 10%,
        rgba(255, 255, 255, 1) 50%,
        rgba(0, 0, 0, 0.3) 90%,
        transparent 100%
    );
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(201, 169, 110, 0.2) 20%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(201, 169, 110, 0.2) 80%,
        transparent 100%
    );
    transform: translateY(-50%);
    filter: blur(1px);
}

.horizontal-scroll-container {
    display: flex;
    gap: 4rem;
    padding: 2rem 0 2rem 50vw;
    will-change: transform;
    position: relative;
    z-index: 1;
    transform: translateX(0);
}

.timeline-item {
    min-width: 500px;
    max-width: 500px;
    flex-shrink: 0;
    background: rgba(12, 12, 12, 0.8);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(201, 169, 110, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    z-index: 2;
    will-change: transform;
}

.timeline-item:hover {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 8px 32px rgba(201, 169, 110, 0.2);
    transform: scale(1.02);
}

.era-marker {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(201, 169, 110, 0.3);
    padding-bottom: 1rem;
}

.era-year {
    font-size: 2.5rem;
    font-weight: 200;
    color: var(--accent);
    letter-spacing: 0.05em;
}

.era-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.timeline-heading {
    font-size: 1.4rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.timeline-details p {
    font-size: 0.8rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.timeline-details strong {
    color: var(--accent);
    font-weight: 500;
}

.timeline-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.timeline-images img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.timeline-images img:hover {
    transform: scale(1.05);
}

.scroll-progress-bar {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    right: 2rem;
    width: calc(100% - 4rem);
    height: 3px;
    background: rgba(201, 169, 110, 0.15);
    border-radius: 2px;
    overflow: hidden;
    z-index: 20;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-glow) 100%);
    width: 0%;
    transition: none;
    border-radius: 2px;
}

/* Gallery Section */
.gallery-section {
    padding: 2rem 0rem;
}

.gallery-header {
    margin-bottom: 4rem;
}

.gallery-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gallery-title .line {
    opacity: 0;
    transform: translateY(30px);
}

.gallery-title .line.animate {
    animation: revealText 0.8s ease-out forwards;
}

.gallery-title .line:nth-child(2) {
    color: var(--accent);
    animation-delay: 0.2s;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit);
    gap: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
    cursor: pointer;
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
}

.fade-up.visible {
    animation: fadeUp 0.8s ease-out forwards;
}

.fade-up.delay-1 { animation-delay: 0.15s; }
.fade-up.delay-2 { animation-delay: 0.3s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h4 {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.gallery-info p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    padding: 4rem 2rem;
    text-align: center;
    border-top: 1px solid rgba(201, 169, 110, 0.2);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-logo h3 {
    font-size: 2rem;
    font-weight: 200;
    letter-spacing: 0.2em;
    margin-bottom: 0.2rem;
}

.footer-logo p {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.footer-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.footer-mission {
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .split-title {
        font-size: 3rem;
        gap: 1rem;
    }
    
    .timeline-item {
        min-width: 85vw;
        max-width: 85vw;
        padding: 1.5rem;
    }
    
    .horizontal-scroll-container {
        gap: 2rem;
        padding: 2rem 0 2rem 20vw;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth scrolling behavior */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Universal transitions for all animation classes */
.reveal-text.visible,
.split-word.animate,
.split-word.active,
.split-word:hover,
.zoom-in.visible img,
.scale-up.visible,
.float-1.visible,
.float-2.visible,
.float-3.visible,
.timeline-item.visible,
.feature-title .line.animate,
.gallery-title .line.animate,
.fade-up.visible {
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                color 0.4s, text-shadow 0.3s;
}
