:root {
    /* Executive Color Palette */
    --sidebar-bg: #0f172a; /* Deep Slate */
    --accent-blue: #2563eb; /* Professional Trust Blue */
    --bg-light: #f8fafc; /* Soft off-white for reading comfort */
    --text-dark: #1e293b;
    --text-gray: #475569;
    --white: #ffffff;

    /* Dynamic Sizing */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 80px;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}
/* Simple responsive grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}

[class*="col-"] {
  box-sizing: border-box;
  padding-right: 15px;
  padding-left: 15px;
  width: 100%;
}

/* Extra small devices (phones, <768px) */
@media (max-width: 767px) {
  .col-xs-1 { width: 8.3333%; }
  .col-xs-2 { width: 16.6667%; }
  .col-xs-3 { width: 25%; }
  .col-xs-4 { width: 33.3333%; }
  .col-xs-5 { width: 41.6667%; }
  .col-xs-6 { width: 50%; }
  .col-xs-7 { width: 58.3333%; }
  .col-xs-8 { width: 66.6667%; }
  .col-xs-9 { width: 75%; }
  .col-xs-10 { width: 83.3333%; }
  .col-xs-11 { width: 91.6667%; }
  .col-xs-12 { width: 100%; }
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .col-sm-1 { width: 8.3333%; }
  .col-sm-2 { width: 16.6667%; }
  .col-sm-3 { width: 25%; }
  .col-sm-4 { width: 33.3333%; }
  .col-sm-5 { width: 41.6667%; }
  .col-sm-6 { width: 50%; }
  .col-sm-7 { width: 58.3333%; }
  .col-sm-8 { width: 66.6667%; }
  .col-sm-9 { width: 75%; }
  .col-sm-10 { width: 83.3333%; }
  .col-sm-11 { width: 91.6667%; }
  .col-sm-12 { width: 100%; }
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px) {
  .col-md-1 { width: 8.3333%; }
  .col-md-2 { width: 16.6667%; }
  .col-md-3 { width: 25%; }
  .col-md-4 { width: 33.3333%; }
  .col-md-5 { width: 41.6667%; }
  .col-md-6 { width: 50%; }
  .col-md-7 { width: 58.3333%; }
  .col-md-8 { width: 66.6667%; }
  .col-md-9 { width: 75%; }
  .col-md-10 { width: 83.3333%; }
  .col-md-11 { width: 91.6667%; }
  .col-md-12 { width: 100%; }
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .col-lg-1 { width: 8.3333%; }
  .col-lg-2 { width: 16.6667%; }
  .col-lg-3 { width: 25%; }
  .col-lg-4 { width: 33.3333%; }
  .col-lg-5 { width: 41.6667%; }
  .col-lg-6 { width: 50%; }
  .col-lg-7 { width: 58.3333%; }
  .col-lg-8 { width: 66.6667%; }
  .col-lg-9 { width: 75%; }
  .col-lg-10 { width: 83.3333%; }
  .col-lg-11 { width: 91.6667%; }
  .col-lg-12 { width: 100%; }
}


/* --- LOGO STYLING --- */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    height: 70px; /* Standardizing height */
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    max-height: 40px; /* Adjust this based on your logo's height */
    width: auto;      /* Keeps aspect ratio */
    transition: var(--transition-speed);
}

/* Hide logo or switch to a small icon when sidebar is collapsed (Desktop) */
.sidebar.collapsed .logo-img {
    max-height: 30px;
}

/* Mobile Adjustments */
@media screen and (max-width: 768px) {
    .logo-img {
        max-height: 35px; /* Slightly smaller for mobile top-bar */
    }
}
/* --- ACCORDION SUBMENUS --- */
.nav-menu {
    list-style: none;
    margin-top: 20px;
    padding-bottom: 120px; /* Space for footer */
    height: calc(100vh - 70px);
    overflow-y: auto; /* Allows scrolling if screen is short */
}

/* Hide scrollbar for cleaner look */
.nav-menu::-webkit-scrollbar { display: none; }

.nav-menu li { padding: 5px 15px; }

.nav-menu a, .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: #cbd5e1;
    text-decoration: none;
    padding: 12px 15px;
    border-radius: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: 0.2s;
}

.menu-label { display: flex; align-items: center; }
.nav-menu a i, .menu-label i { min-width: 35px; font-size: 1.2rem; }

.nav-menu a:hover, .submenu-toggle:hover, .nav-menu a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
}

.nav-menu a.active { border-left: 4px solid var(--accent-blue); }

/* Submenu specifics */
.sub-menu {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-left: 35px; /* Indent sub-items */
}

.sub-menu li { padding: 2px 0; }
.sub-menu a { font-size: 0.9rem; padding: 8px 10px; color: #94a3b8; }
.sub-menu a:hover { color: var(--accent-blue); background: transparent; }

/* Chevron rotation */
.chevron { transition: transform 0.3s; font-size: 0.8rem; }
.has-submenu.open .chevron { transform: rotate(180deg); }
.has-submenu.open .sub-menu { max-height: 300px; /* Expands smoothly */ }

/* Collapsed sidebar behavior */
.sidebar.collapsed .link-text,
.sidebar.collapsed .chevron,
.sidebar.collapsed .sub-menu { display: none; }

/* --- SIDEBAR FOOTER & SOCIALS --- */
.sidebar-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: var(--sidebar-bg);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sidebar.collapsed .sidebar-footer { display: none; }

.social-icons {
    display: flex;
    justify-content: space-between;
    list-style: none;
    margin-bottom: 15px;
}

.social-icons a {
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: 0.2s;
}

.social-icons a:hover { color: var(--accent-blue); }

.btn-linkedin {
    display: block;
    text-align: center;
    background: var(--accent-blue);
    color: var(--white);
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-linkedin:hover { background: #1d4ed8; }
/* Typography */
h1 { font-size: 2.8rem; font-weight: 700; color: var(--sidebar-bg); }
h2 { font-size: 1.8rem; font-weight: 600; margin-bottom: 15px; color: var(--sidebar-bg); }
.subtitle { color: var(--accent-blue); font-size: 1.2rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
p { line-height: 1.7; color: var(--text-gray); margin-bottom: 15px; font-size: 1.05rem; }

/* === DYNAMIC SIDEBAR === */
.sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background-color: var(--sidebar-bg);
    transition: width var(--transition-speed) ease;
    z-index: 1000;
}

.sidebar.collapsed { width: var(--sidebar-collapsed-width); }

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    color: var(--white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }
.sidebar.collapsed .logo { display: none; }

.toggle-btn { background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }

.nav-links { list-style: none; margin-top: 30px; }
.nav-links li { padding: 5px 15px; }

.nav-links a {
    display: flex; align-items: center;
    color: #cbd5e1; text-decoration: none;
    padding: 12px 15px; border-radius: 8px;
    transition: 0.2s; white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
    background-color: rgba(255,255,255,0.1);
    color: var(--white);
    border-left: 4px solid var(--accent-blue);
}

.nav-links a i { min-width: 35px; font-size: 1.2rem; }
.sidebar.collapsed .link-text { display: none; }

/* === MAIN CONTENT === */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    transition: margin-left var(--transition-speed), width var(--transition-speed);
}

.main-content.expanded {
    margin-left: var(--sidebar-collapsed-width);
    width: calc(100% - var(--sidebar-collapsed-width));
}

.container { padding: 50px; max-width: 1400px; margin: 0 auto; }

/* === UPDATED HERO SECTION (NO ZOOM) === */

.hero-section {
    position: relative;
    padding: 100px 60px;
    margin-bottom: 50px;
    border-radius: 15px;
    overflow: hidden;
    color: var(--white);

    /* THE "PERFECT FIT" SETTINGS */
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.4)),
        url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');

    background-size: cover;      /* Fills the frame completely */
    background-position: center; /* Keeps the middle of the photo visible on all devices */
    background-repeat: no-repeat;

    /* This ensures it looks great on huge 4K TV screens */
    background-attachment: scroll;

    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px;
}
/* Update your existing Hero Section text styles with these */

.hero-section h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 10px;
    /* White "Glow" Shadow: Horizontal, Vertical, Blur-radius, Color */
    text-shadow: 0px 0px 15px rgba(255, 255, 255, 0.4),
                 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.hero-section .subtitle {
    color: #60a5fa; /* Light Blue */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Soft white shadow to separate from background */
    text-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}

.hero-section p {
    color: #ffffff; /* Pure white for maximum contrast */
    max-width: 1100px;
    font-size: 1.25rem;
    line-height: 1.6;
    /* Using a darker drop shadow here is often better for long text */
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
}

/* Mobile Tweak: On tall phone screens, we want to see more height */
@media (max-width: 768px) {
    .hero-section {
        min-height: 400px; /* Adjust height for mobile */
        padding: 40px 20px;
        background-position: 70% center; /* Shifts image slightly to show a better part of the photo on mobile */
    }
}

/* END background: var(--white); */

.content-section {

    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}
/* GLOBAL HERO MOBILE OPTIMIZATION */
@media screen and (max-width: 768px) {
    .hero-section {
        height: auto !important;      /* Allow section to grow with text */
        min-height: 400px !important; /* Minimum height for visual impact */
        padding: 80px 20px !important; /* Space for the mobile nav bar */
        display: block !important;    /* Reset flex if it causes clipping */
    }

    .hero-text-container h1 {
        font-size: 2rem !important;   /* Shrinks the title so it fits */
        line-height: 1.2 !important;
        word-wrap: break-word;        /* Forces long words to break */
    }

    .hero-text-container .subtitle {
        font-size: 0.9rem !important;
        letter-spacing: 1px !important;
    }

    .hero-text-container p {
        font-size: 1rem !important;
        padding-left: 15px !important;
    }
}
/* === GRID LAYOUT FOR HIGHLIGHTS === */
.cta-btn{
  display:inline-block;
  background:#3B7D23;
  color:#ffffff;
  padding:12px 24px;
  margin-top: 25px;
  margin-right:15px;
  margin-bottom: 15px;
  border-radius:6px;
  text-decoration:none;
  font-weight:600;
  transition:all 0.3s ease;
}

.cta-btn:hover{
  background:#2e641a;
  color:#ffffff;
  transform:translateY(-2px);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.card {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 8px;
    border-top: 4px solid var(--accent-blue);
    transition: transform 0.2s;
}

.card:hover { transform: translateY(-5px); }
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }

/* === MOBILE RESPONSIVENESS === */
.mobile-header {
    display: none;
    background-color: var(--sidebar-bg);
    color: var(--white);
    padding: 15px 20px;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 260px; }
    .sidebar.open { transform: translateX(0); box-shadow: 5px 0 15px rgba(0,0,0,0.2); }
    .main-content, .main-content.expanded { margin-left: 0; width: 100%; }
    .mobile-header { display: flex; }
    .sidebar-header .toggle-btn { display: none; }
    .container { padding: 20px; }
}
/* Impact Section Styling */
.impact-section {
    padding: 30px 0;
    background-color: #f8fafc; /* Clean, light background */
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.eyebrow {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #0f172a;
    font-weight: 800;
    text-transform: uppercase;
}

.section-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 15px auto 0;
}

/* Grid Layout */
.impact-grid {
    display: grid;
    /* This allows 4 columns on wide screens, 2 on tablets, and 1 on mobile */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

/* Specific fix for the Hero stretching issue you mentioned */
.main-content {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
}

.hero-section {
    margin: 30px auto;
    width: 95%; /* Provides the "framed" executive look */
    max-width: 1400px; /* Prevents it from getting too wide on TV screens */
}

/* Modern Impact Card */
.impact-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.impact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: #2563eb;
}

.card-icon {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 20px;
}

.impact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.4;
    min-height: 3.5rem; /* Keeps titles aligned */
}

.card-body p {
    font-size: 1rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Highlighting the Data */
.highlight {
    color: #2563eb;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

.card-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #e2e8f0;
    font-style: italic;
    font-size: 0.95rem;
    color: #1e293b;
}

.card-footer strong {
    color: #059669; /* Result green - subtle and professional */
    font-style: normal;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    .impact-card {
        padding: 30px;
    }
}
/* ICON STYLING */
.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1); /* Very light blue background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.card-icon i {
    font-size: 1.8rem;
    color: #2563eb; /* Your primary blue */
    font-weight: 900;
}

/* Hover Effect for Icons */
.impact-card:hover .card-icon {
    background: #2563eb;
    transform: scale(1.1);
}

.impact-card:hover .card-icon i {
    color: #ffffff; /* Icon turns white on hover */
}

/* Text Highlights */
.highlight {
    color: #2563eb;
    font-weight: 700;
    padding: 0 2px;
}

/* --- CAREER SECTION ENHANCEMENTS --- */
.career-section {
    padding: 30px 0;
    background-color: #fcfcfc;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.timeline-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center; /* Center aligns all content */
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.timeline-card:hover {
    transform: translateY(-8px);
    border-color: #2563eb;
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

/* Image Wrapper for Centering & Width Control */
.card-image-wrapper {
    width: 150px;
    height: 100px;
    margin: 0 auto 20px; /* Centers the div and adds bottom margin */
    overflow: hidden;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrapper img {
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: contain; /* Keeps image aspect ratio without cropping */
}

.year-badge {
    display: inline-block;
    background: #f1f5f9;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.card-content h3 {
    font-size: 1.15rem;
    color: #1e293b;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.card-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* Fix for Animate.box if it's hiding content */
.animate-box { opacity: 1; }

/* --- QUOTES SECTION --- */
.quotes-layout {
    padding: 30px 0 60px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.quote-card {
    background: #ffffff;
    padding: 60px 40px 40px;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    margin: 20px 10px;
}

.quote-icon {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.quote-text {
    font-size: 1.4rem;
    line-height: 1.8;
    color: #1e293b;
    font-style: italic;
    font-weight: 400;
    margin-bottom: 25px;
}

.quote-author {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- FOOTER / BACK TO TOP --- */
.footer-navigation {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
}

.scroll-to-top {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    transition: 0.3s;
}

.scroll-to-top i {
    width: 45px;
    height: 45px;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    margin-bottom: 10px;
    transition: 0.3s;
}

.scroll-to-top span {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 1px;
}

.scroll-to-top:hover i {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    transform: translateY(-5px);
}

.scroll-to-top:hover span {
    color: #2563eb;
}

/* Owl Carousel Custom Dots */
.owl-theme .owl-dots .owl-dot span {
    width: 10px;
    height: 10px;
    background: #cbd5e1;
}

.owl-theme .owl-dots .owl-dot.active span {
    background: #2563eb;
    width: 25px;
}
/* --- TWO COLUMN GRID SETUP --- */
.timeline-grid-two-column {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .timeline-grid-two-column {
        /* This forces exactly two blocks per row on desktop */
        grid-template-columns: 1fr 1fr;
    }
}

/* Ensure cards in the same row have equal height */
.timeline-grid-two-column .timeline-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* --- ENHANCED EXECUTIVE SKILL MATRIX --- */
.skill-group {
    margin-top: 25px;
    text-align: center; /* Centers the labels and the list */
}

.skill-group label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.05);
    padding: 2px 12px;
    border-radius: 50px;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.skill-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the skill tags */
    gap: 10px;
}

.skill-sub-list li {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Interaction Effect */
.timeline-card:hover .skill-sub-list li {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Individual Skill Highlight on Hover */
.skill-sub-list li:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

/* Adjusting Card Content for Symmetry */
.card-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centers the H3 and P */
    text-align: center;
}
/* --- TWO COLUMN GRID SETUP --- */
.timeline-grid-two-column {
    display: grid;
    grid-template-columns: 1fr; /* Default for mobile */
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 992px) {
    .timeline-grid-two-column {
        grid-template-columns: 1fr 1fr; /* Exactly two blocks per row on desktop */
    }
}

/* --- CARD & IMAGE STYLING --- */
.timeline-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centering all content */
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease;
}

.card-image {
    width: 100%;
    height: 200px; /* Fixed height for symmetry */
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --- SOLUTION BOXES & BADGES --- */
.solution-box {
    width: 100%;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #f1f5f9;
}

.solution-box label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #2563eb;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.skill-sub-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center the badges */
    gap: 8px;
}

.skill-sub-list li {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.skill-sub-list li:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
}
//* ============================================================
   EXECUTIVE GRID & CARD SYSTEM (Final Optimized Version)
   ============================================================ */

/* 1. THE GRID: 2 columns on desktop, 1 on mobile */
.timeline-grid-two-column {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 992px) {
    .timeline-grid-two-column {
        grid-template-columns: 1fr 1fr;
    }
}

/* 2. THE CARD: Strict border containment */
.timeline-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #eef2f6;
    overflow: hidden; /* Clips everything inside perfectly */
    height: 100%;
    padding: 0 !important; /* Removes padding so images touch edges */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

/* 3. THE IMAGE WINDOW: Prevents all overflow */
.card-image-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.card-image-container img {
    max-width: 100%;
    max-height: 260px;
    display: block;
    width:auto;
    height:auto;
    padding: 10px;
}

/* 4. THE CONTENT: Internal spacing for text */
.card-content {
    padding: 30px 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

/* 5. SOLUTION BADGES */
.solution-box {
    width: 100%;
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    margin-top: auto; /* Keeps boxes aligned at the bottom */
}

.skill-sub-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.skill-sub-list li {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
/* --- ORIGINAL PILLAR GRID (2 per row) --- */
.grid-2-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (min-width: 992px) {
    .grid-2-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- TRANSFERABLE SKILLS GRID (5 per row) --- */
.grid-transfer-5 {
    display: grid;
    grid-template-columns: 1fr; /* 1 per row mobile */
    gap: 15px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .grid-transfer-5 {
        grid-template-columns: repeat(3, 1fr); /* 3 per row tablet */
    }
}

@media (min-width: 1200px) {
    .grid-transfer-5 {
        grid-template-columns: repeat(5, 1fr); /* Exactly 5 per row desktop */
    }
}

/* Specific styling for the 5-column dense cards */
.grid-transfer-5 .skill-card {
    border-radius: 12px;
    border: none;
    transition: transform 0.3s ease;
}

.grid-transfer-5 .card-image-container {
    height: 140px; /* Reduced height to keep cards compact */
    background: white; /* Keeps image area clean if logos have white bg */
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid #ffffff;
}

.grid-transfer-5 .card-image-container img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    padding: 10px;
}

.grid-transfer-5 .card-content {
    padding: 15px;
    color: #ffffff; /* Contrast against the colored backgrounds */
}

.grid-transfer-5 .card-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    color: #ffffff;
}

/* --- PVNLE GRID (4 per row) --- */
.grid-pvnle-4 {
    display: grid;
    grid-template-columns: 1fr; /* Mobile */
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .grid-pvnle-4 {
        grid-template-columns: repeat(2, 1fr); /* Tablet */
    }
}

@media (min-width: 1200px) {
    .grid-pvnle-4 {
        grid-template-columns: repeat(4, 1fr); /* Desktop */
    }
}

/* Card Styling Adjustments */
.pvnle-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
/* --- PVNLE GRID (4 per row) --- */
.grid-pvnle-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .grid-pvnle-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .grid-pvnle-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Card Styling with Centered Images */
.pvnle-card {
    background: #ffffff;
    border: 1px solid #eef2f6;
    border-radius: 15px;
    text-align: center; /* Centers the text content */
    display: flex;
    flex-direction: column;
}

.pvnle-card .card-image-container {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center; /* Centers the image horizontally */
    background: #ffffff;
    overflow: hidden;
}

.pvnle-card .card-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures the whole image is visible and centered */
    display: block;
    margin: 0 auto; /* Fallback for older browsers */
}

.pvnle-card .card-content {
    padding: 20px;
    flex-grow: 1;
}

.pvnle-card .card-content h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #1e293b;
}

.pvnle-card .card-content p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
    margin: 0;
}
.pvnle-card .card-image-container {
    height: 160px; /* Uniform height for 4-column density */
}

.pvnle-card .card-content h4 {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1e293b;
}

.pvnle-card .card-content p {
    font-size: 0.85rem;
    color: #475569;
    line-height: 1.5;
}
/* --- MODERN SHARP NAV STYLING --- */
.solve-nav-wrapper {
    background: #ffffff;
    padding: 15px 0;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-cta-grid {
    display: grid;
    /* Desktop: 5 equal columns */
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 10px;
    background: #1e293b; /* Dark Slate for Modern Look */
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none !important;
    border: none;
    transition: all 0.2s ease-in-out;
    text-align: center;
    /* Sharp edges */
    border-radius: 0;
}

.btn-modern:hover {
    background: #2563eb; /* Accent Blue on hover */
    color: #ffffff !important;
    box-shadow: inset 0 -4px 0 rgba(0,0,0,0.2);
}

/* --- MOBILE COLLAPSE LOGIC --- */
@media (max-width: 1200px) {
    .nav-cta-grid {
        /* Tablets: 3 per row */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-cta-grid {
        /* Mobile: 2 per row (The 5th button will span full width) */
        grid-template-columns: repeat(2, 1fr);
    }

    .btn-modern:last-child {
        grid-column: span 2;
    }

    .btn-modern {
        padding: 12px 5px;
        font-size: 0.7rem;
    }
}
/* --- GO TO TOP BUTTON STYLING --- */
#goToTopBtn {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001; /* Above the sticky nav */
    border: none;
    outline: none;
    background-color: #1e293b; /* Dark Slate to match Nav */
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 0; /* Sharp edges for modern look */
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 50px;
    height: 50px;
}

#goToTopBtn:hover {
    background-color: #2563eb; /* Accent Blue */
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* --- PROJECT CARD SPECIFIC STYLES --- */
.project-link-wrapper {
    text-decoration: none !important;
    display: block;
    height: 100%;
}

.project-link-wrapper:hover .pvnle-card {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: #2563eb; /* Blue border on hover */
}

/* Ensure the card content text stays professional within the link */
.project-link-wrapper .card-content h4 {
    color: #1e293b;
    transition: color 0.3s ease;
}

.project-link-wrapper:hover .card-content h4 {
    color: #2563eb;
}
/* --- PUBLICATIONS GALLERY GRID (4 PER ROW) --- */
.grid-publications-4 {
    display: grid;
    grid-template-columns: 1fr; /* Mobile: 1 per row */
    gap: 20px;
    margin-bottom: 60px;
}

@media (min-width: 576px) {
    .grid-publications-4 {
        grid-template-columns: repeat(2, 1fr); /* Mobile Landscape: 2 per row */
    }
}

@media (min-width: 992px) {
    .grid-publications-4 {
        grid-template-columns: repeat(4, 1fr); /* Desktop: 4 per row */
    }
}

/* Sharp modern card design */
/* --- ENHANCED ANIMATED CARDS --- */
.publication-link {
    text-decoration: none !important;
    display: block;
    perspective: 1000px; /* Adds depth to the animation */
}

.pub-card {
    background: #ffffff;
    /* More prominent initial border */
    border: 8px solid #ffffff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.pub-card img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.5s ease;
    filter: brightness(0.95); /* Slightly dimmed until hover */
}

/* --- HOVER ANIMATIONS --- */
.publication-link:hover .pub-card {
    transform: translateY(-12px) scale(1.03);
    /* Vibrant prominent border on hover */
    border-color: #2563eb;
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.3);
    z-index: 10;
}

.publication-link:hover img {
    transform: scale(1.12);
    filter: brightness(1.05);
}

/* Adding a subtle "inner glow" border for more prominence */
.pub-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
    pointer-events: none;
    transition: all 0.5s ease;
}

.publication-link:hover .pub-card::after {
    border: 1px solid rgba(255, 255, 255, 0.3);
}
/* --- MODERN SHARP FORM ELEMENTS --- */
.form-control-sharp {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 0; /* Forced sharp edges */
    background: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control-sharp:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* --- CONTACT CTA BUTTONS --- */
.modern-cta-btn {
    background: #1e293b;        /* fallback – can be overridden inline */
    color: #ffffff;
    padding: 16px 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 0;
}

.modern-cta-btn i {
    margin-right: 8px;
}

.modern-cta-btn:hover {
    filter: brightness(2);     /* darkens the button by 20% */
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}
