/* Home Page Styles */

:root {
    --primary-dark: #0B162C;
    --primary-color: #1e293b;
    --accent-color: #FF6B00;
    --highlight: #FFF4ED;
    --text-main: #f8fafc;
    --text-dark: #334155;
    --bg-body: #f1f5f9;
    --bg-white: #ffffff;
    --header-height-large: 130px;
    --header-height-small: 70px;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 10px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-padding { padding: 100px 0; }
.text-center { text-align: center; }

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-family: 'Oswald', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.btn-primary { background-color: var(--accent-color); color: white; border: none; }
.btn-primary:hover { background-color: #e65100; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255, 107, 0, 0.3); }
.btn-outline { background: transparent; color: var(--text-main); border: 2px solid var(--text-main); margin-left: 0; }
.btn-outline:hover { background: var(--text-main); color: var(--accent-color); transform: translateY(-2px); }

/* --- HEADER --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height-large);
    background-color: var(--primary-dark);
    border-bottom: 4px solid var(--accent-color);
    display: flex;
    align-items: center;
    transition: var(--transition);
    padding: 0 40px;
}
header.scrolled { height: var(--header-height-small); padding: 0 20px; }
.nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { display: flex; align-items: center; gap: 20px; transition: var(--transition); z-index: 2; }
.logo-img { height: 100px; width: auto; transition: height 0.5s ease; }
header.scrolled .logo-img { height: 50px; }
.logo-text { font-family: 'Oswald', sans-serif; font-size: 3.5rem; font-weight: 700; color: white; letter-spacing: 2px; line-height: 1; transition: font-size 0.5s ease; }
.logo-text span { color: var(--accent-color); }
header.scrolled .logo-text { font-size: 2rem; }

.header-cert-badge { position: absolute; top: 15px; right: 20px; height: 80px; width: auto; opacity: 1; transition: var(--transition); z-index: 2; }
header.scrolled .header-cert-badge { top: 5px; right: 10px; height: 40px; }
.header-cert-badge-2 { position: absolute; top: 15px; left: 15px; height: 80px; width: auto; opacity: 1; transition: var(--transition); z-index: 2; }
header.scrolled .header-cert-badge-2 { top: 5px; right: 70px; height: 40px; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { font-family: 'Oswald', sans-serif; font-weight: 500; color: rgba(255,255,255,0.8); font-size: 1.1rem; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--accent-color); }
.nav-links li { position: relative; }

.dropdown-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--primary-dark); min-width: 200px;
    flex-direction: column; display: none !important;
    z-index: 999; border: 1px solid var(--accent-color);
    list-style: none; margin-top: 5px; padding: 0;
}
.dropdown-menu li { border-bottom: 1px solid rgba(255,107,0,0.2); padding: 0; }
.dropdown-menu li:last-child { border-bottom: none; }
.dropdown-menu a { display: block; padding: 12px 20px; color: rgba(255,255,255,0.8); font-size: 1rem; }
.nav-links li:hover .dropdown-menu { display: flex !important; }
.dropdown-menu li a:hover { color: var(--accent-color); background: rgba(255,107,0,0.1); padding-left: 22px; }

.mobile-toggle { display: none; cursor: pointer; font-size: 2rem; color: white; }

/* --- HERO --- */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1a2e45 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
    color: white;
    padding-top: var(--header-height-large);
    overflow: hidden;
    position: relative;
    transition: padding-top 0.5s ease;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px; opacity: 0.3; z-index: 1; pointer-events: none;
}
body.scrolled-body .hero { padding-top: var(--header-height-small); }

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content { position: relative; min-height: 400px; }

.hero-slide {
    position: absolute;
    top: 0; left: 0; width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out, transform 0.6s ease-out;
    transform: translateY(20px);
}
.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    position: relative;
}

.hero-content h1 { font-size: 4rem; color: white; margin-bottom: 20px; line-height: 1; }
.hero-content p {
    font-size: 1.1rem; color: rgba(255,255,255,0.8);
    margin-bottom: 40px; max-width: 95%;
    border-left: 3px solid var(--accent-color); padding-left: 20px;
}

/* Image side */
.slide-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hero-image-side { position: relative; height: 400px; width: 100%; overflow: visible; }
.hero-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; border: 4px solid var(--accent-color);
    z-index: 2; opacity: 0; transform: scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 92% 100%, 0 100%);
}
.hero-img.active { opacity: 1; transform: scale(1); }

/* Floating Badge */
.floating-badge {
    position: absolute; bottom: -20px; left: 20px;
    background: var(--accent-color); color: white;
    padding: 16px 22px; border-radius: 0;
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    z-index: 5; opacity: 0; transition: opacity 0.5s ease;
    min-width: 90px;
}
.floating-badge.active { opacity: 1; animation: float 4s ease-in-out infinite; }
@keyframes float {
    0%   { transform: translateY(0px); }
    50%  { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}
.badge-icon {
    width: 45px; height: 45px; background: rgba(255,255,255,0.2);
    border-radius: 4px; display: flex; align-items: center;
    justify-content: center; color: white; font-size: 1.4rem;
}

/* Dots */
.carousel-indicators {
    display: flex !important;
    gap: 10px;
    margin-top: 40px;
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 10;
    align-items: center;
    justify-content: flex-start;
    margin-right: 0 !important;
    margin-left: 0 !important;
}
.dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    transform: rotate(45deg);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--accent-color); transform: rotate(45deg) scale(1.2); }

/* Arrows */
.nav-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: var(--accent-color); width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 10; font-size: 1rem; color: white;
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
    transition: var(--transition);
}
.nav-arrow:hover { background: white; color: var(--accent-color); }
.prev-arrow { left: -5px; }
.next-arrow { right: -5px; }

/* --- ANIMATIONS --- */
.anim-hidden { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.anim-visible { opacity: 1; transform: translateY(0); }

/* --- STATS --- */
.stat-item h2 { font-size: 2.5rem; color: white; margin-bottom: 0; }
.stat-item p { color: rgba(255,255,255,0.9); font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* --- PROJECTS --- */


/* --- SERVICES --- */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.service-card { background: white; padding: 40px; transition: var(--transition); border-bottom: 3px solid transparent; position: relative; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 3px; background: var(--accent-color); transition: width 0.4s ease; }
.service-card:hover { box-shadow: 0 15px 30px rgba(11,22,44,0.1); transform: translateY(-5px); }
.service-card:hover::before { width: 100%; }
.icon-box { margin-bottom: 25px; color: var(--accent-color); width: 60px; height: 60px; background: var(--highlight); display: flex; align-items: center; justify-content: center; border-radius: 8px; }

/* --- CONTACT SECTION --- */
#contact {
    padding: 60px 20px;
    background: var(--bg-body);
}

/* --- FOOTER --- */
footer {
    background: var(--primary-dark); color: white; padding: 80px 0 30px; position: relative;
    background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr 1fr; gap: 50px; margin-bottom: 60px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 40px; }
.footer-logo-section { display: flex; align-items: flex-start; gap: 20px; }
.footer-logo-img { height: 80px; width: auto; filter: brightness(0) invert(1); }
.footer-text-col h2 { font-family: 'Oswald', sans-serif; font-size: 2rem; color: white; margin-bottom: 15px; }
.footer-text-col p { color: #94a3b8; font-size: 0.9rem; }
.footer-cert-row { display: flex; gap: 15px; justify-content: center; align-items: center; }
.footer-cert-img { height: 80px; border: 2px solid rgba(255,255,255,0.1); padding: 5px; background: white; }
.footer-col h4 { color: var(--accent-color); margin-bottom: 25px; font-size: 1.1rem; font-family: 'Oswald', sans-serif; text-transform: uppercase; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #cbd5e1; font-size: 0.95rem; display: block; }
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }
.copyright { text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.4); }

/* --- TOAST --- */
#toast {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--accent-color); color: white;
    padding: 16px 28px; font-family: 'Oswald', sans-serif;
    font-size: 1rem; font-weight: 500;
    transform: translateY(150%); transition: transform 0.4s ease;
    z-index: 2000;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content { margin-bottom: 40px; min-height: 300px; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { margin: 0 auto 30px; border: none; text-align: center; }
    .hero-btns { justify-content: center; }
    .hero-image-side { max-width: 500px; margin: 0 auto; height: 350px; }
    .nav-arrow { display: none; }
    .floating-badge { left: 50%; transform: translateX(-50%); bottom: 20px; width: max-content; }
    @keyframes float {
        0%   { transform: translateX(-50%) translateY(0px); }
        50%  { transform: translateX(-50%) translateY(-15px); }
        100% { transform: translateX(-50%) translateY(0px); }
    }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-logo-section { flex-direction: column; align-items: center; text-align: center; }
    .footer-text-col { text-align: center; }
    .header-cert-badge { display: none; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: var(--header-height-large); right: -100%; width: 100%; height: 100vh;
        background: var(--primary-dark); flex-direction: column; padding: 40px; transition: 0.4s ease;
    }
    .nav-links.active { right: 0; }
    .mobile-toggle { display: block; z-index: 1001; }
    .hero-content h1 { font-size: 2.2rem; }
    .btn { width: 100%; margin: 10px 0; }
    .btn-outline { margin-left: 0; }
    .hero-image-side { height: 280px; }
    .logo-img { height: 70px; }
    .logo-text { font-size: 2.2rem; }
    header { height: 100px; }
    #contact .container > div { grid-template-columns: 1fr !important; }
    #contact .container > div > div:last-child { min-height: 220px !important; }
}
