/* --- 1. Variables & Global Reset --- */
:root {
    /* Color Palette */
    --color-primary: #0A2342; /* Deep Navy Blue */
    --color-secondary: #F0F4F8; /* Off-White / Light Gray */
    --color-accent: #1E90FF; /* Dodger Blue */
    --color-text-dark: #333333;
    --color-text-light: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    /* Ensures the body/page content doesn't fight the fixed modal */
    width: 100%;
    height: 100%;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-dark);
    background-color: var(--color-text-light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ------------------------------------
 * Full-Width Container Definition
 * ------------------------------------ */
/* Target the container ONLY within the hero-section to ensure high specificity */
.hero-section .full-width-container.hero-content {
    /* Set width to 100% of the viewport */
    width: 100vw; 
    
    /* Ensure no max-width constraints are applied */
    max-width: 100vw; 
    
    /* Crucially, set margin to 0 to eliminate any central alignment that might be collapsing it */
    margin-left: 0;
    margin-right: 0;

    /* To account for the width taken by the scrollbar/viewport, use 100% and then adjust horizontal padding */
    width: 100%;
    
    /* Instead of padding, we will rely on the padding from the section itself, or use a large padding */
    padding-left: 50px; /* Generous padding on the left */
    padding-right: 50px; /* Generous padding on the right */
}

/* --- 2. Header & Navigation --- */
.main-header {
    background-color: var(--color-primary);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: var(--color-text-light);
    font-size: 1.5em;
    font-weight: 500;
}

.logo-name {
    font-weight: bold;
}

.header-logo a img {
  width: 150px;
}

@media only screen and (max-width: 1199px) {
  .header-logo a img {
    width: 130px;
  }
}

.main-nav a {
    color: var(--color-text-light);
    text-decoration: none;
    margin-left: 25px;
    font-size: 0.95em;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--color-accent);
}

.cta-button-nav {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 20px;
    font-weight: bold;
    transition: background-color 0.3s;
    display: block; /* Ensures it scales correctly */
}

.cta-button-nav:hover {
    background-color: #1a78e6; /* Slightly darker shade of accent */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 1.5em;
    cursor: pointer;
}


/* --- 3. Hero Section --- */
.hero-section {  
    /* ADD the subtle digital pattern on top of the cityscape */
    background-image: 
        /* Layer 1: The Digital Pattern (uncomment when ready) */
        /* url('assets/images/favicon.png'), */
        
        /* Layer 2: The Cityscape Base Image */
        /* url('digital_pattern.png'), */
        url('assets/images/cityscape.jpeg'); /* List the patterns from top layer down */

    background-repeat: repeat, no-repeat;
    background-position: center center, center center;
    background-size: auto, cover; 
    
    height: auto; /* Allow height to be determined by content */
    min-height: 80vh; /* Ensure a minimum height for visual impact */
    padding-bottom: 50px;
    position: relative;
    color: var(--color-text-light);
    /* display: flex;
    align-items: center; */
    text-align: left;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark overlay (Primary Color with 60% opacity) for text readability */
    background-color: rgba(10, 35, 66, 0.6); 
}

.hero-content {
    position: relative;  /* Brings content above the overlay */
    z-index: 50;
    max-width: 800px;
    padding-top: 50px; /* <--- NEW: Push content down slightly from the top */
    padding-bottom: 50px;
}

.hero-content h1 {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.hero-content h1 .sub-headline {
    /* Add vertical space BEFORE the sub-headline */
    display: inline-block; /* Essential to apply margin/padding to a span */
    margin-top: 25px; /* <--- NEW: Creates a large gap between the lines */
    
    /* Optional: Make the second line slightly less dominant */
    font-size: 0.85em; /* Make text slightly smaller */
    font-weight: 300; /* Make text lighter */
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-layout {
    /* 💥 FIX: Use CSS Grid instead of Flexbox */
    display: grid; 
    
    /* Define 3 columns with proportional widths: 1 part | 3 parts | 1 part */
    grid-template-columns: 1fr 2fr 1fr; 
    
    /* Set the gap between columns */
    gap: 80px; 
    
    /* Center content vertically within the container */
    align-items: center; 
}

/* --- 1st Column: Left Image --- */
.hero-left-image {
    /* 💥 FIX: Justify content to the far left of its grid cell */
    justify-self: start; 
    
    /* 💥 FIX: Add padding to the right for separation */
    padding-right: 50px; 
    
    text-align: left;
}

.overview-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto; /* Ensure image is centered */
}

/* --- 2nd Column: Center Text --- */
.hero-text-content {
    /* This column is now defined by the grid-template-columns */
    /* Remove all previous flex properties and max-width */
    max-width: 80%; 
}

/* --- 3rd Column: Right Portrait --- */
.hero-portrait {
    /* 💥 FIX: Justify content to the far right of its grid cell */
    justify-self: end; 
    
    /* 💥 FIX: Add padding to the left for separation */
    padding-top: 30px;
    padding-left: 10px; 
    
    text-align: center; 
}

/* ------------------------------------
 * Portrait Image & Label Styling (Remains the same)
 * ------------------------------------ */
.portrait-img {
    max-width: 60%;
    height: auto;
    display: block;
    border-radius: 25%; 
    box-shadow: 
        0 0 0 10px rgba(255, 255, 255, 0.2), 
        0 15px 30px rgba(69, 75, 245, 0.6); 
    margin: 0 auto; 
}

.portrait-label {
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    margin-top: 15px; 
    width: 100%; 
}

.logo-small {
    width: 200px; /* Small size for the logo */
    height: auto;
    margin-top: 15px;
    margin-right: 0; /* Space between the logo and the text */
    /* Optional: Add a small bottom margin to separate from the text below */
}

/* ------------------------------------
 * Title and Social Link Group Styling
 * ------------------------------------ */
.title-social-group {
    display: flex;             /* Align title and link side-by-side */
    align-items: center;       /* Vertically center the text and icon */
    justify-content: center;   /* Center the group horizontally */
    margin-top: 5px;           /* Space between the logo and this group */
}

.portrait-title {
    /* Set the title text color/style */
    font-size: 1.0rem; 
    font-weight: 300;
    color: #fff;
    margin: 0; /* Remove default paragraph margins */
    margin-right: 8px; /* Space between the title and the LinkedIn icon */
    padding: 0;
    line-height: 1.2;
}

/* New style for the icon link */
.linkedin-icon-link {
    /* Optional: Ensure the link text/icon size matches the title */
    font-size: 1.6rem; 
    
    /* Zero out any default line-height or vertical properties */
    line-height: 1; 
    margin: 0;
    padding: 0;
    
    /* Ensure the icon itself is perfectly placed */
    display: flex; 
    align-items: center;
}

/* 💥 FIX: Target the LinkedIn icon element (i) for sizing and color */
.linkedin-icon-link i {
    /* Adjust size relative to the rest of the text */
    font-size: 1.6rem; /* Increased size for better visibility */
    
    /* Set a contrasting color, e.g., bright cyan or gold/yellow */
    color: #FFD700 !important; /* Bright Cyan (or use #FFD700 for Gold) */

        /* Ensure the browser respects the font size */
    width: 1em; /* Set width equal to font-size for consistent sizing */

    
    /* Ensure no strange vertical alignment */
    vertical-align: middle;
}

.cta-button-hero {
    background-color: var(--color-accent);
    color: var(--color-text-light);
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s;
}

.cta-button-hero:hover {
    background-color: #1a78e6;
}

/* --- 4. Value Pillars Section --- */
.value-pillars-section {
    background-color: var(--color-secondary);
    padding: 60px 0;
    text-align: center;
}

.value-pillars-section h2 {
    font-size: 2em;
    margin-bottom: 40px;
    color: var(--color-primary);
    text-transform: uppercase;
}

.pillars-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
}

.pillar-card {
    flex: 1;
    padding: 30px;
    background-color: var(--color-text-light);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.pillar-card i {
    color: var(--color-accent);
    margin-bottom: 20px;
}

.pillar-card h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--color-primary);
}

.learn-more {
    display: inline-block;
    margin-top: 15px;
    color: var(--color-accent);
    text-decoration: none;
    font-weight: bold;
}

.learn-more:hover {
    text-decoration: underline;
}

/* --- 5. Footer --- */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-secondary);
    padding: 25px 0;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a,
.social-links a {
    color: var(--color-secondary);
    text-decoration: none;
    margin-left: 15px;
    transition: color 0.3s;
}

.footer-links a:hover,
.social-links a:hover {
    color: var(--color-accent);
}

/* ------------------------------------
 * Status Banner Styles
 * ------------------------------------ */
.status-banner {
    position: fixed; /* Keep it fixed at the top of the viewport */
    top: 0;
    left: 0;
    width: 100%;
    padding: 10px 0;
    background-color: #ffc107; /* Warning yellow/orange color */
    color: #333;
    text-align: center;
    font-weight: bold;
    font-size: 1.2em;
    z-index: 10000; /* Ensure it stays above all other content (high value) */
    
    /* Initially hide the banner */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%); /* Start off-screen above the top */
    
    /* Smooth transition for the flash effect */
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Class to make the banner visible */
.status-banner.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0); /* Slide into view */
}

/* --- New Styles for Pillar Detail Pages --- */

/* 1. Centering and Max Width */
.pillar-detail-page {
    /* Set padding for the entire page section */
    padding: 40px 20px; 
    background-color: #f4f7f9; /* Light background for the overall page */
}

.detail-tile-wrapper {
    position: relative;
    /* Constrain the width and center the content */
    max-width: 900px; /* Adjust as needed, 900px is good for readability */
    margin: 0 auto;
    
    /* Apply the "Tile" Effect */
    background-color: #ffffff; /* White background for the tile */
    padding: 30px 40px; /* Inner padding */
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
    
    /* Center the title and intro paragraph */
    text-align: center; 
}

/* 2. Content Specific Adjustments */
.pillar-detail-page h1 {
    margin-top: 0;
    font-size: 2.5em;
    color: var(--color-primary); /* Use your primary brand color */
    margin-bottom: 10px;
}

.pillar-detail-page .intro-paragraph {
    font-size: 1.2em;
    max-width: 700px; /* Constrain intro width for better centering */
    margin: 0 auto 40px auto; 
    line-height: 1.2;
}

.detail-content {
    /* Reset alignment for detailed content, ensuring it's left-aligned */
    text-align: left; 
    border-top: 1px solid #dbdada;
}

.detail-content h2 {
    color: #333;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Increase the indentation of the bullets themselves */
.detail-content ul, 
.detail-content ol {
    /* 💥 FIX: Increase the left padding on the list container */
    padding-left: 40px; /* Default is usually around 40px. Increase this value (e.g., 60px) to indent more. */
    /* Remove default margin if it conflicts with indentation */
    margin-left: 0; 
}

.detail-content li {
    color: #5006e3;
    margin-top: 10px;
    margin-bottom: 10px;
    font-size: small;
    padding-left: 10px;
    max-width: 700px;
}

/* 3. Call-to-Action (CTA) Button Styling */
.cta-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* --- MODAL BASE STYLES BEGINNING --- */

/* The semi-transparent backdrop that darkens the page */
#modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99; /* Below the modal, above everything else */
    display: none; /* Hidden by default */
}

/* The modal container itself */
.modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centering trick */
    z-index: 100; /* Must be highest */
    max-width: 900px;
    width: 90%; /* Max width on small screens */
    max-height: 90vh; /* Prevents modal from leaving the viewport */
    overflow-y: auto; /* Allows scrolling inside the modal */
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    background-color: white;
    display: none; /* Hidden by default */
    opacity: 0.9; /* Slightly transparent for effect */
    border-radius: 12px; /* Rounded corners for modern look */
}

/* 2. Position the Icon */
.modal-corner-icon {
    position: absolute; /* Takes the icon out of the normal content flow */
    
    /* Place it near the top-left corner, adjusting for padding */
    top: 20px;   /* Distance from the top edge of the tile */
    left: 20px;  /* Distance from the left edge of the tile */
    
    /* Ensure the icon is slightly more visible than the text */
    color: blue; /* Use your primary brand color */
    
    /* Ensure it doesn't get covered by content */
    z-index: 10; 
}

/* Reuse your existing tile styles for the content inside the modal */
.modal-body .detail-tile-wrapper {
    background-color: #ffffff;
    /* Ensure the padding for the content is tight inside the modal */
    padding: 30px 40px; 
    /* Remove any unnecessary margin/shadows since the modal itself has a shadow */
    box-shadow: none; 
    margin: 0;
}

/* Close button styling */
.modal-header {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%; /* For positioning the button */
    padding: 10px;
    z-index: 101;
}

.close-button {
    float: right;
    font-size: 30px;
    font-weight: bold;
    color: #333; /* Dark color against the white tile */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0 10px;
}

.close-button:hover {
    color: var(--color-primary);
}
/* --- MODAL BASE STYLES END --- */

/* --- 6. Responsiveness (Mobile Adjustments) --- */
@media (max-width: 900px) {
    /* --- 1. Header and Nav Mobile adjustments --- */
    .main-nav, .cta-button-nav {
        display: none; 
    }
    .menu-toggle {
        display: block; 
    }
    .nav-content {
        justify-content: space-between;
    }

    /* 2. Separate the Logo Image and the Text */
    .header-logo {
        /* Add right margin to push the logo text away from the image */
        margin-right: 10px; /* Adjust this value (e.g., 5px to 15px) for desired separation */
    }

        /* 💥 CRITICAL FIX: Target the .logo container for flow control */
    .logo {
        /* This ensures the text uses the available space efficiently */
        flex-shrink: 1; 
        
        /* 💥 FIX: Tighten the line height again on the container */
        line-height: 1.1; 
        
        /* Ensure it's vertically centered with the image */
        align-self: center; 
    }

    /* 3. Reduce Vertical Spacing on Wrapped Text */
    .logo-name {
        /* Reset any conflicting display properties */
        display: inline-block; 
        
        /* 💥 CRITICAL FIX: If line-height isn't working, force a minimum vertical gap */
        /* This rule sets the spacing between lines/items inside this text container */
        margin-top: -3px; 
        margin-bottom: -3px; 

        /* Reduce the line-height to tighten up the vertical space when the text wraps */
        line-height: 1.0; 
        /* Optional: reduce the font size to make wrapping less likely and text smaller */
        font-size: 1.0em; /* Adjusted from the desktop's 1.5em for better fit */
        font-weight: bold; /* Keeping desktop bolding */
    }

    /* ---------------------------------------------------- */
    /* --- 2. HERO SECTION Mobile Fixes (No Overlap) --- */
    /* ---------------------------------------------------- */
    
    /* 💥 CRITICAL FIX: Ensure the main section can fully expand */
    .hero-section {
        /* Critical: Remove desktop flex properties that may interfere */
        display: block; 
        align-items: initial;
    
         /* Ensure height is determined by content */
        height: auto; 
        min-height: auto; 
    
        /* Ensure position is relative for the overlay to work */
        position: relative; 
    
        /* Clears any float/positioning issues */
        overflow: hidden; 
    
        /* Add the total desired vertical space at the top/bottom of the whole section */
        padding-top: 50px; 
        padding-bottom: 50px; 
    }
    
    /* 💥 CRITICAL FIX: Ensure the overlay covers the full expanded height */
    .hero-overlay {
        position: absolute; 
        top: 0;
        left: 0;
        width: 100%;
        height: 100%; /* Now covers the full height of the expanded .hero-section */
    }

    /* Override the full-width container to prevent horizontal scroll */
    .hero-section .full-width-container.hero-content {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 20px; /* Use smaller horizontal padding */
        /* IMPORTANT: Remove vertical padding from this element now that it's on the section */
        padding-top: 0; 
        padding-bottom: 0; 
        /* 💥 CRITICAL FIX: Add a minimum height to force expansion if children are positioned oddly. */
        /* This ensures the wrapper uses enough vertical space. */
        min-height: 1px; 
        position: relative; /* Ensure content stacks above the overlay */
        z-index: 10;
    }

    .hero-layout {
        /* Stack all three columns in a single vertical column */
        display: grid; 
        grid-template-columns: 1fr;
        gap: 40px; 
    }

    /* Column Ordering and Centering */
    .hero-portrait { 
        order: -2; 
        padding: 0;
        justify-self: center; 
        max-width: 250px; 
        margin: 0 auto; 
    }
    .hero-left-image { 
        order: -1; 
        padding: 0;
        justify-self: center; 
        max-width: 300px; 
        margin: 0 auto; 
    }
    .hero-text-content { 
        order: 0; 
        max-width: 100%; 
    }
    
    /* Content Centering and Sizing */
    .hero-content h1,
    .hero-content p {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2em;
    }
    
    .hero-content h1 .sub-headline {
        margin-top: 15px; 
        font-size: 1em; 
    }

    .cta-button-hero {
        display: block; 
        width: 80%;
        max-width: 300px;
        margin: 20px auto; /* Centered margin */
    }

    /* Image Sizing Overrides */
    .overview-img { 
        width: 100%;
    }
    .portrait-img { 
        width: 200px; 
        height: 150px; 
        box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.2), 0 10px 20px rgba(69, 75, 245, 0.3);
    }
    .logo-small {
        width: 200px; 
    }

    /* 💥 NEW FIX: Force the container to respect the height of its children */
    .flow-clear {
        clear: both; /* Clears any floats that might be compressing the height */
        display: block;
        height: 1px; /* Minimal height */
        margin-top: 0;
        visibility: hidden; /* Ensure it doesn't affect appearance */
    }

    /* ---------------------------------------------------- */
    /* --- 3. VALUE PILLARS Mobile (Below Hero) --- */
    /* ---------------------------------------------------- */

       /* 💥 FIX: Explicitly give the pillars a position and Z-INDEX */
    .value-pillars-section {
        position: relative; /* Essential for z-index to work */
        z-index: 100;       /* High z-index to guarantee it sits above the hero */
        margin-top: 0;  /* Remove any top margin that could create gaps */
    }

    .pillars-grid {
        flex-direction: column;
        gap: 20px;
    }
    .pillar-card {
        max-width: 90%;
        margin: 0 auto;
    }

    /* --- 4. Footer Mobile --- */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links, .social-links {
        margin-top: 10px;
    }
    
    .footer-links a, .social-links a {
        margin: 0 8px; 
    }
}

/* Mobile Navigation (requires JS) */
.main-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Below the header */
    left: 0;
    width: 100%;
    background-color: var(--color-primary);
    padding: 10px 0;
    text-align: center;
    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.2);
}

.main-nav.active a {
    margin: 10px 0;
}


.close {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover {
  color: #000;
}