/* 
   Grifgate International
   Premium Black & Gold Corporate Theme
*/

:root {
    /* Colors */
    --clr-black: #0a0a0a;
    --clr-dark: #121212;
    --clr-darker: #050505;
    --clr-gold: #D4AF37;
    --clr-gold-light: #F3E5AB;
    --clr-gold-dark: #AA8222;
    --clr-white: #ffffff;
    --clr-gray: #a0a0a0;
    --clr-light-gray: #e0e0e0;

    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Outfit', sans-serif;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-gold: 0 4px 15px rgba(212, 175, 55, 0.15);
    --shadow-gold-hover: 0 8px 25px rgba(212, 175, 55, 0.3);
    --shadow-inset: inset 0 0 50px rgba(0, 0, 0, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--clr-white);
    font-weight: 600;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--clr-darker);
}

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

.gold-text {
    color: var(--clr-gold);
}

.large-text {
    font-size: 1.25rem;
    color: var(--clr-white);
    font-weight: 300;
}

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

/* Utilities: Section Titles */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    color: var(--clr-gold);
}

.gold-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, var(--clr-gold-light), var(--clr-gold), var(--clr-gold-dark));
    margin: 0 auto;
    border-radius: 2px;
}

.section-desc {
    max-width: 700px;
    margin: -30px auto 50px auto;
    color: var(--clr-gray);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 2px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--clr-gold);
    color: var(--clr-black);
    border: 1px solid var(--clr-gold);
    box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
    background-color: var(--clr-gold-light);
    color: var(--clr-black);
    box-shadow: var(--shadow-gold-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
}

.btn-secondary:hover {
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: var(--transition);
    padding: 0;
}

.header.scrolled {
    padding: 0;
    background-color: rgba(5, 5, 5, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 3%;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100px;
    margin: 0;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(0 5px 7px rgba(0, 0, 0, 0.5));
}

.header.scrolled .logo-link {
    height: 70px;
}

.header.scrolled .logo-img {
    height: 70px;
}

.text-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--clr-gold);
    letter-spacing: 2px;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-gold);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--clr-gold);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--clr-gold);
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Initialize properties for onload animation */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(5, 5, 5, 0.7) 0%,
            rgba(10, 10, 10, 0.8) 50%,
            rgba(10, 10, 10, 1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 80px;
    /* Offset for header */
}

.hero-title {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--clr-white), var(--clr-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-family: var(--font-body);
    font-weight: 300;
    color: var(--clr-light-gray);
    letter-spacing: 2px;
    margin-bottom: 40px;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* About Us Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(145deg, var(--clr-dark), var(--clr-black));
    padding: 50px;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.about-content::before {
    content: '"';
    font-family: var(--font-heading);
    font-size: 8rem;
    color: rgba(212, 175, 55, 0.05);
    position: absolute;
    top: -20px;
    left: 20px;
    line-height: 1;
}

/* Services Section */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--clr-black);
    padding: 40px 30px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--clr-gold), transparent);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, rgba(212, 175, 55, 0.03) 0%, var(--clr-black) 100%);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--clr-gold);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-family: var(--font-body);
}

.service-card p {
    color: var(--clr-gray);
    font-size: 0.95rem;
}

/* Products Section */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.product-category {
    background-color: var(--clr-dark);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    group: hover;
}

/* Product Images */
.product-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.product-category:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 30px;
    border-top: 1px solid var(--clr-gold);
    background: linear-gradient(to bottom, rgba(212, 175, 55, 0.05), transparent);
}

.product-info h3 {
    color: var(--clr-gold);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

/* Global Markets Section */
.map-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--clr-black);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.world-map-img {
    width: 100%;
    opacity: 0.8;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
}

/* Optional conceptual nodes on map */
.region-highlight {
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: var(--clr-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--clr-gold);
}

.region-highlight::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--clr-gold);
    border-radius: 50%;
    animation: ripple 2s infinite linear;
}

.region-highlight span {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--clr-white);
    font-size: 0.8rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    background: rgba(0, 0, 0, 0.8);
    padding: 2px 8px;
    border-radius: 2px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.region-highlight:hover span {
    opacity: 1;
}

/* Approximate positions based on a standard equirectangular map */
.asia {
    top: 40%;
    left: 75%;
}

.europe {
    top: 30%;
    left: 55%;
}

.middle-east {
    top: 45%;
    left: 63%;
}

.africa {
    top: 55%;
    left: 55%;
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Why Choose Us */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item {
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(212, 175, 55, 0.05);
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--clr-white);
    margin-bottom: 20px;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    color: var(--clr-gold);
}

.feature-item h4 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 500;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.contact-info {
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    padding: 50px;
    border-radius: 4px;
    overflow: hidden;
}

.contact-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.85);
    /* Dark overlay */
    z-index: 1;
}

.contact-info>* {
    position: relative;
    z-index: 2;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--clr-gold);
}

.contact-info p {
    color: var(--clr-gray);
    margin-bottom: 30px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-list i {
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-list strong {
    color: var(--clr-white);
    display: block;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.contact-list a {
    color: var(--clr-gray);
}

.contact-list a:hover {
    color: var(--clr-gold);
}

.contact-form-container {
    background-color: var(--clr-dark);
    padding: 50px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--clr-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--clr-white);
    font-family: var(--font-body);
    font-size: 1rem;
    border-radius: 2px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.submit-btn {
    width: 100%;
}

/* Footer */
.footer {
    background-color: #030303;
    padding: 60px 0 20px 0;
    border-top: 2px solid var(--clr-gold-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-brand h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.footer-brand .tagline {
    color: var(--clr-gray);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.footer-links {
    text-align: right;
}

.footer-links p {
    margin-bottom: 10px;
    color: var(--clr-gray);
}

.footer-links i {
    color: var(--clr-gold);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--clr-gray);
    font-size: 0.85rem;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Initial Load Animations for Hero */
.animate-on-load.slide-up {
    opacity: 0;
    transform: translateY(40px);
    animation: slideUpFade 1s forwards cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.animate-on-load.delay-1 {
    animation-delay: 0.3s;
}

.animate-on-load.delay-2 {
    animation-delay: 0.6s;
}


/* Responsive Design */
@media (max-width: 992px) {
    .section-title h2 {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 5px 0;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--clr-darker);
        border-left: 1px solid var(--clr-gold);
        padding: 80px 30px;
        transition: right 0.4s ease;
        z-index: 100;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
    }

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

    .nav-list {
        flex-direction: column;
        gap: 25px;
    }

    .nav-link {
        font-size: 1.1rem;
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 2px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .section-padding {
        padding: 60px 0;
    }

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

    .footer-links {
        text-align: center;
    }
}

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

    .about-content {
        padding: 30px 20px;
    }

    .about-content::before {
        font-size: 5rem;
        top: -10px;
    }

    .contact-info,
    .contact-form-container {
        padding: 30px 20px;
    }
}

/* =========================================
   Cinematic Intro Animation
   ========================================= */
.intro-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--clr-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    animation: fadeOutLoader 1s ease-in-out 4.5s forwards;
    /* Fades out slightly before 5s to avoid glitch */
}

/* Base glowing background for the sequence */
.intro-loader::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 10, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.intro-content {
    position: relative;
    width: 600px;
    height: 600px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: scale(1.3);
    animation: subtleZoom 5s ease-out forwards;
}

/* The Single Logo Overlay */
.anim-logo-single {
    width: 400px;
    height: auto;
    z-index: 3;
    opacity: 0;
    transform: scale(0.8);
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.1));
    animation: majesticReveal 3s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.5s;
}

/* New Unified Animation Keyframes */

@keyframes subtleZoom {
    0% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes majesticReveal {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: drop-shadow(0 0 0px rgba(212, 175, 55, 0));
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
        filter: drop-shadow(0 0 30px rgba(212, 175, 55, 0.6));
    }

    100% {
        opacity: 1;
        transform: scale(1);
        filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    }
}

@keyframes fadeOutLoader {
    0% {
        opacity: 1;
        visibility: visible;
    }

    99% {
        opacity: 0;
        visibility: visible;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        z-index: -1;
    }
}