/* CSS Architecture Premium - Cinematic Style */
:root {
    --bg-main: #040811; /* Ultra deep blue */
    --bg-secondary: #08101e;
    --accent: #2e6ff2;
    --accent-light: #528cff;
    --accent-gold: #c8a961;
    --text-pure: #ffffff;
    --text-muted: #8d9eb5;
    --font-heading: 'Playfair Display', serif;
    --font-sans: 'Montserrat', sans-serif;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body { background-color: var(--bg-main); color: var(--text-pure); font-family: var(--font-sans); line-height: 1.7; overflow-x: hidden; }

.text-center { text-align: center; }
.divider { width: 80px; height: 2px; background-color: var(--accent); margin: 30px 0; }
.divider.center { margin: 30px auto; }

/* Navbar */
.navbar { position: fixed; top: 0; width: 100%; z-index: 9999; padding: 35px 0; transition: var(--transition); background: transparent; }
.navbar.scrolled { padding: 15px 0; background: rgba(4, 8, 17, 0.95); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.05); }
.nav-container { max-width: 1600px; margin: 0 auto; padding: 0 50px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo img { height: 75px; transition: var(--transition); }
.navbar.scrolled .nav-logo img { height: 50px; }
.nav-menu { display: flex; gap: 40px; }
.nav-menu a { color: var(--text-pure); text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; font-weight: 500; position: relative; padding: 5px 0; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 1px; background-color: var(--accent); transition: width 0.3s ease; }
.nav-menu a:hover::after { width: 100%; }
.nav-social a { color: var(--text-pure); font-size: 1.2rem; transition: color 0.3s; }
.nav-social a:hover { color: var(--accent); }

/* Hero */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slider .slide { width: 100%; height: 100%; background-size: cover; background-position: center; animation: zoomInOut 30s infinite alternate ease-in-out; }
@keyframes zoomInOut { 0% { transform: scale(1); } 100% { transform: scale(1.15); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(180deg, rgba(4,8,17,0.7) 0%, rgba(4,8,17,0.9) 100%); z-index: 2; }
.hero-content { position: relative; z-index: 3; padding: 0 20px; margin-top: 80px; }
.hero-subtitle { font-family: var(--font-sans); font-size: 1rem; letter-spacing: 6px; text-transform: uppercase; color: var(--accent-light); margin-bottom: 25px; }
.hero-title { font-family: var(--font-heading); font-size: 8rem; font-weight: 600; line-height: 0.9; margin-bottom: 30px; letter-spacing: -2px; text-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.hero-desc { font-size: 1.4rem; font-weight: 300; color: var(--text-muted); max-width: 700px; margin: 0 auto 60px auto; }

.scroll-down-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 15px; color: var(--text-pure); text-decoration: none; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 3px; transition: color 0.3s; }
.scroll-down-btn i { font-size: 1.2rem; animation: bounce 2s infinite; }
.scroll-down-btn:hover { color: var(--accent); }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0); } 40% { transform: translateY(-10px); } 60% { transform: translateY(-5px); } }

/* Section: Profile */
.profile-section { padding: 180px 0; background-color: var(--bg-secondary); }
.profile-container { max-width: 1400px; margin: 0 auto; padding: 0 50px; display: grid; grid-template-columns: 5fr 6fr; gap: 120px; align-items: center; }
.profile-image { position: relative; }
.image-wrapper { position: relative; border-radius: 2px; overflow: hidden; box-shadow: 0 40px 80px rgba(0,0,0,0.6); aspect-ratio: 3/4; }
.image-wrapper img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.1) brightness(0.9); }
.experience-badge { position: absolute; bottom: -40px; right: -40px; background: var(--accent); color: #fff; padding: 45px; font-size: 1.1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; box-shadow: 0 20px 40px rgba(0,0,0,0.4); line-height: 1.2; z-index: 2; }
.experience-badge span { display: block; font-size: 4.5rem; font-family: var(--font-heading); margin-bottom: 5px; }

.section-heading { color: var(--accent); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 4px; margin-bottom: 20px; font-weight: 600; }
.main-heading { font-family: var(--font-heading); font-size: 4rem; line-height: 1.1; color: var(--text-pure); }
.main-heading em { font-style: italic; color: var(--accent-light); }
.lead-text { font-size: 1.4rem !important; color: #fff !important; font-weight: 400 !important; margin-bottom: 30px !important; }
.profile-text p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 25px; font-weight: 300; }

.stats-row { display: flex; gap: 40px; margin-top: 40px; }
.stat-item { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; }
.stat-item i { font-size: 2rem; color: var(--accent); }
.cau-info { margin-top: 50px; padding: 25px; background: rgba(255,255,255,0.02); border-left: 2px solid var(--accent); font-size: 1.2rem; letter-spacing: 2px; display: inline-block; }

/* Expertises */
.expertises { padding: 180px 0; background-color: var(--bg-main); }
.expertises-container { max-width: 1500px; margin: 0 auto; padding: 0 50px; }
.sub-heading { color: var(--text-muted); font-size: 1.2rem; margin-top: 15px; font-weight: 300; }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 80px; }
.expertise-item { background: var(--bg-secondary); padding: 60px 50px; border-radius: 2px; transition: var(--transition); border: 1px solid rgba(255,255,255,0.02); position: relative; overflow: hidden; }
.expertise-item::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.5s ease; }
.expertise-item:hover { transform: translateY(-15px); background: #0a1324; box-shadow: 0 30px 60px rgba(0,0,0,0.4); }
.expertise-item:hover::before { transform: scaleX(1); }
.expertise-item .icon { font-size: 2.8rem; color: var(--accent); margin-bottom: 35px; }
.expertise-item h4 { font-family: var(--font-heading); font-size: 1.7rem; margin-bottom: 20px; }
.expertise-item p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.8; }

/* Showcase Grid */
.showcase-section { padding: 180px 0; background-color: var(--bg-secondary); }
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-top: 80px; }
.project-card { position: relative; aspect-ratio: 16/11; overflow: hidden; display: block; text-decoration: none; background: #000; }
.project-image { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s; opacity: 0.7; }
.project-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,8,17,0.95) 0%, rgba(4,8,17,0.2) 50%, transparent 100%); transition: opacity 0.5s; }
.project-info { position: absolute; bottom: 60px; left: 60px; z-index: 2; transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.project-category { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 3px; color: var(--accent); margin-bottom: 15px; display: block; transform: translateY(20px); opacity: 0; transition: all 0.5s ease; }
.project-name { font-family: var(--font-heading); font-size: 3rem; color: var(--text-pure); transform: translateY(20px); transition: all 0.6s ease; text-shadow: 0 4px 20px rgba(0,0,0,0.5); }

.project-card:hover .project-image { transform: scale(1.08); opacity: 1; }
.project-card:hover .project-category, .project-card:hover .project-name { transform: translateY(0); opacity: 1; }

/* Terrara Section */
.terrara-section { padding: 150px 0; background-image: linear-gradient(rgba(4,8,17,0.85), rgba(4,8,17,0.95)), url('assets/Hub/proposta%2001.jpeg'); background-attachment: fixed; background-size: cover; background-position: center; text-align: center; }
.terrara-container { max-width: 900px; margin: 0 auto; padding: 0 50px; }
.terrara-title { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 30px; color: var(--text-pure); }
.terrara-content p { font-size: 1.3rem; color: var(--text-muted); font-weight: 300; line-height: 1.9; }

/* Footer */
footer { background-color: #020408; padding: 120px 0 40px 0; }
.footer-container { max-width: 1500px; margin: 0 auto; padding: 0 50px; display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 80px; }
.footer-logo { height: 60px; margin-bottom: 25px; }
.footer-brand p { color: var(--text-muted); font-size: 1.1rem; }
.footer-contact h4 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 30px; color: var(--text-pure); }
.footer-contact a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 15px; font-size: 1.1rem; transition: color 0.3s; }
.footer-contact a:hover { color: var(--accent); }
.footer-contact i { margin-right: 15px; color: var(--accent); }
.footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; color: #323d4d; font-size: 0.95rem; }

/* Animations - Scroll Reveals */
.reveal-up { opacity: 0; transform: translateY(60px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }

.reveal-left { opacity: 0; transform: translateX(-60px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }

.reveal-right { opacity: 0; transform: translateX(60px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

.fade-in-up-delay { animation: fadeInUpDelay 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; opacity: 0; }
@keyframes fadeInUpDelay { 0% { opacity: 0; transform: translateY(40px); } 100% { opacity: 1; transform: translateY(0); } }

/* Floating animation for badge */
.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-15px); } 100% { transform: translateY(0px); } }

/* Responsive */
@media(max-width: 1200px) {
    .profile-container { grid-template-columns: 1fr; gap: 80px; }
    .image-wrapper { max-width: 600px; margin: 0 auto; }
}
@media(max-width: 1024px) {
    .hero-title { font-size: 6rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .expertise-grid { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width: 768px) {
    .nav-menu { display: none; }
    .hero-title { font-size: 4rem; }
    .main-heading { font-size: 2.8rem; }
    .expertise-grid { grid-template-columns: 1fr; }
    .footer-container { flex-direction: column; gap: 60px; }
}
