/* Global Styles */
:root {
    --primary: #1dd1b0;
    --dark: #121212;
    --light: #f5f5f5;
    --gray: #333;
    --font-mono: 'Courier New', monospace;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Terminal Animation */
@keyframes cursor-blink {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 2rem 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    font-weight: 700;
}

.logo-icon {
    height: 40px;
    width: auto;
    margin-right: 10px;
    background-color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.burger-bar {
    width: 30px;
    height: 3px;
    background-color: var(--light);
    transition: all 0.3s;
}

.hero {
    padding: 6rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 0 auto 1rem auto;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: rgba(255, 255, 255, 0.8);
}

.terminal {
    background-color: var(--gray);
    border-radius: 8px;
    padding: 1.5rem;
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    font-family: var(--font-mono);
    position: relative;
    text-align: left;
}

.terminal-header {
    display: flex;
    margin-bottom: 1rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.terminal-dot:nth-child(1) {
    background-color: #ff5f56;
}

.terminal-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.terminal-dot:nth-child(3) {
    background-color: #27c93f;
}

.terminal-content {
    color: var(--light);
    line-height: 1.4;
}

.terminal-prompt::after {
    content: "";
    display: inline-block;
    width: 8px;
    height: 16px;
    background-color: var(--primary);
    margin-left: 5px;
    vertical-align: middle;
    animation: cursor-blink 1s step-end infinite;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(29, 209, 176, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark);
}

/* Products Section */
.products {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary);
    margin: 1rem auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
}

.product-image-container {
    position: relative;
}

.product-image {
    width: 100%;
    object-fit: cover;
    background-color: #222;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
}

.image-thumbnails {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.thumbnail.active {
    border-color: var(--primary);
}

.thumbnail:hover {
    transform: translateY(-2px);
}

.product-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.product-description {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    flex: 1;
}

.product-price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    flex-wrap: wrap;
}

.product-meta span {
    margin-bottom: 0.5rem;
}

.order-btn {
    width: 100%;
    margin-top: 10px;
}

.coming-soon {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark);
    padding: 0.3rem 0.7rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

/* Product images navigation */
.product-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.nav-prev {
    left: 10px;
}

.nav-next {
    right: 10px;
}

/* WhatsApp Button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.whatsapp-btn svg {
    fill: var(--primary);
}

.whatsapp-btn:hover svg {
    fill: var(--dark);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: rgba(29, 209, 176, 0.05);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.badge {
    display: inline-block;
    background-color: rgba(29, 209, 176, 0.2);
    color: var(--primary);
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.code-block {
    font-family: var(--font-mono);
    background-color: var(--dark);
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    border-left: 3px solid var(--primary);
    overflow-x: auto;
}

.code-comment {
    color: rgba(255, 255, 255, 0.5);
}

/* Instagram Section */
.instagram-connect {
    padding: 5rem 0;
    text-align: center;
    background-color: var(--gray);
}

.instagram-container {
    max-width: 500px;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.instagram-logo {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    font-weight: bold;
    font-size: 1.2rem;
}

.instagram-info {
    text-align: center;
}

.instagram-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.instagram-info p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Order Modal */
.modal {
    position: fixed;
    z-index: 1500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    background-color: var(--gray);
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--light);
    font-size: 1.8rem;
    cursor: pointer;
}

.close-modal:hover {
    color: var(--primary);
}

#order-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    background-color: rgba(0,0,0,0.2);
    color: var(--light);
    font-family: var(--font-sans);
}

.form-group textarea {
    height: 80px;
    resize: vertical;
}

.form-success-message {
    display: none;
    padding: 1rem;
    background-color: rgba(39, 201, 63, 0.1);
    border: 1px solid #27c93f;
    border-radius: 4px;
    margin: 1rem 0;
    color: #27c93f;
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
}

.footer-logo {
    margin-bottom: 1rem;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-heading::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
    margin-top: 0.5rem;
}

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

.footer-links li {
    margin-bottom: 0.7rem;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

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

.social-link i {
    color: var(--light);
    font-size: 1.2rem;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Utility Classes */
.highlight {
    color: var(--primary);
}

.mt-2 {
    margin-top: 2rem;
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background-color: var(--dark);
    z-index: 1000;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
}

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

.close-menu {
    text-align: right;
    margin-bottom: 2rem;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-links a {
    color: var(--light);
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.mobile-nav-links a:hover {
    color: var(--primary);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Loading animation */
.loading {
    display: inline-block;
    position: relative;
    width: 80px;
    height: 80px;
}

.loading div {
    position: absolute;
    top: 33px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--primary);
    animation-timing-function: cubic-bezier(0, 1, 1, 0);
}

.loading div:nth-child(1) {
    left: 8px;
    animation: loading1 0.6s infinite;
}

.loading div:nth-child(2) {
    left: 8px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(3) {
    left: 32px;
    animation: loading2 0.6s infinite;
}

.loading div:nth-child(4) {
    left: 56px;
    animation: loading3 0.6s infinite;
}

@keyframes loading1 {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes loading3 {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(0);
    }
}

@keyframes loading2 {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(24px, 0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }
    .about-image {
        height: 350px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .burger-menu {
        display: flex;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .about-content {
        flex-direction: column;
    }
    .about-image {
        height: 300px;
        width: 100%;
    }
    .instagram-container {
        flex-direction: column;
        padding: 1.5rem;
    }
    .product-card {
        max-width: 350px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    .hero {
        padding: 4rem 0;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .terminal {
        padding: 1rem;
    }
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .product-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Color Selection Styles */
.color-selection {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, border 0.2s;
}

.color-option:hover {
    transform: scale(1.1);
}

.selected-color-text {
    font-size: 0.9rem;
    color: var(--light);
    opacity: 0.8;
    margin-top: 5px;
}

/* Order Details Section */
.order-details {
    margin: 1rem 0;
    padding: 0.75rem;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.order-details p {
    margin: 0;
    color: var(--light);
}


.product-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.product-buttons .btn {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    display: flex;          /* Add this */
    align-items: center;    /* Add this */
    justify-content: center; /* Add this */
    height: 45px;           /* Set fixed height for both buttons */
    margin: 0;              /* Reset any margin */
    box-sizing: border-box; /* Ensure padding doesn't affect height */
}

.product-buttons .whatsapp-btn {
    line-height: 1;         /* Adjust line height */
    white-space: nowrap;    /* Prevent text from wrapping */
}

.product-buttons .whatsapp-btn svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;      /* Add some space between icon and text */
    flex-shrink: 0;         /* Prevent icon from shrinking */
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .product-buttons {
        flex-direction: column;
        gap: 5px;
    }

    .product-buttons .btn {
        width: 100%;          /* Full width on mobile */
    }
}

/* Image Preview Modal */
.image-preview-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    cursor: pointer;
}

.image-preview-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.preview-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    z-index: 2001;
}

.preview-close:hover,
.preview-close:focus {
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

/* Make product image clickable */
.product-image {
    cursor: pointer;
}
