/* ========== CSS RESET & BASE ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', sans-serif; color: #333333; background-color: #ffffff; line-height: 1.6; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4, h5, h6 { font-family: 'Playfair Display', serif; color: #122A2E; margin-bottom: 1rem; font-weight: 700; }
h1 { font-size: 3.5rem; }
@media (max-width: 768px) { h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } }
h2 { font-size: 2.5rem; }
p { font-family: 'Poppins', sans-serif; margin-bottom: 1rem; }

.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { position: relative; display: inline-block; padding-bottom: 0.5rem; }
.section-title h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 50px; height: 3px; background-color: #C8A96A; }
.section-title p { color: #6c757d; max-width: 600px; margin: 1rem auto 0; }

/* ========== UTILITIES ========== */
.bg-primary { background-color: #122A2E !important; }
.bg-secondary { background-color: #C8A96A !important; }
.bg-offwhite { background-color: #f8f9fa !important; }
.text-primary { color: #122A2E !important; }
.text-secondary { color: #C8A96A !important; }
.text-white { color: #ffffff !important; }

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

/* Dark Mode */
body.dark-mode { background-color: #1a1a1a; color: #e0e0e0; }
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, body.dark-mode h4, body.dark-mode h5, body.dark-mode h6 { color: #ffffff; }
body.dark-mode .bg-offwhite { background-color: #222 !important; }
body.dark-mode .mega-menu { background-color: #1a1a1a; border-top-color: #C8A96A; }
body.dark-mode .mega-menu a { color: #e0e0e0; }

/* ========== BUTTONS ========== */
.btn-custom { display: inline-block; padding: 0.8rem 2rem; font-family: 'Poppins', sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; border-radius: 4px; transition: all 0.3s; border: 2px solid transparent; cursor: pointer; text-decoration: none;}
.btn-custom-primary { background-color: #C8A96A; color: #ffffff; }
.btn-custom-primary:hover { background-color: transparent; border-color: #C8A96A; color: #C8A96A; }
.btn-custom-outline { background-color: transparent; border-color: #ffffff; color: #ffffff; }
.btn-custom-outline:hover { background-color: #ffffff; color: #122A2E; }

/* ========== MEGA MENU PAGE HEADERS ========== */
.page-header { background: #122A2E; padding: 8rem 0 4rem; text-align: center; color: white; position: relative;}
.page-header h1 { color: #C8A96A; margin-bottom: 0; }
.page-header p { font-size: 1.2rem; color: #a0a0a0; }

/* ========== NAVBAR AND MEGA MENU ========== */
.navbar-custom { padding: 1rem 0; transition: all 0.3s; background-color: transparent; width: 100%; z-index: 1030; }
.navbar-custom.scrolled { background-color: #122A2E; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 0.5rem 0; }
body:not(.home) .navbar-custom { background-color: #122A2E; } /* Solid for non-home pages */
.navbar-custom .navbar-brand { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 700; color: #ffffff !important; }
.navbar-custom .navbar-brand span { color: #C8A96A; }
.navbar-custom .nav-link { color: rgba(255,255,255,0.8) !important; font-family: 'Poppins', sans-serif; font-weight: 500; margin: 0 0.5rem; position: relative; padding: 0.5rem 0 !important; }
.navbar-custom .nav-link::after { content: ''; position: absolute; width: 0; height: 2px; bottom: 0; left: 0; background-color: #C8A96A; transition: width 0.3s; }
.navbar-custom .nav-link:hover, .navbar-custom .nav-link.active { color: #C8A96A !important; }
.navbar-custom .nav-link:hover::after, .navbar-custom .nav-link.active::after { width: 100%; }
.navbar-custom .navbar-toggler { border-color: rgba(255,255,255,0.5); }
.navbar-custom .navbar-toggler .navbar-toggler-icon { background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28255, 255, 255, 1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E"); }

/* Mega Menu Setup */
.dropdown.mega { position: static; }
.mega-menu { width: 100%; left: 0; top: 100%; background: #ffffff; padding: 2rem; border: none; border-top: 3px solid #C8A96A; box-shadow: 0 10px 30px rgba(0,0,0,0.1); border-radius: 0 0 8px 8px; margin-top: 0;}
.navbar-expand-lg .navbar-nav .dropdown:hover .dropdown-menu.mega-menu { display: block; }
.mega-menu h6 { font-family: 'Playfair Display', serif; color: #C8A96A; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 0.5rem;}
.mega-menu ul li { margin-bottom: 0.5rem; }
.mega-menu ul li a { color: #333; font-weight: 400; transition: color 0.3s; font-size: 0.95rem; display: block;}
.mega-menu ul li a:hover { color: #C8A96A; text-decoration: none; padding-left: 5px; }
.mega-banner { position: relative; border-radius: 8px; overflow: hidden; height: 100%; min-height: 150px; background-size: cover; background-position: center; display: flex; align-items: flex-end; padding: 1.5rem; }
.mega-banner::before { content:''; position:absolute; top:0;left:0;right:0;bottom:0; background: linear-gradient(transparent, rgba(18,42,46,0.9)); z-index:1; }
.mega-banner h4 { position:relative; z-index:2; color:#fff; margin:0; font-size: 1.25rem;}

.offcanvas { background-color: #122A2E; color: #ffffff; }
.offcanvas .nav-link { font-size: 1.2rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.offcanvas .dropdown-menu { background: rgba(0,0,0,0.2); border: none; margin-top: 0; padding: 1rem; }
.offcanvas .dropdown-menu a { color: #fff; padding: 0.5rem 0;}
.offcanvas .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* ========== CARDS AND ELEMENTS ========== */
.service-card { background: #ffffff; padding: 2.5rem; border-radius: 8px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.05); transition: transform 0.3s, box-shadow 0.3s; height: 100%; border-bottom: 3px solid transparent; }
.service-card .icon-wrapper { width: 70px; height: 70px; background-color: rgba(200, 169, 106, 0.1); color: #C8A96A; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 1.5rem; transition: all 0.3s; }
.service-card h3 { font-size: 1.25rem; margin-bottom: 1rem; color: #122A2E; }
.service-card p { color: #6c757d; font-size: 0.95rem; }
.service-card:hover { transform: translateY(-10px); box-shadow: 0 15px 40px rgba(0,0,0,0.1); border-color: #C8A96A; }
.service-card:hover .icon-wrapper { background-color: #C8A96A; color: #ffffff; }
body.dark-mode .service-card { background: #242424; box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
body.dark-mode .service-card p { color: #aaa; }

.project-card { position: relative; overflow: hidden; border-radius: 8px; cursor: pointer; }
.project-card img { width: 100%; height: 300px; object-fit: cover; transition: transform 0.5s ease; }
.project-card .overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(18, 42, 46, 0.9) 0%, transparent 100%); padding: 2rem 1.5rem 1.5rem; transform: translateY(20px); opacity: 0; transition: all 0.3s; }
.project-card .overlay h4 { color: #ffffff; margin-bottom: 0.2rem; font-size: 1.2rem; }
.project-card .overlay p { color: #C8A96A; margin: 0; font-size: 0.9rem; }
.project-card:hover img { transform: scale(1.05); }
.project-card:hover .overlay { transform: translateY(0); opacity: 1; }

.form-control { border-radius: 4px; padding: 0.8rem 1.2rem; border: 1px solid #ddd; }
.form-control:focus { border-color: #C8A96A; box-shadow: 0 0 0 0.2rem rgba(200, 169, 106, 0.25); }
body.dark-mode .form-control { background-color: #333; border-color: #444; color: #fff; }
body.dark-mode .form-control:focus { background-color: #383838; }

/* ========== FOOTER ========== */
.footer { background-color: #0b191c; color: #a0a0a0; padding: 4rem 0 2rem; }
.footer .footer-title { color: #ffffff; font-size: 1.25rem; margin-bottom: 1.5rem; font-family: 'Playfair Display', serif; }
.footer .footer-brand { font-size: 1.8rem; margin-bottom: 1rem; display: inline-block; color: #fff; }
.footer .footer-brand span { color: #C8A96A; }
.footer ul li { margin-bottom: 0.8rem; }
.footer ul li a { transition: color 0.3s; }
.footer ul li a:hover { color: #C8A96A; text-decoration: none; }
.footer .social-links a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background-color: rgba(255,255,255,0.05); color: #ffffff; border-radius: 50%; margin-right: 0.5rem; transition: all 0.3s; }
.footer .social-links a:hover { background-color: #C8A96A; transform: translateY(-3px); }
.footer .footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; font-size: 0.9rem; }

/* ========== LAYOUTS ========== */
.hero-section { position: relative; height: 100vh; min-height: 600px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-section .video-bg { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; width: auto; height: auto; transform: translate(-50%, -50%); object-fit: cover; z-index: -2; }
.hero-section .overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.5); z-index: -1; }
.hero-section .hero-content { text-align: center; color: #ffffff; z-index: 1; max-width: 800px; padding: 0 15px; width: 100%; }
.hero-section .hero-content h1 { font-size: 4.5rem; margin-bottom: 1.5rem; text-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-section .hero-content p { font-size: 1.25rem; margin-bottom: 2.5rem; text-shadow: 0 1px 5px rgba(0,0,0,0.5); }
.hero-section .hero-content .btn-custom { margin: 0 0.5rem; }
@media (max-width: 768px) { .hero-section .hero-content h1 { font-size: 2.5rem; } }
@media (max-width: 576px) { .hero-section .hero-content .btn-custom { display: block; margin: 1rem auto; } }

.section-padding { padding: 6rem 0; }
.section-padding-top { padding-top: 6rem; }
.section-padding-bottom { padding-bottom: 6rem; }
@media (max-width: 768px) { .section-padding { padding: 4rem 0; } .section-padding-top { padding-top: 4rem; } .section-padding-bottom { padding-bottom: 4rem; } }

.custom-grid { display: grid; gap: 1.5rem; }
.custom-grid-3 { grid-template-columns: repeat(3, 1fr); }
.custom-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 991px) { .custom-grid-3, .custom-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .custom-grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 576px) { .custom-grid-4 { grid-template-columns: 1fr; } }

/* ========== PAGES ========== */
.about-section .about-img { border-radius: 8px; box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.about-section .about-content h2 { margin-bottom: 1.5rem; }
.about-section .about-content .check-list { margin-top: 2rem; }
.about-section .about-content .check-list li { margin-bottom: 0.8rem; display: flex; align-items: center; }
.about-section .about-content .check-list li i { color: #C8A96A; margin-right: 10px; }

.project-filters { display: flex; justify-content: center; flex-wrap: wrap; margin-bottom: 2rem; }
.project-filters button { background: transparent; border: none; padding: 0.5rem 1.5rem; margin: 0 0.5rem 0.5rem; font-family: 'Poppins', sans-serif; font-weight: 500; cursor: pointer; border-radius: 30px; transition: all 0.3s; }
.project-filters button.active, .project-filters button:hover { background-color: #122A2E; color: #ffffff; }
body.dark-mode .project-filters button { color: #fff; }
body.dark-mode .project-filters button.active, body.dark-mode .project-filters button:hover { background-color: #C8A96A; }

.stats-section { background-color: #122A2E; color: #ffffff; position: relative; }
.stats-section::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; opacity: 0.1; background-image: url('data:image/svg+xml;charset=utf8,%3Csvg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"%3E%3Ccircle cx="2" cy="2" r="2" fill="%23ffffff" fill-opacity="1" fill-rule="evenodd"/%3E%3C/svg%3E'); }
.stats-section .stat-item { text-align: center; padding: 2rem 0; z-index: 1; position: relative; }
.stats-section .stat-item .counter { font-size: 3rem; font-family: 'Playfair Display', serif; font-weight: 700; color: #C8A96A; margin-bottom: 0.5rem; }
.stats-section .stat-item p { text-transform: uppercase; letter-spacing: 1px; font-size: 0.9rem; margin: 0; }

.process-step { text-align: center; position: relative; margin-bottom: 2rem; }
.process-step .step-number { width: 60px; height: 60px; background-color: #C8A96A; color: #ffffff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; position: relative; z-index: 2; }
.process-step h4 { color: #122A2E; }
.process-step::after { content: ''; position: absolute; top: 30px; right: -50%; width: 100%; height: 2px; background-color: rgba(200, 169, 106, 0.3); z-index: 1; }
@media (max-width: 991px) { .process-step::after { display: none; } }
.process-step:last-child::after { display: none; }
body.dark-mode .process-step h4 { color: #fff; }

.theme-toggle-btn { position: fixed; bottom: 20px; left: 20px; width: 50px; height: 50px; border-radius: 50%; background-color: #122A2E; color: #ffffff; display: flex; justify-content: center; align-items: center; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 999; cursor: pointer; transition: all 0.3s; }
.theme-toggle-btn:hover { transform: scale(1.1); }
body.dark-mode .theme-toggle-btn { background-color: #C8A96A; }

.whatsapp-btn { position: fixed; bottom: 20px; right: 20px; width: 60px; height: 60px; border-radius: 50%; background-color: #25D366; color: #ffffff; display: flex; justify-content: center; align-items: center; border: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); z-index: 999; font-size: 2rem; text-decoration: none; transition: all 0.3s; }
.whatsapp-btn:hover { transform: scale(1.1); color: #ffffff; }
