* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: white; overflow-x: hidden; }
.bg-animation { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; background: linear-gradient(-45deg, #667eea, #764ba2, #4facfe, #00f2fe, #43e97b, #38f9d7); background-size: 400% 400%; animation: gradientShift 15s ease infinite; }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* Readability Improvement */
h1, h2, h3, p, nav a, .timeline-content, .contact-card, .logo {
    text-shadow: 0px 1px 4px rgba(0, 0, 0, 0.3);
}

/* --- THE FIX --- */
main {
    background-color: transparent; /* This ensures the main content area doesn't cover the animated background */
}

header { width: 100%; position: fixed; top: 0; left:0; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(255, 255, 255, 0.2); padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; z-index: 1000; transition: all 0.3s ease; }
.logo { font-size: 1.8rem; font-weight: 700; }
nav { display: flex; gap: 2rem; }
nav a { text-decoration: none; color: rgba(255, 255, 255, 0.9); font-weight: 500; transition: all 0.3s ease; position: relative; }
nav a:hover { color: white; transform: translateY(-2px); }
nav a::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: white; transition: width 0.3s ease; }
nav a:hover::after { width: 100%; }

section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.hero-content { max-width: 800px; padding: 0 2rem; animation: fadeInUp 1s ease; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 800; margin-bottom: 1rem; letter-spacing: -2px; }
.hero .subtitle { font-size: clamp(1.2rem, 3vw, 1.8rem); margin-bottom: 2rem; opacity: 0.95; font-weight: 300; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.btn { padding: 15px 30px; border: none; border-radius: 50px; font-weight: 600; text-decoration: none; transition: all 0.3s ease; cursor: pointer; position: relative; overflow: hidden; }
.btn-primary { background: rgba(255, 255, 255, 0.2); color: white; border: 2px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); }
.btn-primary:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.section-dark { background: rgba(0, 0, 0, 0.15); backdrop-filter: blur(15px); margin: 2rem; border-radius: 20px; border: 1px solid rgba(255, 255, 255, 0.2); }
h2 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 3rem; text-align: center; }

.about-content { display: grid; grid-template-columns: 250px 1fr; gap: 4rem; align-items: center; }
.about-image { width: 250px; height: 250px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); display: flex; align-items: center; justify-content: center; font-size: 4rem; margin: 0 auto; border: 3px solid rgba(255, 255, 255, 0.3); overflow: hidden; position: relative; }
.about-text { font-size: 1.1rem; line-height: 1.8; }
.highlight { background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)); padding: 0.2em 0.4em; border-radius: 4px; font-weight: 600; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 15px; transition: transform 0.3s ease, filter 0.3s; border: 1px solid rgba(255, 255, 255, 0.2);}
.gallery-item img:hover { transform: scale(1.05); filter: brightness(1.1); }

.timeline { position: relative; max-width: 800px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 2px; background: rgba(255, 255, 255, 0.3); top: 0; bottom: 0; left: 50%; margin-left: -1px; }
.timeline-item { padding: 1rem 2rem; position: relative; background: inherit; width: 50%; margin-bottom: 2rem; }
.timeline-item::after { content: ''; position: absolute; width: 20px; height: 20px; background: white; border: 3px solid rgba(255, 255, 255, 0.5); top: 1.5rem; border-radius: 50%; z-index: 1; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(odd)::after { right: -12px; }
.timeline-item:nth-child(even)::after { left: -12px; }
.timeline-content { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 10px; padding: 1.5rem; }
.timeline-year { font-weight: 700; color: rgba(255, 255, 255, 0.7); font-size: 0.9rem; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; margin-top: 3rem; }
.contact-card { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 15px; padding: 2rem; text-align: center; transition: all 0.3s ease; }
.contact-card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.15); }
.contact-card a { color: white; text-decoration: none; font-weight: 500; }

footer { background: rgba(0, 0, 0, 0.2); backdrop-filter: blur(10px); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 2rem; text-align: center; color: rgba(255, 255, 255, 0.7); }

/* Responsive Design */
@media (max-width: 768px) {
    nav { display: none; }
    .about-content { grid-template-columns: 1fr; text-align: center; }
    .timeline::after { left: 20px; }
    .timeline-item, .timeline-item:nth-child(even) { width: 100%; padding-left: 3rem; padding-right: 1rem; left: 0; }
    .timeline-item::after { left: 8px; }
}

.fade-in { opacity: 0; transform: translateY(30px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
