* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0f;
    --bg-card: #1a1a24;
    --border-color: #2d2d40;
    --accent-color: #6b7aff;
    --accent-secondary: #ff6bcd;
    --accent-tertiary: #6bffd4;
    --text-primary: #ffffff;
    --text-secondary: #b0b8d4;
    --hover-accent: #8a9aff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-glow: linear-gradient(90deg, #6b7aff, #ff6bcd, #6bffd4, #6b7aff);
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(circle at 20% 50%, rgba(107, 122, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 205, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(107, 255, 212, 0.06) 0%, transparent 50%);
    animation: gradient-rotate 20s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradient-rotate {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-5%, 5%) rotate(180deg);
    }

    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* ========================================
   ANIMATED BACKGROUND
   ======================================== */

.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    z-index: 1;
    animation: grid-pulse 4s ease-in-out infinite;
}

@keyframes grid-pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.scanline {
    display: none;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    position: relative;
    z-index: 2;
    max-width: 1600px;
    margin: 0 auto;
    padding: 10rem 4rem 4rem;
    min-height: 95vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ========================================
   HEADER
   ======================================== */

.header {
    text-align: center;
    margin-bottom: 2.5rem;
    animation: fadeInDown 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 3rem;
    color: var(--accent-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.8;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    animation: gradient-shift 4s ease infinite;
    padding-top: 4rem;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite, expand-line 2s ease-out forwards;
    box-shadow: 0 0 10px rgba(107, 122, 255, 0.5);
}

@keyframes expand-line {
    from {
        width: 0;
    }

    to {
        width: 60%;
    }
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-out 0.5s backwards;
    margin-bottom: 1rem;
}

/* Enhanced tagline with gradient */
.subtitle::after {
    content: '• • •';
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
    letter-spacing: 1rem;
}

/* Team Name Section */
.team-name {
    margin-top: 2.5rem;
    text-align: center;
    animation: fadeIn 2s ease-out 1s backwards;
}

.team-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 0.8rem;
    opacity: 0.7;
}

.team-identity {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(90deg, var(--accent-color), var(--hover-accent), var(--accent-color));
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shine 3s linear infinite;
    letter-spacing: 4px;
    position: relative;
}

/* Team Philosophy Section */
.team-philosophy {
    padding: 4rem 2rem;
    background: linear-gradient(180deg, rgba(10, 10, 15, 0.9) 0%, rgba(15, 15, 25, 1) 100%);
    position: relative;
    overflow: hidden;
    border-top: 2px solid transparent;
    border-image: var(--gradient-glow) 1;
    border-bottom: 2px solid transparent;
    border-image: var(--gradient-glow) 1;
}

.team-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
    opacity: 0.6;
}

.team-philosophy::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    animation: gradient-shift 4s ease infinite;
    opacity: 0.6;
}

.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.philosophy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(107, 122, 255, 0.1), rgba(255, 107, 205, 0.1));
    border: 2px solid;
    border-image: var(--gradient-glow) 1;
    margin-bottom: 2rem;
    position: relative;
}

.philosophy-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradient-shift 4s ease infinite;
}

.philosophy-icon i {
    font-size: 2.5rem;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.philosophy-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    background: var(--gradient-glow);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: gradient-shift 4s ease infinite;
}

.philosophy-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

.philosophy-text em {
    color: var(--accent-color);
    font-style: italic;
    font-size: 1.25rem;
    font-weight: 500;
}

.philosophy-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.philosophy-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8;
    margin-top: 2rem;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   STORY CARDS GRID
   ======================================== */

.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    flex: 1;
    align-items: center;
}

.story-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out backwards;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.story-card[data-story="1"] {
    animation-delay: 0.2s;
    border-image: var(--gradient-1) 1;
}

.story-card[data-story="2"] {
    animation-delay: 0.4s;
    border-image: var(--gradient-2) 1;
}

.story-card[data-story="3"] {
    animation-delay: 0.6s;
    border-image: var(--gradient-3) 1;
}

.story-card[data-story="4"] {
    animation-delay: 0.8s;
    border-image: var(--gradient-4) 1;
}

.story-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(107, 122, 255, 0.3);
    background: linear-gradient(135deg, rgba(26, 26, 36, 0.95), rgba(20, 20, 30, 0.95));
}

.story-card[data-story="1"]:hover {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.4);
}

.story-card[data-story="2"]:hover {
    box-shadow: 0 20px 60px rgba(245, 87, 108, 0.4);
}

.story-card[data-story="3"]:hover {
    box-shadow: 0 20px 60px rgba(0, 242, 254, 0.4);
}

.story-card[data-story="4"]:hover {
    box-shadow: 0 20px 60px rgba(56, 249, 215, 0.4);
}

.story-card:hover .card-border {
    opacity: 1;
}

.story-card:hover .card-icon {
    transform: scale(1.15) rotate(5deg);
    color: var(--hover-accent);
}

.story-card:hover .card-arrow {
    transform: translateX(10px);
}

.story-card:hover .card-image img {
    transform: scale(1.1);
}

.story-card:hover .image-overlay {
    opacity: 0.3;
}

/* Card Image */
.card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.8) 100%);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid var(--hover-accent);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: float 3s ease-in-out infinite;
}

.story-card[data-story="1"] .card-icon {
    animation-delay: 0s;
}

.story-card[data-story="2"] .card-icon {
    animation-delay: 0.5s;
}

.story-card[data-story="3"] .card-icon {
    animation-delay: 1s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.card-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 1px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
}

.story-card:hover .card-title {
    background: var(--gradient-glow);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

.story-card[data-story="1"]:hover .card-title {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-card[data-story="2"]:hover .card-title {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-card[data-story="3"]:hover .card-title {
    background: var(--gradient-3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-card[data-story="4"]:hover .card-title {
    background: var(--gradient-4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.card-desc {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex: 1;
    font-weight: 400;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.story-card:hover .tag {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color);
}

.card-arrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    transition: all 0.3s ease;
}

.card-arrow i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.story-card:hover .card-arrow {
    color: var(--hover-accent);
}

.story-card:hover .card-arrow i {
    animation: bounce-right 0.6s ease infinite;
}

@keyframes bounce-right {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

/* Card Number Overlay */
.card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    transition: all 0.4s ease;
    pointer-events: none;
    line-height: 1;
}

.story-card:hover .card-number {
    color: rgba(255, 255, 255, 0.08);
    transform: scale(1.2) rotate(-5deg);
}

/* ========================================
   VIAGGIO NEL TEMPO - TIMELINE SECTION
   ======================================== */

.timeline-section {
    margin-top: 6rem;
    padding: 4rem 2rem;
    position: relative;
}

.timeline-header {
    text-align: center;
    margin-bottom: 3rem;
}

.timeline-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.timeline-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.timeline-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Timeline Carousel Container */
.timeline-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.timeline-track-container {
    flex: 1;
    overflow: hidden;
    padding: 2rem 0;
}

.timeline-track {
    display: flex;
    gap: 3rem;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    padding: 2rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--accent-color),
        0 0 40px var(--accent-color);
    position: relative;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 0 20px var(--accent-color);
    }

    50% {
        transform: scale(1.2);
        box-shadow: 0 0 40px var(--accent-color);
    }
}

.timeline-content {
    text-align: center;
    background: rgba(26, 26, 36, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    background: rgba(26, 26, 36, 0.8);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(107, 122, 255, 0.2);
}

.timeline-year {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 1rem;
}

.timeline-event {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.timeline-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline Navigation Buttons */
.timeline-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(107, 122, 255, 0.1);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.timeline-nav:hover {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-color);
}

.timeline-nav:active {
    transform: scale(0.95);
}

/* Timeline Dots Navigation */
.timeline-dots-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.dot-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(107, 122, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot-indicator:hover {
    background: rgba(107, 122, 255, 0.6);
    transform: scale(1.2);
}

.dot-indicator.active {
    background: var(--accent-color);
    box-shadow: 0 0 10px var(--accent-color);
    transform: scale(1.3);
}

/* ========================================
   HORIZONTAL STORY SCROLL SECTION
   ======================================== */

.story-scroll-section {
    margin-top: 6rem;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.scroll-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 0 2rem;
}

.scroll-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 4px;
    background: var(--gradient-glow);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.scroll-hint {
    font-size: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.story-strip {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    width: max-content;
}

/* Story Block */
.story-block {
    width: 400px;
    height: 550px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.story-block:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 60px rgba(107, 122, 255, 0.3);
}

.story-block-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.story-block:hover .story-block-bg {
    transform: scale(1.1);
}

.story-block-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(10, 10, 15, 0.95) 0%,
            rgba(10, 10, 15, 0.7) 50%,
            rgba(10, 10, 15, 0.3) 100%);
}

.story-block-content {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem;
    z-index: 1;
}

.story-block-icon {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.story-block-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.story-block-tagline {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.story-block-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.story-block-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.story-block-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.story-block-link:hover {
    background: var(--hover-accent);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(107, 122, 255, 0.4);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
    width: 80%;
    height: 4px;
    background: rgba(107, 122, 255, 0.2);
    border-radius: 2px;
    margin: 3rem auto 0;
    overflow: hidden;
}

.scroll-progress-fill {
    height: 100%;
    background: var(--gradient-glow);
    width: 25%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* ========================================
   TEAM SECTION
   ======================================== */

.team-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    animation: fadeIn 1s ease-out 0.8s backwards;
    overflow: visible;
}

.team-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.team-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.team-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Carousel Container */
.team-grid {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 3rem;
    padding: 3rem 0;
}

/* Carousel Track */
.team-grid::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to right, var(--bg-dark), transparent);
    z-index: 5;
    pointer-events: none;
}

.team-grid::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(to left, var(--bg-dark), transparent);
    z-index: 5;
    pointer-events: none;
}

.carousel-track {
    display: flex;
    gap: 2.5rem;
    animation: scroll-left 30s linear infinite;
    will-change: transform;
}

.team-grid:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-280px * 5 - 2.5rem * 5));
    }
}

.team-member {
    flex-shrink: 0;
    width: 280px;
    text-align: center;
    transition: transform 0.4s ease, opacity 0.3s ease;
    cursor: pointer;
}

.team-member:hover {
    transform: scale(1.15);
    z-index: 20;
}

.member-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.member-image-wrapper:hover {
    border-color: var(--hover-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.member-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .member-image {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.member-overlay i {
    font-size: 3rem;
    color: var(--hover-accent);
    animation: bounce 0.6s ease infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.member-info {
    padding: 0 0.5rem;
}

.member-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    transition: color 0.3s ease;
}

.team-member:hover .member-name {
    color: var(--hover-accent);
}

.member-role {
    font-size: 0.75rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.member-desc {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE - TIMELINE & SCROLL SECTIONS
   ======================================== */

@media (max-width: 768px) {

    /* Timeline Section Mobile */
    .timeline-section {
        margin-top: 3rem;
        padding: 2rem 1rem;
    }

    .timeline-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .timeline-subtitle {
        font-size: 0.9rem;
    }

    .timeline-icon {
        font-size: 2rem;
    }

    /* Hide navigation buttons on mobile */
    .timeline-nav {
        display: none;
    }

    .timeline-carousel {
        gap: 0;
    }

    .timeline-item {
        padding: 1.5rem 1rem;
    }

    .timeline-year {
        font-size: 2rem;
    }

    .timeline-event {
        font-size: 1.2rem;
    }

    .timeline-desc {
        font-size: 0.9rem;
    }

    .timeline-content {
        padding: 1.5rem;
    }

    /* Story Scroll Section Mobile */
    .story-scroll-section {
        margin-top: 3rem;
        padding: 2rem 0;
    }

    .scroll-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .scroll-hint {
        font-size: 0.85rem;
    }

    .story-strip {
        padding: 1rem;
        gap: 1.5rem;
    }

    .story-block {
        width: 300px;
        height: 450px;
    }

    .story-block-content {
        padding: 1.5rem;
    }

    .story-block-icon {
        font-size: 2.5rem;
    }

    .story-block-title {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }

    .story-block-tagline {
        font-size: 0.9rem;
    }

    .story-block-meta {
        font-size: 0.8rem;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .story-block-link {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }

    .scroll-progress-bar {
        width: 90%;
    }
}

@media (max-width: 480px) {

    /* Timeline Very Small Screens */
    .timeline-section {
        padding: 1.5rem 0.5rem;
    }

    .timeline-title {
        font-size: 1.4rem;
    }

    .timeline-subtitle {
        font-size: 0.8rem;
    }

    .timeline-item {
        padding: 1rem 0.5rem;
    }

    .timeline-year {
        font-size: 1.6rem;
    }

    .timeline-event {
        font-size: 1rem;
    }

    .timeline-desc {
        font-size: 0.85rem;
    }

    .timeline-content {
        padding: 1.2rem;
    }

    .timeline-dots-nav {
        gap: 0.6rem;
    }

    .dot-indicator {
        width: 10px;
        height: 10px;
    }

    /* Story Scroll Very Small Screens */
    .scroll-title {
        font-size: 1.4rem;
    }

    .story-block {
        width: 280px;
        height: 420px;
    }

    .story-block-content {
        padding: 1.2rem;
    }

    .story-block-icon {
        font-size: 2rem;
    }

    .story-block-title {
        font-size: 1.5rem;
    }

    .story-block-tagline {
        font-size: 0.85rem;
    }

    .story-block-meta {
        font-size: 0.75rem;
    }

    .story-block-link {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
}

/* ========================================
   FOOTER - Using universal footer.css
   ======================================== */

/* Footer styles removed - see footer.css */

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

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

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

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

/* Tablets and smaller laptops */
@media (max-width: 1200px) {
    .container {
        padding: 3rem 3rem;
        min-height: auto;
    }

    .stories-grid {
        gap: 2rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-desc {
        font-size: 0.9rem;
    }

    .team-member {
        width: 250px;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-250px * 5 - 2.5rem * 5));
        }
    }
}

/* Tablets portrait */
@media (max-width: 992px) {
    .container {
        padding: 2.5rem 2rem;
    }

    .title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .team-philosophy {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }

    .philosophy-title {
        font-size: 1.8rem;
    }

    .philosophy-text {
        font-size: 0.95rem;
    }

    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .card-image {
        height: 200px;
    }

    .card-icon {
        font-size: 2.8rem;
    }

    .card-title {
        font-size: 1.2rem;
    }

    .team-title {
        font-size: 1.6rem;
    }

    .team-member {
        width: 220px;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-220px * 5 - 2.5rem * 5));
        }
    }
}

/* Mobile landscape and small tablets */
@media (max-width: 768px) {
    .container {
        padding: 8rem 1.5rem 2rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .logo-icon {
        font-size: 2.5rem;
    }

    .title {
        font-size: 1.6rem;
        letter-spacing: 1.5px;
        padding-top: 3rem;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

    .team-name {
        margin-top: 1rem;
    }

    .team-identity {
        font-size: 1.3rem;
    }

    .header {
        margin-bottom: 2rem;
    }

    .team-philosophy {
        padding: 1.5rem 1.2rem;
        margin: 1.5rem 0;
    }

    .philosophy-content {
        padding: 1.5rem;
    }

    .philosophy-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }

    .philosophy-icon i {
        font-size: 2rem;
    }

    .philosophy-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .philosophy-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .story-card {
        max-width: 500px;
        margin: 0 auto;
    }

    .card-image {
        height: 220px;
    }

    .card-content {
        padding: 1.8rem 1.5rem;
    }

    .card-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .card-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .card-tags {
        flex-wrap: wrap;
        gap: 0.6rem;
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.7rem;
    }

    .card-number {
        font-size: 3rem;
    }

    .team-section {
        margin-top: 3rem;
        padding-top: 2rem;
    }

    .team-header {
        margin-bottom: 2rem;
    }

    .team-title {
        font-size: 1.4rem;
    }

    .team-subtitle {
        font-size: 0.85rem;
    }

    .team-grid {
        padding: 2rem 0;
    }

    .team-member {
        width: 200px;
    }

    .team-member:hover {
        transform: scale(1.1);
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-200px * 5 - 2.5rem * 5));
        }
    }

    .member-name {
        font-size: 0.85rem;
    }

    .member-role {
        font-size: 0.7rem;
    }

    .member-desc {
        font-size: 0.75rem;
        line-height: 1.4;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 0.8rem;
    }

    .logo-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .logo-icon {
        font-size: 2rem;
    }

    .title {
        font-size: 1.4rem;
        letter-spacing: 1px;
        padding-top: 2rem;
    }

    .subtitle {
        font-size: 0.7rem;
    }

    .team-philosophy {
        padding: 1.2rem 0.8rem;
        margin: 1.2rem 0;
    }

    .philosophy-content {
        padding: 1rem;
    }

    .philosophy-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.8rem;
    }

    .philosophy-icon i {
        font-size: 1.5rem;
    }

    .philosophy-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        letter-spacing: 1px;
    }

    .philosophy-text {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .stories-grid {
        gap: 1.2rem;
    }

    .card-image {
        height: 200px;
    }

    .card-content {
        padding: 1.5rem 1.2rem;
    }

    .card-icon {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }

    .card-title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .card-desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .card-tags {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .card-arrow {
        font-size: 0.8rem;
    }

    .card-number {
        font-size: 2.5rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .team-title {
        font-size: 1.2rem;
        letter-spacing: 2px;
    }

    .team-grid {
        padding: 1.5rem 0;
    }

    .team-grid::before,
    .team-grid::after {
        width: 50px;
    }

    .carousel-track {
        gap: 1.5rem;
    }

    .team-member {
        width: 180px;
    }

    .team-member:hover {
        transform: scale(1.08);
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-180px * 5 - 1.5rem * 5));
        }
    }

    .member-name {
        font-size: 0.8rem;
    }

    .member-role {
        font-size: 0.65rem;
    }

    .member-desc {
        font-size: 0.7rem;
        line-height: 1.3;
    }

    .member-overlay i {
        font-size: 2.5rem;
    }
}

/* Extra small screens (under 360px) */
@media (max-width: 360px) {
    .container {
        padding: 1rem 0.6rem;
    }

    .title {
        font-size: 1.2rem;
        letter-spacing: 0.5px;
        padding-top: 1.5rem;
    }

    .subtitle {
        font-size: 0.65rem;
    }

    .team-identity {
        font-size: 1rem;
    }

    .team-philosophy {
        padding: 1rem 0.6rem;
    }

    .philosophy-content {
        padding: 0.8rem;
    }

    .philosophy-icon {
        width: 45px;
        height: 45px;
    }

    .philosophy-icon i {
        font-size: 1.3rem;
    }

    .philosophy-title {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }

    .philosophy-text {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .card-image {
        height: 160px;
    }

    .card-content {
        padding: 1.2rem 1rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-desc {
        font-size: 0.8rem;
    }

    .team-title {
        font-size: 1.1rem;
    }

    .team-member {
        width: 160px;
    }

    @keyframes scroll-left {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-160px * 5 - 1.5rem * 5));
        }
    }
}