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

:root {
  --primary-blue: #B80000;
  --secondary-blue: #DC2525;
  --accent-color: #F39C12;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #FFE797;
  --white: #FFFFFF;
  --border-color: #E0E0E0;
  --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--text-dark); line-height: 1.6; background: var(--bg-light); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 1000; display: flex; justify-content: space-between; align-items: center; padding: 2px 5%; }
.logo { font-size: 18px; font-weight: 700; color: var(--primary-blue); display: flex; align-items: center; gap: 10px;}
.logo-img {height: 80px; width: auto;}
.logo i { color: var(--accent-color); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links li { position: relative; }
.nav-links a { font-weight: 600; font-size: 15px; color: var(--primary-blue); transition: var(--transition); padding: 5px 10px; display: block; }
.nav-links a:hover { color: var(--accent-color); }

/* Dropdown */
.dropdown-menu { display: none; position: absolute; top: 100%; left: 0; background: var(--white); box-shadow: 0 5px 15px rgba(0,0,0,0.1); min-width: 220px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border-color); }
.dropdown-menu li { border-bottom: 1px solid var(--border-color); }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu a { padding: 12px 20px; font-weight: 500; font-size: 14px; }
.dropdown-menu a:hover { background: var(--bg-light); padding-left: 25px; }
.dropdown:hover .dropdown-menu { display: block; animation: fadeIn 0.3s ease; }

/* Buttons */
.btn { display: inline-block; padding: 12px 24px; background: var(--accent-color); color: var(--white) !important; border-radius: 4px; font-weight: 600; cursor: pointer; transition: var(--transition); border: none; text-align: center; }
.btn:hover { background: #d68910; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 2px solid var(--primary-blue); color: var(--primary-blue) !important; }
.btn-outline:hover { background: var(--primary-blue); color: var(--white) !important; }
.btn-full { width: 100%; display: block; }

/* Mobile Menu */
.hamburger { display: none; cursor: pointer; font-size: 24px; color: var(--primary-blue); transition: var(--transition); }
.hamburger:hover { color: var(--accent-color); }

/* Hero */
.hero { background: linear-gradient(rgba(220, 37, 37, 0.7),
            rgba(255, 231, 151, 1)), url('/images/hero\ deltroz.png') center/cover; color: var(--white); padding: 120px 20px; text-align: center; }
.hero-sm { padding: 80px 20px; background: linear-gradient(#FFE797, #DC2525), url('https://images.unsplash.com/photo-1519003722824-194d4455a60c?q=80&w=2075&auto=format&fit=crop') center/cover; }
.hero h1 { font-size: 52px; margin-bottom: 20px; animation: slideUp 0.8s ease; line-height: 1.2; }
.hero p { font-size: 20px; margin-bottom: 30px; max-width: 650px; margin-left: auto; margin-right: auto; animation: slideUp 1s ease; opacity: 0.9; }

/* Sections */
.section { padding: 80px 0; background: var(--white); }
.section-bg { background: var(--bg-light); }
.section-title { text-align: center; font-size: 36px; color: var(--primary-blue); margin-bottom: 15px; font-weight: 700; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 50px; font-size: 18px; max-width: 700px; margin-left: auto; margin-right: auto; }
.accent-text { color: var(--accent-color); }

/* Flex & Grids */
.flex-row { display: flex; gap: 40px; align-items: center; }
.flex-col { flex: 1; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }

/* Cards Grid */
.card { background: var(--white); padding: 40px 30px; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.05); transition: var(--transition); text-align: center; border: 1px solid var(--border-color); height: 100%; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); border-color: var(--secondary-blue); }
.card-icon { width: 80px; height: 80px; background: #FFE797; color: var(--secondary-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; margin: 0 auto 25px; transition: var(--transition); }
.card:hover .card-icon { background: var(--secondary-blue); color: var(--white); }
.card h3 { margin-bottom: 15px; color: var(--primary-blue); font-size: 22px; }
.card p { color: var(--text-light); margin-bottom: 20px; flex-grow: 1; }

/* Job Cards */
.job-card { text-align: left; align-items: flex-start; padding: 30px; }
.job-card h3 { margin-bottom: 5px; }
.job-meta { color: var(--text-light); font-size: 14px; margin-bottom: 15px; display: flex; gap: 15px; }
.job-meta i { color: var(--accent-color);}

/* Stats */
.stats-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; background: var(--primary-blue); border-radius: 8px; padding: 5px; color: var(--white); transform: translateY(-40px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }
.stat-item { text-align: center; flex: 1; min-width: 200px; padding: 10px; border-right: 1px solid rgba(255,255,255,0.1); }
.stat-item:last-child { border-right: none; }
.stat-item h2 { font-size: 30px; color: var(--accent-color); margin-bottom: 5px; font-weight: 700; }
.stat-item p { font-size: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }

/* Footer */
.footer { background: var(--primary-blue); color: var(--white); padding: 60px 20px 20px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; max-width: 1200px; margin: 0 auto; margin-bottom: 40px; }
.footer h4 { margin-bottom: 25px; color: var(--accent-color); font-size: 18px; position: relative; padding-bottom: 10px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 40px; height: 2px; background: var(--accent-color); }
.footer-links li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-links a { color: #ccc; transition: var(--transition); }
.footer-links a:hover { color: var(--white); padding-left: 5px; }
.footer-bottom { text-align: center; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid rgba(255,255,255,0.1); color: #999; }

/* Forms */
.form-group { margin-bottom: 25px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-dark); }
.form-control { width: 100%; padding: 14px; border: 1px solid var(--border-color); border-radius: 4px; font-family: inherit; font-size: 15px; background: #fafafa; transition: var(--transition); }
.form-control:focus { outline: none; border-color: var(--secondary-blue); box-shadow: 0 0 0 3px rgba(30, 102, 153, 0.1); background: var(--white); }
.error-msg { color: #e74c3c; font-size: 13px; margin-top: 6px; display: none; font-weight: 500; }
.is-invalid { border-color: #e74c3c; background: #fff0f0; }
.is-invalid ~ .error-msg { display: block; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Split Layouts for Contact/Login */
.split-layout { display: flex; background: var(--white); border-radius: 10px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); max-width: 1000px; margin: 0 auto; border: 1px solid var(--border-color); }
.split-img { flex: 1.2; background: url('https://images.unsplash.com/photo-1542296332-2e4473faf563?q=80&w=2070&auto=format&fit=crop') center/cover; min-height: 450px; position: relative; }
.split-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(10,61,98,0.8), rgba(10,61,98,0.4)); }
.split-content { position: absolute; bottom: 40px; left: 40px; color: var(--white); right: 40px; }
.split-form { flex: 1; padding: 50px 40px; }

/* Timeline (About Page) */
.timeline { position: relative; max-width: 900px; margin: 40px auto; padding: 20px 0; }
.timeline::after { content: ''; position: absolute; width: 4px; background: rgba(30,102,153,0.2); top: 0; bottom: 0; left: 50%; margin-left: -2px; border-radius: 2px; }
.timeline-item { padding: 10px 50px; position: relative; width: 50%; margin-bottom: 30px; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item::after { content: ''; position: absolute; width: 24px; height: 24px; right: -12px; background: var(--white); border: 5px solid var(--accent-color); top: 25px; border-radius: 50%; z-index: 1; box-shadow: 0 0 0 4px rgba(243, 156, 18, 0.2); }
.timeline-item:nth-child(even)::after { left: -12px; }
.timeline-date { color: var(--secondary-blue); font-weight: 700; font-size: 20px; margin-bottom: 10px; }
.timeline-content { padding: 30px; background: var(--white); border-radius: 8px; border: 1px solid var(--border-color); box-shadow: 0 5px 15px rgba(0,0,0,0.05); }

/* Utility */
.mb-2 { margin-bottom: 10px; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.fade-in-section { opacity: 0; transform: translateY(30px); visibility: hidden; transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); will-change: opacity, visibility; }
.fade-in-section.is-visible { opacity: 1; transform: none; visibility: visible; }

/* Responsive adjustments */
@media (max-width: 991px) {
  .hero h1 { font-size: 40px; }
  .grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .split-layout { flex-direction: column; }
  .split-img { min-height: 300px; }
  .stats-container { transform: translateY(0); margin-top: 30px; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .flex-row { flex-direction: column; }
  .nav-links { position: absolute; right: 0; top: 100%; background: var(--white); flex-direction: column; width: 100%; text-align: center; gap: 0; display: none; box-shadow: 0 10px 15px rgba(0,0,0,0.1); padding: 15px 0; border-top: 1px solid var(--border-color); }
  .nav-links.active { display: flex; animation: slideUp 0.3s ease; }
  .nav-links li { width: 100%; }
  .nav-links a { padding: 15px; font-size: 16px; border-bottom: 1px solid var(--bg-light); }
  .nav-links a.btn { margin: 15px; padding: 12px; width: calc(100% - 30px); display: inline-block; }
  .dropdown-menu { position: static; box-shadow: none; background: var(--bg-light); display: none !important; border: none; }
  .dropdown.active .dropdown-menu { display: block !important; }
  .hamburger { display: block; }
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 0; }
  .timeline-item:nth-child(even) { left: 0; }
  .timeline-item::after { left: 19px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}

/* Scrolling text */
.ticker {position: fixed; bottom: 0; padding-bottom: 15px; width: 100%; background: #111; color: #fff; overflow: hidden; height: 40px; display: flex; align-items: center;}

.ticker-content {white-space: nowrap; display: inline-block; padding-left: 100%; animation: scroll-left 60s linear infinite;}

@keyframes scroll-left {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-100%);
  }
}