/* ==========================================================
   VISION PAGE - Digital Motion Studio
   ==========================================================
   Mobile-First Responsive CSS
   Breakpoints: 376px, 481px, 769px, 1025px, 1281px
   ========================================================== */

/* ==========================================================
   SCROLL REVEAL ANIMATION (Desktop only - 1025px+)
   On mobile/tablet, elements are visible without animation
   ========================================================== */

/* ==========================================================
   SMALL PHONES (320-375px) - BASE STYLES
========================================================== */

/* ============================
    PAGE BACKGROUND
============================ */
.vision-page {
    background: #0a0a0f;
}

/* ============================
    TOP IMAGE SECTION
============================ */
.hero-image-section {
    width: 100%;
    background: #0a0a0f;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-image-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image {
    width: 100%;
    height: auto;
    max-height: 30vh;
    object-fit: cover;
    display: block;
}

/* Top fade */
.hero-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, transparent, #0a0a0f);
    pointer-events: none;
    z-index: 2;
}

/* Bottom fade */
.hero-image-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent, #0a0a0f);
    pointer-events: none;
    z-index: 2;
}

/* ============================
    VISION SECTION
============================ */
.vision-section {
    padding: 1rem 0 3rem;
    position: relative;
}

/* Top fade */
.vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8rem;
    background: linear-gradient(to bottom, #0a0a0f, transparent);
    pointer-events: none;
    z-index: 1;
}

/* Bottom fade */
.vision-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background: linear-gradient(to top, #000, transparent);
    pointer-events: none;
    z-index: 1;
}

.vision-header {
    padding: 4rem 0 0.5rem;
    text-align: center;
    position: relative;
    background: #0a0a0f;
}

/* Side decorative lines */
.vision-header::before,
.vision-header::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5));
    transform: translateY(-50%);
}

.vision-header::before {
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5));
}

.vision-header::after {
    right: 0;
    background: linear-gradient(270deg, transparent, rgba(102, 126, 234, 0.5));
}

.vision-header h1 {
    font-size: 1.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    padding: 0.75rem 1.5rem 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #764ba2, #667eea);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s linear infinite, pulseGlow 4s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(102, 126, 234, 0.3)); }
    50% { filter: drop-shadow(0 0 25px rgba(118, 75, 162, 0.5)); }
}

/* Corner accents */
.vision-header h1 span {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid;
    border-image: linear-gradient(135deg, #667eea, #764ba2) 1;
}

.vision-header h1 span:nth-child(1) {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.vision-header h1 span:nth-child(2) {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.vision-header h1 span:nth-child(3) {
    bottom: 1.5rem;
    left: 0;
    border-right: none;
    border-top: none;
}

.vision-header h1 span:nth-child(4) {
    bottom: 1.5rem;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Underline effect */
.vision-header h1::before,
.vision-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, #f093fb, #764ba2, #667eea, transparent);
    background-size: 200% auto;
    animation: shimmer 3s linear infinite;
}

.vision-header h1::before {
    left: 50%;
    right: 50%;
    animation: expandLine 0.8s ease-out forwards, shimmer 3s linear infinite;
}

.vision-header h1::after {
    left: 50%;
    right: 50%;
    animation: expandLine 0.8s ease-out 0.2s forwards, shimmer 3s linear infinite;
    opacity: 0.5;
    filter: blur(6px);
}

@keyframes expandLine {
    to {
        left: 0;
        right: 0;
    }
}

/* Subtitle */
.vision-header p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-style: italic;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.vision-header p::before,
.vision-header p::after {
    content: '—';
    color: rgba(102, 126, 234, 0.5);
    margin: 0 0.5rem;
}

.vision-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 280px;
    margin: 0 auto;
}

.vision-grid article {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.5);
    border-radius: 1.25rem;
    padding: 1.5rem;
    margin-top: 2rem;
    backdrop-filter: blur(0.625rem);
    transition: all 0.5s ease;
    box-shadow: 0 0.25rem 1.25rem rgba(102, 126, 234, 0.2);
}

.vision-grid article:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(102, 126, 234, 0.8);
    transform: translateY(-0.25rem);
    box-shadow: 0 0.5rem 2rem rgba(102, 126, 234, 0.4);
}

.vision-grid article h2 {
    font-size: 1rem;
    margin-top: 0;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vision-grid article p {
    font-size: 0.85rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 1rem;
}

.vision-grid article p:last-child {
    margin-bottom: 0;
}

/* Tagline styling - last paragraph in each article */
.vision-grid article div p:last-child {
    color: rgba(240, 147, 251, 0.6);
}

/* ==========================================================
   LARGER PHONES (376-480px)
========================================================== */
@media (min-width: 376px) {
    /* Hero Image */
    .hero-image {
        max-height: 35vh;
    }

    /* Vision Header */
    .vision-header {
        padding: 5rem 0 0.75rem;
    }

    /* Vision Section */
    .vision-section {
        padding: 1rem 0 4rem;
    }

    .vision-header::before,
    .vision-header::after {
        width: 18%;
    }

    .vision-header h1 {
        font-size: 2rem;
        margin-bottom: 1.75rem;
        padding: 0.85rem 1.75rem 1.75rem;
    }

    .vision-header h1 span {
        width: 14px;
        height: 14px;
    }

    .vision-header p {
        font-size: 0.95rem;
    }

    .vision-grid {
        gap: 2.5rem;
        max-width: 340px;
    }

    .vision-grid article {
        padding: 2rem;
        margin-top: 5rem;
    }

    .vision-grid article h2 {
        font-size: 1.1rem;
        margin-top: 1rem;
        margin-bottom: 1.25rem;
    }

    .vision-grid article p {
        font-size: 0.95rem;
        line-height: 1.75;
    }
}

/* ==========================================================
   TABLET (481-768px)
========================================================== */
@media (min-width: 481px) {
    /* Hero Image */
    .hero-image-section {
        margin-top: 2rem;
    }

    .hero-image {
        max-height: 45vh;
    }

    /* Vision Header */
    .vision-header {
        padding: 6rem 0 3rem;
    }

    /* Vision Section */
    .vision-section {
        padding: 1.5rem 0 5rem;
    }

    .vision-header::before,
    .vision-header::after {
        width: 20%;
    }

    .vision-header h1 {
        font-size: 2.25rem;
        margin-bottom: 2rem;
        padding: 1rem 2rem 2rem;
    }

    .vision-header h1 span {
        width: 16px;
        height: 16px;
    }

    .vision-header h1::before,
    .vision-header h1::after {
        height: 3px;
    }

    .vision-header p {
        font-size: 1rem;
    }

    .vision-grid {
        gap: 3rem;
        max-width: 420px;
    }

    .vision-grid article {
        padding: 2.5rem;
        border-radius: 1.25rem;
        margin-top: 5rem;
    }

    .vision-grid article h2 {
        font-size: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .vision-grid article p {
        font-size: 1rem;
        line-height: 1.8;
    }
}

/* ==========================================================
   SMALL DESKTOP (769-1024px)
========================================================== */
@media (min-width: 769px) {
    /* Hero Image */
    .hero-image {
        max-height: 60vh;
    }

    .hero-image-section {
        margin-top: 6rem;
    }

    /* Vision Header */
    .vision-header {
        padding: 9rem 0 1.5rem;
    }

    /* Vision Section */
    .vision-section {
        padding: 2rem 0 6rem;
    }

    .vision-header::before,
    .vision-header::after {
        width: 22%;
    }

    .vision-header h1 {
        font-size: 2.75rem;
        margin-bottom: 2.25rem;
        padding: 1.25rem 2.5rem 2.25rem;
    }

    .vision-header h1 span {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    .vision-header h1::before,
    .vision-header h1::after {
        height: 3px;
    }

    .vision-header p {
        font-size: 1.1rem;
    }

    .vision-grid {
        flex-direction: column;
        gap: 7rem;
        max-width: 600px;
        margin: 0 auto;
    }

    .vision-grid article {
        padding: 3rem;
        border-radius: 1.5rem;
        margin-top: 5rem;
    }

    .vision-grid article.revealed:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(102, 126, 234, 0.1);
    }

    .vision-grid article h2 {
        font-size: 1.35rem;
        margin-bottom: 1.75rem;
    }

    .vision-grid article p {
        font-size: 1.05rem;
        line-height: 1.85;
    }
}

/* ==========================================================
   DESKTOP (1025-1280px)
========================================================== */
@media (min-width: 1025px) {
    /* Scroll Reveal Animation - Desktop only */
    .scroll-reveal {
        opacity: 0;
        transition: opacity 1.8s ease, transform 1.8s ease, filter 1.8s ease;
    }

    .scroll-reveal.reveal-from-left:not(.revealed) {
        transform: translateX(-5rem);
        filter: blur(4px);
    }

    .scroll-reveal.reveal-from-right:not(.revealed) {
        transform: translateX(5rem);
        filter: blur(4px);
    }

    .scroll-reveal.revealed {
        opacity: 1;
        transform: translateX(0);
        filter: blur(0);
    }

    /* Hero Image */
    .hero-image-section {
        margin-top: 7rem;
    }

    .hero-image {
        max-height: 70vh;
    }

    /* Vision Header */
    .vision-header {
        padding: 10rem 0 2rem;
    }

    /* Vision Section */
    .vision-section {
        padding: 2rem 0 7rem;
    }

    .vision-header::before,
    .vision-header::after {
        width: 25%;
    }

    .vision-header h1 {
        font-size: 3.25rem;
        margin-bottom: 2.5rem;
        padding: 1.5rem 3rem 2.5rem;
    }

    .vision-header h1 span {
        width: 20px;
        height: 20px;
        border-width: 2px;
    }

    .vision-header h1::before,
    .vision-header h1::after {
        height: 4px;
    }

    .vision-header p {
        font-size: 1.2rem;
    }

    .vision-grid {
        gap: 6rem;
    }

    .vision-grid article {
        padding: 3.5rem;
    }

    .vision-grid article h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .vision-grid article p {
        font-size: 1.15rem;
        line-height: 1.9;
    }
}

/* ==========================================================
   LARGE DESKTOP (1281px+)
========================================================== */
@media (min-width: 1281px) {
    /* Hero Image */
    .hero-image-section {
        margin-top: 8rem;
    }

    .hero-image {
        max-height: 80vh;
    }

    /* Vision Header */
    .vision-header {
        padding: 11rem 0 2.5rem;
    }

    /* Vision Section */
    .vision-section {
        padding: 2.5rem 0 8rem;
    }

    .vision-header::before,
    .vision-header::after {
        width: 28%;
    }

    .vision-header h1 {
        font-size: 3.75rem;
        margin-bottom: 2.75rem;
        padding: 1.75rem 3.5rem 2.75rem;
    }

    .vision-header h1 span {
        width: 22px;
        height: 22px;
        border-width: 3px;
    }

    .vision-header h1::before,
    .vision-header h1::after {
        height: 4px;
    }

    .vision-header p {
        font-size: 1.3rem;
    }

    .vision-grid {
        gap: 6rem;
        max-width: 800px;
    }

    .vision-grid article {
        padding: 4rem;
        margin-top: 8rem;
    }

    .vision-grid article h2 {
        font-size: 1.75rem;
        margin-bottom: 2.25rem;
    }

    .vision-grid article p {
        font-size: 1.25rem;
        line-height: 1.95;
    }
}
