/* css/global.css */

:root {
    --primary-white: #ffffff;
    --secondary-black: #0a0a0a;
    --accent-neon: #00FF00;
    --text-dark: #1f1f1f;
    --text-light: #f4f4f4;
    --gray-light: #f8f9fa;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-card: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-neon: 0 0 15px rgba(57, 255, 20, 0.4);
    --border-radius-lg: 30px;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--primary-white); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 100px 0; }
.bg-gray { background-color: var(--gray-light); }
.text-neon { color: var(--accent-neon); }
.text-center { text-align: center; }
.rounded-btn { border-radius: var(--border-radius-lg) !important; }
.rounded-img { border-radius: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.ls-2 { letter-spacing: 2px; text-transform: uppercase; font-weight: 700; font-size: 0.9rem; }
.section-title { font-size: 2.5rem; margin-bottom: 25px; line-height: 1.3; font-weight: 800; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 35px; font-weight: 700; cursor: pointer; transition: var(--transition); border: 2px solid transparent; text-align: center; }
.btn-neon { background-color: var(--accent-neon); color: var(--secondary-black); }
.btn-neon:hover { background-color: var(--secondary-black); color: var(--accent-neon); box-shadow: var(--shadow-neon); }
.btn-outline { border-color: var(--accent-neon); color: var(--accent-neon); background: transparent; }
.btn-outline:hover { background-color: var(--accent-neon); color: var(--secondary-black); }
.btn-sm { padding: 10px 25px; font-size: 0.9rem; }

/* HEADER & NAV */
header { background: var(--primary-white); position: fixed; width: 100%; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.05); height: 90px; display: flex; align-items: center; }
.header-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.logo { font-size: 24px; font-weight: 900; color: var(--secondary-black); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.header-logo-img { height: 50px; width: auto; }
.logo-text { font-size: 24px; font-weight: 900; color: var(--secondary-black); line-height: 1; }
.logo-text span { color: var(--accent-neon); }
nav { flex-grow: 1; display: flex; justify-content: center; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 600; font-size: 14px; text-transform: uppercase; color: var(--secondary-black); }
.nav-links a:hover, .nav-links a.active { color: var(--accent-neon); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.hamburger { display: none; cursor: pointer; }

/* DROPDOWN */
.nav-item-dropdown { position: relative; cursor: pointer; }
.country-btn { display: flex; align-items: center; font-weight: 600; font-size: 14px; }
.country-dropdown { position: absolute; top: 100%; left: -20px; width: 180px; background: white; box-shadow: var(--shadow-card); border-radius: 10px; padding: 10px; opacity: 0; visibility: hidden; transition: var(--transition); transform: translateY(10px); }
.nav-item-dropdown:hover .country-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.country-link { display: flex !important; align-items: center; padding: 8px 10px; text-transform: none !important; border-radius: 5px; }
.country-link:hover { background: var(--gray-light); color: var(--secondary-black) !important;}
.flag-icon { width: 20px; margin-right: 10px; }

/* FOOTER */
footer { background: var(--secondary-black); color: #aaa; padding: 100px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 80px; }
.footer-logo-container { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 25px; }
.footer-logo-img { height: 75px; width: auto; margin-bottom: 10px; }
.footer-logo-text { font-size: 30px; font-weight: 900; color: white; text-transform: uppercase; line-height: 1; }
.footer-logo-text span { color: var(--accent-neon); }
.footer-desc { margin-bottom: 30px; max-width: 400px; }
.contact-list li { margin-bottom: 15px; display: flex; align-items: center; color: white; }
.contact-list li i { color: var(--accent-neon); margin-right: 15px; width: 20px; }
.footer-col h4 { color: white; margin-bottom: 25px; font-size: 1.1rem; letter-spacing: 1px; }
.footer-links li { margin-bottom: 15px; }
.footer-links a:hover { color: var(--accent-neon); padding-left: 5px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 30px; display: flex; justify-content: space-between; font-size: 0.9rem; }
.legal-links a { margin-left: 30px; }
.legal-links a:hover { color: var(--accent-neon); }
.social-icons { display: flex; gap: 15px; margin-top: 30px; align-items: center; }
.social-icons a { background: transparent !important; width: auto !important; height: auto !important; border-radius: 0 !important; padding: 0; display: inline-block; transition: transform 0.3s ease; }
.custom-social-icon { width: 36px; height: 36px; object-fit: contain; display: block; }
.social-icons a:hover { transform: scale(1.15); background: transparent !important; }

/* =========================================
   SHARED COMPONENTS (Moved here so they work everywhere)
   ========================================= */

/* 1. PAGE HERO (Used on About & Service Details) */
.page-hero-section { padding-top: 140px; padding-bottom: 20px; }
.page-hero {
    background-color: var(--secondary-black);
    color: white;
    text-align: center;
    padding: 80px 20px;
    border-bottom: 5px solid var(--accent-neon);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hero-inner-content h1 { font-size: 3.5rem; font-weight: 900; text-transform: uppercase; margin-bottom: 10px; }
.hero-inner-content p { font-size: 1.2rem; color: #ccc; font-weight: 300; }

/* 2. TABS NAVIGATION (Used on Home, About & Services) */
.tabs-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 50px; flex-wrap: wrap; }
.tab-btn { padding: 15px 30px; background: white; border: 2px solid #eee; border-radius: 50px; font-weight: 700; color: #666; cursor: pointer; transition: var(--transition); }
.tab-btn:hover, .tab-btn.active { border-color: var(--accent-neon); color: var(--secondary-black); background: #f9fff9; }
.tab-pane { display: none; opacity: 0; transition: opacity 0.5s ease; }
.tab-pane.active { display: grid; opacity: 1; }
.tab-text h2 { font-size: 2.5rem; margin-bottom: 25px; line-height: 1.3; }
.tab-text p { margin-bottom: 35px; font-size: 1.1rem; color: #666; }

/* RESPONSIVE NAV */
@media (max-width: 768px) {
    .hamburger { display: block; color: var(--secondary-black); font-size: 24px; }
    .bar { display: block; width: 25px; height: 3px; margin: 5px auto; background: var(--secondary-black); transition: 0.3s; }
    nav { position: fixed; top: 90px; left: -100%; width: 100%; background: white; flex-direction: column; padding: 30px; transition: 0.4s; box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
    nav.active { left: 0; }
    .nav-links { flex-direction: column; gap: 20px; }
    .header-actions .btn { display: none; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }
}

/* =========================================
   8. COOKIE CONSENT BANNER (FIXED)
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Hidden by default */
    left: 0;
    width: 100%;
    background: var(--secondary-black);
    color: white;
    padding: 20px 0;
    z-index: 99999; /* Highest priority */
    transition: bottom 0.5s ease-in-out;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.cookie-banner.active {
    bottom: 0; /* Slides up */
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
}

/* =========================================
   NEWS / BLOG CARDS (PROFESSIONAL & UNIFORM)
   ========================================= */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Force 3 columns */
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column; /* vital for alignment */
    height: 100%; /* Ensures all cards match height */
    border: 1px solid #eee;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Force Image Sizing */
.news-img-wrap {
    position: relative;
    height: 220px; /* Fixed height for uniformity */
    width: 100%;
    overflow: hidden;
}

.news-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Crops image nicely to fit box */
    transition: transform 0.5s ease;
}

.news-card:hover .news-img-wrap img {
    transform: scale(1.05);
}

/* Date Badge */
.date-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--secondary-black);
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Card Body Formatting */
.news-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Fills remaining space */
}

.news-body h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 12px;
}

.news-body h3 a {
    text-decoration: none;
    color: var(--secondary-black);
    transition: color 0.3s;
}

.news-body h3 a:hover {
    color: var(--accent-neon);
}

/* Smaller, Professional Description */
.news-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

/* Professional Read More Link */
.read-more-btn {
    display: inline-block;
    color: var(--secondary-black);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* Ensures alignment at bottom */
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent-neon);
    width: fit-content;
}

.read-more-btn:hover {
    color: var(--accent-neon);
    border-bottom-color: var(--secondary-black);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .news-grid { grid-template-columns: 1fr; }
    .cookie-content { flex-direction: column; text-align: center; }
}