@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

.logo img {
    width: auto;
    height: 70px;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: #fffdfd;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover::after {
    width: 80%;
}

/* Dropdown styles */
.dropdown-btn {
    position: relative;
    display: inline-block;
}

.dropdown-btn input {
    display: none;
}

.dropbtn {
    background-color: #3498db;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.dropdown-btn-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1001;
    margin-top: 0.5rem;
    overflow: hidden;
}

.dropdown-btn-content a {
    color: #333 !important;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-btn-content a:hover {
    background-color: #f8f9fa;
    color: #3498db !important;
}

.dropdown-btn input:checked~.dropdown-btn-content {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .logo img {
        height: 50px;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1rem;
        color: #333;
        border-radius: 0;
    }

    .nav-links a:hover {
        background-color: #f8f9fa;
    }

    .dropbtn {
        width: 100%;
        text-align: left;
        background-color: transparent;
        color: #333;
        border-radius: 0;
        padding: 1rem;
        font-weight: 500;
    }

    .dropbtn:hover {
        background-color: #f8f9fa;
        transform: none;
    }

    .dropdown-btn-content {
        position: static;
        display: none;
        box-shadow: none;
        background-color: #f8f9fa;
        margin: 0;
        border-radius: 0;
    }

    .dropdown-btn-content a {
        padding: 0.75rem 2rem;
        font-size: 0.9rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }

    .logo img {
        height: 45px;
    }
}


/* Hero Section */
.hero-alt {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;

}

.hero-alt .overlay {
    position: absolute;
    inset: 0;
    background: rgba(251, 232, 205, 0.6);
    mix-blend-mode: multiply;
}

/* Split Layout */
.split {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    padding: 0 1rem;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-alt {
        margin: 3rem auto 3rem;
    }

    .split {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

}



.text-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.text-area:before {
    position: absolute;
    left: 16px;
    top: 3.8rem;
    content: '';
    height: 10px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    width: 10%;
    border-radius: 10px;

}

/* Rotating Headline */
.rotating-headline {
    margin-top: 1rem;
    font-size: 3rem;
    font-weight: 700;
    height: 3.9rem;
    overflow: hidden;
    position: relative;
}

.rotating-headline span {
    background: linear-gradient(135deg, black, #ffce07);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    animation: rotateWords 12s linear infinite;
}

.rotating-headline span:nth-child(1) {
    animation-delay: 0s;
}

.rotating-headline span:nth-child(2) {
    animation-delay: 3s;
}

.rotating-headline span:nth-child(3) {
    animation-delay: 6s;
}

.rotating-headline span:nth-child(4) {
    animation-delay: 9s;
}

@keyframes rotateWords {

    0%,
    20% {
        opacity: 1;
        transform: translateY(0);
    }

    25%,
    95% {
        opacity: 0;
        transform: translateY(-100%);
    }

    100% {
        opacity: 0;
        transform: translateY(-100%);
    }
}

/* Subtitle & CTA  */
.subtitle {
    font-weight: 800;
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
}

.cta-button {
    background: #333;
    color: #ffd700;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #555;
}

/* image slider */
.slider {
    position: relative;
    width: 500px;
    height: 400px;
    overflow: hidden;
    border-radius: 10px;
    /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); */
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slides img {
    /* same as slider width */
    width: 500px;
    height: 400px;
    object-fit: contain;
    flex-shrink: 0;
}

/* Buttons */
.btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(251, 232, 205, 0.6);
    color: black;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
    user-select: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

@media (max-width: 768px) {
    .slider {
        width: 550px;
    }

    .slides img {
        width: 550px;
    }
}

@media (max-width: 480px) {
    .rotating-headline {
        font-size: 2rem;
    }

    .hero-alt {
        height: auto;
    }

    .text-area {
        margin-top: 3rem;
    }

    .slider {
        margin-top: 1rem;
        width: 350px;
    }

    .slides img {
        /* same as slider width */
        width: 350px;
        height: 300px;
    }
}


@media (max-width: 400px) and (max-height: 680px) {
    .text-area {
        margin-top: 3rem;
    }

    .slider {
        margin-top: 1rem;
    }

}


/* Stats Section */
.stats {
    background: white;
    padding: 80px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.stats-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
}

.stat-item img {
    width: 15rem;
    transition: all 0.3s ease-in;
    border-radius: 35px;
}

.stat-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #333;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffce07, #ffd700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    margin-top: 0.5rem;
}

/* Products Section */
.products {
    padding: 100px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fff8dc 100%);
}

.section-title:before {
    position: absolute;
    left: 25%;
    top: 0;
    content: '';
    height: 10px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    width: 15%;
    border-radius: 10px;

}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, black, #ffce07);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}


.product-card {
    background: white;
    border-radius: 25px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 206, 7, 0.2), transparent);
    transition: left 0.5s;
}

.product-card:hover::before {
    left: 100%;
}


.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.product-icon {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}


.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
}

.product-card h4 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #649cd3;
}


.product-card p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


/* Achavement */
.achievements {
    text-align: center;
    background-color: #f4f6f7;
    /* background: linear-gradient(135deg, #ffce07, #ffd700); */
    padding: 3rem 1rem;
}


.achievement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}


/* Animation Keyframes */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Apply Animation on Scroll */
.achievement-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.achievement-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Enhancements */
.achievement-card:hover {
    transform: scale(1.05) rotate(-0.5deg);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

/* Smooth Appearance */
.achievement-grid {
    transition: all 0.3s ease-in-out;
}


/* Footer */
footer {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding-top: 4rem;
    /* extra top space for the overlapping logo */
    position: relative;
}

/* 1. Centered logo “pill” */
.footer-top-logo {
    text-align: center;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-pill {
    background-color: #fff;
    padding: 15px 100px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-pill img {
    display: block;
    width: 100px;
    /* adjust as needed */
    height: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    line-height: 30px;
    padding-bottom: 10px;
    margin-bottom: 18px;
    color: #069f39;
}

.footer-content h3:after {
    width: 37px;
    position: absolute;
    left: 57px;
    bottom: 0;
    height: 3px;
    background: #e7ba48;
    content: '';
}

@media screen and (max-width: 1365px) {
    .footer-content h3:after {
        left: 57px;
        background: #e7ba48;
        content: '';
    }
}

.footer-section p {
    color: #ecf0f1;
    margin: 0.5rem 0;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
}

.footer-section a:hover {
    color: #f1c40f;
}

/* 3. Bottom bar */
.footer-bottom {
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid #34495e;
    color: #95a5a6;
    font-size: 0.9rem;
    position: relative;
}

.footer-bottom:before {
    position: absolute;
    left: 0;
    top: 0;
    content: '';
    height: 2px;
    background: #e7ba48;
    width: 82%;
}

.credit p,
.credit a {
    font-size: 10px;
    color: #95a5a6;
    text-decoration: none;

}

/* Responsive tweaks */
@media (max-width: 600px) {
    .logo-pill {
        padding: 10px 20px;
    }

    .logo-pill img {
        width: 80px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    /* .nav-links {
        display: none;
    } */

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-main-icon {
        font-size: 10rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-features {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 991px) {
    .footer-bottom:before {
        width: 100%;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* marquee tag image */
.image-slider {
    overflow: hidden;
    width: 100%;
    background: #f4f6f7;
    padding: 2rem 0;
}

.slider-track {
    display: flex;
    gap: 2rem;
    animation: scroll 40s linear infinite;
}

.slider-track img {
    height: 100px;
    width: auto;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
    z-index: 100;
}

.slider-track img:hover {
    transform: scale(1.05);
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(-100%);
    }
}


/* Dailog box styling */
/* Dialog/Modal Centering Styles */
#submissionDialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    width: auto;
    min-width: 320px;
    max-width: 90vw;
    max-height: 90vh;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: white;
    overflow: visible;
}

/* Backdrop styling */
#submissionDialog::backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

/* For older browsers that don't support ::backdrop */
#submissionDialog+.dialog-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

/* Dialog content styling */
.dialog-content {
    padding: 2rem;
    text-align: center;
}

.dialog-header {
    margin-bottom: 1.5rem;
}

.dialog-header h3 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.dialog-header p {
    color: #7f8c8d;
    margin: 0;
    font-size: 1rem;
}

.dialog-body {
    margin-bottom: 1.5rem;
}

#refText {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: bold;
    color: #2c3e50;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 2px dashed #ffce07;
    word-break: break-all;
    margin: 1rem 0;
}

.dialog-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.dialog-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

#copyRefBtn {
    background: #ffce07;
    color: #2c3e50;
}

#copyRefBtn:hover {
    background: #f1c40f;
    transform: translateY(-2px);
}

#okRefBtn {
    background: #2c3e50;
    color: white;
}

#okRefBtn:hover {
    background: #34495e;
    transform: translateY(-2px);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #submissionDialog {
        width: 95vw;
        max-width: 95vw;
    }

    .dialog-content {
        padding: 1.5rem;
    }

    .dialog-actions {
        flex-direction: column;
        align-items: center;
    }

    .dialog-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* Animation for dialog */
#submissionDialog[open] {
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Fix for browsers without dialog support */
.dialog-polyfill {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90vw;
    max-height: 90vh;
    overflow: auto;
}