/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Premium Advisory Combination */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary-font: 'Manrope', system-ui, sans-serif;
  --body-font: 'Inter', system-ui, sans-serif;
}


body {
  line-height: 1.6;
  background-color: #fff;
  color: #222;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 6px;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}


/* Strategic hierarchy */
h1, h2 { 
  font-family: var(--primary-font);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3, h4, h5, h6 {
  font-family: var(--primary-font);
  font-weight: 600;
}

body, p, li {
  font-family: var(--body-font);
  font-weight: 400;
  line-height: 1.65;
}

/* Header */
header {
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo img {
  height: 100px; /* larger logo */
}

/* MODIFIED: Ensure desktop navigation uses flex */
.main-nav {
  display: flex;
  align-items: center;
}

.main-nav a {
  margin-left: 25px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #0077cc;
}

/* ADDED: Hamburger Button Styles (Hidden by default on desktop) */
.menu-toggle {
  display: none; 
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #0b2545; /* Synaptec Blue */
  cursor: pointer;
  padding: 0;
  z-index: 1001; /* Ensure it's above the menu when open */
}
/* END ADDED STYLES */


/* Mobile Responsive Styles */
@media (max-width: 768px) {
  
  /* Header - Logo sizing */
  .logo img {
    height: 60px; /* smaller logo for mobile */
  }
  
  .header-inner {
    padding: 10px 0;
  }
  
  /* FIXED: Show the toggle button */
  .menu-toggle {
    display: block; 
  }
  
  /* FIXED: Menu visibility: Default state (hidden) and positioning for dropdown */
  .main-nav {
    display: none; /* CRUCIAL FIX: Hides navigation on mobile by default */
    position: absolute;
    top: 80px; /* Position below the header (adjust if header height changes) */
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
  }
  
  /* FIXED: Menu visibility: Active state (shown) - This is triggered by your JS */
  .main-nav.active {
    display: flex; /* Show navigation when the 'active' class is toggled by JS */
  }
  
  /* Adjustments for mobile links */
  .main-nav a {
    margin: 10px 0; /* Vertical spacing */
    padding: 10px;
    border-bottom: 1px solid #eee;
  }
  
  .main-nav a:last-child {
    border-bottom: none;
  }

}

/* Hero */
.hero {
  position: relative;
  height: 35vh; /* thinner banner */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  z-index: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.65); /* blue opaque lens */
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 2.0rem;
}

/* Hero - Mobile adjustments */
@media (max-width: 768px) {
  .hero {
    height: 30vh;
  }
  
  .hero-content p {
    font-size: 1.4rem; /* smaller hero text */
  }
}

/*New Alert banner */

/* Space below hero */
.hero-spacer {
  height: 20px; /* Adjust spacing as needed */
}

.new-article-alert {
  color: #28a745;
  text-align: center;
  padding: 14px 0;
  font-size: 1rem;
  font-weight: 500;
}

.new-article-alert p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.new-article-alert a {
  color: #28a745;
  font-weight: 600;
}

.new-article-alert a:hover {
  text-decoration: none;
  color: #28a74;
}

.new-article-alert .alert-date {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-left: 5px;
}

/* Click button */
.alert-btn {
  background-color: #008000;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.alert-btn:hover {
  background-color: #008000;
  transform: scale(1.1);
}


/* Sections */
section {
  padding: 60px 0;
  text-align: center; 
}

/* Ensure anchor-linked sections don't get hidden behind sticky header */
section {
  scroll-margin-top: 120px; /* adjust to your header height */
}


.section-light {
  background-color: #f5f7fa;
  color: #222;
  padding: 60px 0; 
}

.section-dark {
  background-color: #0b2545; /* deep navy */
  color: #fff;
  padding: 60px 0;
}

.section-title {
  font-size: 2rem;
  
  /* Centers the element on the page */
  margin: 0 auto 10px auto; 
  
  /* Ensures text stays on one line */
  white-space: nowrap; 
  
  /* Centers the text inside the element */
  text-align: center; 
  
  /* 🔑 ADJUSTED: Added left/right padding to extend the border/line */
  padding-left: 30px; 
  padding-right: 30px;
  padding-bottom: 15px; /* Keeps space between text and line */
  
  /* Line Definition */
  border-bottom: 2px solid #ddd; 
  
  /* Allows the border to shrink to the width of the content + padding */
  display: inline-block; 
}

.section-subtitle {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 auto 40px auto;
  max-width: 800px;
}

/* Override titles inside dark blocks */
.section-dark .section-title {
  color: #fff;
  border-bottom: 2px solid #555;
}
.section-dark .section-subtitle {
  color: #ddd;
}

/* Section titles and text - Mobile adjustments */
@media (max-width: 768px) {
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 1.2rem;
  }
}


/* Services Grid */
.grid-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 25px;
}

.service-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card .card-body {
  padding: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #008000;
}

.service-card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #0b2545;
}

.service-card h5 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #2f4f4f;
  padding-left: 10px; /* Creates internal padding, effectively indenting the content */
}

.service-item {
    margin-bottom: 15px;
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #0b2545;
}

.service-item p {
    font-size: 0.95rem;
    color: #2f4f4f;
    margin-left: 10px;
}

/* Services Grid - Stack vertically on mobile */
@media (max-width: 768px) {
  .grid-services {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, auto);
    gap: 20px;
  }
} /* Closing brace for Services Grid mobile media query */

/* Technology Domains Grid */
.grid-techdomains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 25px;
}

.techdomains-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  overflow: hidden;
  transition: transform 0.2s ease;
}

.techdomains-card:hover {
  transform: translateY(-5px);
}

.techdomains-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.techdomains-card .card-body {
  padding: 20px;
}

.techdomains-card h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
  color: #008000;
}

.techdomains-card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #0b2545;
}

.techdomains-card h5 {
  margin-bottom: 10px;
  font-size: 1rem;
  color: #2f4f4f;
  padding-left: 10px; /* Creates internal padding, effectively indenting the content */
}

.techdomains-item {
    margin-bottom: 15px;
}

.techdomains-item:last-child {
    margin-bottom: 0;
}

.techdomains-item h4 {
    margin-bottom: 8px;
    font-size: 1.1rem;
    color: #0b2545;
    font-weight: 600;
}

.techdomains-item p {
    font-size: 0.9rem;
    color: #2f4f4f;
    line-height: 1.6;
    margin-left: 10px;
}

 /* Technology Domains Grid - Mobile adjustments */
@media (max-width: 768px) {
  .grid-techdomains {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, auto);
    gap: 20px;
  }
  
  /* Card adjustments */
  .service-card,
  .techdomains-card {
    margin: 0 10px;
  }
  
  .service-card .card-body,
  .techdomains-card .card-body {
    padding: 15px;
  }
} /* Closing brace for Technology Domains Grid mobile media query */

/* Articles Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.post-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
}

.post-card:hover {
  transform: translateY(-5px);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-card .card-body {
  padding: 20px;
  color: #222;
}

.post-card h3 {
  font-size: 1.5rem;
  margin-top: 10px;
  line-height: 1.4;
  color: #0b2545;
}

.post-card .meta {
  font-size: 0.9rem;
  color: #666;
}

/* Section heading */
.contact h2 {
    font-size: 1.5rem;
    margin-bottom: 20px; /* more spacing after heading */
}


/* === Article page specific styles === */
.article-hero {
  position: relative;
  height: 20vh;                 /* thinner banner for articles */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}

.article-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 37, 69, 0.65); /* same blue lens as hero */
  z-index: 1;
}

.article-hero .hero-text {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.article-hero h1 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.article-hero p {
  margin: 0;
  color: rgba(255,255,255,0.92);
}

/* Circular button inside article cards */
.post-card {
  position: relative; /* ensures button can be positioned inside */
}

.circle-btn {
  position: absolute;
  top: 185px;
  right: 5px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #008000;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
  transition: background 0.2s ease, transform 0.2s ease;
}

.circle-btn:hover {
  background: #005fa3;
  transform: scale(1.05);
}



/* Content area for article text */
.article-content {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 15px;
  color: #222;
  font-size: 1rem;
  line-height: 1.7;
}

/* featured image inside article content */
.article-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

/* headings inside articles */
.article-content h2 {
  margin-top: 24px;
  margin-bottom: 12px;
  font-size: 1.4rem;
}

/* ensure header nav mirrors homepage */
/* The next block is now redundant due to earlier fixes, but kept for completeness based on original file structure */
/*
.header-inner .main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
*/

.header-inner .main-nav a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

/* small screens adjustments */
@media (max-width: 800px) {
  .article-hero { height: 30vh; }
  .article-hero h1 { font-size: 1.6rem; }

    /* Target the grid for the Media section and force a single, full-width column */
    #media .card-grid {
        grid-template-columns: 1fr; /* Ensures a single column, full width */
        justify-items: center;    /* Ensures all grid items are centered */
    }
    
    /* Ensure the individual card aligns its contents to the center */
    #media .article-card {
        max-width: 400px; /* Optional: Sets a max-width for better reading on very large mobile devices, while still centering. */
        margin: 0 auto;   /* Explicitly center the card itself */
        padding-left: 0;  /* Remove any unintentional left padding */
        padding-right: 0; /* Remove any unintentional right padding */
    }
}

/* ================================================= */
/* MEDIA SECTION SPECIFIC STYLES (Ultra-Compact 6-Column Thumbnail Layout) */
/* Targets ONLY #media to ensure other sections are not changed */
/* ================================================= */

/* 1. Grid Override: Forces 6 columns on large screens for maximum density */
@media (min-width: 1200px) { /* Use a wider breakpoint for 6 columns */
    #media .articles-grid {
        grid-template-columns: repeat(6, 1fr); /* 🔑 UPDATE: Six columns across */
        gap: 12px; /* Tighter gap */
    }
}

/* TARGETED FIX: Centers images only inside the 'Media' section entries */
#media img {
    /* Ensures margin is auto, overriding any inherited or conflicting rules for images in this section */
    margin: 0 auto !important; 
    /* Ensures it is treated as a block for the margin: auto to work */
    display: block;
}

/* Fallback for medium screens (e.g., 4 columns) */
@media (min-width: 768px) and (max-width: 1199px) { 
    #media .articles-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }
}

/* Mobile: Reverse the order of the article cards so the latest one is first */
@media (max-width: 768px) {
    .article-cards {
        flex-direction: column-reverse; 
        /* The original flex-direction is 'row' (default for flexbox containers), 
        which we are reversing here to 'column-reverse' for mobile. */
    }
}


/* 2. Card Size & Layout Override: Flexbox setup with minimal padding/gap */
#media .article-card {
    gap: 5px; /* Minimum space between image and text */
    padding: 5px 8px; /* Minimum padding for the card container */
    display: flex; 
    align-items: center; 
}

/* 3. Thumbnail Size Override: Minimum proportional size for the image */
#media .article-card img {
    width: 120px;  /* 🔑 UPDATE: Very small thumbnail width */
    height: 80px; /* 🔑 UPDATE: Very small thumbnail height (e.g., 16:9 ratio) */
    border-radius: 3px; 
    flex-shrink: 0; 
    margin: 0;
}

/* 4. Text Size Override: The absolute smallest practical font sizes */
#media .card-text-content {
    flex-grow: 1; 
}

#media .card-text-content h3 {
    /* 🔑 Smallest Title Size */
    font-size: 1.2rem; 
    font-weight: 600; 
    margin: 0 0 0px 0; /* No margin below title */
    line-height: 1.1; 
    
    /* Ensure long titles don't overflow, limit to 2 lines for this size */
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit title to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#media .card-text-content .article-tag,
#media .card-text-content .article-date {
    /* 🔑 Smallest Supplementary Text Size */
    font-size: 1rem; /* Tiny text for tags/dates */
    line-height: 1; 
    opacity: 0.6; /* Mute secondary info */
}

/* FIX: Override .container styles specifically for the full-width media content section */
.media-content .container {
    /* Removes the global max-width: 1200px constraint */
    max-width: 100%; 
    /* Ensures the container element takes up 100% of the section's width */
    width: 100%; 
    /* Adjust padding to control the left/right margins of the grid */
    padding-left: 5%;
    padding-right: 5%;
    margin: 0 auto;
}



/* Clients Grid */
.clients-section {
  padding: 60px 20px;
  background: #f5f7fa; /* light grey to contrast */
}

.clients-section .section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 600;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  align-items: center;
  justify-items: center;
}

.client-logo img {
  max-height: 70px;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.8;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.client-logo img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Clients grid - Mobile adjustments */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .client-logo img {
    max-height: 50px;
  }
}

/* Contact Section (blue block) */
#contact.section-dark {
  background: #0b2a4a; /* dark blue */
  text-align: center;
  color: #fff;

  /* 🔑 CRITICAL: Enable Flexbox on the section */
  display: flex;
  
  /* 🔑 CRITICAL: Stack the h2 and div vertically (the flex direction) */
  flex-direction: column;
  
  /* 🔑 CRITICAL: Center the stacked content along the vertical axis (justify-content when flex-direction is column) */
  justify-content: center;
}

.contact h2 {
    font-size: 1.5rem;
    text-align: center;
}

#contact .section-title {
  margin-bottom: 20px; 
}

/* Contact Section Icons */
.contact-links i {
  margin-right: 8px;
  color: #0077b5; /* LinkedIn blue */
  font-size: 1.75rem;
  vertical-align: middle;
}


/* LinkedIn links container */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* LinkedIn link styles */
.contact-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-weight: 500; /* lighter weight for better balance */
    font-size: 20px;
    text-decoration: none;
    transition: transform 0.2s, opacity 0.2s;
}

.contact a:hover {
    transform: scale(1.05);
    opacity: 0.85;
    color: #0e76a8; /* LinkedIn blue */
}


/* Mobile: stack LinkedIn links vertically */
@media (max-width: 768px) {
    .contact-links {
        flex-direction: column;
        gap: 15px;
        /* ADD THIS CRITICAL LINE TO CENTER THE LINKS HORIZONTALLY */
        align-items: center; 
    }
    
    /* Optional: Ensure the links themselves are centered if they had explicit text-align */
    .contact-links a {
        justify-content: center;
    }
}

<style>
    /* --- PROFILE CSS --- */
    .about-content {
        display: flex;
        flex-direction: column;
        padding: 0px 0;
    }
    
    .profile-card {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }
    
    .profile-image-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        flex-shrink: 0;
    }

    .profile-image {
        width: 250px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-bottom: 10px;
    }

    .image-caption {
        font-size: 1.1rem;
        font-weight: 600;
        color: #333;
        text-align: center;
        max-width: 250px; 
    }
    
    .profile-main-text {
        text-align: left;
    }
    
    /* NEW: INCREASE SPACE BETWEEN PARAGRAPHS */
    .profile-main-text p {
        margin-bottom: 20px; /* Increased spacing for line break effect */
        line-height: 1.6;
    }

    /* Remove horizontal rule styling if it was present */
    .profile-main-text hr {
        display: none;
    }

    /* Mobile styles */
    @media (max-width: 768px) {
        .about-content {
            padding: 10px 0;
        }
        .profile-card {
            flex-direction: column;
            align-items: center;
            gap: 25px;
        }
        .profile-image {
            width: 80%;
            max-width: 200px;
        }
        .image-caption {
            max-width: 200px;
            font-size: 1rem;
        }
        .profile-main-text {
             text-align: left;
             padding: 0 15px; 
        }
        .profile-main-text p {
            margin-bottom: 10px; /* Adjusted margin for mobile */
        }
        .profile-main-text hr {
            display: none;
        }
    }
</style>

/* Footer */
.site-footer {
  background:  #f5f7fa; /* light footer */
  color: #222;
  text-align: center;
  padding: 25px 15px;
  font-size: 0.9rem;
}

.site-footer p {
  text-align: center;
}

/* For very small screens */
@media (max-width: 480px) {
  .container {
    width: 95%;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 1.4rem;
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
  }
}