/* =========================
   GLOBAL
========================= */

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    margin: 0;
    line-height: 1.6;
}

p {
    text-align: justify;
}

/* HEADINGS */

h1, h2, h3 {
    text-align: center;
    color: #d46216;
    font-family: 'DM Serif Display', serif;
}

/* =========================
   HEADER
========================= */

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    flex-wrap: wrap;
}

/* =========================
   LOGO (FINAL PREMIUM)
========================= */

.logo {
    width: 300px;
    height: 200px;

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

    text-align: center;
    text-decoration: none;

    /* INITIAL STATE */
    opacity: 0;
    transform: scale(0.85) translateY(20px);

    /* ENTRY ANIMATION */
    animation: logoFadeIn 1s ease forwards;
    animation-delay: 0.3s;

    /* SMOOTH HOVER */
    transition: transform 0.3s ease;
}

/* =========================
   HOVER (SMOOTH)
========================= */

.logo:hover {
    transform: scale(1.05) translateY(0);
}

/* =========================
   LOGO GLOW (SUBTLE PULSE)
========================= */

.logo-heading {
    position: relative;
}

/* soft pulse glow */

.logo-heading::after {
    content: "";
    position: absolute;
    inset: -5px;

    border-radius: 8px;

    box-shadow: 0 0 0 rgba(255,102,0,0.4);
    animation: logoPulse 2.5s infinite;
    pointer-events: none;
}

/* =========================
   ANIMATION (ENTRY)
========================= */

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(25px);
    }
    60% {
        opacity: 1;
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================
   PULSE EFFECT
========================= */

@keyframes logoPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,102,0,0.35);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255,102,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,102,0,0);
    }
}

/* =========================
   HEADING
========================= */

.logo-heading {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.05;
    margin: 0;

    /* FIX: prevent disappearing */
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

/* =========================
   GRADIENT TEXT (SAFE)
========================= */

.logo-latest {
    background: linear-gradient(45deg, #ff6600, #ff944d);
    background-clip: text;
    -webkit-background-clip: text;

    color: transparent; /* safe method */
}

/* DIRECTORY */

.logo-directory {
    color: #444;
    margin-left: 3px; /* tighter spacing */
}

/* =========================
   TAGLINE
========================= */

.logo-tagline {
    margin-top: 4px; /* tighter */
    font-size: 13px;
    color: #333;
    line-height: 1.15;
}

/* =========================
   ANIMATION
========================= */

@keyframes logoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(15px);
    }
    60% {
        opacity: 1;
        transform: scale(1.04) translateY(-3px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* =========================
   HEADER ADS
========================= */

.header-ads {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.top-center,
.top-right {
    width: 100%;
    max-width: 450px;
    aspect-ratio: 2/1;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.top-center:hover,
.top-right:hover {
    transform: scale(1.03);
}

.top-center {
    background-image: url(images/latest-directory-header-center.jpg);
}

.top-right {
    background-image: url(images/latest-directory-header-right.jpg);
}

body {
    background: linear-gradient(to bottom, #ffffff, #f7f9fc);
}

/* =========================
   HERO LATEST.DIRECTORY
========================= */

.hero {
    position: relative;
    height: 650px;

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

    overflow: hidden;
}

/* BACKGROUND WITH ZOOM */

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background: url(images/latest-directory-header.jpg) center/cover no-repeat;

    transform: scale(1);
    animation: heroZoom 20s ease-in-out infinite alternate;

    z-index: 0;
}

/* DARK + BLUE GRADIENT OVERLAY */

.hero::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        120deg,
        rgba(0,0,0,0.75),
        rgba(0,200,255,0.25),
        rgba(0,0,0,0.75)
    );

    z-index: 1;
}

/* =========================
   GLASS OVERLAY BOX
========================= */

.hero-overlay {
    position: relative;
    z-index: 2;

    max-width: 900px;
    padding: 50px;

    text-align: center;
    color: #fff;

    /* GLASS EFFECT */
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);

    border-radius: 16px;

    /* BLUE GLOW */
    box-shadow: 
        0 0 50px rgba(0,200,255,0.35),
        inset 0 0 20px rgba(255,255,255,0.05);
}

/* =========================
   TEXT STYLING
========================= */

.hero h1 {
    font-size: 50px;
    letter-spacing: 2px;

    text-shadow: 
        0 0 1px rgba(0,200,255,0.4),
        0 0 3px rgba(0,200,255,0.3);
}

.hero h2 {
    font-size: 24px;
    margin: 15px 0;

    color: #80e5ff; /* soft blue accent */
}

.hero-text {
    font-size: 16px;
    line-height: 1.6;

    opacity: 0.95;
}

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

/* =========================
   CENTER SPLIT LIGHT SWEEP
========================= */


.hero-overlay::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        to left,
        rgba(0,255,255,0.25),
        transparent
    );

    transform: translateX(-50%);
    animation: sweepLeft 4s infinite;
}

/* RIGHT SWEEP */

.hero-overlay::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;

    width: 50%;
    height: 100%;

    background: linear-gradient(
        to right,
        rgba(0,255,255,0.15),
        transparent
    );

    transform: translateX(-50%);
    animation: sweepRight 4s infinite;
}

/* =========================
   SWEEP ANIMATION
========================= */

@keyframes sweepLeft {
    0% {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateX(-100%) scaleX(1.2);
        opacity: 0;
    }
}

@keyframes sweepRight {
    0% {
        transform: translateX(-50%) scaleX(0);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateX(0%) scaleX(1.2);
        opacity: 0;
    }
}

/* =========================
   ANIMATIONS
========================= */

@keyframes heroZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes lightSweep {
    0% { left: -100%; }
    100% { left: 120%; }
}

/* =========================
   CTA BUTTON (PREMIUM)
========================= */

.cta-button {
    background: #ff6600;
    color: #fff;

    padding: 16px 32px;
    text-decoration: none;
    display: inline-block;
    margin-top: 25px;

    border-radius: 30px; /* 👈 more premium pill shape */
    font-weight: 700;
    font-size: 16px;

    position: relative;

    transition: all 0.3s ease;

    /* subtle glow */
    box-shadow: 0 0 0 rgba(255,102,0,0.4);

    /* pulse animation */
    animation: ctaPulse 2.5s infinite;
}

/* =========================
   HOVER EFFECT
========================= */

.cta-button:hover {
    background: #e05500;

    transform: translateY(-4px) scale(1.05);

    box-shadow: 
        0 0 15px rgba(255,102,0,0.7),
        0 0 30px rgba(255,102,0,0.5);

    animation: bounceCTA 0.5s ease;
}

/* =========================
   PULSE ANIMATION
========================= */

@keyframes ctaPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255,102,0,0.4);
    }
    70% {
        box-shadow: 0 0 0 18px rgba(255,102,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,102,0,0);
    }
}

/* =========================
   BOUNCE HOVER
========================= */

@keyframes bounceCTA {
    0% { transform: translateY(10px) scale(0.95); }
    60% { transform: translateY(-6px) scale(1.08); }
    100% { transform: translateY(-4px) scale(1.05); }
}

/* =========================
   HERO TEXT ANIMATION
========================= */

.hero h1,
.hero h2,
.hero-text,
.hero .cta-button {
    opacity: 0;
    transform: translateY(25px);
}

/* H1 */

.hero h1 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

/* H2 */

.hero h2 {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

/* TEXT */

.hero-text {
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.8s;
}

/* CTA (keeps your existing effects) */

.hero .cta-button {
    animation: fadeUp 0.8s ease forwards, ctaPulse 2.5s infinite;
    animation-delay: 1.1s;
}

/* =========================
   KEYFRAME
========================= */

@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    animation: fadeUpScale 0.9s ease forwards;
    animation-delay: 0.2s;
}

@keyframes fadeUpScale {
    0% {
        opacity: 0;
        transform: translateY(25px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* FIX CLICK ISSUE */

.hero::before,
.hero::after,
.hero-overlay::before,
.hero-overlay::after {
    pointer-events: none;
}

/* =========================
   GRID LAYOUTS
========================= */

.seo-columns,
.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    padding: 40px;
}

/* 5 COLUMN GRID */

.sponsored-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    padding: 40px;
}

/* =========================
   CARD LOCATION (BELOW IMAGE - CENTERED)
========================= */

.card-location {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;

    margin-top: 10px;

    font-size: 13px;
    font-weight: 600;
    color: #666;

    text-align: center;
}

/* ICON */

.card-location i {
    color: #ff6600;
    font-size: 12px;
}

.card-location {
    margin-top: 12px;

    font-size: 13px;
    font-weight: 600;

    color: #444;

    letter-spacing: 0.3px;
}

/* TEXT CENTER */

.sponsored-grid h3,
.sponsored-grid p {
    text-align: center;
}

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

section {
    padding: 60px 0;
}


/* =========================
   PREMIUM CARD
========================= */

.premium-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 14px;

    background: #fff;
    text-decoration: none;
    color: inherit;

    transition: all 0.35s ease;

    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.premium-card:hover {
    transform: translateY(-8px) scale(1.02);

    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 0 25px rgba(0,200,255,0.2);
}

/* IMAGE */

.premium-card img {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

/* ZOOM */

.premium-card:hover img {
    transform: scale(1.12);
}

/* =========================
   OVERLAY (BUTTON ONLY)
========================= */

/* LIGHT PREMIUM OVERLAY */

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    background: rgba(0,0,0,0.18); /* very light */

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

    opacity: 0;
    transition: 0.4s ease;
}

.premium-card:hover .overlay {
    opacity: 1;
}

/* =========================
   BUTTON
========================= */

.browse-btn {
    background: #ff6600;
    color: #fff;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;

    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s;
}

/* BUTTON HOVER */

.premium-card:hover .browse-btn {
    opacity: 1;
    transform: translateY(0);
    animation: bounceIn 0.6s;

    box-shadow: 0 0 12px rgba(255,102,0,0.7),
                0 0 25px rgba(255,102,0,0.5);
}

/* BOUNCE */

@keyframes bounceIn {
    0% { transform: translateY(40px); }
    60% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* =========================
   TEXT BELOW IMAGE
========================= */

.premium-card h3 {
    margin-top: 12px;
}

.premium-card p {
    padding: 12px 10px 5px;
    font-size: 14px;
}

/* =========================
   ABOUT
========================= */

.about-directory {
    max-width: 1100px;
    margin: auto;
    padding: 40px;
}

/* =========================
   CONTACT
========================= */

.contact {
    text-align: center;
    padding: 50px;
    background: #f4f4f4;
}

/* =========================
   PREMIUM SOCIAL ICONS (BRAND COLORS)
========================= */

.social-icons {
    margin-bottom: 20px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 55px;
    height: 55px;
    margin: 0 10px;

    border-radius: 50%;
    color: #fff;

    font-size: 22px;
    text-decoration: none;

    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* =========================
   BRAND COLORS
========================= */

/* Facebook */
.social-icons a:nth-child(1) {
    background: #1877f2;
}

/* Twitter (X) */
.social-icons a:nth-child(2) {
    background: #000;
}

/* YouTube */
.social-icons a:nth-child(3) {
    background: #ff0000;
}

/* Instagram (Gradient) */
.social-icons a:nth-child(4) {
    background: linear-gradient(
        45deg,
        #feda75,
        #fa7e1e,
        #d62976,
        #962fbf,
        #4f5bd5
    );
}

/* =========================
   HOVER EFFECT (GLOW + BOUNCE)
========================= */

.social-icons a:hover {
    transform: translateY(-6px) scale(1.08);

    box-shadow: 0 10px 25px rgba(0,0,0,0.3),
                0 0 20px rgba(255,255,255,0.6);

    animation: iconBounce 0.5s ease;
}

/* Bounce */

@keyframes iconBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(-6px); }
}

/* =========================
   WHATSAPP
========================= */

/* =========================
   PREMIUM WHATSAPP BUTTON
========================= */

.whatsapp-btn {
    background: #ff6600;
    color: #fff;
    padding: 16px 32px;

    display: inline-block;
    text-decoration: none;
    border-radius: 50px;

    font-weight: 700;
    font-size: 16px;

    margin-top: 20px;

    transition: all 0.3s ease;

    box-shadow: 0 6px 20px rgba(0,0,0,0.2);

    position: relative;
}

/* HOVER */

.whatsapp-btn:hover {
    transform: translateY(-4px) scale(1.05);

    box-shadow: 0 12px 30px rgba(255,102,0,0.5),
                0 0 20px rgba(255,102,0,0.7);

    animation: btnBounce 0.6s ease;
}

/* PULSE ANIMATION */

.whatsapp-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;

    box-shadow: 0 0 0 rgba(255,102,0,0.6);
    animation: pulseGlow 2s infinite;
}

/* KEYFRAMES */

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(255,102,0,0.5);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(255,102,0,0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255,102,0,0);
    }
}

@keyframes btnBounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(-4px); }
}

/* =========================
   FOOTER (PREMIUM CLEAN)
========================= */

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

    padding: 50px 40px;
    background: #111;
}

/* COLUMN STACK */

.footer-links div {
    display: flex;
    flex-direction: column;
    gap: 12px; /* spacing between links */
}

/* LINKS */

.footer-links a {
    position: relative;
    display: inline-block;

    color: #fff;
    text-decoration: none;
    font-size: 14px;

    transition: color 0.3s ease;
}

/* REMOVE DEFAULT BLUE */

.footer-links a:visited,
.footer-links a:active {
    color: #fff;
}

/* =========================
   ANIMATED UNDERLINE
========================= */

.footer-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;

    width: 0%;
    height: 2px;

    background: linear-gradient(90deg, #00e6ff, #ff6600);

    transition: width 0.35s ease;
}

/* HOVER EFFECT */

.footer-links a:hover::after {
    width: 100%;
}

/* OPTIONAL HOVER GLOW */

.footer-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0,230,255,0.6);
}

/* =========================
   COPYRIGHT
========================= */

.copyright {
    text-align: center;
    padding: 15px;
    background: #000;
    color: #fff;
    font-size: 13px;
}

/* POWERED BY LINK COLOR */

.copyright a {
    color: #ff6600;
    text-decoration: none;
}

/* HOVER EFFECT (OPTIONAL PREMIUM) */

.copyright a:hover {
    color: #ffa366;
    text-shadow: 0 0 8px rgba(255,102,0,0.6);
}

/* =========================
   MOBILE
========================= */

@media (max-width: 900px) {

    .hero {
        height: auto;
        padding: 80px 20px;
    }

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

    .top-header {
        justify-content: center;
        gap: 20px;
    }

    /* REMOVE forced overlay */
    .overlay {
        opacity: 0; /* hidden by default */
    }

    /* Show on tap (active state) */
    .premium-card:active .overlay {
        opacity: 1;
    }

    .premium-card:active .browse-btn {
        opacity: 1;
        transform: translateY(0);
    }

    /* Disable heavy hover effects */
    .premium-card:hover {
        transform: none;
        box-shadow: none;
    }

    .premium-card:hover img {
        transform: none;
    }
	
	 /* Enable zoom on tap */
    .premium-card:active img {
        transform: scale(1.08);
    }

    /* Smooth transition */
    .premium-card img {
        transition: transform 0.4s ease;
    }
	
	 .sponsored-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	
}