/* --- GLOBAL VARIABLES & UTILITIES --- */
:root {
    --primary-orange: #EF7D32;
    --dark-brown: #431407;
    --gold: #FFC107;
    --text-gray: #666;
    --bg-light: #FFF9F2;
}

body {
    overflow-x: hidden;
}

/* Interactive Utilities */
.highlight-orange {
    color: var(--primary-orange);
}

.center-text {
    text-align: center;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--primary-orange);
    display: block;
    margin-bottom: 10px;
}

/* --- 1. HERO SECTION --- */
.about-hero {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--dark-brown);
}

.about-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.4;
    transition: transform 0.1s linear;
}

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

/* Floating Shapes */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: 2;
    opacity: 0.6;
    transition: transform 0.1s linear;
    pointer-events: none;
}

.shape-1 {
    top: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: #EF7D32;
}

.shape-2 {
    bottom: -50px;
    right: 10%;
    width: 250px;
    height: 250px;
    background: #FFC107;
}

.about-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
    padding: 0 20px;
}

.about-hero-content h1 {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
}

.about-hero-content .section-subtitle {
    display: block;
    font-family: 'Barlow', sans-serif;
    letter-spacing: 4px;
    font-size: 14px;
    margin-bottom: 15px;
    opacity: 0.9;
    font-weight: 700;
}

/* --- 2. STORY SECTION --- */
.story-section {
    padding: 100px 5%;
    background-color: transparent;
}

.story-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.story-image {
    flex: 1;
    min-width: 300px;
    position: relative;
    border-radius: 30px;
    overflow: visible;
}

.story-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 30px;
    border: 8px solid var(--dark-brown);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.story-badge {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    border: 5px solid var(--dark-brown);
    width: 90px;
    height: 90px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--dark-brown);
    z-index: 4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.story-badge:hover {
    transform: translateX(-50%) scale(1.1) rotate(5deg);
}

.story-badge-year {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.story-badge-label {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: -2px;
}

.story-text {
    flex: 1.2;
}

.story-text h2 {
    font-size: 48px;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--dark-brown);
}

.story-text p {
    font-size: 17px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 25px;
}

.story-signature {
    margin-top: 30px;
    font-family: cursive;
    color: var(--primary-orange);
    font-size: 24px;
    transform: rotate(-2deg);
}

/* --- 3. VALUES SECTION --- */
.values-section {
    padding: 80px 5%;
    background-color: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.value-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    border: 2px solid #FFF8F0;
    box-shadow: 0 5px 15px rgba(67, 20, 7, 0.05);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
}

.value-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-orange);
    box-shadow: 0 15px 30px rgba(67, 20, 7, 0.1);
}

.value-icon {
    font-size: 40px;
    color: var(--primary-orange);
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.value-card:hover .value-icon {
    transform: scale(1.2);
}

.value-card h3 {
    font-size: 22px;
    color: var(--dark-brown);
    margin-bottom: 15px;
}

.value-card p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- 4. GALLERY SECTION (CONTAINER POPPING CAROUSEL) --- */
.gallery-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
    justify-content: center;
    /* Ensure nothing spills out during animation */
    overflow: visible;
}

.gallery-text {
    flex: 1;
    max-width: 450px;
    z-index: 10;
    /* Ensure text stays on top */
}

.gallery-text h2 {
    font-size: 48px;
    color: var(--dark-brown);
    margin-bottom: 20px;
    line-height: 1.1;
}

/* POP CAROUSEL WRAPPER (The Stage) */
.pop-carousel-wrapper {
    flex: 1.2;
    position: relative;
    /* Fixed height defines the area for the images */
    height: 550px;
    width: 100%;
    max-width: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* THE SLIDE CONTAINER (The thing that pops) */
/* This holds the border, shadow, and image */
.slide-container {
    position: absolute;
    /* Centers the container in the wrapper */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    /* Dimensions of the photo area */
    width: 90%;
    /* Responsive width */
    height: 90%;
    /* Responsive height */
    max-height: 500px;
    /* Max height constraint */

    /* The "Stroke" and shadow go here now */
    border: 8px solid white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(67, 20, 7, 0.2);
    background: white;
    /* Ensures no transparency behind image */

    opacity: 0;
    /* Hidden by default */
    z-index: 0;

    /* The Animation applied to the WHOLE container */
    animation: containerPop 9s infinite ease-in-out;
}

/* The Image inside the container */
.slide-container img {
    width: 100%;
    height: 100%;
    /* KEY: Shows entire photo without trimming */
    object-fit: contain;
    border-radius: 12px;
    /* Slightly smaller radius to fit inside border */
    display: block;
}

/* STAGGERED DELAYS */
/* Total cycle 9s. Shows for 3s each. */
.slide-1 {
    animation-delay: 0s;
}

.slide-2 {
    animation-delay: 3s;
}

.slide-3 {
    animation-delay: 6s;
}

/* THE CONTAINER POP ANIMATION */
@keyframes containerPop {
    0% {
        opacity: 0;
        /* Start slightly smaller and centered */
        transform: translate(-50%, -50%) scale(0.9);
        z-index: 1;
    }

    5% {
        opacity: 1;
        /* Pop to full size, stay centered */
        transform: translate(-50%, -50%) scale(1);
        z-index: 5;
    }

    33.33% {
        opacity: 1;
        /* Stay full size and centered */
        transform: translate(-50%, -50%) scale(1);
        z-index: 5;
    }

    38% {
        opacity: 0;
        /* Fade out while expanding slightly, still centered */
        transform: translate(-50%, -50%) scale(1.05);
        z-index: 1;
    }

    100% {
        opacity: 0;
        z-index: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .gallery-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 20px;
        gap: 40px;
    }

    .gallery-text {
        margin-bottom: 0;
        max-width: 100%;
    }

    .pop-carousel-wrapper {
        width: 100%;
        height: 450px;
        /* Adjust height for tablets */
    }
}

@media (max-width: 768px) {
    .pop-carousel-wrapper {
        height: 350px;
        /* Adjust height for mobile */
    }

    .gallery-text h2 {
        font-size: 36px;
    }

    .slide-container {
        /* On mobile, make the border slightly thinner */
        border-width: 5px;
    }
}

/* --- 5. CTA & BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.btn-orange {
    background-color: var(--primary-orange);
    color: white;
    border: 2px solid var(--primary-orange);
}

.btn-outline-dark {
    border: 2px solid var(--dark-brown);
    color: var(--dark-brown);
    background: transparent;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-shine:hover::after {
    left: 100%;
}

.btn-orange:hover,
.btn-outline-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-dark:hover {
    background: var(--dark-brown);
    color: white;
}

/* --- TEXT EFFECTS --- */
.pop-out-text,
.pop-out-text-sm {
    font-weight: 900;
    text-transform: uppercase;
    background: linear-gradient(to right, #EF7D32 0%, #FFC107 50%, #EF7D32 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

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

.double-stroke {
    color: transparent;
    -webkit-text-stroke: 1px var(--dark-brown);
    font-weight: 900;
    position: relative;
}

.double-stroke::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    color: var(--dark-brown);
    opacity: 0;
    transform: translate(4px, 4px);
    transition: 0.3s;
}

.gallery-text:hover .double-stroke::after {
    opacity: 0.4;
    transform: translate(8px, 8px);
}

/* --- FAMILY BANNER --- */
.family-banner {
    background: linear-gradient(90deg, #EF7D32 0%, #FFC107 25%, #D8651E 50%, #FFC107 75%, #EF7D32 100%);
    background-size: 300% 100%;
    animation: familyGradient 10s ease-in-out infinite;
    color: white;
    padding: 80px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes familyGradient {

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

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

.family-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23000000' fill-opacity='0.05'%3E%3Ccircle cx='12' cy='12' r='1.5'/%3E%3Ccircle cx='37' cy='12' r='1'/%3E%3Ccircle cx='12' cy='37' r='1'/%3E%3Ccircle cx='37' cy='37' r='1.5'/%3E%3Ccircle cx='25' cy='25' r='1'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.family-banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.family-banner-content h2 {
    font-size: 58px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    white-space: nowrap;
}

.family-highlight {
    color: #FFF;
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.15);
}

.family-banner .family-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.family-banner .btn-white {
    background: white;
    color: #EF7D32;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid white;
    transition: 0.3s;
}

.family-banner .btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline-white {
    background: transparent;
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    border: 2px solid white;
    transition: 0.3s;
}

.btn-outline-white:hover {
    background: white;
    color: #EF7D32;
    transform: translateY(-3px);
}

/* ============================================= */
/* --- RESPONSIVE STYLES --- */
/* ============================================= */

/* --- TABLET (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* Hero Section */
    .about-hero {
        height: 380px;
    }

    .about-hero-content h1 {
        font-size: 40px;
    }

    .about-hero-content .section-subtitle {
        font-size: 12px;
        letter-spacing: 3px;
    }

    /* Story Section */
    .story-section {
        padding: 80px 5%;
    }

    .story-content {
        flex-direction: column;
        gap: 50px;
    }

    .story-image {
        min-width: unset;
        max-width: 450px;
        width: 100%;
        margin: 0 auto;
    }

    .story-text {
        text-align: center;
    }

    .story-text h2 {
        font-size: 40px;
    }

    .story-badge {
        bottom: -15px;
        width: 80px;
        height: 80px;
    }

    .story-badge-year {
        font-size: 22px;
    }

    .story-signature {
        display: flex;
        justify-content: center;
    }

    /* Values Section */
    .values-section {
        padding: 60px 5%;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .values-grid {
        gap: 25px;
        margin-top: 40px;
    }

    /* Gallery Section */
    .gallery-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 5%;
        gap: 40px;
    }

    .gallery-text {
        text-align: center;
        margin-bottom: 0;
        max-width: 100%;
    }

    .gallery-text h2 {
        font-size: 40px;
    }

    .pop-carousel-wrapper {
        width: 100%;
        height: 450px;
    }

    /* Family Banner */
    .family-banner {
        padding: 60px 5%;
    }

    .family-banner-content h2 {
        font-size: 44px;
    }
}

/* --- MOBILE (max-width: 768px) --- */
@media (max-width: 768px) {

    /* Hero Section */
    .about-hero {
        height: 350px;
    }

    .about-hero-content {
        padding: 0 15px;
    }

    .about-hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .about-hero-content .section-subtitle {
        font-size: 11px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .floating-shape {
        filter: blur(40px);
    }

    .shape-1 {
        width: 200px;
        height: 200px;
        top: -30px;
        left: -30px;
    }

    .shape-2 {
        width: 150px;
        height: 150px;
        bottom: -30px;
    }

    /* Story Section */
    .story-section {
        padding: 60px 5%;
    }

    .story-content {
        gap: 40px;
    }

    .story-image {
        max-width: 100%;
    }

    .story-image img {
        border-width: 6px;
        border-radius: 20px;
    }

    .story-text h2 {
        font-size: 32px;
        margin-bottom: 18px;
    }

    .story-text p {
        font-size: 15px;
        margin-bottom: 18px;
    }

    .story-signature {
        font-size: 20px;
    }

    .story-badge {
        width: 70px;
        height: 70px;
        border-width: 4px;
        border-radius: 14px;
    }

    .story-badge-year {
        font-size: 20px;
    }

    .story-badge-label {
        font-size: 9px;
    }

    /* Values Section */
    .values-section {
        padding: 50px 5%;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .value-card {
        padding: 30px 25px;
        border-radius: 16px;
    }

    .value-icon {
        font-size: 36px;
        margin-bottom: 15px;
    }

    .value-card h3 {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .value-card p {
        font-size: 14px;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 50px 5%;
        gap: 30px;
    }

    .gallery-text h2 {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .gallery-text p {
        font-size: 15px;
    }

    .pop-carousel-wrapper {
        height: 350px;
    }

    .slide-container {
        border-width: 5px;
        border-radius: 16px;
    }

    .slide-container img {
        border-radius: 10px;
    }

    /* Family Banner */
    .family-banner {
        padding: 50px 5%;
    }

    .family-banner-content {
        max-width: 100%;
    }

    .family-banner-content h2 {
        font-size: 32px;
        white-space: normal;
        line-height: 1.2;
    }

    .family-banner-content p {
        font-size: 15px;
    }

    .family-banner .family-buttons {
        flex-direction: column;
        gap: 12px;
        margin-top: 25px;
    }

    .family-banner .btn-white,
    .btn-outline-white {
        padding: 12px 28px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

/* --- SMALL MOBILE (max-width: 480px) --- */
@media (max-width: 480px) {

    /* Hero Section */
    .about-hero {
        height: 300px;
    }

    .about-hero-content {
        padding: 0 12px;
    }

    .about-hero-content h1 {
        font-size: 26px;
    }

    .about-hero-content .section-subtitle {
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .shape-1 {
        width: 150px;
        height: 150px;
    }

    .shape-2 {
        width: 120px;
        height: 120px;
    }

    /* Story Section */
    .story-section {
        padding: 40px 4%;
    }

    .story-content {
        gap: 35px;
    }

    .story-image img {
        border-width: 5px;
        border-radius: 16px;
    }

    .story-text h2 {
        font-size: 26px;
    }

    .story-text p {
        font-size: 14px;
        line-height: 1.7;
    }

    .story-badge {
        width: 60px;
        height: 60px;
        border-width: 3px;
        border-radius: 12px;
        bottom: -12px;
    }

    .story-badge-year {
        font-size: 18px;
    }

    .story-badge-label {
        font-size: 8px;
    }

    .story-signature {
        font-size: 18px;
        margin-top: 20px;
    }

    /* Values Section */
    .values-section {
        padding: 40px 4%;
    }

    .section-label {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .values-grid {
        gap: 16px;
        margin-top: 25px;
    }

    .value-card {
        padding: 25px 20px;
    }

    .value-icon {
        font-size: 32px;
    }

    .value-card h3 {
        font-size: 18px;
    }

    .value-card p {
        font-size: 13px;
    }

    /* Gallery Section */
    .gallery-section {
        padding: 40px 4%;
        gap: 25px;
    }

    .gallery-text h2 {
        font-size: 26px;
    }

    .gallery-text p {
        font-size: 14px;
    }

    .pop-carousel-wrapper {
        height: 280px;
    }

    .slide-container {
        border-width: 4px;
        border-radius: 12px;
    }

    /* Family Banner */
    .family-banner {
        padding: 40px 4%;
    }

    .family-banner-content h2 {
        font-size: 26px;
        margin-bottom: 15px;
    }

    .family-banner-content p {
        font-size: 14px;
    }

    .family-banner .family-buttons {
        gap: 10px;
        margin-top: 20px;
    }

    .family-banner .btn-white,
    .btn-outline-white {
        padding: 11px 24px;
        font-size: 13px;
    }

    /* Buttons */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .btn-orange {
        width: 100%;
        justify-content: center;
    }
}