/* GARAMOND - Modern Digital Printing */

:root {
    /* Color Palette - Nubank/Revolut inspired but unique */
    --primary-color: #5e17eb;
    /* Deep Electric Purple */
    --primary-hover: #4a0ac2;
    --secondary-color: #00d4ff;
    /* Vibrant Cyan */
    --accent-color: #ff4757;
    /* Coral Red for urgency/CTAs */
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #f8f9fa;
    --bg-light: #ffffff;
    --bg-off-white: #f4f6f8;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 15px 40px rgba(94, 23, 235, 0.15);

    /* Typography */
    --font-main: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --header-height: 120px;
    --border-radius: 16px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.heading-xl {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.heading-lg {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.heading-md {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.text-lead {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 2rem;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(94, 23, 235, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(94, 23, 235, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 20px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 95px;
    width: 95px;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    background: linear-gradient(180deg, var(--bg-off-white) 0%, white 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    /* Vertically center in desktop */
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-visual {
    flex: 1.2;
    position: relative;
    min-height: 500px;
    /* Ensure height even if empty */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract shape for hero visual placeholder */


/* Particle Network Background */
#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}


.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.fade-delay-1 {
    animation-delay: 0.2s;
}

.fade-delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Portfolio Cards */
.portfolio-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-img-container {
    height: 250px;
    overflow: hidden;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .placeholder-img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 25px;
}

.text-small {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 10px;
}

/* Modal */
.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.8);
    padding: 20px;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    border-radius: 16px;
    width: 90%;
    max-width: 900px;
    position: relative;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-body {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
    }
}

.modal-img-container {
    flex: 1;
    padding: 20px;
}

.modal-text {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Benefits Section */
.benefits {
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.benefit-card {
    padding: 30px;
    border-radius: var(--border-radius);
    background: var(--bg-off-white);
    transition: transform 0.3s ease;
    text-align: center;
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: var(--shadow-soft);
}

.benefit-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

/* Categories Section */
.categories {
    background: var(--bg-off-white);
}

.category-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.category-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.cat-icon-container {
    width: 60px;
    height: 60px;
    background: var(--bg-off-white);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.category-card:hover .cat-icon-container {
    background: var(--primary-color);
    color: white;
    transform: rotate(-10deg);
}

.cat-tag {
    position: absolute;
    top: 30px;
    right: 20px;
    background: rgba(94, 23, 235, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0.5px;
}

.cat-product-list {
    margin: 15px 0;
    padding: 0;
    list-style: none;
}

.cat-product-list li {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-product-list li i {
    color: var(--primary-color);
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: #111;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    color: white;
    margin-bottom: 20px;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer a {
    color: #aaa;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    color: #666;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .heading-xl {
        font-size: 2.2rem;
    }

    .heading-lg {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: white;
        flex-direction: column;
        padding: 40px;
        transition: 0.3s ease;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-visual {
        width: 100%;
        min-height: 300px;
    }

    .logo img {
        height: 63px;
        width: 63px;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Force reveal visibility on mobile to avoid "invisible" items */
    .reveal {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}

/* Notification Toast - Fomo Style */
.purchase-notification {
    position: fixed !important;
    bottom: 20px !important;
    left: 20px !important;
    background: white;
    padding: 12px 24px 12px 12px;
    border-radius: 50px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 99999 !important;
    transform: translateY(150px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 380px;
    font-family: 'Outfit', sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.purchase-notification.show {
    transform: translateY(0);
}

.notif-image-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.notif-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notif-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.notif-text {
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--text-dark);
}

.notif-text strong {
    color: var(--primary-color);
    font-weight: 700;
}

.notif-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.notif-close {
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    border: 1px solid #eee;
    color: #999;
    cursor: pointer;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.purchase-notification:hover .notif-close {
    opacity: 1;
}

.notif-close:hover {
    color: var(--accent-color);
}

/* Quote Calculator Section */
.quote-calculator {
    /* light gradient background */
    background: linear-gradient(180deg, white 0%, var(--bg-off-white) 100%);
    padding-bottom: 80px;
}

.quote-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    max-width: 650px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.quote-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.quote-header {
    text-align: center;
    margin-bottom: 30px;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.quote-form input[type="number"],
.quote-form select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #edf2f7;
    border-radius: 12px;
    font-size: 1rem;
    font-family: var(--font-main);
    transition: all 0.3s ease;
    background: #f8fafc;
    color: var(--text-dark);
}

.quote-form input[type="number"]:focus,
.quote-form select:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(94, 23, 235, 0.1);
}

/* Region Toggle Radio */
.region-toggle {
    display: flex;
    background: #edf2f7;
    padding: 4px;
    border-radius: 12px;
    width: fit-content;
    margin-bottom: 12px;
}

.radio-label {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.radio-label input {
    display: none;
}

.radio-label span {
    display: block;
    padding: 8px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    transition: all 0.2s ease;
}

.radio-label input:checked+span {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-block {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    /* Left of WhatsApp button */
    background: white;
    color: var(--primary-color);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 998;
    /* Below WhatsApp (999 usually) */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(94, 23, 235, 0.3);
}

/* Adjust WhatsApp float to not overlap if needed, usually fixed right 20px is standard. 
   Assuming WhatsApp is right: 20px. Back to top should be left of it or stacked. 
*/

.whatsapp-float {
    z-index: 1000;
    /* Ensure on top */
}

/* Masonry Gallery */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
    grid-auto-flow: dense;
    gap: 20px;
}

.masonry-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: #eee;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.masonry-item:hover {
    transform: scale(1.02);
    z-index: 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.masonry-item:hover img {
    transform: scale(1.1);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(94, 23, 235, 0.8), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-overlay span {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Masonry Item Sizes */
.masonry-item--tall {
    grid-row: span 2;
}

.masonry-item--wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-auto-rows: 150px;
        gap: 15px;
    }

    .masonry-item--wide {
        grid-column: span 2;
    }

    .masonry-item--tall {
        grid-row: span 2;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 250px;
    }

    .masonry-item--wide,
    .masonry-item--tall {
        grid-column: span 1;
        grid-row: span 1;
    }
}

/* Lightbox (Pop-up) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(15px);
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 95%;
    max-height: 95%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: 200;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    line-height: 1;
    z-index: 10001;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Play Icon for Videos in Masonry */
.masonry-item--video::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    pointer-events: none;
}