@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #1e3a8a;
  --secondary: #0f172a;
  --accent: #f59e0b;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #334155;
  --overlay-light: rgba(255, 255, 255, 0.94);
  --overlay-dark: rgba(15, 23, 42, 0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: var(--text); background: var(--light); line-height: 1.8; font-size: 16px; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--secondary); font-weight: 700; line-height: 1.2; margin-bottom: 1.2rem; }
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-transform: uppercase; letter-spacing: 1px; }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; font-size: 1.1rem; }

/* Navbar & Logo */
.navbar { position: fixed; top: 0; width: 100%; background: rgba(255, 255, 255, 0.98); backdrop-filter: blur(10px); z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 1rem 5%; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.logo { display: flex; align-items: center; gap: 0.8rem; }
.logo-icon { background: var(--primary); color: var(--white); width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.8rem; border-radius: 8px; box-shadow: 0 4px 10px rgba(30,58,138,0.3); }
.logo-text { font-size: 1.2rem; font-weight: 800; color: var(--secondary); text-transform: uppercase; letter-spacing: 1px; display: flex; flex-direction: column; line-height: 1.1; }
.logo-text span { font-size: 0.75rem; font-weight: 600; color: var(--accent); letter-spacing: 2.5px; margin-top: 2px; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; color: var(--secondary); padding: 0.5rem 0; position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Layout Varieties */
.section { padding: 8rem 5%; position: relative; background: var(--white); }
.section-alt { background: var(--light); }
.section-center { text-align: center; max-width: 900px; margin: 0 auto; }
.text-center { text-align: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; }

/* Hero Backgrounds & Overlays */
.bg-img { background-size: cover; background-position: center; background-attachment: fixed; position: relative; }
.overlay-light { background: var(--overlay-light); position: absolute; top:0; left:0; right:0; bottom:0; }
.overlay-dark { background: var(--overlay-dark); position: absolute; top:0; left:0; right:0; bottom:0; }
.content-relative { position: relative; z-index: 10; }
.content-relative.dark-mode h1, .content-relative.dark-mode h2, .content-relative.dark-mode h3, .content-relative.dark-mode p { color: var(--white); }

/* Split Section Layouts */
.split-section { display: flex; flex-wrap: wrap; gap: 5rem; align-items: center; }
.split-section.reverse { flex-direction: row-reverse; }
.split-image { flex: 1; min-width: 300px; position: relative; }
.split-image img { width: 100%; border-radius: 16px; box-shadow: 0 25px 50px rgba(0,0,0,0.15); object-fit: cover; max-height: 600px; }
.split-image::after { content: ''; position: absolute; top: 30px; left: -30px; width: 100%; height: 100%; border: 4px solid var(--accent); border-radius: 16px; z-index: -1; transition: transform 0.4s; }
.split-section.reverse .split-image::after { left: auto; right: -30px; }
.split-text { flex: 1; min-width: 300px; }

/* Overlap Image Layout */
.overlap-layout { position: relative; min-height: 500px; flex: 1; min-width: 300px; }
.overlap-layout img.back { width: 75%; border-radius: 12px; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.overlap-layout img.front { width: 70%; border-radius: 12px; position: absolute; right: 0; bottom: -50px; border: 15px solid var(--white); box-shadow: 0 20px 40px rgba(0,0,0,0.15); z-index: 2; }

/* Card Varieties */
.card { background: rgba(255,255,255,0.98); padding: 3.5rem; border-radius: 12px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); border-top: 4px solid var(--primary); }
.card h3 { color: var(--primary); margin-bottom: 1.5rem; }
.card ul li { padding: 0.8rem 0; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; gap: 10px; }
.card ul li::before { content: '✓'; color: var(--accent); font-weight: bold; }

.card-img-top { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 15px 35px rgba(0,0,0,0.08); transition: transform 0.4s, box-shadow 0.4s; height: 100%; display: flex; flex-direction: column; }
.card-img-top:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.card-img-top img { width: 100%; height: 260px; object-fit: cover; }
.card-img-body { padding: 2.5rem; flex: 1; }

/* Image Grid Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.gallery-grid img { width: 100%; height: 320px; object-fit: cover; border-radius: 12px; transition: transform 0.5s, filter 0.5s; filter: brightness(0.9); }
.gallery-grid img:hover { transform: scale(1.03); filter: brightness(1.1); z-index: 10; position: relative; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }

/* Buttons */
.btn { display: inline-block; padding: 1.2rem 3rem; background: var(--primary); color: var(--white); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; border-radius: 6px; border: none; cursor: pointer; margin-top: 1.5rem; transition: background 0.3s, transform 0.2s; box-shadow: 0 8px 20px rgba(30,58,138,0.2); }
.btn:hover { background: var(--secondary); color: var(--white); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--secondary); box-shadow: 0 8px 20px rgba(245,158,11,0.25); }
.btn-accent:hover { background: var(--primary); color: var(--white); }

/* Contact Form */
.form-group { margin-bottom: 1.8rem; text-align: left; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.5rem; color: var(--secondary); }
.form-control { width: 100%; padding: 1.2rem; border: 2px solid #cbd5e1; font-family: 'Montserrat', sans-serif; font-size: 1.05rem; background: #f8fafc; border-radius: 8px; transition: border-color 0.3s; }
.form-control:focus { border-color: var(--primary); outline: none; background: var(--white); }
textarea.form-control { min-height: 180px; resize: vertical; }
.success-message { display: none; background: #10b981; color: white; padding: 2rem; border-radius: 8px; text-align: center; font-weight: 600; font-size: 1.2rem; margin-top: 2rem; box-shadow: 0 10px 25px rgba(16, 185, 129, 0.2); }

/* Footer */
.footer { background: var(--secondary); color: var(--white); padding: 5rem 5% 2rem; position: relative; z-index: 20; }
.footer .grid-3 h3 { color: var(--white); font-size: 1.5rem; }
.footer .logo-text { color: var(--white); }
.footer p, .footer a { color: #94a3b8; }
.footer a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid #334155; margin-top: 4rem; padding-top: 2rem; text-align: center; color: #64748b; font-size: 0.95rem; }

.subheading { color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 2px; font-size: 1rem; margin-bottom: 1rem; display: block; }

/* Motion Effects */
.slide-up-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1) !important;
    will-change: opacity, transform;
}

.slide-up-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 1024px) {
  .split-section { flex-direction: column !important; gap: 3rem; }
  .split-image { width: 100%; }
  .split-image::after { display: none; }
  .overlap-layout { min-height: auto; display: flex; flex-direction: column; gap: 1rem; }
  .overlap-layout img.back, .overlap-layout img.front { width: 100%; position: relative; right: auto; bottom: auto; border: none; }
}
@media(max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  h1 { font-size: 2.8rem; }
  h2 { font-size: 2.2rem; }
  .nav-links { display: none; }
  .section { padding: 6rem 5%; }
}
