/* ========================= GLOBAL RESET ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
    background: #0a0a0c;
    color: #f5f5f5;
    overflow-x: hidden;
}

a, button, .product-card, .btn, .mv-card {
    transition: all 0.35s ease;
}

/* ========================= NAVBAR ========================= */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 72px;
    background: rgba(10, 11, 13, 0.85);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 10px rgba(255, 215, 0, 0.25));
}

.brand-text {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 6px;
    color: #d4af37;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(212,175,55,0.2);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    color: #f5f5f5;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
}

.nav-links a:hover {
    color: #d4af37;
}

.nav-cta {
    padding: 10px 18px;
    border: 1px solid #d4af37;
    border-radius: 6px;
    color: #d4af37 !important;
}

.nav-cta:hover {
    background: #d4af37;
    color: #000 !important;
    box-shadow: 0 0 20px rgba(212,175,55,0.3);
}

/* ========================= HERO ========================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    
    /* --- NEW BACKGROUND IMAGE ADDED HERE --- */
    background: linear-gradient(rgba(10, 11, 13, 0.6), rgba(10, 11, 13, 0.95)), url('../assets/images/home_background.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Adds a slight parallax scrolling effect */
    
    padding: 120px 20px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.tag, .section-tag {
    color: #d4af37;
    font-size: 12px;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.subtext {
    color: #a0a0a0;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btn.primary {
    display: inline-block;
    padding: 16px 36px;
    background: linear-gradient(135deg, #d4af37 0%, #aa8429 100%);
    color: #000;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.btn.primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(212,175,55,0.25);
}

/* ========================= ABOUT / MISSION ========================= */
.section {
    padding: 120px 8vw;
}

.about-section {
    background: #0f0f12;
    text-align: center;
    border-top: 1px solid rgba(212,175,55,0.1);
    border-bottom: 1px solid rgba(212,175,55,0.1);
}

.about-section h2 {
    font-size: 42px;
    margin-bottom: 50px;
}

.mission-vision-grid {
    display: grid;
    /* Updated to 3 columns and made responsive */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px; /* Widened slightly to fit all 3 cards beautifully */
    margin: auto;
}
.mv-card {
    padding: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(212,175,55,0.15);
    border-radius: 16px;
    position: relative;
    cursor: pointer;
}

.mv-card:hover {
    background: rgba(212,175,55,0.05);
    border-color: rgba(212,175,55,0.4);
    transform: translateY(-5px);
}

.mv-card h3 {
    color: #d4af37;
    margin-bottom: 16px;
    font-size: 24px;
}

.mv-card p {
    color: #cfcfcf;
    line-height: 1.8;
}

.click-hint {
    display: block;
    margin-top: 20px;
    font-size: 12px;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.6;
}

.mv-card:hover .click-hint {
    opacity: 1;
}

/* ========================= PORTFOLIO CARDS ========================= */
.products-header {
    text-align: center;
    margin-bottom: 60px;
}

.products-header h2 {
    font-size: 46px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: auto;
}

.product-card {
    position: relative;
    min-height: 400px;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(212,175,55,0.15);
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Changed from flex-end to align headings to the top */
    background-size: cover;
    background-position: center;
    overflow: hidden;
    cursor: pointer;
}
/* Add this new block to make the content fill the card */
.product-content {
    display: flex;
    flex-direction: column;
    height: 100%; /* Takes up full height of the card */
}

.product-content h3 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 12px;
}

.product-content p {
    color: #dfdfdf;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212,175,55,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.product-content h3 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 12px;
}

.product-content p {
    color: #dfdfdf;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 15px;
}

/* Update this block */
.product-btn {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 6px;
    color: #d4af37;
    text-decoration: none;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
    margin-top: auto; /* This magically pushes the button to the exact bottom! */
    width: fit-content; /* Prevents the button from stretching full width */
}

.product-btn:hover {
    background: #d4af37;
    color: #000;
}

.launch-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.1);
    color: #aaa;
    border-radius: 4px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ========================= ZOOM MODAL ========================= */
.zoom-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.zoom-modal.active {
    visibility: visible;
    opacity: 1;
}

.zoom-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 5, 7, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
}

.zoom-modal-content {
    position: relative;
    width: 90%;
    max-width: 1100px; /* INCREASED from 800px for a much bigger screen */
    background: #111216;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 20px;
    padding: 60px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);
    transform: scale(0.85);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
    overflow: hidden;
}

.zoom-modal.active .zoom-modal-content {
    transform: scale(1);
    opacity: 1;
}

/* Modal Internal Styling */
#zoomModalBody {
    position: relative;
    z-index: 2;
}

/* Specific styling for when a product card is injected into the modal */
#zoomModalBody .modal-injected-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 1; /* INCREASED to 1 so the background image is fully visible */
    z-index: 0;
}

/* Specific styling for when a product card is injected into the modal */
#zoomModalBody .modal-injected-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Soft background behind text in modal */
    z-index: 0;
}

#zoomModalBody h3 {
    font-size: 36px;
    color: #d4af37;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

#zoomModalBody p {
    font-size: 18px;
    color: #dfdfdf;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(212,175,55,0.2);
    color: #d4af37;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.close-modal:hover {
    background: #d4af37;
    color: #000;
    transform: rotate(90deg);
}

/* ========================= FOOTER ========================= */
.footer {
    background: #050507;
    padding-top: 80px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.footer-wrapper {
    max-width: 1200px;
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding: 0 40px 60px;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 24px;
    font-size: 18px;
    letter-spacing: 1px;
}

.footer-column a, .footer-column p {
    display: block;
    margin-bottom: 14px;
    color: #a0a0a0;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s ease;
    line-height: 1.8;
}

.footer-column a:hover {
    color: #d4af37;
    transform: translateX(4px);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: #cfcfcf;
    border: 1px solid rgba(212,175,55,0.1);
    margin-bottom: 0;
}

.social-icons a:hover {
    background: #d4af37;
    color: #000;
    transform: translateY(-4px);
}

.footer-bottom {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: #666;
    font-size: 13px;
}

/* ========================= ANIMATIONS ========================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* ========================= RESPONSIVE ========================= */
@media (max-width: 992px) {
    .mission-vision-grid { grid-template-columns: 1fr; }
    .footer-wrapper { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .navbar { flex-direction: column; gap: 15px; padding: 15px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    /* --- HERO MOBILE FIXES --- */
    .hero { 
        padding: 260px 20px 100px; /* Pushes the text safely below the tall mobile navbar */
        min-height: auto; /* Allows natural spacing instead of forcing it to the center */
    }
    .hero h1 { 
        font-size: 34px; /* Scaled down perfectly so words like "Investments" don't get cut off */
        line-height: 1.3; 
        margin-bottom: 20px; 
    }
    .subtext { 
        font-size: 15px; /* Adjusted for better mobile reading */
        line-height: 1.7; 
        padding: 0 10px; /* Adds breathing room on the left and right edges */
    }
    .btn.primary {
        padding: 14px 28px; /* Slightly smaller button to match mobile proportions */
        font-size: 13px;
    }
    .footer-wrapper { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    
    /* --- MODAL MOBILE FIXES --- */
    .zoom-modal-content { 
        padding: 60px 25px 30px; /* Extra top padding so text doesn't hide behind the X */
        max-height: 85vh; /* Prevents modal from stretching taller than the phone screen */
        overflow-y: auto; /* Enables smooth internal scrolling for long text */
        width: 95%; /* Maximizes screen width */
    }
    
    .close-modal {
        top: 15px;
        right: 15px;
        background: rgba(212,175,55,0.15); /* Makes the button stand out more on mobile */
    }
    
    #zoomModalBody h3 {
        font-size: 28px; /* Scales heading down to fit perfectly */
    }
    
    #zoomModalBody p {
        font-size: 15px; /* Optimizes paragraph text for mobile reading */
    }
}

/* --- SMALL LAPTOP FIX (13-inch screens) --- */
@media (max-width: 1300px) {
    .navbar { 
        padding: 20px 40px; /* Reduces the wide side padding */
    }
    .nav-links { 
        gap: 15px; /* Brings the menu links closer together */
    }
    .nav-links a { 
        font-size: 12px; /* Scales down nav text slightly so all 5 divisions fit */
    }
    .brand-text {
        font-size: 20px; /* Scales down logo text */
        letter-spacing: 4px;
    }
    .hero h1 { 
        font-size: 52px; /* Scales down the massive Hero text to fit perfectly */
    }
}
