/* -----------------------------
   GENERAL RESET & BASE STYLES
------------------------------ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}


body {
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
}

/* -----------------------------
   HEADER
------------------------------ */
main {
    flex: 1; /* makes main content fill space between header and footer */
    padding: 20px;
}

header {
    background-color: #003366; /* Darker blue */
    color: white;
    padding: 20px 40px;
    display: flex;
    justify-content: flex-start; /* brand left, nav positioned absolutely */
    align-items: flex-start;
    position: relative;
    height: 140px; /* enough height for bottom-right nav */
}

/* Brand: logo + company name */
.brand {
    display: flex;
    align-items: center;
    gap: 30px; /* distance between logo and company name */
}

.brand h1 {
    font-size: 3rem; /* bigger text */
    margin: 0;
    white-space: nowrap;
}

/* Logo sizing */
.logo {
    height: 100px;
    width: auto;
}

/* Navigation - bottom-right */
.header-right,
header nav {
    display: flex;
    gap: 25px;
    position: absolute;
    bottom: 10px;   /* distance from bottom of header */
    right: 40px;    /* distance from right */
    align-items: center;
}

.header-right a,
header nav a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s;
}

.header-right a:hover,
header nav a:hover {
    color: #00bfff; /* lighter blue on hover */
}

/* -----------------------------
   MAIN CONTENT / SERVICES
------------------------------ */
main {
    padding: 20px;
}

h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #003366;
}

.text-gif {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.text {
  flex: 1;
}
.text h3 {
    font-size: 1.4rem;   /* increase text size */
    font-weight: 400;    /* more paragraph-like */
    line-height: 1.6;
    margin-bottom: 8px;
}

.text-gif img {
  width: clamp(160px, 40vw, 800px);
  max-width: 100%;     /* safety */
  height: auto;
  flex-shrink: 0;      /* prevents squishing */
   margin-right: 24px; /* 👈 pulls it away from the right edge */
   margin-bottom: 24px; /* 👈 pulls it away from the bottom edge */
}

.gif-row {
        display: flex;
        justify-content: center;
        gap: 24px;
}

.content-img {
        width: clamp(120px, 18vw, 200px);
        height: clamp(120px, 18vw, 200px);
        object-fit: contain;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 40px; /* space between service boxes */
}

.service-box {
    display: flex;
    gap: 30px; /* space between icon and text */
    align-items: center;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
}

.service-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.service-box img {
    width: 60px;
    height: auto;
    flex-shrink: 0;
}

.service-text {
    max-width: 800px;
}

.service-text h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.service-text p {
    margin: 0;
}

.service-link {
    text-decoration: none;
    color: #003366; /* same blue as header */
    font-weight: 600;
}

.service-link:hover {
    color: #00bfff;
}

/* -----------------------------
   FOOTER
------------------------------ */
footer {
    background-color: #003366; /* match header */
    color: white;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid #002244;
}

footer a {
    color: #aad4ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* -----------------------------
   RESPONS>IVE DESIGN
------------------------------ */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        height: auto;       /* let header grow naturally */
        padding: 15px 20px;
    }

    .brand {
        flex-direction: column;    /* stack logo above company name */
        align-items: center;
        gap: 10px;
    }

    .brand h1 {
        font-size: 2rem;           /* smaller text for mobile */
        text-align: center;
    }

    .header-right,
    header nav {
        position: static;           /* normal flow */
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;            /* wrap links if needed */
        justify-content: center;
    }

    .service-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .service-text {
        max-width: 100%;
    }

    
    .text-gif img {
        width: 60vw;   /* bigger on phones */
        max-width: 300px;
        margin-right: 12px;
        margin-bottom: 12px;
    }
    
    
    .gif-row {
        display: flex;
        justify-content: center;
        gap: 24px;
    }

    .content-img {
        width: clamp(120px, 16vw, 170px);
        height: clamp(120px, 16vw, 170px);
        object-fit: contain;
    }
    .text h3 {
        font-size: 1.2rem;
    }

}