/* Global Vars & Reset */
:root {
    --primary-dark: #0a102e;
    /* Deep Royal Blue */
    --primary-light: #182848;
    --accent-blue: #4b6cb7;
    --accent-cyan: #00d2ff;
    --accent-purple: #5c62d6;
    /* Matching the 'Signed' chart color roughly */
    --active-blue: #3a7bd5;
    /* 'Active' chart color */
    --text-white: #ffffff;
    --text-gray: #b0c4de;
    --font-main: 'Outfit', sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-snap-type: y mandatory;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    width: 100vw;
}

body {
    font-family: var(--font-main);
    background-color: var(--primary-dark);
    color: var(--text-white);
    overflow-x: hidden;
    overscroll-behavior-x: none;
    width: 100%;
    position: relative;
    line-height: 1.6;
    height: 100vh;
    transition: background-color 0.5s ease;
}

body.light-mode-effect {
    background-color: #1a2a4a;
    /* Lighter 2 tones from #0a102e */
}

.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, rgba(0, 210, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

/* Base Section Styling */
.section,
.hero,
footer {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 100vh;
    /* Strict height for page-like feel */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    /* Prevent content spill */

    /* Transition setup for the whole section scaling/fading */
    opacity: 0.3;
    transform: scale(0.9);
    /* Stronger scale difference */
    filter: blur(5px);
    /* Add blur for out-of-focus effect */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, filter 0.8s ease-out;
}

/* Bring fully into view when active */
.section.in-view,
.hero.in-view,
footer.in-view {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

/* Adjustments for specific sections if needed */
.section {
    padding: 0 5%;
    /* Remove top/bottom padding as flex handles alignment */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 16, 46, 0.85);
    /* Semi-transparent */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: padding 0.3s;
}

.navbar.scrolled {
    padding: 0.5rem 5%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    /* Adjust based on preference, ensuring it fits navbar */
    width: auto;
    object-fit: contain;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    display: none;
    /* Ensure raster is hidden if present */
}

.logo-visual svg {
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.4));
    transition: transform 0.3s;
}

.logo:hover .logo-visual svg {
    transform: scale(1.1);
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text .brand {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-white);
    text-transform: lowercase;
    font-family: 'Outfit', sans-serif;
    /* Or 'Times New Roman' if sticking strictly to original serif feel */
    line-height: 1;
}

.logo-text .tagline {
    font-size: 0.55rem;
    letter-spacing: 3px;
    color: var(--accent-cyan);
    text-transform: uppercase;
    margin-top: 4px;
    font-weight: 600;
    margin-left: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-cyan);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    padding-bottom: 20px;
    /* Bridge gap */
    margin-bottom: -20px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(10, 16, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 10px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    text-align: left;
    color: var(--text-gray);
    font-size: 0.9rem;
    padding-bottom: 10px;
    /* Reset base style */
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--accent-cyan);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--text-white);
    margin: 5px;
    transition: 0.3s;
}

/* UI Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 210, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--text-white);
    color: var(--text-white);
}

.btn-secondary:hover {
    background: var(--text-white);
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-cyan);
    color: var(--accent-cyan);
    margin-top: 1rem;
}

.btn-outline:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

.btn-full {
    width: 100%;
    justify-content: center;
    background: var(--accent-cyan);
    color: var(--primary-dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: auto;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0;
    /* Removed padding to start from top */
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-bg-anim {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #1a2a6c, #b21f1f, #fdbb2d);
    /* Fallback */
    background: linear-gradient(45deg, #050a1a, #0b1a3a, #004e92, #000428);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 16, 46, 0.2) 0%, rgba(10, 16, 46, 0.9) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero-logo {
    margin-bottom: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-logo-img-large {
    max-width: 500px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 210, 255, 0.3));
    margin-bottom: 0px;
    transition: filter 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hero-logo-img-large:hover {
    filter: drop-shadow(0 0 60px rgba(0, 210, 255, 1)) drop-shadow(0 0 100px rgba(255, 255, 255, 0.8)) brightness(1.7);
    transform: scale(1.1);
    /* Trigger JS effect via hover here is visual only, actual logic in JS */
}

.hero h2 {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 6px;
    font-size: 1.5rem;
    /* Larger than before */
    margin-bottom: 1.5rem;
    margin-top: -60px;
    font-weight: 600;
}

/* Removed old H1 styles as H1 is replaced by logo */
/* .hero h1 { ... } */

.hero p {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Original keyframe animations for Hero (keep these single-run) */
.pop-in {
    animation: popIn 1s cubic-bezier(0, 0, 0.2, 1) forwards;
    animation-delay: 0.2s;
}

.slide-up {
    animation: slideUp 1s cubic-bezier(0, 0, 0.2, 1) forwards;
    animation-delay: 0.4s;
}

.fade-up-delay {
    animation: slideUp 1s ease forwards;
    animation-delay: 0.8s;
}

.fade-up-delay-2 {
    animation: slideUp 1s ease forwards;
    animation-delay: 1.1s;
}

.hero-stats {
    position: relative;
    bottom: auto;
    margin-top: 1rem;
    /* Brought closer to buttons */
    display: flex;
    gap: 4rem;
    z-index: 2;
}

.stat-item {
    text-align: center;
}

.stat-number,
.stat-text {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down {
    position: absolute;
    bottom: 20px;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    color: var(--text-gray);
    cursor: pointer;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Base Section Styling */
.section {
    padding: 60px 5%;
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 40px;
}

.section-header.center {
    text-align: center;
}

.subtitle {
    color: var(--accent-cyan);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
    word-break: break-word;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    word-break: break-word;
}

.line-accent {
    width: 60px;
    height: 4px;
    background: var(--accent-blue);
    border-radius: 2px;
}

.center-line {
    margin: 0 auto;
}

/* About Section */
.about {
    background: #0d1226;
}

/* Specific adjustment for Map Section to clear fixed navbar */
.map-section {
    padding-top: 120px;
    background: #050a1b;
    /* Ensure background matches if needed */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.8;
}

.feature-list li {
    margin-bottom: 15px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-list li i {
    color: var(--accent-cyan);
}

.about-visual {
    position: relative;
    height: 400px;
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
}

.tech-pattern {
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    padding: 20px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.glass-card i {
    font-size: 2rem;
    color: var(--accent-cyan);
}

.float-anim {
    top: 10%;
    right: -20px;
    animation: float 6s ease-in-out infinite;
}

.float-anim-2 {
    bottom: 10%;
    left: -20px;
    animation: float 5s ease-in-out infinite reverse;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

/* Portfolio Section */
.portfolio {
    background: var(--primary-dark);
}

.bg-decoration {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 210, 255, 0.05) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.portfolio-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 80px;
    /* Significant padding to push buttons away */
}

.portfolio-container {
    display: flex;
    gap: 20px;
    overflow-x: hidden;
    /* Disable manual swipe as requested */
    scroll-behavior: smooth;
    padding: 60px 10px;
    /* Increased padding to prevent clipping when cards scale up */
    width: 100%;
    scrollbar-width: none;
}

.portfolio-container::-webkit-scrollbar {
    display: none;
}

/* Responsive adjustments for chart */
@media (max-width: 768px) {
    .bars {
        gap: 5px;
    }
}

.project-card {
    /* Show 3 cards: (100% - (2 * gap)) / 3 */
    min-width: calc((100% - 40px) / 3);
    flex: 0 0 calc((100% - 40px) / 3);
    background: linear-gradient(145deg, #101935, #0c1229);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    border: 1px solid var(--glass-border);
}

.project-card:hover {
    transform: scale(1.12);
    z-index: 10;
    border-color: var(--accent-cyan);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.2);
}

.card-image {
    height: 180px;
    background-color: #223;
    position: relative;
    background-size: cover;
    background-position: center;
}

/* Placeholder gradients for images */
.project-1 {
    background-image: linear-gradient(to top right, #2c3e50, #4ca1af);
}

.project-2 {
    background-image: linear-gradient(to top right, #134e5e, #71b280);
}

.project-3 {
    background-image: linear-gradient(to top right, #000428, #004e92);
}

.project-4 {
    background-image: linear-gradient(to top right, #4568dc, #b06ab3);
}

.project-5 {
    background-image: linear-gradient(to top right, #ff9966, #ff5e62);
}

/* Cookie Banner - Modal Style */
/* Cookie Banner - Modal Style */
.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    /* Darker Backdrop */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2147483647;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.cookie-banner.show {
    opacity: 1;
    visibility: visible;
}

.cookie-content {
    background: #0a102e;
    /* Dark Background */
    border: 1px solid rgba(0, 210, 255, 0.3);
    /* Cyan border */
    border-top: 5px solid var(--accent-cyan);
    /* Prominent top border */
    padding: 3rem 2rem;
    max-width: 600px;
    width: 90%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
    /* Cyan glow */
    transform: scale(0.95);
    transition: transform 0.3s ease;
    position: relative;
    border-radius: 15px;
}

.cookie-banner.show .cookie-content {
    transform: scale(1);
}

.cookie-content h3 {
    font-family: 'Outfit', sans-serif;
    /* Site font */
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.cookie-content p {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #b0b0b0;
    line-height: 1.6;
    margin: 0 auto;
    max-width: 500px;
}

.cookie-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 1rem;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.btn-cookie {
    width: 100%;
    padding: 15px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    display: block;
    text-align: center;
    border-radius: 5px;
    font-family: 'Outfit', sans-serif;
}

/* Primary Button: ACCEPT & ENTER SITE */
#accept-cookies {
    background: var(--accent-cyan);
    color: #050a1b;
    border: none;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}

#accept-cookies:hover {
    background: #fff;
    color: #050a1b;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

/* Secondary Button: READ PRIVACY POLICY */
.btn-cookie-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-cookie-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

@media (max-width: 768px) {
    .cookie-content {
        padding: 2rem 1.5rem;
    }
}

.card-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.region-badge {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-white);
    border: 1px solid var(--accent-cyan);
}

.card-details {
    padding: 25px;
}

.card-details h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-white);
}

.specs {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.spec {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.spec i {
    color: var(--accent-cyan);
}

.card-details p {
    font-size: 0.85rem;
    color: #8a9bb3;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.carousel-btn.prev {
    left: 10px;
    /* Far left in the 80px gutter */
}

.carousel-btn.next {
    right: 10px;
    /* Far right in the 80px gutter */
}

.carousel-btn:hover {
    background: var(--accent-cyan);
    color: var(--primary-dark);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.4);
    border-color: var(--accent-cyan);
}

/* Progress Section */
.progress-section {
    background: #0b1120;
}

.progress-layout {
    display: grid;
    grid-template-columns: 1.2fr 2fr;
    gap: 60px;
    align-items: center;
}

.progress-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.highlight-p {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 20px;
}

.bar-chart {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 400px;
    padding-left: 50px;
    gap: 30px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transform: scale(0.85);
    transform-origin: left bottom;
}

.y-axis {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 2rem;
    /* align base */
    color: var(--text-gray);
    font-size: 0.8rem;
}

.bars {
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: flex-end;
    height: 100%;
    padding-bottom: 0px;
}

/* --- Map Section Styles --- */
.map-section {
    min-height: 100vh;
    /* Increased significantly to clear fixed navbar */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Map Pin Styles (CSS-based) --- */
.pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #00d2ff;
    /* Theme Cyan */
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    /* Centering adjustment */
    box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.5);
    /* Shadow for depth */
}

.pin:after {
    content: "";
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: #0a102e;
    /* Theme Dark Blue for the 'hole' */
    position: absolute;
    border-radius: 50%;
}

.pin-label {
    position: absolute;
    top: -35px;
    /* Position above the pin */
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    pointer-events: none;
    /* Let clicks pass through to the pin area */
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 15%;
}

.bar-stack {
    width: 100%;
    display: flex;
    flex-direction: column-reverse;
    /* Stack from bottom up */
    overflow: hidden;
    border-radius: 5px 5px 0 0;
}

.bar-segment {
    width: 100%;
    transition: height 1s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    cursor: pointer;
}

.bar-segment:hover {
    filter: brightness(1.2);
}

/* Tooltip on hover */
.bar-segment:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    padding: 5px;
    border-radius: 4px;
    font-size: 0.7rem;
    white-space: nowrap;
    z-index: 10;
    pointer-events: none;
}

.active-blue {
    background: var(--accent-cyan);
}

.negotiation-cyan {
    background: var(--active-blue);
}

.signed-purple {
    background: var(--accent-purple);
}

.x-label {
    margin-top: 10px;
    font-weight: 600;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.chart-legend {
    position: absolute;
    top: -40px;
    right: 0;
    display: flex;
    gap: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.purple {
    background: var(--accent-purple);
}

.dot.blue {
    background: var(--accent-cyan);
}

.dot.cyan {
    background: var(--active-blue);
}

/* Contact */
.contact {
    background: linear-gradient(180deg, var(--primary-dark) 0%, #111a3b 100%);
}

.contact-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}


/* Footer */
/* Footer */
/* Footer */
/* Footer */
/* Footer Reformatted */
/* Footer Reformatted */
footer {
    background-color: #050a1b;
    padding: 20px 5%;
    /* Standard padding for auto height */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    height: auto !important;
    /* Override global 100vh */
}

.footer-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Stretch so right side can vert-center */
    padding-bottom: 40px;
    /* Added gap below address/content */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Left Section */
.footer-left {
    width: 40%;
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.footer-brand-section {
    margin-bottom: 15px;
}

.footer-logo-img {
    height: 200px;
    /* Reduced Height */
    width: auto;
    margin-bottom: 0;
    display: block;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-gray);
    max-width: 450px;
    margin: 0;
}

/* Info Grid (Address/Contact) */
.footer-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.info-column h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.info-column p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #fff;
    margin: 0;
}

.social-icon {
    display: inline-block;
    margin-top: 15px;
    font-size: 1.8rem;
    color: var(--text-white);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #0077b5;
    /* LinkedIn Blue */
    transform: translateY(-2px);
}

/* Vertical Divider */
.footer-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    margin: 0 40px;
}

/* Right Section (Quote) */
.footer-right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding-left: 40px; Removed for true centering */
    margin-top: 0;
}

.footer-quote {
    font-family: 'Times New Roman', serif;
    font-size: 2.2rem;
    font-style: italic;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.7);
    border-left: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 0;
    position: relative;
    z-index: 10;
}

.footer-che {
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s;
    text-decoration: none;
}

.footer-bottom-links a:hover {
    color: #fff;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.4);
}





/* Responsive Footer */
@media (max-width: 968px) {
    .footer-top {
        flex-direction: column;
    }

    .footer-left,
    .footer-right {
        width: 100%;
        padding: 0;
    }

    .footer-divider {
        display: none;
    }

    .footer-right {
        margin-top: 60px;
        padding-top: 40px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        justify-content: flex-start;
        width: 100%;
        box-sizing: border-box;
    }

    .footer-quote {
        text-align: left;
        font-size: 1.5rem;
        word-break: break-word;
        padding-right: 15px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-bottom-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    /* Existing Hero/Mobile fixes */
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
        letter-spacing: 3px;
        margin-top: -30px;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 15px;
        line-height: 1.5;
        text-align: center !important;
        margin: 0 auto 2rem auto !important;
        width: 100vw;
        max-width: 370px;
        /* Constrain exactly to 370px */
        display: block;
        /* Force block leveling for margin auto */
    }

    .section-header,
    .section-header h2 {
        font-size: 2.2rem;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .line-accent {
        margin: 0 auto !important;
    }

    .portfolio-carousel-wrapper {
        padding: 0 35px;
        width: 100vw;
        max-width: 350px;
        /* 280px card inner + 2*35 padding for buttons */
        margin: 0 auto;
        position: relative;
    }

    .section,
    .hero,
    footer {
        height: auto !important;
        min-height: 100vh;
        overflow-y: visible !important;
        padding-bottom: 40px;
    }

    .portfolio-container {
        padding: 20px 0;
        gap: 20px;
        /* Separator gap during swipe animation */
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        width: 100%;
        overflow-x: hidden;
    }

    /* Target perfectly aligned 1-card logic */
    .project-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
        margin: 0;
        border-radius: 15px;
        display: flex;
        flex-direction: column;
        min-height: 280px;
    }

    .card-image {
        height: 120px;
        flex-shrink: 0;
    }

    .card-details {
        padding: 15px 10px;
        text-align: center;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        justify-content: space-between;
    }

    .card-details h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }

    .specs {
        justify-content: center;
        margin-bottom: 5px;
    }

    .spec,
    .card-details p {
        font-size: 0.75rem;
    }

    .card-details p {
        padding-top: 5px;
        margin-top: auto;
    }

    .carousel-btn {
        display: flex;
        width: 32px;
        height: 32px;
        font-size: 0.8rem;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
    }

    .carousel-btn.prev {
        left: 0;
    }

    .carousel-btn.next {
        right: 0;
    }

    .hero-stats {
        margin-top: 4rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        max-width: 100vw;
    }

    .stat-number,
    .stat-text {
        font-size: 2rem;
    }

    .hero-stats .stat-item {
        flex: 1 1 40%;
    }

    .about-visual,
    .chart-container {
        display: none;
    }

    .bar-chart {
        height: 300px;
        margin-top: 40px;
    }

    .about-grid,
    .progress-layout,
    .footer-info-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 0.5rem 5%;
        /* Thinner navbar horizontally */
    }

    .logo-link img {
        height: 35px !important;
        /* Smaller logo on mobile */
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 60px;
        /* Reduced to match smaller navbar */
        flex-direction: column;
        background: rgba(10, 16, 46, 0.98);
        width: 100%;
        height: calc(100vh - 75px);
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: right 0.4s ease;
        backdrop-filter: blur(15px);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 999;
        display: flex;
        overflow-y: auto;
    }

    .nav-links.nav-active {
        right: 0;
    }

    .nav-links>li {
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .dropdown-menu {
        position: static;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: transparent;
        margin-top: 10px;
        display: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown:hover .dropdown-menu {
        display: flex;
    }

    .hamburger {
        display: block;
        z-index: 1000;
        cursor: pointer;
    }

    .hamburger.toggle .line:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.toggle .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.toggle .line:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* Modern History Page Typography */
.modern-history-section {
    padding: 100px 0;
}

.modern-history-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

.history-item {
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.3s;
}

.history-item:hover {
    border-left-color: var(--accent-cyan);
}

.history-stat-huge {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, var(--accent-gray, #888) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: var(--font-main);
    letter-spacing: -2px;
}

.history-stat-highlight {
    color: var(--accent-cyan);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.history-stat-future {
    color: var(--accent-purple);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.history-label {
    font-size: 1.2rem;
    color: var(--text-white);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.history-desc {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 600px;
}

@media (min-width: 768px) {
    .history-item {
        flex-direction: row;
        align-items: baseline;
        gap: 40px;
        padding-left: 0;
        border-left: none;
    }

    .history-stat-wrapper {
        flex: 1;
        text-align: right;
    }

    .history-content-wrapper {
        flex: 2;
    }
}

/* Map Page Widening - Added for better visibility */
.map-page-container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0 auto;
}

#container {
    width: 100%;
    height: 85vh;
    min-height: 600px;
}

@media (max-width: 968px) {
    #container {
        min-height: 400px;
        height: 60vh;
    }

    .history-stat-huge,
    .history-stat-highlight,
    .history-stat-future {
        font-size: 3rem;
    }

    .mouse-glow {
        display: none !important;
    }
}