/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.8s ease-out;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: 700;
    animation: fadeIn 1s ease-out;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 1000;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/background1.png') center/cover;
    filter: blur(2px);
    transform: scale(1.1);
    z-index: -2;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.136),
            rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: scaleIn 1s ease-out;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 700;
    letter-spacing: -0.5px;
    animation: fadeIn 1.2s ease-out;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
    line-height: 1.6;
    animation: fadeIn 1.4s ease-out;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 77, 60, 0.198);
    animation: fadeIn 1.6s ease-out;
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

/* Products Section */
.products {
    padding: 8rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.products h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.8rem;
    color: var(--primary-color);
    position: relative;
    animation: fadeIn 1s ease-out;
}

.products h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 1rem auto;
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    animation: scaleIn 0.6s ease-out;
    animation-fill-mode: both;
}

.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;
}

.product-card:nth-child(5) {
    animation-delay: 0.5s;
}

.product-card:nth-child(6) {
    animation-delay: 0.6s;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.product-info {
    padding: 2rem;
    background: white;
}

.product-info h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--primary-color);
}

.product-info p {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.product-price {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.product-label {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
    animation: float 3s ease-in-out infinite;
}

/* About Section */
.about {
    background: white;
    padding: 8rem 1rem;
    position: relative;
    overflow: hidden;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    animation: fadeIn 1s ease-out;
}

.about-content h2 {
    margin-bottom: 2rem;
    font-size: 2.8rem;
    color: var(--primary-color);
}

/* Contact Popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    opacity: 1;
}

.popup-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #fff 60%, #ffe5e0 100%);
    border: 1.5px solid #f3b6a6;
    box-shadow: 0 24px 48px rgba(231, 76, 60, 0.10), 0 2px 8px rgba(44, 62, 80, 0.08);
    padding: 3rem 2.5rem 2.5rem 2.5rem;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    animation: popupDropIn 0.7s cubic-bezier(.23, 1.02, .32, 1) forwards;
    max-width: 569px;
    width: 70%;
}

@keyframes popupDropIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.popup-content h2 {
    text-align: center;
    color: var(--accent-color);
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
}

.popup-content h2::before {
    content: '\1F4E7';
    /* Envelope emoji as icon */
    display: block;
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    text-align: center;
    opacity: 0.85;
}

.contact-details {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 1.15rem;
    color: var(--primary-color);
    font-weight: 500;
    letter-spacing: 0.01em;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    box-shadow: 0 2px 12px rgba(231, 76, 60, 0.04);
}

.contact-details p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.08rem;
}

.contact-details p::before {
    display: inline-block;
    font-size: 1.2rem;
}

.contact-details p:nth-child(1)::before {
    content: '\2709';
    /* Envelope icon */
    color: var(--accent-color);
}

.contact-details p:nth-child(2)::before {
    content: '\260E';
    /* Phone icon */
    color: #16a085;
}

.contact-details p:nth-child(3)::before {
    content: '\1F4CD';
    /* Location pin icon */
    color: #e67e22;
}

.close-btn {
    background: #fff6f3;
    border: 1px solid #ffe5e0;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.08);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.close-btn:hover {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.18);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 4rem 1rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-section {
    animation: fadeIn 1s ease-out;
    animation-fill-mode: both;
}

.footer-section:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-section:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-section:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.97);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2.5rem;
        transition: right 0.35s cubic-bezier(.77, 0, .18, 1);
        box-shadow: -8px 0 24px rgba(44, 62, 80, 0.08);
        z-index: 1000;
        padding: 3rem 1.5rem 2rem 1.5rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        display: block;
        margin: 0;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
        padding: 1rem 0;
        border-radius: 8px;
        width: 100%;
        text-align: center;
        transition: background 0.2s, color 0.2s;
    }

    .nav-links a:hover {
        background: var(--accent-color);
        color: #fff;
    }

    .mobile-menu-btn {
        display: flex;
    }

    /* Remove old transforms for hamburger icon in mobile */
    .mobile-menu-btn.active span:nth-child(1),
    .mobile-menu-btn.active span:nth-child(3) {
        transform: none;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .products {
        padding: 4rem 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .popup-content {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 95%;
        max-width: 95vw;
        margin: 0;
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .product-card {
        margin: 0 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* Motion Graphics Background */
.products .motion-bg,
.about .motion-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.products>*:not(.motion-bg),
.about>*:not(.motion-bg) {
    position: relative;
    z-index: 2;
}

.dot {
    position: absolute;
    border-radius: 50%;
    opacity: 0.18;
    filter: blur(1.5px);
    animation: floatDot 16s linear infinite;
    will-change: transform, opacity;
}

.dot1 {
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    left: 10vw;
    top: 20vh;
    animation-delay: 0s;
}

.dot2 {
    width: 50px;
    height: 50px;
    background: #2c3e50;
    left: 70vw;
    top: 10vh;
    animation-delay: 4s;
}

.dot3 {
    width: 100px;
    height: 100px;
    background: #e67e22;
    left: 80vw;
    top: 70vh;
    animation-delay: 8s;
}

.dot4 {
    width: 60px;
    height: 60px;
    background: #16a085;
    left: 30vw;
    top: 80vh;
    animation-delay: 12s;
}

.dot5 {
    width: 40px;
    height: 40px;
    background: #fff;
    left: 50vw;
    top: 50vh;
    opacity: 0.10;
    animation-delay: 2s;
}

@keyframes floatDot {
    0% {
        transform: translateY(0) scale(1);
        opacity: 0.18;
    }

    30% {
        opacity: 0.28;
    }

    50% {
        transform: translateY(-60px) scale(1.08);
        opacity: 0.22;
    }

    70% {
        opacity: 0.28;
    }

    100% {
        transform: translateY(40px) scale(1);
        opacity: 0.18;
    }
}