/* Independence FMCG - Main Stylesheet */

:root {
    --primary-blue: #0056D2;
    --primary-green: #18A558;
    --primary-orange: #FF6B00;
    --primary-purple: #6C63FF;
    --dark: #222222;
    --light-gray: #F5F7FA;
    --white: #ffffff;
    --text-gray: #666666;
    --border-color: #e0e0e0;
    --gradient-blue: linear-gradient(135deg, #0056D2 0%, #0088FF 100%);
    --gradient-green: linear-gradient(135deg, #18A558 0%, #00D4AA 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B00 0%, #FF9500 100%);
    --gradient-purple: linear-gradient(135deg, #6C63FF 0%, #9C96FF 100%);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.3;
}

h1 {
    font-size: 52px;
}

h2 {
    font-size: 40px;
}

h3 {
    font-size: 34px;
}

h4 {
    font-size: 26px;
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}

p {
    color: var(--text-gray);
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.container-fluid {
    padding: 0 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-blue);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 86, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.4);
}

.btn-success {
    background: var(--gradient-green);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(24, 165, 88, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(24, 165, 88, 0.4);
}

.btn-orange {
    background: var(--gradient-orange);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
}

.btn-orange:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline:hover {
    background: var(--gradient-blue);
    border-color: transparent;
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 86, 210, 0.3);
}

.btn-lg {
    padding: 18px 45px;
    font-size: 18px;
}

.btn-sm {
    padding: 10px 25px;
    font-size: 14px;
}

/* Section */
.section {
    padding: 100px 0;
}

.section-gray {
    background: linear-gradient(180deg, var(--light-gray) 0%, #ffffff 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    margin-bottom: 20px;
    font-weight: 700;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    transition: all 0.4s;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
    padding: 5px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    transition: padding 0.3s;
}

.header.scrolled .header-inner {
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 45px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 800;
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text span {
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    position: relative;
    padding: 8px 0;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-blue);
    border-radius: 2px;
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
}

.mobile-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--primary-blue);
    padding: 5px;
    border-radius: 8px;
    transition: background 0.3s;
}

.mobile-toggle:hover {
    background: rgba(0, 86, 210, 0.1);
}

/* Hero Section */
.hero {
    padding: 200px 0 120px;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.95) 0%, rgba(0, 86, 210, 0.9) 50%, rgba(24, 165, 88, 0.85) 100%),
                url('assets/images/images.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(0, 86, 210, 0.85) 50%, rgba(24, 165, 88, 0.8) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(24, 165, 88, 0.15);
    border-radius: 50%;
    opacity: 0.5;
    filter: blur(100px);
    z-index: 2;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: var(--white);
}

.hero-content h1 {
    margin-bottom: 30px;
    line-height: 1.1;
    color: var(--white);
    font-family: 'Anton', sans-serif;
    font-size: 64px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-content h1 span {
    color: var(--primary-green);
    -webkit-text-fill-color: var(--primary-green);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    z-index: 3;
    display: block;
}

.hero-image img {
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    transform: perspective(1000px) rotateY(-8deg) rotateX(5deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
    height: auto;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-green);
    border-radius: 30px;
    z-index: -1;
    opacity: 0.5;
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-blue);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 86, 210, 0.3);
    transition: transform 0.3s;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-title {
    font-size: 24px;
    margin-bottom: 18px;
    color: var(--dark);
    font-weight: 600;
}

.card-text {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 0;
    line-height: 1.7;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.about-list {
    list-style: none;
    margin: 20px 0;
}

.about-list li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-list li::before {
    content: '✓';
    width: 30px;
    height: 30px;
    background: var(--primary-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 86, 210, 0.1) 0%, rgba(24, 165, 88, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-image::after {
    opacity: 1;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-category {
    font-size: 13px;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 20px;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.product-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-green);
    margin-top: 10px;
}

/* Testimonials */
.testimonials-slider {
    position: relative;
}

.testimonial-card {
    background: var(--white);
    border-radius: 25px;
    padding: 45px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 30px;
    font-size: 80px;
    color: var(--gradient-blue);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.1;
    font-family: Georgia, serif;
}

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

.testimonial-image {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 25px;
    overflow: hidden;
    border: 4px solid var(--gradient-blue);
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 86, 210, 0.2);
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-content {
    font-size: 17px;
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
    color: var(--text-gray);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark);
    font-size: 18px;
    margin-bottom: 5px;
}

.testimonial-designation {
    font-size: 14px;
    color: var(--primary-blue);
    font-weight: 500;
}

.testimonial-rating {
    color: #ffc107;
    margin-bottom: 20px;
    font-size: 20px;
    letter-spacing: 3px;
}

/* FAQ */
.faq-item {
    background: var(--white);
    border-radius: 15px;
    margin-bottom: 18px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.faq-question {
    padding: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    color: var(--dark);
    transition: color 0.3s;
}

.faq-item:hover .faq-question {
    color: var(--primary-blue);
}

.faq-question::after {
    content: '+';
    font-size: 28px;
    color: var(--primary-blue);
    transition: transform 0.3s;
    font-weight: 300;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 25px 25px;
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 16px;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 14px 22px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 86, 210, 0.1);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #aaa;
}

textarea.form-control {
    resize: vertical;
    min-height: 130px;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23666' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
    padding-right: 2.5rem;
    appearance: none;
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-logo span {
    color: var(--primary-green);
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.footer-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary-green);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--primary-green);
    font-size: 18px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary-green);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 35px;
    right: 35px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 8px 40px rgba(37, 211, 102, 0.6);
    }
}

.whatsapp-btn:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 35px;
    left: 35px;
    width: 55px;
    height: 55px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    box-shadow: 0 8px 30px rgba(0, 86, 210, 0.3);
    z-index: 998;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 86, 210, 0.4);
}

/* Quick Application Form Enhancement */
.card .form-group {
    margin-bottom: 22px;
}

.card .form-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
    margin-bottom: 8px;
}

.card .form-control {
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 15px;
}

.card .btn-primary {
    padding: 16px 30px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 991px) {
    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 28px;
    }

    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s;
    }

    .nav.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .logo-text {
        font-size: 20px;
    }

    .logo-img {
        height: 40px;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 36px;
    }
    
    h2 {
        font-size: 28px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}
