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

:root {
    --primary-navy: #1a3b5c;
    --navy-dark: #0f2338;
    --accent-orange: #f29c38;
    --accent-green: #3a8f46;
    --accent-red: #c72c3a;
    --bg-cream: #f4efe6;
    --bg-light: #fdfdf9;
    --text-dark: #2a2a2a;
    --text-muted: #555;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise overlay for that paper texture look */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Typography */
h1,
h2,
h3,
h4,
.logo {
    font-family: var(--font-heading);
    color: var(--primary-navy);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-orange));
    margin: 1.5rem 0;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-family: var(--font-body);
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-navy);
    color: white;
    box-shadow: 0 4px 15px rgba(26, 59, 92, 0.2);
}

.btn-primary:hover {
    background-color: var(--navy-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 59, 92, 0.3);
}

.btn-accent {
    background-color: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(242, 156, 56, 0.2);
}

.btn-accent:hover {
    background-color: #e58d27;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(242, 156, 56, 0.3);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: rgba(253, 253, 249, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    color: var(--accent-orange);
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav-links a:not(.btn) {
    text-decoration: none;
    color: var(--primary-navy);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-orange);
    transition: var(--transition);
}

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-navy);
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 75% 20%, rgba(242, 156, 56, 0.1), transparent 50%),
        radial-gradient(circle at 25% 80%, rgba(58, 143, 70, 0.05), transparent 50%);
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.tagline {
    font-style: italic;
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--accent-green);
    margin-bottom: 0.5rem;
}

.main-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary-navy), var(--text-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 500px;
}

/* Abstract Graphic in Hero */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.glow {
    position: absolute;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(242, 156, 56, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 4s infinite alternate;
}

.hero-logo-large {
    width: 350px;
    max-width: 90%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

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

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

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

/* Values Section */
.values-section {
    background-color: var(--bg-light);
    text-align: center;
}

.values-section .divider {
    margin: 1.5rem auto 3rem;
}

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

.value-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--accent-orange);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(242, 156, 56, 0.04));
    z-index: 0;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(26, 59, 92, 0.05);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-navy);
    position: relative;
    z-index: 1;
}

.value-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.value-card p {
    color: var(--text-muted);
    position: relative;
    z-index: 1;
}

/* Programs Section */
.programs-section {
    background-color: var(--bg-cream);
    text-align: center;
}

.programs-section .divider {
    margin: 1.5rem auto 3rem;
}

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

.program-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.program-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.program-card:nth-child(1) .program-icon,
.program-card:nth-child(1) h3,
.program-card:nth-child(1) .program-features i {
    color: var(--accent-green);
}

.program-card:nth-child(2) .program-icon,
.program-card:nth-child(2) h3,
.program-card:nth-child(2) .program-features i {
    color: #4b8eb5;
    /* Slightly lighter blue to match image if preferred, or primary navy */
}

.program-card:nth-child(2) h3 {
    color: var(--primary-navy);
}

.program-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.program-subtitle {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.program-card ul {
    max-width: fit-content;
    margin: 0 auto;
}

.program-features {
    list-style: none;
    text-align: left;
}

.program-features li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.program-features li i {
    margin-top: 0.2rem;
    font-size: 1.2rem;
}

.programs-footer {
    margin-top: 3rem;
    font-size: 1.4rem;
    font-weight: 500;
    font-style: italic;
    color: var(--text-dark);
}

/* About and Curator Sections */
.about-content,
.curator-content {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.about-text,
.curator-text {
    flex: 1;
}

.about-text p,
.curator-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image,
.curator-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary-navy), var(--accent-green));
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(26, 59, 92, 0.2);
    position: relative;
}

.image-placeholder.profile {
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--accent-orange), var(--primary-navy));
}

.about-img,
.curator-img {
    width: 100%;
    max-width: 500px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(26, 59, 92, 0.2);
    display: block;
}

.about-img {
    aspect-ratio: 4/3;
}

.curator-img.profile {
    aspect-ratio: 4/5;
}

.curator-section {
    background-color: var(--bg-light);
}

.curated-by {
    font-style: italic;
    color: var(--accent-orange);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.curator-titles {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.separator {
    color: var(--accent-orange);
    margin: 0 0.5rem;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--bg-cream);
    text-align: center;
}

.testimonials-section .divider {
    margin: 1.5rem auto 3rem;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
    text-align: left;
}

.testimonial-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    border-top: 4px solid var(--primary-navy);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.quote-icon {
    font-size: 2rem;
    color: var(--accent-orange);
    opacity: 0.3;
    margin-bottom: 1rem;
    display: block;
}

.testimonial-card p {
    color: var(--text-dark);
    font-style: italic;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more-btn {
    background: none;
    border: none;
    color: var(--accent-orange);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    text-align: left;
    display: inline-block;
}

.read-more-btn:hover {
    color: var(--primary-navy);
}

.testimonial-card {
    display: flex;
    flex-direction: column;
}

.testimonial-card .testimonial-author {
    margin-top: auto;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: var(--transition);
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 650px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--accent-orange);
    max-height: 90vh;
    overflow-y: auto;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1rem;
    color: var(--text-muted);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-red);
}

.modal-body {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-style: italic;
}

.modal-author h4 {
    color: var(--primary-navy);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-body);
}

.testimonial-author h4 {
    color: var(--primary-navy);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    font-family: var(--font-body);
}

@media screen and (min-width: 1024px) {
    .testimonial-card.wide {
        grid-column: 1 / -1;
    }
}


/* Footer */
.footer {
    background-color: var(--navy-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    color: white;
}

.brand p {
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-style: italic;
}

.socials {
    display: flex;
    gap: 1.5rem;
}

.socials a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.socials a:hover {
    color: var(--accent-orange);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive Media Queries */
@media screen and (max-width: 992px) {
    .main-title {
        font-size: 3.5rem;
    }

    .hero-content-wrapper {
        flex-direction: column-reverse;
        text-align: center;
        gap: 3rem;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }


    .about-content,
    .curator-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .about-image,
    .curator-image {
        order: -1;
    }

    .about-text .divider,
    .curator-text .divider {
        margin: 1.5rem auto;
    }
}

@media screen and (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-light);
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        transition: 0.5s;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: block;
    }

    .main-title {
        font-size: 2.8rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }


    .glow {
        width: 250px;
        height: 250px;
    }
}