@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* --- CSS Variables for Easy Theme Management --- */
:root {
    --primary-color: #302ebd;
    --primary-color-dark: #262394;
    --text-color-light: #fff;
    --text-color-dark: #333;
    --footer-background: rgba(49, 46, 215, 0.8);
    --font-main: 'Poppins', sans-serif;
}

/* --- Keyframe Animations --- */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


*, *::before, *::after {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color-light);
    word-break: break-word;
}

.main-container {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

main.main-page {
    flex-grow: 1;
    width: 100%;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/home-bg.png');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

.main-page ul { list-style: none; }
.main-page a { text-decoration: none; }

.main-content {
    padding: 60px 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================== HEADER ================== */
.header-sec {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    animation: slideDown 0.8s ease-out;
}

.main-nav { padding: 16px 0; }
.main-nav .nav2 { display: flex; justify-content: space-between; align-items: center; }
.main-logo img { width: 50px; height: 50px; }

.nav-link { display: flex; gap: 15px; }
.nav-link a { font-size: 16px; font-weight: 500; color: var(--text-color-dark); position: relative; padding: 8px 12px; transition: color 0.3s ease; }
.nav-link a::before { content: ''; width: 0%; height: 2px; background: var(--primary-color); position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); transition: width 0.3s ease; }
.nav-link a.menu-act, .nav-link a:hover { color: var(--primary-color); }
.nav-link a.menu-act::before, .nav-link a:hover::before { width: 80%; }

/* ================== HOME PAGE ================== */
.home-sec .lr-container { display: flex; flex-direction: column; gap: 40px; }
.home-sec .lhs h1 {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    text-align: center;
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
}
.home-sec .rhs {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 0.8s 0.4s ease-out forwards;
}
.home-sec .rhs h4 { font-size: 22px; color: var(--primary-color); margin-bottom: 5px; }
.home-sec .rhs p { color: var(--text-color-dark); }
.home-sec .rhs p:not(:last-child) { margin-bottom: 20px; }

/* ================== ABOUT & OTHER INNER PAGES ================== */
.about-content,
.product-details,
.cont-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    max-width: 1000px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: var(--text-color-dark);
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease-out forwards;
}
.about-content p, .product-details > p { color: #555; }
.about-content p:not(:last-child) { margin-bottom: 20px; }

/* ================== OUR TEAM PAGE ================== */
.team-container {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 40px;
    max-width: 1000px;
    margin: auto;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    color: var(--text-color-dark);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.team-card {
    background: #fdfdfd;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}
.team-card:hover { transform: translateY(-10px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.team-card:nth-child(1) { animation-delay: 0.2s; }
.team-card:nth-child(2) { animation-delay: 0.4s; }
.team-card:nth-child(3) { animation-delay: 0.6s; }

/* --- Image Loader Styles --- */
.team-img-wrapper {
    width: 140px; height: 140px;
    margin: 0 auto 20px auto;
    position: relative;
    background-color: #f0f0f0;
    border-radius: 50%;
}
.loader {
    width: 30px; height: 30px;
    border: 3px solid rgba(0, 0, 0, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute; top: 50%; left: 50%;
    margin-top: -15px; margin-left: -15px;
}
.team-img-wrapper img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.team-img-wrapper.loaded .loader { display: none; }
.team-img-wrapper.loaded img { opacity: 1; }

.team-card h3 { font-size: 20px; color: var(--primary-color); margin-bottom: 5px; }
.team-card .title { font-weight: 600; color: var(--text-color-dark); margin-bottom: 10px; }
.team-card p { font-size: 14px; color: #666; line-height: 1.5; }

/* ================== PRODUCT PAGE ================== */
.product-details h2, .product-item {
    opacity: 0;
    animation: fadeInUp 0.7s ease-out forwards;
}
.product-details h2 { animation-delay: 0.2s; }
.product-grid .product-item:nth-child(1) { animation-delay: 0.3s; }
.product-grid .product-item:nth-child(2) { animation-delay: 0.4s; }
.product-grid .product-item:nth-child(3) { animation-delay: 0.5s; }

.product-details h2 { text-align: center; font-size: 30px; font-weight: 600; margin-bottom: 30px; color: var(--primary-color); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 40px; }

.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    background-color: #f0f0f0;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-item:hover .product-img-wrapper {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}
.product-img-wrapper.loaded .loader { display: none; }
.product-img-wrapper.loaded img { opacity: 1; }

/* ================== CONTACT FORM ================== */
.cont-content { max-width: 600px; }
.cont-content li input, .cont-content li textarea { font-family: var(--font-main); font-size: 14px; width: 100%; background: #f5f5f5; border: 1px solid #ddd; padding: 12px; margin-bottom: 15px; transition: .3s; border-radius: 5px; }
.cont-content li textarea { resize: vertical; }
.cont-content li input:focus, .cont-content li textarea:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 2px rgba(48, 46, 189, 0.2); }

.phone-input-group {
    display: flex;
    align-items: center;
}
.phone-input-group select {
    font-family: var(--font-main);
    font-size: 14px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 12px 8px;
    margin-bottom: 15px;
    transition: .3s;
    border-radius: 5px 0 0 5px;
    border-right: 1px solid #ccc;
    cursor: pointer;
    
    /* FIX: Give the select box a fixed width */
    width: 130px; 
}
.phone-input-group input {
    border-radius: 0 5px 5px 0;
    flex-grow: 1;
}
.phone-input-group select:focus, .phone-input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(48, 46, 189, 0.2);
}

.cont-content li .submit { font-size: 16px; font-weight: 600; color: #fff; background: var(--primary-color); transition: .3s; cursor: pointer; border: none; padding: 14px; border-radius: 5px; }
.cont-content li .submit:hover { background: var(--primary-color-dark); box-shadow: 0 4px 15px rgba(48, 46, 189, 0.4); }

/* ================== FOOTER ================== */
.footer-sec { background: var(--footer-background); padding: 40px 0; color: var(--text-color-light); }
.footer-sec .main-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 30px; }
.footer-sec .contact h2 { font-size: 24px; margin-bottom: 15px; }
.footer-sec .contact h4 { font-weight: 600; }
.footer-sec .contact p { font-size: 14px; line-height: 1.8; }
.footer-sec .social-media { text-align: center; }
.footer-sec .social-media a { display: inline-block; vertical-align: middle; background-image: url('../images/sprite-icons.png'); background-repeat: no-repeat; background-size: 100px; margin: 0 8px; transition: transform 0.3s; }
.footer-sec .social-media a:hover { transform: translateY(-3px); }
.footer-sec .social-media .icon1{ background-position: -1px -3px; width: 20px; height: 20px; }
.footer-sec .social-media .icon2 { background-position: -27px -4px; width: 18px; height: 17px; }
.footer-sec .social-media .icon3 { background-position: -52px -3px; width: 18px; height: 19px; }
.footer-sec .social-media .icon4 { background-position: -76px -4px; width: 22px; height: 17px; }

/* ================== HAMBURGER MENU & RESPONSIVENESS ================== */
.hamburger-menu { display: none; cursor: pointer; }
.hamburger-menu span { display: block; width: 25px; height: 3px; margin: 5px 0; background: var(--text-color-dark); transition: all 0.3s ease-in-out; }

@media screen and (max-width: 768px) {
    .about-content,
    .team-container,
    .product-details,
    .cont-content,
    .home-sec .rhs {
        padding: 25px;
    }

    .nav-links-container { position: absolute; top: 82px; left: 0; width: 100%; background: #fff; max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; }
    .nav-links-container .nav-link { flex-direction: column; align-items: center; padding: 20px 0; gap: 0; }
    .nav-link a { padding: 15px 0; width: 100%; text-align: center; }
    .hamburger-menu { display: block; }
    .nav-links-container.active { max-height: 500px; border-top: 1px solid #eee; }
    .hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger-menu.active span:nth-child(2) { opacity: 0; }
    .hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }
    .home-sec .lhs h1 { font-size: 3rem; }
    .footer-sec .main-container { flex-direction: column; text-align: center; justify-content: center; }
}

@media screen and (max-width: 550px) {
    .home-sec .lhs h1 { font-size: 2.5rem; }
}