/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from { 
        opacity: 0;
        transform: translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from { 
        opacity: 0;
        transform: translateX(-30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from { 
        opacity: 0;
        transform: translateX(30px);
    }
    to { 
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes scaleUp {
    from { 
        opacity: 0;
        transform: scale(0.95);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}

/* ========== GLOBAL STYLES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    background: #f4f7fb;
    color: #1e2b37;
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-bottom: 100px;
    animation: fadeIn 0.5s ease-out;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    color: #0b3b4b;
    border-left: 6px solid #f4b532;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.6s ease-out;
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(135deg, #0f2a38 0%, #1b4a5a 100%);
    color: white;
    padding: 0.8rem 2rem;
    box-shadow: 0 8px 20px rgba(0,20,30,0.15);
    position: sticky;
    top: 0;
    z-index: 100;
    animation: slideInDown 0.5s ease-out;
}

.header-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-emblem {
    background: #f4b532;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f2a38;
    font-size: 1.8rem;
    font-weight: 800;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: scaleUp 0.5s ease-out;
}

.logo-emblem img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.logo-text {
    line-height: 1.2;
    animation: slideInRight 0.6s ease-out 0.1s both;
}

.logo-main {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.logo-sub {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #f4b532;
    font-weight: 400;
}

nav ul {
    display: flex;
    gap: 0.8rem;
    list-style: none;
    flex-wrap: wrap;
}

nav ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

nav ul li a i {
    font-size: 0.9rem;
    color: #f4b532;
    transition: transform 0.3s ease;
}

nav ul li a:hover {
    background: rgba(255,255,255,0.12);
    color: white;
    backdrop-filter: blur(4px);
    transform: translateY(-2px);
}

nav ul li a:hover i {
    transform: rotate(15deg);
}

nav ul li a.active {
    background: #f4b532;
    color: #0f2a38;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(244, 181, 50, 0.3);
}

nav ul li a.active i {
    color: #0f2a38;
}

/* ========== MAIN CONTENT ========== */
main {
    max-width: 1300px;
    margin: 2.5rem auto;
    padding: 0 2rem;
}

section {
    background: white;
    border-radius: 28px;
    padding: 2rem 2.2rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.02);
    animation: slideInUp 0.6s ease-out both;
}

section:nth-child(1) { animation-delay: 0s; }
section:nth-child(2) { animation-delay: 0.1s; }
section:nth-child(3) { animation-delay: 0.2s; }
section:nth-child(4) { animation-delay: 0.3s; }

section:hover {
    box-shadow: 0 25px 40px rgba(0,40,50,0.08);
    transform: translateY(-4px);
}

/* ========== HERO SECTION ========== */
.hero {
    background: linear-gradient(145deg, #ffffff 0%, #f0f6fa 100%);
    border-left: 8px solid #f4b532;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.hero-text h2 {
    border-left: none;
    padding-left: 0;
    font-size: 2.4rem;
    color: #0f2a38;
    animation: slideInLeft 0.7s ease-out;
}

.hero-text p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1rem 0 0;
    animation: slideInLeft 0.7s ease-out 0.1s both;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #f4b532;
    animation: pulse 2s ease-in-out infinite;
}

.hero-media img {
    animation: slideInRight 0.7s ease-out 0.1s both;
}

/* ========== FEATURE GRID ========== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    background: #f9fcff;
    padding: 1.8rem 1.2rem;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #e9edf4;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    animation: scaleUp 0.5s ease-out both;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

.feature-card:hover {
    background: #ffffff;
    border-color: #f4b532;
    transform: translateY(-8px);
    box-shadow: 0 20px 35px rgba(244, 181, 50, 0.15);
}

.feature-card i {
    font-size: 2.5rem;
    color: #f4b532;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: #0b3b4b;
}

/* ========== TESTIMONIALS ========== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.testimonial-card {
    background: #f7faff;
    border-radius: 30px;
    padding: 1.8rem 1.5rem;
    border: 1px solid #e2eaf1;
    box-shadow: 0 6px 0 #cbd5e0;
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease-out both;
}

.testimonial-card:nth-child(1) { animation-delay: 0s; }
.testimonial-card:nth-child(2) { animation-delay: 0.15s; }
.testimonial-card:nth-child(3) { animation-delay: 0.3s; }

.testimonial-card:hover {
    box-shadow: 0 12px 30px rgba(0, 40, 50, 0.15);
    transform: translateY(-6px);
}

.testimonial-card i.fa-quote-left {
    color: #f4b532;
    font-size: 1.8rem;
    opacity: 0.5;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover i.fa-quote-left {
    opacity: 1;
    transform: scale(1.2);
}

.testimonial-card p {
    font-style: italic;
    margin: 0.5rem 0 1rem;
}

.testimonial-card cite {
    font-weight: 600;
    color: #0b3b4b;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========== GALLERY ========== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-top: 1.5rem;
}

.gallery-item {
    background: #eef2f6;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.02);
    transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    aspect-ratio: 4/3;
    position: relative;
    animation: scaleUp 0.5s ease-out both;
}

.gallery-item:nth-child(1) { animation-delay: 0s; }
.gallery-item:nth-child(2) { animation-delay: 0.1s; }
.gallery-item:nth-child(3) { animation-delay: 0.2s; }

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    background: linear-gradient(transparent, #0f2a38d0);
    color: white;
    width: 100%;
    padding: 1rem 0.8rem 0.8rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* ========== FAQ ========== */
.faq-grid {
    display: grid;
    gap: 1.2rem;
}

.faq-item {
    background: #f0f5fa;
    border-radius: 40px;
    padding: 0.1rem 1.8rem;
    border-left: 4px solid #f4b532;
    transition: all 0.3s ease;
    animation: slideInUp 0.5s ease-out both;
}

.faq-item:nth-child(1) { animation-delay: 0s; }
.faq-item:nth-child(2) { animation-delay: 0.1s; }
.faq-item:nth-child(3) { animation-delay: 0.2s; }

.faq-item:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(244, 181, 50, 0.1);
}

.faq-question {
    font-weight: 700;
    font-size: 1.2rem;
    color: #0f2a38;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 1rem 0 0.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question {
    color: #f4b532;
}

.faq-answer {
    margin-left: 2.2rem;
    padding-bottom: 1rem;
    color: #2f4858;
}

/* ========== CONTACT SECTION ========== */
.contact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-top: 1rem;
}

.contact-info {
    flex: 1 1 260px;
    animation: slideInLeft 0.6s ease-out;
}

.contact-info ul {
    list-style: none;
    margin: 1.5rem 0;
}

.contact-info li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.contact-info li:hover {
    transform: translateX(4px);
}

.contact-info i {
    width: 30px;
    color: #f4b532;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.contact-info li:hover i {
    transform: scale(1.2);
}

.map-container {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
    animation: slideInUp 0.6s ease-out 0.2s both;
}

/* ========== FORM ========== */
form {
    flex: 2 1 400px;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 32px;
    animation: slideInRight 0.6s ease-out;
}

.form-group {
    margin-bottom: 1.5rem;
    animation: slideInUp 0.5s ease-out both;
}

.form-group:nth-child(1) { animation-delay: 0s; }
.form-group:nth-child(2) { animation-delay: 0.1s; }
.form-group:nth-child(3) { animation-delay: 0.2s; }

label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
    color: #1e3b47;
    transition: color 0.3s ease;
}

input, textarea, select {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid #d3dee8;
    border-radius: 50px;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
}

textarea {
    border-radius: 28px;
    resize: vertical;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #f4b532;
    box-shadow: 0 0 0 3px rgba(244, 181, 50, 0.2);
    transform: scale(1.02);
}

input::placeholder, textarea::placeholder {
    color: #a0b0c0;
}

/* ========== BUTTONS ========== */
.btn {
    background: #0f2a38;
    color: white;
    border: none;
    padding: 1rem 2.2rem;
    border-radius: 60px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn i {
    color: #f4b532;
    transition: transform 0.3s ease;
}

.btn:hover {
    background: #1b4a5a;
    transform: translateY(-4px);
    box-shadow: 0 18px 25px -10px #0b3b4b;
}

.btn:hover i {
    transform: rotate(15deg) scale(1.1);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========== FOOTER ========== */
footer {
    background: #10242e;
    color: #b0c7d4;
    text-align: center;
    padding: 1.5rem 2rem;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 0.95rem;
    border-top: 3px solid #f4b532;
    backdrop-filter: blur(8px);
    z-index: 99;
    animation: slideInUp 0.5s ease-out;
}

footer a {
    color: #f4b532;
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    text-decoration: underline;
    filter: brightness(1.2);
}

/* multi-column footer layout */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1300px;
    margin: 0 auto;
}

.footer-column {
    flex: 1 1 200px;
    margin: 1rem 0.5rem;
    text-align: left;
}

.footer-column h4 {
    color: #f4b532;
    margin-bottom: 0.6rem;
}

.footer-column .logo-emblem {
    margin-bottom: 0.6rem;
}

.footer-column a.icon {
    margin-right: 0.8rem;
    color: #b0c7d4;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.footer-column a.icon:hover {
    color: #f4b532;
}

/* change footer positioning to allow content flow */
footer {
    position: relative;
    bottom: auto;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 700px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav ul {
        justify-content: center;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    body {
        padding-bottom: 120px;
    }
    
    .contact-row {
        flex-direction: column;
    }
    
    form {
        flex: 1 1 auto;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    section {
        border-radius: 16px;
    }
    
    .feature-card {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    section {
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    h2 {
        font-size: 1.4rem;
        padding-left: 0.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    nav ul li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}
