/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

:root {
    --primary: #FFD700;
    --secondary: #FF8C00;
    --accent: #FF4500;
    --dark: #1A1A2E;
    --light: #F5F5F5;
    --blue: #1E90FF;
    --green: #32CD32;
    --purple: #9C27B0;
    --teal: #20B2AA;
    --text-dark: #333;
    --text-light: #777;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --gradient-primary: linear-gradient(45deg, var(--primary), var(--secondary), var(--accent));
    --gradient-secondary: linear-gradient(135deg, var(--teal), var(--blue), var(--purple));
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f9f9f9;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 140, 0, 0.5), 0 0 30px rgba(255, 69, 0, 0.3);
    }
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: linePulse 2s infinite alternate;
}

@keyframes linePulse {
    0% {
        width: 80px;
        opacity: 0.7;
    }
    100% {
        width: 120px;
        opacity: 1;
    }
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-5px);
}

/* ===== HEADER & NAVIGATION ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.main-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    background: none;
    border: none;
    color: var(--dark);
    transition: var(--transition);
}

.mobile-menu:hover {
    color: var(--primary);
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    animation: zoomIn 20s infinite;
}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.slide.active {
    opacity: 1;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
}

.hero-content {
    max-width: 800px;
    padding: 0 20px;
    z-index: 2;
    animation: fadeInUp 1s ease-out 0.5s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== ABOUT SECTION ===== */
.about {
    background: white;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
    animation: imageFloat 8s ease-in-out infinite;
}

@keyframes imageFloat {
    0%, 100% {
        transform: perspective(1000px) rotateY(-5deg) translateY(0);
    }
    50% {
        transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
    }
}

.about-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.experience-box {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background: var(--gradient-primary);
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    animation: pulse 2s infinite, floatBox 6s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes floatBox {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.experience-box h3 {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

/* ===== ENHANCED SERVICES SECTION ===== */
.services {
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    color: white;
    position: relative;
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(32, 178, 170, 0.1) 0%, transparent 50%);
    animation: backgroundShift 10s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundShift {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 50px rgba(255, 215, 0, 0.3);
    border-color: rgba(255, 215, 0, 0.3);
}

.service-card:hover::before {
    left: 100%;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: var(--transition);
    animation: iconFloat 4s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.service-card:hover .service-icon {
    background: var(--gradient-secondary);
    box-shadow: 
        0 0 25px rgba(255, 69, 0, 0.6),
        0 0 40px rgba(156, 39, 176, 0.4);
    transform: scale(1.1) rotate(5deg);
    animation: none;
}

.service-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: white;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.service-card:hover h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
    flex-grow: 1;
}

.service-card:hover p {
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

/* ===== PRODUCTS SECTION ===== */
.products {
    background: linear-gradient(135deg, #f9f9f9, #e6f7ff);
    position: relative;
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(255, 69, 0, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
    animation: cardFloat 6s ease-in-out infinite;
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    animation: none;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 50px rgba(255, 215, 0, 0.2);
}

.product-card:hover::before {
    left: 100%;
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
    color: white;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.product-card:hover .product-icon {
    background: var(--gradient-secondary);
    box-shadow: 
        0 0 25px rgba(255, 69, 0, 0.6),
        0 0 40px rgba(156, 39, 176, 0.4);
    transform: scale(1.1) rotate(5deg);
}

.product-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--dark);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.product-card:hover h3 {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
}



/* ===== SOLUTIONS SECTION ===== */
.solutions {
    background: linear-gradient(135deg, #f9f9f9, #e6f7ff);
}

.solutions-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.solution-item {
    display: flex;
    align-items: center;
    gap: 30px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: slideInRight 1s ease-out both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.solution-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
}

.solution-item:hover .solution-icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
}

/* ===== SUBSIDY SECTION ===== */
.subsidy {
    background: white;
}

.subsidy-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.subsidy-text {
    flex: 1;
}

.subsidy-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.subsidy-image {
    flex: 1;
}

.subsidy-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.subsidy-img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-heavy);
}

.subsidy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.subsidy-feature {
    background: linear-gradient(135deg, #f9f9f9, #e6f7ff);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    animation: fadeIn 1s ease-out both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subsidy-feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background: var(--gradient-primary);
    color: white;
}

.subsidy-feature:hover i,
.subsidy-feature:hover h4,
.subsidy-feature:hover p {
    color: white;
}

.subsidy-feature i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
    transition: var(--transition);
}

.subsidy-feature h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    color: white;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: rotate(15deg) scale(1.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    color: white;
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background: #1A1A2E;
    color: white;
    padding: 70px 0 20px;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 69, 0, 0.05) 0%, transparent 50%);
    animation: rotateBackground 30s linear infinite;
    z-index: 0;
}

@keyframes rotateBackground {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-column h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.footer-column:hover h3::after {
    width: 60px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.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: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* ===== ANIMATION ELEMENTS ===== */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    animation: floatElement 20s infinite linear;
}

@keyframes floatElement {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
    }
}

.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
    opacity: 0.7;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
    }
    100% {
        transform: translateY(-100px) translateX(100px) rotate(360deg);
    }
}

/* ===== LOADING ANIMATION ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-circle {
    width: 60px;
    height: 60px;
    border: 4px solid transparent;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.5);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .gallery-grid,
    .services-grid,
    .products-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .about-content,
    .subsidy-content,
    .contact-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .about-image,
    .subsidy-image {
        order: -1;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        box-shadow: var(--shadow);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-title h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .section {
        padding: 70px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .services-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .solution-item {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .subsidy-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .service-card,
    .product-card {
        padding: 30px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ===== TOUCH DEVICE OPTIMIZATIONS ===== */
@media (hover: none) and (pointer: coarse) {
    .btn:hover,
    .card:hover,
    .nav-links a:hover {
        transform: none !important;
    }
    
    .service-card:hover .service-icon,
    .product-card:hover .product-icon {
        transform: none !important;
        animation: iconFloat 4s ease-in-out infinite;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .floating-elements,
    .particles,
    .mobile-menu,
    .scroll-to-top,
    .loader {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .btn,
    .service-card,
    .product-card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== DARK MODE SUPPORT ===== */
@media (prefers-color-scheme: dark) {
    body:not(.light-mode) {
        background-color: #121212;
        color: #f0f0f0;
    }
    
    body:not(.light-mode) .about,
    body:not(.light-mode) .subsidy,
    body:not(.light-mode) .product-card,
    body:not(.light-mode) .solution-item {
        background-color: #1e1e1e;
        color: #f0f0f0;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* ===== CUSTOM SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, var(--secondary), var(--accent));
}

/* ===== SMOOTH SCROLLING ENHANCEMENT ===== */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ===== ANIMATION DELAYS FOR STAGGERED EFFECTS ===== */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }

.solution-item:nth-child(1) { animation-delay: 0.1s; }
.solution-item:nth-child(2) { animation-delay: 0.2s; }
.solution-item:nth-child(3) { animation-delay: 0.3s; }

.subsidy-feature:nth-child(1) { animation-delay: 0.1s; }
.subsidy-feature:nth-child(2) { animation-delay: 0.2s; }
.subsidy-feature:nth-child(3) { animation-delay: 0.3s; }
.subsidy-feature:nth-child(4) { animation-delay: 0.4s; }


/* Mobile Menu Styles - UPDATED */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 43, 70, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 100%;
    background: linear-gradient(135deg, #0f2b46 0%, #1a3a5a 100%);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex !important;  /* ये add करें */
    flex-direction: column !important; /* ये add करें */
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
    flex-shrink: 0; /* ये add करें */
}

.mobile-menu-header .logo {
    display: flex !important;  /* ये add करें */
    align-items: center;
    gap: 12px;
    visibility: visible !important;  /* ये add करें */
    opacity: 1 !important;  /* ये add करें */
}

.mobile-menu-header .logo img {
    width: 40px;
    height: 40px;
    display: block !important;  /* ये add करें */
}

.mobile-menu-header .logo span {
    color: #FFD700;
    font-weight: 700;
    font-size: 1.2rem;
    display: block !important;  /* ये add करें */
}

.close-menu {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 50%;
    display: flex !important;  /* ये add करें */
    align-items: center;
    justify-content: center;
    color: #FF6B6B;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    visibility: visible !important;  /* ये add करें */
    opacity: 1 !important;  /* ये add करें */
}

.close-menu:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: rotate(90deg);
}

.mobile-nav-links {
    list-style: none;
    padding: 20px 0;
    margin: 0;  /* ये add करें */
    flex-grow: 1;  /* ये add करें */
    overflow-y: auto;  /* ये add करें */
    display: block !important;  /* ये add करें */
    visibility: visible !important;  /* ये add करें */
}

.mobile-nav-links li {
    margin: 5px 0;
    display: block !important;  /* ये add करें */
    opacity: 1 !important;  /* ये add करें */
    visibility: visible !important;  /* ये add करें */
}

.mobile-nav-link {
    display: flex !important;  /* ये add करें */
    align-items: center;
    gap: 15px;
    padding: 18px 25px;
    color: #e0e0e0;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    opacity: 1 !important;  /* ये add करें */
    visibility: visible !important;  /* ये add करें */
}

.mobile-nav-link:hover {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border-left: 4px solid #FFD700;
    padding-left: 30px;
}

.mobile-nav-link i {
    width: 25px;
    text-align: center;
    font-size: 1.2rem;
    display: inline-block !important;  /* ये add करें */
}

.mobile-contact-info {
    padding: 25px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex !important;  /* ये add करें */
    flex-direction: column;
    gap: 15px;
    flex-shrink: 0;  /* ये add करें */
    visibility: visible !important;  /* ये add करें */
}

.mobile-call-btn {
    display: flex !important;  /* ये add करें */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a3a5a;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    visibility: visible !important;  /* ये add करें */
}

.mobile-call-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.mobile-whatsapp-btn {
    display: flex !important;  /* ये add करें */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    visibility: visible !important;  /* ये add करें */
}

.mobile-whatsapp-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
}

/* Reset all display properties */
.mobile-menu-overlay * {
    box-sizing: border-box !important;
}

/* Mobile menu button in header */
.mobile-menu {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: #FFD700;
    transition: all 0.3s ease;
    z-index: 10000;  /* ये add करें */
}

.mobile-menu:hover {
    color: #FFA500;
    transform: scale(1.1);
}

/* Force display of mobile menu elements */
.mobile-menu-overlay.active .mobile-menu-container,
.mobile-menu-overlay.active .mobile-menu-header,
.mobile-menu-overlay.active .mobile-nav-links,
.mobile-menu-overlay.active .mobile-contact-info,
.mobile-menu-overlay.active .mobile-call-btn,
.mobile-menu-overlay.active .mobile-whatsapp-btn,
.mobile-menu-overlay.active .mobile-nav-link,
.mobile-menu-overlay.active .mobile-nav-links li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Responsive design for mobile menu */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu-container {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .mobile-menu-container {
        width: 100%;
    }
    
    .mobile-menu-header {
        padding: 20px 15px;
    }
    
    .mobile-nav-link {
        padding: 16px 20px;
        font-size: 1rem;
    }
    
    .mobile-call-btn,
    .mobile-whatsapp-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

/* Animation for menu items */
.mobile-nav-links li {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-nav-links li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-nav-links li:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(6) { transition-delay: 0.35s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(7) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(8) { transition-delay: 0.45s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(9) { transition-delay: 0.5s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(10) { transition-delay: 0.55s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(11) { transition-delay: 0.6s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(12) { transition-delay: 0.65s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(13) { transition-delay: 0.7s; }
.mobile-menu-overlay.active .mobile-nav-links li:nth-child(14) { transition-delay: 0.75s; }

/* Emergency Fix - Add this at the end of your CSS */
#mobileMenuOverlay .mobile-menu-container * {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

#mobileMenuOverlay.active {
    display: block !important;
    visibility: visible !important;
}

#mobileMenuOverlay.active * {
    display: block !important;
    visibility: visible !important;
}

#mobileMenuOverlay.active ul,
#mobileMenuOverlay.active li,
#mobileMenuOverlay.active a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* WhatsApp Form Styles */
.btn-success {
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #128C7E, #25D366);
}

#btnLoader {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form validation styles */
.form-control:invalid {
    border-color: #ff6b6b;
}

.form-control:valid {
    border-color: #4CAF50;
}

/* Success message */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid #4CAF50;
    color: #4CAF50;
    padding: 15px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    display: none;
}

.success-message.show {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}