/* /var/www/html/changingper/css/index.css */

:root {
    --primary-blue: #2c3e50;
    --soft-gold: #f39c12;
    --calm-teal: #16a085;
    --sage-bg: #dde2d5;      
    --text-gray: #3e3e3e;
    --container-width: 1100px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-gray);
    background-color: var(--sage-bg);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* --- THE HEAD --- */
.navbar-head {
    background: white;
    padding: 15px 45px;
    border-radius: 0 0 50px 50px;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

.nav-flex { display: flex; justify-content: space-between; align-items: center; }
.logo img { height: 110px; width: auto; }

.nav-links { list-style: none; display: flex; gap: 30px; align-items: center; }
.nav-links a { 
    text-decoration: none; 
    color: var(--primary-blue); 
    font-weight: 500; 
    font-size: 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.text-teal { color: var(--calm-teal) !important; font-weight: 600 !important; }
.text-gold { color: var(--soft-gold) !important; font-weight: 600 !important; }

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--soft-gold);
    transition: width 0.3s ease;
}

.nav-links a.text-teal::after { background-color: var(--calm-teal); }

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* --- HERO BOX --- */
.hero-box {
    position: relative;
    height: 550px;
    border-radius: 30px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.animate-slide {
    animation: fadeInUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-img { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4); 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
}

.hero-content { 
    width: 100%; 
    max-width: 850px; 
    text-align: center; 
    color: white; 
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Updated Slider: Using CSS Grid to maintain height */
.text-slider { 
    display: grid;
    grid-template-areas: "stack";
    width: 100%;
    margin-bottom: 40px; /* Physical gap between text and buttons */
}

.slide {
    grid-area: stack;
    opacity: 0; 
    animation: fadeThrough 12s infinite;
}

.slide:nth-child(2) { animation-delay: 6s; }

@keyframes fadeThrough {
    0%, 5% { opacity: 0; }
    10%, 45% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.slide h1 { font-size: 3.5rem; margin-bottom: 15px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.slide p { font-size: 1.25rem; font-weight: 300; max-width: 700px; margin: 0 auto; }

.hero-buttons { 
    display: flex; 
    justify-content: center; 
    gap: 20px;
}

.cta-button {
    padding: 16px 38px; 
    text-decoration: none; 
    border-radius: 50px;
    font-weight: 600; 
    font-size: 1rem;
    transition: 0.3s;
}
.cta-button.primary { background-color: var(--soft-gold); color: white; }
.cta-button.secondary { background-color: var(--calm-teal); color: white; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* Narrative Box */
.narrative-box {
    margin-bottom: 40px;
    padding: 60px 40px;
    background-color: white; 
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.narrative-box p {
    font-size: 1.3rem;
    max-width: 850px;
    margin: 0 auto;
    color: var(--primary-blue);
    line-height: 1.8;
}

footer {
    padding: 40px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #6a7a6c;
}

@media (max-width: 850px) {
    .hero-box { height: 600px; }
    .slide h1 { font-size: 2.5rem; }
    .slide p { font-size: 1.1rem; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 300px; }
}