/* Main Stylesheet for Airavat Overseas Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
     padding-top: 100px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: #333;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #2c3e50;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #27ae60;
}

/* Button Styles */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: #27ae60;
    color: #fff;
    border: 2px solid #27ae60;
}

.btn-primary:hover {
    background-color: transparent;
    color: #27ae60;
}

.btn-secondary {
    background-color: transparent;
    color: #27ae60;
    border: 2px solid #27ae60;
}

.btn-secondary:hover {
    background-color: #27ae60;
    color: #fff;
}

/* Header Styles */
#header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

/* Alternative SVG Logo Styles */
.logo-image {
    height: 60px !important;
    width: 280px !important;
    object-fit: contain;
}


#navbar ul {
    display: flex;
}

#navbar ul li {
    margin-left: 30px;
}

#navbar ul li a {
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

#navbar ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #27ae60;
    transition: width 0.3s ease;
}

#navbar ul li a:hover::after,
#navbar ul li a.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.5)), url('../images/container.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: #fff;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
    font-weight: 700;
    letter-spacing: 1px;
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #27ae60;
    animation: fadeInUp 1s ease 0.3s;
    animation-fill-mode: both;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
    line-height: 1.6;
    font-weight: 400;
}

.hero-content .btn-primary {
    animation: fadeInUp 1s ease 0.9s;
    animation-fill-mode: both;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
    transition: all 0.3s ease;
}

.hero-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Popular Products Section */
#popular-products {
    padding: 80px 0;
    background-color: #fff;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    padding: 20px 20px 10px;
    font-size: 1.3rem;
    color: #2c3e50;
}

.product-item p {
    padding: 0 20px 20px;
    color: #7f8c8d;
}

/* Our Process Section */
#our-process {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.process-step {
    text-align: center;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background-color: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-icon i {
    font-size: 2rem;
    color: #27ae60;
}

.process-step h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.process-step p {
    color: #7f8c8d;
}

/* Testimonials Section */
#testimonials {
    padding: 80px 0;
    background-color: #fff;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
}

.testimonial::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    top: 10px;
    left: 20px;
    color: #27ae60;
    opacity: 0.2;
}

.testimonial p {
    margin-bottom: 20px;
    font-style: italic;
    color: #555;
}

.client-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.client-info span {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Supply Chain Section */
#supply-chain {
    padding: 80px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/supply-chain-bg.jpg') no-repeat center center/cover;
    color: #fff;
    text-align: center;
}

#supply-chain .section-title h2 {
    color: #fff;
}

.supply-chain-content p {
    max-width: 700px;
    margin: 0 auto 30px;
    font-size: 1.2rem;
}

/* Comprehensive Brochure Section */
#brochures {
    padding: 80px 0;
    background-color: #f5f7fa;
}

.brochures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Brochure Category Styles */
.brochure-category {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.brochure-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.brochure-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #27ae60, #2ecc71, #27ae60);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.category-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.3);
}

.category-icon i {
    font-size: 2rem;
    color: #fff;
}

.category-header h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
}

.category-header p {
    color: #7f8c8d;
    font-size: 1rem;
}

.brochure-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.brochure-item {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    text-align: left;
    border: 2px solid transparent;
}

.brochure-item:hover {
    background-color: #fff;
    border-color: #27ae60;
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(39, 174, 96, 0.1);
}

.brochure-icon {
    font-size: 2rem;
    color: #e74c3c;
    margin-right: 15px;
    min-width: 40px;
}

.brochure-content {
    flex: 1;
}

.brochure-content h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
}

.brochure-content p {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.download-btn:hover {
    color: #219653;
    transform: translateY(-2px);
}

.download-btn i {
    transition: all 0.3s ease;
}

.download-btn:hover i {
    transform: translateY(2px);
}

/* Quick Access Section */
.quick-access {
    margin-top: 50px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.quick-access::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 20s linear infinite;
    z-index: 1;
    pointer-events: none;
}

.quick-access-content {
    position: relative;
    z-index: 2;
}

.quick-access h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.quick-access p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.quick-access-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-access-buttons .btn-primary,
.quick-access-buttons .btn-secondary {
    padding: 15px 30px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.quick-access-buttons .btn-primary {
    background-color: #fff;
    color: #27ae60;
    border: 2px solid #fff;
}

.quick-access-buttons .btn-primary:hover {
    background-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.quick-access-buttons .btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.quick-access-buttons .btn-secondary:hover {
    background-color: #fff;
    color: #27ae60;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Contact & Brochure Section */
#contact-brochure {
    padding: 80px 0;
    background-color: #fff;
}

.contact-brochure-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
}

.contact-form-container {
    flex: 1;
    min-width: 300px;
}

.brochure-container {
    flex: 1;
    min-width: 300px;
}

.form-container.modern-form {
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    padding: 0 15px;
    margin-bottom: 25px;
    flex: 1;
    position: relative;
}

/* Floating label styles */
.form-group.floating-label {
    position: relative;
}

.form-group.floating-label input,
.form-group.floating-label textarea {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s;
    background-color: #fff;
}

.form-group.floating-label label {
    position: absolute;
    left: 60px;
    top: 15px;
    color: #888;
    font-size: 1rem;
    transition: all 0.3s;
    pointer-events: none;
}

.form-group.floating-label input:focus,
.form-group.floating-label textarea:focus,
.form-group.floating-label input:not(:placeholder-shown),
.form-group.floating-label textarea:not(:placeholder-shown) {
    border-color: #27ae60;
    padding-top: 20px;
    padding-bottom: 10px;
}

.form-group.floating-label input:focus + label,
.form-group.floating-label textarea:focus + label,
.form-group.floating-label input:not(:placeholder-shown) + label,
.form-group.floating-label textarea:not(:placeholder-shown) + label {
    top: 5px;
    left: 60px;
    font-size: 0.75rem;
    color: #27ae60;
}

.input-icon {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    z-index: 1;
}

.form-group.floating-label textarea + .input-icon {
    top: 25px;
    transform: none;
}

/* Select styles */
.form-group.select-group {
    position: relative;
}

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 15px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    appearance: none;
    background-color: #fff;
    cursor: pointer;
}

.select-wrapper i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

/* Custom checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
}

.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.custom-checkbox label {
    position: relative;
    padding-left: 35px;
    cursor: pointer;
    font-size: 0.95rem;
    user-select: none;
}

.custom-checkbox label span {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s;
}

.custom-checkbox input:checked + label span {
    background-color: #27ae60;
    border-color: #27ae60;
}

.custom-checkbox label span:after {
    content: "";
    position: absolute;
    display: none;
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.custom-checkbox input:checked + label span:after {
    display: block;
}

/* Button styles */
.pulse-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 25px;
    font-weight: 600;
    border-radius: 8px;
}

.pulse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(39, 174, 96, 0.3);
}

.pulse-btn:active {
    transform: translateY(0);
}

/* Brochure styles for contact page */
.brochures-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.brochure-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.brochure-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.brochure-icon {
    font-size: 2.5rem;
    color: #e74c3c;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.brochure-item:hover .brochure-icon {
    transform: scale(1.1);
}

.brochure-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.brochure-content p {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 15px;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #27ae60;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-top: auto;
}

.download-btn i {
    transition: all 0.3s ease;
}

.download-btn:hover {
    color: #219653;
}

.download-btn:hover i {
    transform: translateY(2px);
}

/* =========================================
   RESPONSIVE MEDIA QUERIES (MAIN STYLES)
   ========================================= */

/* Laptop & Tablet (Max Width: 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
        padding: 0 25px;
    }

    /* Adjust Hero for tablet */
    .hero-content h1 {
        font-size: 2.8rem;
    }

    /* Compact grids */
    .products-grid,
    .process-steps,
    .testimonials-slider,
    .brochures-grid {
        gap: 20px;
    }
    
    /* Stack contact form earlier on smaller laptops */
    .contact-brochure-wrapper {
        flex-direction: column;
    }
}

/* Mobile Landscape & Tablets (Max Width: 768px) */
@media (max-width: 768px) {
    
    body {
        padding-top: 70px; /* Reduce body padding as header is smaller */
    }

    /* --- HEADER & NAVIGATION --- */
    #header .container {
        padding: 10px 20px;
    }

    .logo-image {
        height: 45px !important; /* Resize logo */
        width: auto !important;
    }

    /* Show Hamburger Icon */
    .mobile-menu-btn {
        display: block;
        color: #27ae60;
    }

    /* Hide Nav by default and style for Mobile Dropdown */
    #navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        transform: scaleY(0); /* Hidden state */
        transform-origin: top;
        transition: transform 0.3s ease;
        overflow: hidden;
    }

    /* Class to add via JS to open menu */
    #navbar.active {
        transform: scaleY(1);
    }

    #navbar ul {
        flex-direction: column;
        padding: 20px;
    }

    #navbar ul li {
        margin: 0;
        margin-bottom: 15px;
        text-align: center;
    }
    
    #navbar ul li a {
        display: block;
        padding: 10px;
        font-size: 1.1rem;
    }

    /* --- HERO SECTION --- */
    #hero {
        height: auto; /* Remove fixed height */
        min-height: 600px;
        padding: 100px 0 60px; /* Add padding for content */
    }

    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.3;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* --- SECTIONS SPACING --- */
    .section-title h2 {
        font-size: 2rem;
    }

    #popular-products, 
    #our-process, 
    #testimonials, 
    #supply-chain, 
    #brochures, 
    #contact-brochure {
        padding: 50px 0;
    }

    /* --- QUICK ACCESS --- */
    .quick-access {
        padding: 30px 20px;
    }

    .quick-access h3 {
        font-size: 1.5rem;
    }
    
    .quick-access-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .quick-access-buttons .btn-primary,
    .quick-access-buttons .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* --- FORMS --- */
    .contact-brochure-wrapper {
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        margin: 0;
    }

    .form-group {
        padding: 0;
        margin-bottom: 20px;
    }
    
    /* Fix floating label overlapping on mobile */
    .form-group.floating-label label {
        font-size: 0.9rem;
        left: 50px; 
    }
}

/* Small Mobile (Max Width: 480px) */
@media (max-width: 480px) {
    
    /* Prevent horizontal scroll */
    .container {
        padding: 0 15px;
    }

    /* --- HERO --- */
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content .btn-primary {
        width: 100%;
        padding: 12px 20px;
    }

    /* --- GRIDS (Single Column) --- */
    .products-grid,
    .process-steps,
    .testimonials-slider,
    .brochures-grid {
        grid-template-columns: 1fr; /* Force single column */
    }

    /* --- BROCHURES --- */
    .brochure-item {
        flex-direction: column; /* Stack icon and text */
        text-align: center;
        padding: 25px 15px;
    }
    
    .brochure-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .download-btn {
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        padding: 10px;
        background-color: #f0f9f0;
        border-radius: 5px;
    }

    /* --- INPUTS --- */
    /* Stop iOS zooming on inputs */
    input, textarea, select {
        font-size: 16px !important; 
    }

    /* Resize floating labels for small screens */
    .form-group.floating-label input,
    .form-group.floating-label textarea {
        padding-left: 40px;
    }
    
    .input-icon {
        left: 15px;
    }
    
    .form-group.floating-label label {
        left: 45px;
    }
}
