/* ==========================================
   01. FONTS & ROOT VARIABLES
   ========================================== */
@font-face {
    font-family: 'CustomHeadingFont';
    src: url('../fonts/Poppins-Bold.ttf') format('woff2'),
         url('../fonts/PlayfairDisplay-Italic-VariableFont_wght.ttf') format('woff');
    font-weight: 700;
    font-style: normal;
}

:root {
    --primary: #1a365d;       /* Deep elegant blue */
    --secondary: #c5a880;     /* Warm luxury gold accent */
    --dark: #111827;          /* Rich charcoal */
    --light: #f9fafb;         /* Soft off-white */
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--dark);
    background-color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================
   03. NAVIGATION BAR
   ========================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--dark);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

/* ==========================================
   04. HOMEPAGE: HERO SECTION
   ========================================== */
.hero {
    height: 90vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('../images/MLK5.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10%;
}

.hero-text-container {
    width: 50%;
    text-align: right;
}

.hero-huge-text {
    font-family: 'CustomHeadingFont', sans-serif;
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    line-height: 1.1;
    color: var(--white);
    font-weight: 900;
    text-transform: uppercase;
    /* Custom High-Quality drop shadow mix */
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4), 
                 10px 10px 25px rgba(0, 0, 0, 0.6);
}

/* ==========================================
   05. HOMEPAGE: 4X4 MOSAIC GRID
   ========================================== */
.mosaic-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    background: var(--dark);
}

.grid-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

/* Text Cubes Styling */
.text-cube {
    background-color: var(--primary);
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    z-index: 2; 
}

.text-cube:hover {
    background-color: var(--secondary);
}

.text-cube h2 {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    margin-bottom: 0.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.text-cube p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cube-link {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border: 2px solid var(--white);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.cube-link:hover {
    background: var(--white);
    color: var(--dark);
}

/* Image Slideshow Cubes CSS Framework */
.slideshow-cube {
    position: relative;
}

.slideshow-cube img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

/* Simple fallback display rules */
.slideshow-cube img:first-child {
    opacity: 1;
}

/* Animation cycles for changing images automatically */
@keyframes slideCycle {
    0%, 30% { opacity: 1; }
    35%, 95% { opacity: 0; }
    100% { opacity: 1; }
}
@keyframes slideCycleDelay {
    0%, 45% { opacity: 0; }
    50%, 80% { opacity: 1; }
    85%, 100% { opacity: 0; }
}

.slideshow-cube img.slide-1 { animation: slideCycle 10s infinite; }
.slideshow-cube img.slide-2 { animation: slideCycleDelay 10s infinite; }

/* ==========================================
   06. ABOUT PAGE: DESIGN PATTERNS
   ========================================== */
.about-hero {
    background: linear-gradient(135deg, var(--primary), #0f233f);
    color: var(--white);
    padding: 6rem 10% 4rem 10%;
    text-align: center;
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-padding {
    padding: 5rem 10%;
}

.grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.bg-white { background-color: var(--white); }
.bg-subtle { background-color: #f3f4f6; }

.section-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary);
}

.center-title {
    text-align: center;
    margin-bottom: 3rem;
}
.center-title::after { left: 50%; transform: translateX(-50%); }

/* Vision & Mission Cards */
.vm-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.vm-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary);
}

/* Value Items */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-item {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.value-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Founder Message block */
.founder-block {
    background: var(--white);
    border-radius: 16px;
    padding: 4rem;
    box-shadow: var(--shadow);
}

.founder-img {
    border-radius: 12px;
    width: 100%;
    height: 800px;
    object-fit: cover;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.team-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 { color: var(--primary); }
.team-info span { color: var(--secondary); font-weight: 600; font-size: 0.9rem;}

/* Highlights/Stats counter design */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-box {
    padding: 2.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
}

.stat-box .number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary);
    display: block;
}

/* ==========================================
   07. CONTACT PAGE DESIGN
   ========================================== */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.btn-submit {
    background: var(--primary);
    color: var(--white);
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background: #0f233f;
    transform: translateY(-2px);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.info-item svg {
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.map-container {
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    background: #e5e7eb;
}

/* Newsletter row */
.newsletter-section {
    background: var(--primary);
    color: var(--white);
    border-radius: 12px;
    padding: 3rem;
    margin-top: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-grow: 1;
    max-width: 500px;
}

/* ==========================================
   08. GLOBAL FOOTER DESIGN
   ========================================== */
footer {
    background-color: var(--dark);
    color: #9ca3af;
    padding: 5rem 10% 2rem 10%;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.social-icons-tray {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    fill: #9ca3af;
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--secondary);
    fill: var(--dark);
    transform: translateY(-3px);
}

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

/* ==========================================
   09. RESPONSIVE BREAKPOINTS
   ========================================== */
@tablet: @media (max-width: 968px) {
    .mosaic-container { grid-template-columns: repeat(2, 1fr); }
    .grid-2col, .vm-container, .team-grid, .contact-wrapper, .footer-columns { grid-template-columns: 1fr; gap: 2.5rem; }
    .values-grid, .stats-grid { grid-template-columns: 1fr; }
    .hero { justify-content: center; text-align: center; }
    .hero-text-container { width: 100%; text-align: center; }
    .newsletter-section { flex-direction: column; text-align: center; }
    .newsletter-form { width: 100%; }
}
@media (max-width: 968px) {
    .mosaic-container { grid-template-columns: repeat(2, 1fr); }
    .grid-2col, .vm-container, .team-grid, .contact-wrapper, .footer-columns { grid-template-columns: 1fr; gap: 2.5rem; }
    .values-grid, .stats-grid { grid-template-columns: 1fr; }
    .hero { justify-content: center; text-align: center; }
    .hero-text-container { width: 100%; text-align: center; }
    .newsletter-section { flex-direction: column; text-align: center; }
    .newsletter-form { width: 100%; }
}
@media (max-width: 480px) {
    .mosaic-container { grid-template-columns: 1fr; }
    .nav-links { display: none; } /* Simplified mobile treatment */
}