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

:root {
    --gold: #D4AF37;
    --gold-light: #F4E4BC;
    --dark: #0A0A0A;
    --dark-gray: #1A1A1A;
    --text-light: #FFFFFF;
    --text-gray: #CCCCCC;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--text-light);
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 0 clamp(1rem, 3vw, 3rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: clamp(70px, 10vh, 120px);
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    background: url("./assets/nav_logo.png") lightgray 50% / cover no-repeat;
    padding: clamp(0.8rem, 1.5vh, 1.5rem) clamp(1.5rem, 3vw, 3rem);
    min-width: clamp(120px, 15vw, 200px);
    max-width: 250px;
    height: clamp(70px, 10vh, 120px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-symbol {
    font-family: 'Edwardian Script ITC';
    font-size: clamp(2rem, 4vw, 64px);
    font-style: normal;
    font-weight: 400;
    line-height: clamp(30px, 3vw, 40px);
    letter-spacing: clamp(16px, 2vw, 32px);
    color: #131313;
    margin-bottom: clamp(0.2rem, 0.5vh, 0.3rem);
}

.logo-text {
    font-family: 'New York';
    font-size: clamp(0.6rem, 1vw, 12px);
    font-style: normal;
    font-weight: 496;
    line-height: normal;
    letter-spacing: clamp(1.5px, 0.2vw, 2.4px);
    text-transform: uppercase;
    color: #131313;
}

.nav-left,
.nav-right {
    display: flex;
    gap: clamp(0.8rem, 1.5vw, 2rem);
    color: #CAAC59;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    font-size: clamp(10px, 1vw, 16px);
    white-space: nowrap;
    flex: 1;
    padding-top: clamp(52.5px, 7.5vh, 90px);
    padding-bottom: clamp(17.5px, 2.5vh, 30px);
}

.nav-left {
    justify-content: flex-end;
    padding-right: clamp(80px, 12vw, 200px);
}

.nav-right {
    justify-content: flex-start;
    padding-left: clamp(80px, 12vw, 200px);
}

.nav-left a,
.nav-right a {
    position: relative;
}

.nav-left a:hover,
.nav-right a:hover {
    color: var(--gold);
}

.nav-left a::after,
.nav-right a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-left a:hover::after,
.nav-right a:hover::after {
    width: 100%;
}

.header-contact {
    position: absolute;
    top: clamp(0.5rem, 1vh, 1rem);
    right: clamp(1rem, 2vw, 2rem);
    display: flex;
    gap: clamp(0.5rem, 1vw, 1.5rem);
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(9px, 0.7vw, 12px);
    font-weight: 400;
    color: var(--text-gray);
}

.contact-link:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 216px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('./assets/Poster_image_desktop.png') lightgray 50% 100% / cover no-repeat;
    margin-top: clamp(70px, 10vh, 120px);
    border-bottom: 4px solid #FFF;
    margin-bottom: 0;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.7) 0%, rgba(42, 42, 42, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: clamp(1rem, 3vh, 2rem);
}

.hero-title {
    color: #FFF;
    text-align: center;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 48px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.gold-text {
    color: #CAAC59;
    font-family: "New York", "Times New Roman", serif;
    font-size: 48px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
}

/* Services Grid */
.services-grid {
    padding: 0;
    margin-top: 0;
    background: var(--dark);
    font-family: Inter;
}

.grid-row {
    display: grid;
    gap: 0;
}

.row-1 {
    grid-template-columns: repeat(6, 1fr);
}

.row-2 {
    grid-template-columns: repeat(6, 1fr);
}

.service-card {
    position: relative;
    width: 100%;
    height: clamp(180px, 20vw, 300px);
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    font-family: Inter;
    display: block;
    text-decoration: none;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    transition: background 0.3s ease;
}

.service-card:hover::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.9) 100%);
}

.service-card:hover {
    transform: scale(1.02);
    z-index: 10;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.5rem, 1vw, 1rem);
    padding: clamp(1rem, 2vw, 2rem);
}

.card-content h3 {
    color: #FFF;
    font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hover-text {
    position: relative;
    font-size: clamp(0.7rem, 1vw, 1rem);
    font-weight: 400;
    color: var(--gold);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.service-card:hover .hover-text {
    opacity: 1;
}

.card-faircoin {
    grid-column: span 2;
}

/* Card Background Images */
.card-our-story {
    background: linear-gradient(135deg, #2C2416 0%, #1A1410 100%);
    background-image: url('./assets/Story_group.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-gatestoken {
    background: linear-gradient(135deg, #3A3018 0%, #2C2416 100%);
    background-image: url('./assets/GateToken_group.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-faircoin {
    background: linear-gradient(135deg, #4A3810 0%, #3A2C10 100%);
    background-image: url('./assets/Fair_coin_group.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-fair-card {
    background: linear-gradient(135deg, #2A2A2A 0%, #1A1A1A 100%);
    background-image: url('./assets/Fair_card_group.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-hotel {
    background: linear-gradient(135deg, #3A5A5A 0%, #2A4A4A 100%);
    background-image: url('./assets/Fair_hotel_resort_group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-commodities {
    background: linear-gradient(135deg, #3A3018 0%, #2C2416 100%);
    background-image: url('./assets/Fair_commodities_group.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-gates-living {
    background: linear-gradient(135deg, #5A3810 0%, #4A2C10 100%);
    background-image: url('./assets/Gate_living_group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-exchange {
    background: linear-gradient(135deg, #1A1A0A 0%, #2A2A1A 100%);
    background-image: url('./assets/Fair_exchange_group.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-real-estate {
    background: linear-gradient(135deg, #2A4A5A 0%, #1A3A4A 100%);
    background-image: url('./assets/Real_estate_group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-residential {
    background: linear-gradient(135deg, #4A3A2A 0%, #3A2A1A 100%);
    background-image: url('./assets/Residential_group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.card-luxury {
    background: linear-gradient(135deg, #1A1A1A 0%, #0A0A0A 100%);
    background-image: url('./assets/Life_style_group.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: clamp(1rem, 2vh, 2rem) clamp(1rem, 3vw, 3rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.8rem, 1.5vw, 2rem);
    font-size: clamp(0.65rem, 0.85vw, 0.85rem);
    color: var(--text-gray);
}

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

.copyright {
    color: var(--text-gray);
}

.social-links {
    display: flex;
    gap: clamp(0.8rem, 1.2vw, 1.5rem);
}

.social-links a {
    width: clamp(30px, 3.5vw, 36px);
    height: clamp(30px, 3.5vw, 36px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    opacity: 0.7;
}

.social-links svg {
    width: clamp(14px, 1.8vw, 18px);
    height: clamp(14px, 1.8vw, 18px);
}

/* Mobile Menu Toggle Button - RIGHT SIDE */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: absolute;
    right: clamp(1rem, 2vw, 1.5rem);
    top: 50%;
    transform: translateY(-50%);
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #CAAC59;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Mobile Navigation - SLIDES FROM RIGHT */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(80%, 350px);
    height: 100vh;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(26, 26, 26, 0.98) 100%);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    padding: clamp(1.5rem, 3vh, 2rem) 0;
}

.mobile-nav.active {
    right: 0;
    box-shadow: -2px 0 20px rgba(0, 0, 0, 0.5);
}

.mobile-nav-header {
    height: auto;
    padding: clamp(1.5rem, 3vh, 2rem) clamp(1.5rem, 3vw, 2rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-mobile {
    text-align: center;
    background: url("./assets/nav_logo.png") lightgray 50% / cover no-repeat;
    padding: clamp(1.2rem, 2.5vh, 2rem) clamp(2rem, 4vw, 3rem);
    min-width: clamp(140px, 20vw, 220px);
    max-width: 280px;
    min-height: 100px;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-mobile .logo-symbol {
    font-family: 'Edwardian Script ITC', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    font-style: italic;
    color: #131313;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.logo-mobile .logo-text {
    font-family: 'New York', 'Times New Roman', serif;
    font-size: clamp(0.6rem, 1vw, 0.8rem);
    font-weight: 500;
    letter-spacing: clamp(1.2px, 0.25vw, 2px);
    text-transform: uppercase;
    color: #131313;
    margin-top: clamp(0.3rem, 0.8vh, 0.5rem);
}

.nav-group {
    padding: clamp(0.8rem, 2vh, 1rem) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-group:last-child {
    border-bottom: none;
}

.mobile-nav-links {
    padding: clamp(0.8rem, 2vh, 1rem) clamp(1.5rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
}

.nav-group a {
    display: block;
    padding: clamp(0.6rem, 1.5vh, 0.75rem) 0;
    font-size: clamp(1rem, 2vw, 1.1rem);
    font-weight: 400;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.nav-group a:hover {
    color: var(--gold);
    padding-left: 1rem;
}

.mobile-nav-contact {
    padding: clamp(1.2rem, 2.5vh, 1.5rem) clamp(1.5rem, 3vw, 2rem);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}

.mobile-nav-contact a {
    display: block;
    font-size: clamp(0.95rem, 1.8vw, 1rem);
    color: var(--gold);
    margin-bottom: clamp(0.8rem, 1.5vh, 1rem);
}

.mobile-nav-contact p {
    font-size: clamp(0.8rem, 1.5vw, 0.85rem);
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

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

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

.service-card {
    animation: fadeIn 0.6s ease forwards;
}

.service-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-card:nth-child(3) {
    animation-delay: 0.3s;
}

.service-card:nth-child(4) {
    animation-delay: 0.4s;
}

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

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

/* Responsive Breakpoints */

/* Tablet - 3 items each side + hamburger */
@media (max-width: 992px) and (min-width: 769px) {
    .mobile-menu-toggle {
        display: flex;
    }

    /* Show only first 3 items in each nav */
    .nav-left a:nth-child(n+4),
    .nav-right a:nth-child(n+4) {
        display: none;
    }

    .nav-left,
    .nav-right {
        display: flex;
        font-size: clamp(9px, 1.2vw, 14px);
        gap: clamp(0.6rem, 1.2vw, 1.5rem);
        padding-top: clamp(40px, 6vh, 75px);
        padding-bottom: clamp(12px, 2vh, 25px);
    }

    .nav-left {
        padding-right: clamp(90px, 14vw, 160px);
    }

    .nav-right {
        padding-left: clamp(90px, 14vw, 160px);
    }

    .header-contact {
        display: none;
    }

    /* Logo scales with header height */
    .logo {
        min-width: clamp(100px, 13vw, 180px);
        max-width: 220px;
        padding: clamp(0.8rem, 1.5vh, 1.5rem) clamp(1.5rem, 3vw, 3rem);
        /* Only horizontal padding */
        height: clamp(70px, 10vh, 120px);
        /* Scales with header */
    }

    .logo-symbol {
        font-size: clamp(1.6rem, 3.2vw, 2.8rem);
        letter-spacing: clamp(10px, 1.6vw, 22px);
        line-height: clamp(25px, 2.5vw, 35px);
    }

    .logo-text {
        font-size: clamp(0.5rem, 0.85vw, 10px);
        letter-spacing: clamp(1px, 0.18vw, 2px);
    }

    /* Tablet grid - 4 columns merged */
    .services-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
    }

    .grid-row {
        display: contents;
    }

    .card-faircoin {
        grid-column: span 2;
    }
}

/* Mobile - Only hamburger */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-left,
    .nav-right,
    .header-contact {
        display: none;
    }

    .header {
        justify-content: center;
    }

    .hero {
        background: url('./assets/Poster_image.jpg') lightgray 50% 70% / cover no-repeat;
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 20px;
    }

    .gold-text {
        font-size: 20px;
    }

    .services-grid {
        display: block;
    }

    .grid-row {
        display: grid;
    }

    .row-1,
    .row-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-faircoin {
        grid-column: span 2;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 16px;
    }

    .gold-text {
        font-size: 16px;
        display: block;
        margin-top: 0.5rem;
    }

    .row-1,
    .row-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-faircoin {
        grid-column: span 2;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 14px;
    }

    .gold-text {
        font-size: 14px;
    }
}

/* Touch-friendly styles for mobile */
@media (hover: none) and (pointer: coarse) {
    .service-card {
        transition: none;
    }

    .service-card:active {
        transform: scale(0.98);
    }

    .nav-group a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .social-links a {
        min-width: 44px;
        min-height: 44px;
    }
}