@import url('https://fonts.googleapis.com/css2?family=Poppins:wght=400;500;600;700&display=swap');

/* --- Reset & Global Styles --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Sofia Pro', 'Poppins', 'Segoe UI', sans-serif;
    color: #333;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevents accidental horizontal scrolling */
    font-family: 'Sofia Pro', 'Poppins', 'Segoe UI', sans-serif;
}

/* --- Navigation Bar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px; 
    user-select: none;  
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px; 
}

.nav-logo img {
    height: 45px;       
    width: auto;     
    display: block;
}

.logo-text {
    font-size: 20px;            /* Size of the title text */
    font-weight: 700;            /* Makes it bold */
    color: #1e293b;              /* Clean dark slate color */
    font-family: 'Sofia Pro', 'Poppins', sans-serif;
    white-space: nowrap;         /* Prevents the text from wrapping to a second line */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links a {
    font-family: 'Sofia Pro', 'Poppins', sans-serif;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #2563eb;
}

/* --- Sections Layout --- */
section {
    padding: 100px 0px 80px 0px; /* Increased top padding slightly to clear fixed navbar comfortably */
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Toggles for Section Separation */
#home { 
    background-color: #f0fdf4; 
    text-align: center; 
    padding-top: 65px; /* Matches the height of your navbar */
    padding-bottom: 0;  /* Removes space at the bottom if you want it flush there too */
}
#about { background-color: #f0f9ff; }
#services { background-color: #fef2f2; }
#portfolio { background-color: #ffffff; }
#team { background-color: #f8fafc; }
#contact { background-color: #cecdcd; }

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    user-select: none;
    justify-content: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1e293b;
    text-align: center;
    user-select: none;
    pointer-events: none;
}

.section-desc {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 20px;
    text-align: center;
    user-select: none;
    pointer-events: none;
}

.row-2-col {
    display: flex;
    gap: 40px;
    align-items: center;
}

.col-half {
    flex: 1;
}

.col-half img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* 3-Column Layout (Services & Team Sections) */
.row-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 10px 0px 0px 0px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centers the items on the main row and any leftover items */
    gap: 20px; /* Space between your cards */
}

/* Card Styling (Services, Portfolio & Team) */
.card {
    flex: 1 1 300px; /* Grow, shrink, and base width of around 300px */
    max-width: 350px; /* Prevents the 4th card from stretching too wide on the second row */
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.card h3 {
    margin: 15px 0 8px 0;
    color: #1e293b;
    pointer-events: none;
    user-select: none;
}

.slogan-logo {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Portfolio Specific Overrides */

.portfolio-card {
    padding: 0; 
    width: 100%;
    max-width: 700px;
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.portfolio-info {
    padding: 20px;
    text-align: left;
    user-select: none;
}

#clients {
    background-color: #d0d2d4; 
    padding: 80px 20px;
    user-select: none;
}

.clients-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centering behavior for trailing rows */
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.client-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 calc(20% - 16px); 
    min-width: 180px; /* Prevents cards from squeezing too narrow */
    min-height: 140px;
    
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.client-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.1);
}

.client-card img {
    width: 100%;
    max-width: 90%;
    max-height: 85px;
    object-fit: contain;
}

/* Team Specific Styles */
.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 3px solid #2563eb;
}

.team-role {
    font-size: 0.9rem;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    user-select: none;
}

/* 2-Column Form/Info Split (Contact Section) */
.contact-row {
    display: flex;
    gap: 40px;
}

.info-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    user-select: none;
}

.form-panel {
    flex: 1.5;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit; 
}

button {
    background-color: #2563eb;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    font-family: inherit;
}

button:hover {
    background-color: #1d4ed8;
}

/* --- Hero/Image Centering Utility --- */
.center-max-img {
    display: block;
    width: 100%;  
    max-width: 100%;
    height: auto; 
    margin-left: auto;
    margin-right: auto;
}

/* --- Innovation Section --- */
.innovation-section {
    background-color: #f3f4f6; 
    padding: 80px 0;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.innovation-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 0 20px;
}

.innovation-content {
    flex: 1;
    max-width: 500px;
    text-align: center;
    user-select: none;
}

.innovation-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
    margin-bottom: 20px;
}

.innovation-divider {
    width: 80%;
    border: none;
    border-top: 3px solid #1a1a1a;
    margin: 0 auto 25px auto;
}

.innovation-text {
    font-size: 1.05rem;
    color: #4a4a4a;
    line-height: 1.6;
}

.innovation-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
}

/* Updated for a beautiful landscape widescreen mockup */
.screen-mockup {
    width: 100%;
    max-width: 520px; /* Widened to properly showcase landscape video */
    aspect-ratio: 16 / 9; /* Enforces a perfect widescreen ratio */
    border: 10px solid #1a1a1a; /* Sleek display frame bezel */
    border-radius: 16px; /* Slightly tighter corners for a monitor/tablet look */
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    background-color: #000;
    z-index: 2;
}

/* Ensures the video stretches perfectly to fill the frame */
.screen-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Adjusted shadow to fit the wider width */
.screen-shadow {
    width: 90%;
    max-width: 500px;
    height: 30px;
    background: rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    filter: blur(12px);
    margin-top: -15px;
    z-index: 1;
}

.media-description {
    font-size: 1.1rem;
    color: #4a4a4a;
    font-weight: 500;
    margin-top: 20px; /* Gives it some breathing room below the shadow */
    text-align: center;
    width: 100%;
    max-width: 520px; /* Matches the width of your landscape video */
    line-height: 1.5;
    z-index: 2;
}

/* --- CEO Section --- */
.ceo-section {
    background-color: #222222; 
    color: #ffffff;
    padding: 80px 20px;
    font-family: inherit;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    user-select: none;
}

.ceo-container {
    max-width: 1100px;
    width: 100%;
}

.ceo-top-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr; 
    gap: 40px;
    align-items: start;
    margin-bottom: 25px;
}

.ceo-image-container {
    width: 100%;
}

.ceo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.ceo-intro-content {
    position: relative;
    padding-top: 15px;
}

.ceo-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.ceo-section-title {
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.ceo-name {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.ceo-role {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.ceo-intro-content p,
.ceo-bottom-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #dddddd;
    margin-bottom: 20px;
    text-align: justify;
}

.ceo-bottom-content {
    width: 100%;
}

.ceo-bottom-content p:last-child {
    margin-bottom: 0;
}

/* --- Overwritten Services Section Layout --- */
#services {
    background-color: #f4f4f6; 
    padding: 80px 20px;
    font-family: inherit;
    color: #333333;
    min-height: 100vh;
    user-select: none;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; 
    gap: 40px;
    align-items: center;
}

.services-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.services-content .intro-text, 
.services-content .closing-text {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #4a4a4a;
}

.services-content .provide-heading {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: #4a4a4a;
}

.services-list {
    list-style-type: none; 
    padding-left: 15px;
    margin-bottom: 25px;
}

.services-list li {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 5px;
    position: relative;
    color: #4a4a4a;
}

.services-list li::before {
    content: "•";
    color: #4a4a4a;
    font-weight: bold;
    display: inline-block; 
    width: 15px;
    margin-left: -15px;
}

.services-images {
    position: relative;
    height: 480px; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    left: 20px;
}

.image-wrapper {
    width: 280px;          /* Force a clean, solid width */
    height: 280px;         /* Force a matching height to guarantee a perfect circle */
    max-width: 100%;       /* Keeps it responsive on smaller mobile screens */
    border-radius: 37%;
    overflow: hidden;
    position: absolute;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5); 
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;     /* Crops and covers the container completely */
    display: block;        /* Ensures no image bleed outside the wrapper */
}

.top-circle {
    position: absolute; /* Assuming this is already there */
    top: 0;
    right: 250px; 
    z-index: 1;
    background-color: transparent;
}

.bottom-circle {
    position: absolute; /* Assuming this is already there */
    bottom: 0;
    right: 0;
    z-index: 2;  
    background-color: transparent;
}

/* Container remains perfectly balanced */
.fb-container {
  display: inline-flex;
  align-items: center;
  width: auto; 
  min-width: 320px;
  height: 48px;
  background-color: #ffffff; /* Base background is purely white */
  border: 2px solid #1877f2;
  border-radius: 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-top: 15px;
  font-family: Arial, sans-serif;
}

/* The left side container holding "facebook" */
.fb-icon-section {
  background-color: #1877f2;
  height: 100%;
  /* Extra right padding (35px) gives the text a safe distance from the slant */
  padding: 0 35px 0 20px; 
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* Creates a perfect slanted cut on the right edge of the blue box */
  clip-path: polygon(0% 0%, 100% 0%, 82% 100%, 0% 100%);
}

.fb-icon {
  color: #ffffff;
  font-size: 20px;
  font-weight: bold;
  user-select: none;
}

/* The right side container holding the link */
.fb-text-section {
  flex-grow: 1;
  height: 100%;
  /* Shift slightly left to cleanly sit flush against the clip-path angle */
  margin-left: -15px; 
}

.fb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: #000000;
  font-weight: bold;
  font-size: 14px;
  
  /* Padding left (25px) keeps the username safely to the right of the slant */
  padding: 0 24px 0 25px; 
  white-space: nowrap;
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 992px) {
    .services-container {
        grid-template-columns: 1fr; /* Stack text above images on smaller screens */
        gap: 40px;
    }
    
    .services-images {
        height: 380px;
        max-width: 450px;
        margin: 0 auto;
    }

    .top-circle {
        top: -50px;
        left: 0;
    }
    
    .bottom-circle {
        bottom: 0;
        right: 0;
    }

    .team-grid {
        grid-template-columns: repeat(3, minmax(250px, 350px)); /* Limits max width of cards */
    }
}

@media (max-width: 900px) {
    .row-3-col {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 0px 0px 0px;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: fixed; /* Changed from relative to fixed */
        top: 0;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 12px;
        padding: 15px;
    }

    .nav-links {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }

    section {
        /* Increased top padding from 80px to 140px to safely push content past the fixed mobile navbar */
        padding: 140px 15px 60px 15px; 
        min-height: auto; 
        display: flex;
        justify-content: center;
        align-items: center;
        user-select: none;
    }

    .slogan-logo {
        width: 50%;
        height: auto;
        margin: 0 auto;
    }

    .services-container {
        grid-template-columns: 1fr; /* Stack text above images on smaller screens */
        padding: 50px 15px 60px 15px; 
    }


    #home {
        padding-top: 140px; 
    }

    .innovation-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .screen-mockup {
        max-width: 100%; /* Lets it scale nicely on mobile layouts */
    }

    .ceo-top-grid {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
    
    .ceo-accent-line {
        display: none; 
    }

    .ceo-container {
        padding: 50px 15px 60px 15px;
    }

    .ceo-intro-content p,
    .ceo-bottom-content p {
        text-align: left; 
    }

    .row-2-col, .contact-row {
        flex-direction: column;
        gap: 30px;
    }

    .row-3-col {
        justify-content: center;
        grid-template-columns: 1fr;
        padding: 10px 0px 0px 0px;
    }

    .services-content h1 {
        font-size: 2.2rem;
        text-align: center;
    }


}

@media (max-width: 480px) {
    /* Optimization specifically for small phones */
    h1 {
        font-size: 2rem;
    }
    .innovation-title {
        font-size: 1.8rem;
    }
 
}