/* --- 1. BALTIMONT THEME (Dark Mode Only) --- */
:root {
    --bg-dark: #0f1015; 
    --bg-lighter: #181a25; 
    --header-bg: rgba(15, 16, 21, 0.95);
    --accent-yellow: #FFFF00;
    --accent-blue: #0000FF;   
    --text-main: #ffffff;
    --text-muted: #9ba0b5;
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Nunito', sans-serif; 
}

body { 
    background-color: var(--bg-dark); 
    color: var(--text-main); 
    overflow-x: hidden; 
    
    /* New Image Background (Testing Dark Version) */
    background-image: url('img/hexbg.jpg');
    background-size: auto;
    background-position: center;
    background-attachment: fixed; /* Keeps it locked in place while scrolling */
    background-repeat: repeat;
}

/* --- 2. NAVIGATION & HEADER --- */
header {
    position: fixed; 
    width: 100%; 
    top: 0; 
    background: var(--header-bg); 
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 20px 5%; 
    z-index: 1000; 
    border-bottom: 2px solid var(--accent-blue);
}

/* Custom Fredoka font applied to the logo */
.logo { 
    font-family: 'Fredoka', sans-serif;
    font-size: 2.2rem; 
    font-weight: 700;
    letter-spacing: 0.5px; 
    color: var(--accent-blue); 
}

.logo span { 
    color: var(--accent-yellow); 
}

/* Desktop Nav */
nav { display: flex; align-items: center; gap: 30px; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-links a { 
    color: var(--text-main); 
    text-decoration: none; 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    transition: color 0.3s; 
    padding-bottom: 5px; 
}
.nav-links a:hover { 
    color: var(--accent-yellow); 
    border-bottom: 2px solid var(--accent-yellow); 
}

/* Language Switchers */
.lang-switch { 
    display: flex; 
    gap: 10px; 
    border-left: 1px solid var(--text-muted); 
    padding-left: 20px; 
}
.lang-btn { 
    background: transparent; 
    color: var(--text-muted); 
    border: 1px solid var(--text-muted); 
    border-radius: 50%; 
    width: 35px; 
    height: 35px; 
    cursor: pointer; 
    transition: 0.3s; 
    font-size: 0.8rem; 
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
}
.lang-btn:hover, .lang-btn.active { 
    border-color: var(--accent-yellow); 
    color: var(--accent-yellow); 
}

/* Mobile Hamburger Icon */
.hamburger { 
    display: none; 
    background: none; 
    border: none; 
    color: var(--accent-yellow); 
    font-size: 2rem; 
    cursor: pointer; 
    transition: color 0.3s ease;
}

/* --- 3. HERO SLIDESHOW SECTION --- */
.hero {
    height: 100vh; 
    position: relative; 
    overflow: hidden;
    display: flex; 
    align-items: center;
    border-bottom: 2px solid var(--accent-yellow); /* Adds yellow line below slideshow */
}
.slide {
    position: absolute; 
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-size: cover; 
    background-position: center;
    display: flex; 
    align-items: center; 
    padding: 0 5%;
    opacity: 0; 
    transition: opacity 1s ease-in-out; 
    z-index: 1;
}
.slide.active { opacity: 1; z-index: 2; }

.hero-content { position: relative; z-index: 3; }
.hero-content h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 20px; max-width: 600px; color: #ffffff; }
.hero-content h1 span { color: var(--accent-yellow); }
.hero-content p { color: rgba(255, 255, 255, 0.85) !important; }

/* Slider Buttons */
.slider-btn {
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(15, 16, 21, 0.5); 
    color: #ffffff;
    border: 2px solid var(--accent-blue);
    width: 50px; 
    height: 50px; 
    border-radius: 50%; 
    cursor: pointer;
    font-size: 1.5rem; 
    z-index: 4; 
    transition: 0.3s;
}
.slider-btn:hover { 
    background: var(--accent-yellow); 
    color: #0f1015; 
    border-color: var(--accent-yellow); 
}
.slider-btn.prev { left: 2%; }
.slider-btn.next { right: 2%; }

/* --- 4. EXPERTISE DIAGRAM (Flexbox Hexagons) --- */
/* Made background transparent and added yellow bottom border */
.expertise { 
    padding: 100px 5%; 
    background: transparent; 
    border-bottom: 2px solid var(--accent-yellow); /* Adds yellow line below expertise grid */
}
.section-title { font-size: 2.5rem; color: var(--accent-yellow); margin-bottom: 50px; text-align: center; }

/* Switched to Flexbox to ensure perfect centering when items wrap */
.expertise-grid { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 40px; 
}

/* Base width keeps them perfectly sized */
.expertise-item { 
    flex: 0 1 250px; 
    text-align: center; 
    transition: transform 0.3s; 
    cursor: pointer; 
}
.expertise-item:hover { transform: translateY(-10px); }

/* Hexagon outer wrap - Blue by default, grows and turns yellow on hover */
.hex-wrap {
    width: 180px; height: 200px; margin: 0 auto 25px;
    background-color: var(--accent-blue); 
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex; align-items: center; justify-content: center; 
    transition: background-color 0.4s ease, transform 0.4s ease;
}

.expertise-item:hover .hex-wrap { 
    background-color: var(--accent-yellow); 
    transform: scale(1.05);
}

/* Hexagon inner background and logo formatting */
.hex-inner {
    width: 172px; height: 192px; background-color: var(--bg-dark);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-size: 75%; 
    background-position: center;
    background-repeat: no-repeat;
    transition: background-color 0.4s ease;
}

/* --- EXPERTISE TEXT & ACCORDION EXPANSION --- */

.expertise-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* The basic info container (bullet points) */
.basic-info {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease, margin-top 0.3s ease;
}

/* Show basic info when active */
.expertise-item.active .basic-info {
    max-height: 400px; 
    opacity: 1;
    margin-top: 15px;
}

/* Hide basic info entirely when fully expanded */
.expertise-item.expanded .basic-info {
    display: none; 
}

/* The full info container (hidden by default) */
.full-info {
    display: none;
    background: var(--bg-dark);
    border-top: 2px solid var(--accent-blue);
    border-bottom: 2px solid var(--accent-blue);
    padding: 30px;
    margin-top: 20px;
    text-align: left;
    color: var(--text-muted);
}

/* Show full info AND expand the whole column using Flexbox */
.expertise-item.expanded {
    flex: 0 1 100%; /* Forces it to take the full width of the row */
}
.expertise-item.expanded .full-info {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

/* Read More & Close Buttons */
.read-more-btn, .close-btn {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-yellow);
    padding: 8px 20px;
    margin-top: 15px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: 0.3s;
}
.read-more-btn:hover, .close-btn:hover {
    background: var(--accent-blue);
    color: #ffffff;
}
.close-btn {
    border-color: var(--accent-yellow);
    display: block;
    margin: 20px auto 0; 
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Restore bullet points and bold text for both basic and full views */
.expertise-item ul {
    text-align: left;
    padding-left: 20px;
    margin-top: 10px;
    list-style-type: square;
}
.expertise-item li {
    margin-bottom: 8px;
}
.expertise-item strong {
    color: var(--text-main);
}

/* --- 5. CONTACT & FOOTER --- */
.contact-section { 
    padding: 100px 5%; 
    /* 50% transparent dark background */
    background-color: rgba(15, 16, 21, 0.5); 
    text-align: center; 
}
.contact-info { margin-top: 30px; font-size: 1.2rem; }
.contact-info p { color: var(--text-muted); margin-bottom: 10px; }
.contact-email { color: var(--accent-yellow); text-decoration: none; font-size: 2.5rem; font-weight: bold; transition: color 0.3s; letter-spacing: 1px;}
.contact-email:hover { color: var(--accent-blue); }

/* Footer Transparency & Yellow Divider */
footer { 
    background: transparent; 
    border-top: 2px solid var(--accent-yellow); /* Changed from blue to yellow */
    color: var(--text-muted); 
    text-align: center; 
}
.footer-content { padding: 40px 5%; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.footer-bottom { background: var(--bg-dark); padding: 15px 5%; font-size: 0.9rem; }

/* Phone Number Styling */
.contact-phone { 
    display: block; /* Forces it to drop to a new line */
    margin-top: 15px; 
    color: var(--accent-yellow); 
    text-decoration: none; 
    font-size: 2.5rem; 
    font-weight: bold; 
    transition: color 0.3s; 
    letter-spacing: 1px;
}

.contact-phone:hover { 
    color: var(--accent-blue); 
}

/* Mobile tweak so the numbers aren't too massive on small screens */
@media (max-width: 900px) {
    .contact-email, .contact-phone {
        font-size: 1.8rem;
    }
}

/* --- MOBILE RESPONSIVE RULES --- */
@media (max-width: 900px) {
    .hamburger { display: block; }
    nav {
        position: absolute; top: 100%; right: 0; width: 100%; background: var(--header-bg);
        flex-direction: column; padding: 20px 0; 
        border-bottom: 2px solid var(--accent-yellow); 
        display: none; 
    }
    nav.open { display: flex; } 
    .nav-links { flex-direction: column; text-align: center; width: 100%; }
    .nav-links a { display: block; padding: 15px; border-bottom: 1px solid var(--text-muted); }
    .lang-switch { border-left: none; padding-left: 0; margin-top: 15px; justify-content: center; }
    .hero-content h1 { font-size: 2.5rem; }
}

/* Styling for headings inside the full expanded view */
.full-info h3 { color: var(--accent-yellow); margin-bottom: 15px; font-size: 1.5rem; }
.full-info h4 { color: #ffffff; margin-bottom: 10px; font-size: 1.2rem; }