/* style.css */

:root {
    --primary-purple: #4a1d64;      /* Deep brand purple */
    --light-purple: #f3e8ff;        /* Page background tint */
    --gold-gradient: linear-gradient(to bottom, #eab308, #ca8a04); /* Button color */
    --dark-footer: #1a1a1a;
    --metallic-card: linear-gradient(180deg, #b0b0b0 0%, #e0e0e0 40%, #ffffff 100%);
    --purple-card: linear-gradient(180deg, #d8b4fe 0%, #a855f7 100%);
}

/* 1. Global Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: 
        linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
        url('../images/background.jpg') center/cover no-repeat;
}

/* 2. Header & Navigation */
.main-header {
    background: var(--primary-purple);
	background: rgba(134, 47, 186, 1);
    color: white;
}


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

.logo-text .ame {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1;
}

.logo-text .sub {
    font-size: 0.65rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}








/* 3. Hero Section */
.hero {
    text-align: center;
    padding: 4rem 10%;
    /* Replicating the geometric pattern background */
    background-image: linear-gradient(rgba(74, 29, 100, 0.9), rgba(74, 29, 100, 0.9)), 
                      url('https://www.transparenttextures.com/patterns/cubes.png');
	background-image: url('../images/container-bg.png');
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 200;
    margin-bottom: 1rem;
}

.hero h1 span {
    font-weight: 600;
    font-style: italic;
}

.hero p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* 4. Brand Grid Layout */
.container { 
max-width: 1200px; 
margin: 0 auto; 
padding: 3rem 1.5rem; 
/* Apply the generated background  
background-image: url('../images/container-bg.png'); 
background-size: cover; 
background-position: center; 
width: 100%; 
height: 100%; 
object-fit: cover; */

/* Ensure the container has a minimum height to show the watermark */ 
min-height: 800px; 

/* Optional: Subtle border to define the main content area like the reference */ 
border-left: 1px solid rgba(0,0,0,0.05); 
border-right: 1px solid rgba(0,0,0,0.05); 

}


.section-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #222;
}

.brands-grid {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Top Row: 3 columns */
.top-row {
    grid-template-columns: repeat(3, 1fr);
}

/* Bottom Row: 2 columns, centered */
.bottom-row {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

/* 5. Brand Cards & Overlapping Logo */
.brand-card {
    border-radius: 15px;
    overflow: visible; /* Important for the overlapping logo */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

/* Metallic Gradient style */
.metallic {
    background: var(--metallic-card);
    border: 1px solid #ccc;
}

/* Purple Gradient style */
.purple-tint {
    background: var(--purple-card);
    color: #222;
}

/* Image Container with relative positioning */
.card-img-container {
    position: relative;
    width: 100%;
    height: 180px;
}

.card-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 15px 15px 0 0;
}

/* The Overlapping Logo Circle */
.brand-logo-circle {
    position: absolute;
    width: 75px;
    height: 75px;
    background: white;
    border-radius: 50%;
    left: 20px; /* Positioned to the left side per your request */
    bottom: -37.5px; /* Half of height (75/2) to straddle image and text */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.65rem;
    font-weight: 800;
    text-align: center;
    padding: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 3px solid white;
/*	background-image: url('../images/ammart.png');*/
	border: 2px solid purple;
    z-index: 5;
	overflow: hidden;
}

.brand-logo-circle .image {
  width: 100%;
  height: 100%;
  object-fit: cover;    /* Ensures image fills the circle nicely */
}

.brand-logo-circle.dark {
    background: #692379;
    color: white;
    border-color: purple;
}

/* 6. Card Content */
.card-content {
    padding: 50px 20px 25px 20px; /* Increased top padding to avoid logo overlap */
    text-align: center;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category {
    font-size: 0.75rem;
    font-weight: 700;
    font-style: italic;
    color: #444;
    margin-bottom: 12px;
}

.desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 20px;
    height: 40px;
}

/* 7. Buttons */
.btn-visit {
    display: inline-block;
    background: var(--gold-gradient);
    color: #331644;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 10px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 0px #854d0e;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.btn-visit:hover {
    filter: brightness(1.1);
}

.btn-visit:active {
    transform: translateY(3px);
    box-shadow: 0 1px 0px #854d0e;
}

/* 8. Footer */
.main-footer {
    background: var(--dark-footer);
    color: white;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left p {
    font-size: 0.85rem;
    font-weight: bold;
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.5;
    margin-top: 4px;
}

.footer-center {
    display: flex;
    gap: 20px;
}

.footer-center a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-center a:hover {
    opacity: 1;
    color: #a855f7;
}

.footer-right {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 9. Responsive Adjustments */
@media (max-width: 992px) {
    .top-row, .bottom-row {
        grid-template-columns: 1fr 1fr;
        max-width: 100%;
    }
}



	/* Background overlay */
.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(134, 47, 186, 0.5);
	/*background: linear-gradient(135deg, #2c0a4d, #5a189a);*/

    display: flex;
    justify-content: center;
    align-items: center;

    visibility: hidden;
    opacity: 0;
    transition: 0.3s;

	z-index: 99999;
}

/* Show popup */
.popup.show {
    visibility: visible;
    opacity: 1;
}

/* Popup box */
.popup-content {
    background: linear-gradient(135deg,#7222a5, #9a3ad7, #5a189a);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    width: 500px;
    position: relative;
	color: white;
border-radius: 12px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(128, 0, 128, 0.5);
}

/* Close button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
}



.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#862fba;
    padding:15px 20px;
    position:relative;
}

.logo img{
    height:55px;
}

/* desktop */
.nav-links{
    display:flex;
    gap:25px;
    list-style:none;
}

.nav-links a{
    color:white;
    text-decoration:none;
    font-weight:600;
}

/* hamburger hidden desktop */
.menu-toggle{
    display:none;
    font-size:30px;
    color:white;
    cursor:pointer;
}

/* MOBILE */
@media(max-width:768px){

    .menu-toggle{
        display:block;
        position:absolute;
        right:20px;
        top:50%;
        transform:translateY(-50%);
    }

    .nav-links{
        display:none;
        position:absolute;
        top:100%;
        right:10px;
        background:#6d28d9;
        flex-direction:column;
        width:200px;
        border-radius:10px;
        box-shadow:0 10px 25px rgba(0,0,0,0.2);
        z-index:9999;
    }

    .nav-links.active{
        display:block;
    }

    .nav-links li{
        padding:12px;
        border-bottom:1px solid rgba(255,255,255,0.1);
        text-align:right;
    }
}