/* Global Reset and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #1e1e2f;
    color: #f1f1f1;
    line-height: 1.6;
}

.hero-left img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}



/* === HERO SECTION === */
/* === HERO SECTION === */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('assets/about4.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #f9cc5a;
    padding: 20px;
    animation: fadeIn 2s ease-in; 
}

.hero-welcome,
.hero-left,
.hero-right {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}


.hero-logo {
    width: 140px;
    margin-bottom: 20px;
    animation: fadeInDown 1.5s ease;
}

/* Logo animation */
@keyframes fadeInDown {
    from {
        transform: translateY(-40px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}


.hero-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 100px 8% 60px;
    flex-wrap: wrap;
    min-height: 100vh;
    overflow: hidden; /* Prevent overflow scrolling */
    position: relative; /* Ensure it's not fixed or detached */
}

.hero-left {
    overflow: visible;  /* Make sure logo isn't clipped */
    position: relative;
}

.hero-left,
.hero-right {
    flex: 1 1 45%;
}

.hero-logo-large {
    width: 100%;
    max-width: 300px;
    height: auto;
   margin-left: 20%;
    border-radius: 12px;
    position: relative;  /* Ensure the logo flows naturally with layout */
    display: block;
    transition: transform 0.4s ease;   
}

.hero-logo-large:hover {
    transform: scale(1.05);
}

.hero-right h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: #f9cc5a;
}

.hero-right .highlight {
    color: #00d4ff;
}

.hero-right p {
    font-size: 18px;
    color: black;
    margin-bottom: 30px;
    line-height: 1.6;
}

.explore-btn {
    display: inline-block;
    padding: 12px 24px;
    background-color: #00d4ff;
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.explore-btn:hover {
    background-color: #00aacc;
}
/* Slide-in Animations */
.animate-left {
    opacity: 0;
    transform: translateX(-60px);
    animation: slideLeft 1.2s ease-out forwards;
}

.animate-right {
    opacity: 0;
    transform: translateX(60px);
    animation: slideRight 1.2s ease-out forwards;
    animation-delay: 0.4s;
}

@keyframes slideLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Responsive */
@media (max-width: 768px) {
    .hero-welcome {
        flex-direction: column;
        text-align: center;
    }

    .hero-left, .hero-right {
        flex: 1 1 100%;
    }

    .hero-logo-large {
        max-width: 260px;
        margin: 0 auto 30px;
    }

    .hero-right h1 {
        font-size: 2rem;
    }

    .hero-right p {
        font-size: 1rem;
    }
}


.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: slideInFromBottom 1.5s ease-out;
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    animation: fadeInUp 2s ease;
}

/* === SERVICES SECTION === */
.services {
    padding: 80px 10%;
    background-color: #282840;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    color: #f9cc5a;
    margin-bottom: 50px;
}

.service-boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.service-card {
    background-color: #2f2f4f;
    padding: 30px;
    border-radius: 12px;
    width: 300px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.6);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #00d4ff;
    margin-bottom: 15px;
}

.service-card p {
    color: #ddd;
    font-size: 1rem;
}

/* === CTA Section === */
.cta {
    padding: 60px 10%;
    background-color: #1a1a2a;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    color: #f9cc5a;
    margin-bottom: 20px;
}

.cta p {
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.cta a {
    background-color: #00d4ff;
    color: #000;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.cta a:hover {
    background-color: #00aacc;
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInFromBottom {
    from { transform: translateY(100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .service-boxes {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
    }
}


/* === OUR TEAM SECTION === */
.team-section {
    background-color: #1e1e2f;
    padding: 60px 10%;
    color: #f1f1f1;
    text-align: center;
}

.section-title {
    font-size: 32px;
    color: #f9cc5a;
    margin-bottom: 40px;
}

.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.team-card {
    background-color: #282840;
    border-radius: 12px;
    padding: 20px;
    width: 280px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(60px);
}

.team-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.team-card img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: contain;
    object-position: top center; /* ✅ This is the fix */
    aspect-ratio: 4 / 3;
}


.team-info {
    margin-top: 10px;
}

.member-name {
    font-size: 1.3rem;
    font-weight: bold;
    color: #f9cc5a;
    margin-bottom: 8px;
}

.member-role {
    font-size: 1rem;
    color: #d0d0d0;
    margin-bottom: 15px;
}

.visit-btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #00d4ff;
    color: #000;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.visit-btn:hover {
    background-color: #00aacc;
}

/* Responsive */
@media (max-width: 768px) {
    .team-container {
        flex-direction: column;
        align-items: center;
    }

    .team-card {
        width: 90%;
    }
}

/* ========== MEDIA QUERIES FOR RESPONSIVE DESIGN ========== */

/* Extra small devices (phones, less than 576px) */

@media (min-width: 600px) and (max-width: 850px) {
  .hero-logo-large {
    max-width: 80%;
    width: 280px;
    margin: 0 auto 20px;
  }

  .hero-left {
    text-align: center;
  }
  
   .hero-right h1 {
    font-size: 2.5rem;
  }

  .hero-right p {
    font-size: 1.2rem;
  }
}

@media (max-width: 575.98px) {
    .hero-welcome {
        flex-direction: column;
        text-align: center;
        height: auto;
        padding: 100px 5vw 40px;
    }
    
    .hero-left, .hero-right {
    padding: 0 5vw;
  }

    .hero-left img {
        width: 90%;
        height: auto;
        margin: 0 auto;
        margin-top: 20px;
    }

    .hero-right h1,
    .hero-right p {
        text-align: center;
    }

    .our-services,
    .about-content,
    .company-highlights {
        padding: 40px 5%;
    }

    .highlight-card,
    .team-card {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .team-cards {
        flex-direction: column;
    }

    .core-values {
        flex-direction: column;
    }

    .footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Small devices (phones landscape - tablets, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-welcome {
        flex-direction: column;
        text-align: center;
    }

    .hero-left img {
        width: 70%;
        height: auto;
        margin: 0 auto;
    }

    .team-cards {
        flex-direction: column;
        gap: 25px;
    }

    .highlight-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-left img {
        width: 60%;
        height: auto;
    }

    .team-cards {
        flex-wrap: wrap;
        justify-content: center;
    }

    .team-card {
        flex: 1 1 45%;
        margin-bottom: 30px;
    }

    .highlight-card {
        flex-wrap: wrap;
    }

    .highlight-card img {
        max-width: 100%;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .hero-welcome {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 60px 8%;
    }

    .hero-left {
        flex: 1;
    }

    .hero-right {
        flex: 1;
        padding-left: 40px;
    }

    .team-cards {
        flex-direction: row;
        gap: 30px;
    }

    .team-card {
        flex: 1 1 30%;
    }
}


.business-segments {
    background-color: #1a1a2a; /* dark theme background */
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-size: 32px;
    margin-bottom: 40px;
    color: #f3f3f3;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.segment-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.segment-card {
    background-color: #282840;
    border: 1px solid #333;
    border-radius: 10px;
    width: 280px;
    height: 260px;
    padding: 30px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.segment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.segment-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
    transition: transform 0.3s;
}

.segment-card:hover .segment-icon {
    transform: scale(1.1);
}

.segment-title {
    font-size: 16px;
    font-weight: 600;
    color: #ffd700; /* golden color */
    text-align: center;
    margin-top: auto;
}
@media (min-width: 1200px) {
  .hero-logo-large {
    position: relative; /* could also use `sticky` if fixed behavior is desired */
    top: auto;
  }
}
