/* ===========================
   GLOBAL STYLES & RESET
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent text size adjustment on orientation change */
html {
    -webkit-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Improve touch scrolling on iOS */
body {
    -webkit-overflow-scrolling: touch;
}

:root {
    /* Caribbean-inspired color palette */
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #FFE66D;
    --dark-color: #2C3E50;
    --light-color: #F7F9FC;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

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

.nav-links a {
    font-weight: 500;
    transition: var(--transition);
    color: var(--text-dark);
    /* Improve touch targets */
    padding: 0.5rem 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    z-index: 1;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-apply {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: var(--white) !important;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    animation: pulse 2s ease-in-out infinite;
    letter-spacing: 0.5px;
    min-width: 160px;
    display: inline-block;
    text-align: center;
}

.btn-apply::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-apply:hover::before {
    width: 300px;
    height: 300px;
}

.btn-apply:hover {
    background: linear-gradient(135deg, #ff5252 0%, #ff7043 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    animation: none;
}

.btn-apply:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6);
    }
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
    transition: var(--transition);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding-top: 80px;
    overflow: hidden;
}

/* Hero Background Slideshow */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/Untitled design-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlideshow 20s ease-in-out infinite;
    will-change: opacity;
}

@keyframes heroSlideshow {
    0%, 25% { 
        opacity: 0.3;
        background-image: url('assets/Untitled design-2.png');
    }
    33%, 58% { 
        opacity: 0.3;
        background-image: url('assets/WhatsApp Image 2025-12-04 at 8.03.45 PM.jpeg');
    }
    66%, 91% { 
        opacity: 0.3;
        background-image: url('assets/WhatsApp Image 2025-12-04 at 8.03.44 PM-6.jpeg');
    }
    100% {
        opacity: 0.3;
        background-image: url('assets/Untitled design-2.png');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 50%, rgba(240, 147, 251, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: var(--spacing-sm);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.4s backwards;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    /* Improve touch targets */
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--white);
    border-radius: 50px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDown 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDown {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ===========================
   SECTION STYLES
   =========================== */
section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    color: var(--dark-color);
}

.underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 1rem auto;
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about {
    background: var(--light-color);
}

.about-text {
    max-width: 900px;
    margin: 0 auto;
}

.about-text .lead {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
}

.about-text h3 {
    margin-top: var(--spacing-md);
}

/* ===========================
   MISSION SECTION
   =========================== */
.mission {
    background: var(--white);
}

.mission-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.mission-intro {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.quote {
    background: var(--light-color);
    padding: var(--spacing-md);
    border-left: 5px solid var(--primary-color);
    border-radius: 8px;
    margin: var(--spacing-md) 0;
    text-align: left;
}

.quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-dark);
    line-height: 1.8;
}

.quote cite {
    display: block;
    margin-top: var(--spacing-sm);
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
    font-style: normal;
}

/* ===========================
   VALUES SECTION
   =========================== */
.values {
    background: var(--light-color);
}

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

.value-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

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

.value-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.value-card h3 {
    color: var(--dark-color);
    margin-bottom: var(--spacing-sm);
}

.value-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* ===========================
   APPLICATION FORM
   =========================== */
.apply {
    background: var(--white);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--light-color);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.application-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    background: var(--white);
    /* Mobile optimization */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    touch-action: manipulation;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 0.2rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    font-weight: 400;
    color: var(--text-light);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    background: var(--dark-color);
    color: var(--white);
}

.contact .section-header h2,
.contact .underline {
    color: var(--white);
}

.contact-content {
    text-align: center;
    font-size: 1.1rem;
}

.contact-emails {
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.email-link {
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.email-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.separator {
    color: var(--white);
    opacity: 0.5;
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    background: #1a252f;
    color: var(--white);
    text-align: center;
    padding: var(--spacing-md) 0;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-tagline {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
/* Optimize hero images for mobile */
@media (max-width: 768px) {
    .hero::before {
        background-size: cover;
        background-position: center center;
    }
    
    @keyframes heroSlideshow {
        0%, 100% { 
            opacity: 0.25;
            background-image: url('assets/Untitled design-2.png');
            background-position: center;
        }
        50% { 
            opacity: 0.25;
            background-image: url('assets/WhatsApp Image 2025-12-04 at 8.03.45 PM.jpeg');
            background-position: center;
        }
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

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

    .nav-links li {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .nav-links a {
        display: block;
        padding: 0.5rem 0;
    }

    .btn-apply {
        width: 100%;
        text-align: center;
        padding: 1.1rem 2.5rem;
        font-size: 1.05rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: var(--spacing-lg) 0;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
    }

    .contact-emails {
        flex-direction: column;
    }

    .separator {
        display: none;
    }

    .email-link {
        word-break: break-all;
        font-size: 0.95rem;
    }

    .about-text p,
    .mission-content p {
        font-size: 1rem;
        text-align: left;
    }

    .quote p {
        font-size: 1rem;
    }

    .value-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .application-form input,
    .application-form select,
    .application-form textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .scroll-indicator {
        display: none;
    }

    /* Improve touch targets */
    .checkbox-label {
        padding: 0.5rem 0;
    }

    .checkbox-label input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .form-container {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }

    h2 {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .value-card {
        padding: 1.5rem;
    }

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

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-large {
        padding: 1rem 1.8rem;
    }

    .navbar {
        padding: 0.8rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .quote {
        padding: 1.5rem;
    }
}

/* Extra small devices */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 0.8rem;
    }

    .form-container {
        padding: 1.5rem 0.8rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* ===========================
   SMOOTH SCROLLING
   =========================== */
html {
    scroll-behavior: smooth;
}

