/*
	Theme Name: abyssforgestudios
	Theme URI: https://fw16.fr
	Description: 
	Author: FW16
	Author URI: https://fw16.fr
	Version: 3.4.6
	Stable tag: 3.4.6
	Requires at least: 6.0
	Tested up to: 6.8
	Requires PHP: 7.4
	License: GNU General Public License v3 or later.
	License URI: https://www.gnu.org/licenses/gpl-3.0.html
	Text Domain: hello-elementor
	Tags: accessibility-ready, flexible-header, custom-colors, custom-menu, custom-logo, featured-images, rtl-language-support, threaded-comments, translation-ready,
*/

:root {
    --gold: #F5C518;
    --gold-dark: #c99a10;
    --gold-light: #ffd94d;
    --black: #050508;
    --deep: #0a0a12;
    --surface: #10101c;
    --surface2: #181828;
    --text: #e8e0d0;
    --text-muted: #9090a0;
    --accent: #2a2040;
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--black);
    color: var(--text);
    font-family: 'Crimson Pro', Georgia, serif;
    overflow-x: hidden;
    cursor: default;
  }

  div.team-avatar img{
    object-fit: cover;
    width: 100%;
    height: 400px;
  }

  /* NOISE TEXTURE OVERLAY */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(5,5,8,0.95) 0%, transparent 100%);
    backdrop-filter: blur(2px);
	
  }

  nav .nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
  }

  nav .nav-logo img {
    height: 80px;
    width: auto;
    filter: brightness(1.1);
  }

  nav .nav-logo span {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    letter-spacing: 0.25em;
    color: var(--gold);
    font-weight: 600;
  }

  nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  nav ul a {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
  }

  nav ul a:hover { color: var(--gold); }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background: 
      radial-gradient(ellipse 60% 50% at 50% 60%, rgba(245,197,24,0.06) 0%, transparent 70%),
      radial-gradient(ellipse 80% 60% at 50% 100%, rgba(42,32,64,0.4) 0%, transparent 60%),
      linear-gradient(180deg, var(--black) 0%, var(--deep) 100%);
  }

  /* Animated particles */
  .particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold);
    border-radius: 50%;
    animation: float linear infinite;
    opacity: 0;
  }

  @keyframes float {
    0% { transform: translateY(100vh) translateX(0); opacity: 0; }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { transform: translateY(-10vh) translateX(30px); opacity: 0; }
  }

  .hero-logo {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    animation: heroFadeIn 1.5s ease forwards;
  }

  .hero-logo img {
    width: 320px;
    max-width: 80vw;
    filter: drop-shadow(0 0 40px rgba(245,197,24,0.25));
  }

  @keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-title {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: heroFadeIn 1.5s ease 0.3s both;
  }

  .hero-title h1 {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2.5rem, 7vw, 6rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.05em;
    background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 40%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 0 30px rgba(245,197,24,0.3));
  }

  .hero-title .studios {
    font-family: 'Cinzel', serif;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    letter-spacing: 0.6em;
    color: var(--gold);
    opacity: 0.7;
    display: block;
    margin-top: 0.5rem;
    font-weight: 400;
  }

  .hero-tagline {
    position: relative;
    z-index: 2;
    font-family: 'Crimson Pro', serif;
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--text-muted);
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
    line-height: 1.6;
    animation: heroFadeIn 1.5s ease 0.6s both;
  }

  .hero-cta {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
    animation: heroFadeIn 1.5s ease 0.9s both;
    flex-wrap: wrap;
    justify-content: center;
  }

  .btn-primary {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    color: var(--black);
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: all 0.3s;
    text-transform: uppercase;
  }

  .btn-primary:hover {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(245,197,24,0.5));
    transform: translateY(-2px);
  }

  .btn-secondary {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid rgba(245,197,24,0.4);
    cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: all 0.3s;
    text-transform: uppercase;
  }

  .btn-secondary:hover {
    border-color: var(--gold);
    background: rgba(245,197,24,0.08);
    transform: translateY(-2px);
  }

  /* SCROLL INDICATOR */
  .scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0.4;
    animation: pulse 2s ease-in-out infinite;
  }

  .scroll-indicator span {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold);
  }

  .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollDown 1.5s ease-in-out infinite;
  }

  @keyframes scrollDown {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
  }

  /* DIVIDER */
  .divider {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0 4rem;
    margin: 1rem 0;
  }

  .divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(245,197,24,0.3), transparent);
  }

  .divider-emblem {
    width: 8px;
    height: 8px;
    background: var(--gold);
    transform: rotate(45deg);
    flex-shrink: 0;
  }

  /* SECTION */
  section {
    padding: 6rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
  }

  .section-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--gold);
    opacity: 0.7;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .section-label::before {
    content: '';
    width: 30px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
  }

  .section-title {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-bottom: 1.5rem;
  }

  .section-title em {
    font-style: normal;
    color: var(--gold);
  }

  /* ABOUT */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    margin-top: 4rem;
  }

  .about-text p {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
  }

  .about-text p strong {
    color: var(--text);
    font-weight: 600;
  }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .stat-card {
    background: var(--surface);
    border: 1px solid rgba(245,197,24,0.1);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s;
  }

  .stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--gold), transparent);
  }

  .stat-card:hover {
    border-color: rgba(245,197,24,0.3);
    transform: translateY(-3px);
  }

  .stat-card .stat-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.2rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

  .stat-card .stat-label {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  .about-visual {
    position: relative;
  }

  .about-logo-display {
    width: 100%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .about-logo-display::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(245,197,24,0.1);
    transform: rotate(5deg);
  }

  .about-logo-display::after {
    content: '';
    position: absolute;
    inset: 20px;
    border: 1px solid rgba(245,197,24,0.05);
    transform: rotate(-3deg);
  }

  .about-logo-display img {
    width: 70%;
    max-width: 280px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 60px rgba(245,197,24,0.2));
    animation: floatLogo 4s ease-in-out infinite;
  }

  @keyframes floatLogo {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
  }

  /* GAMES SECTION */
  .games-section {
    background: linear-gradient(180deg, var(--black) 0%, var(--deep) 50%, var(--black) 100%);
    padding: 6rem 0;
  }

  .games-section > div {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
  }

  .games-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
  }

  .games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .game-card {
    background: var(--surface);
    border: 1px solid rgba(245,197,24,0.08);
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
  }

  .game-card:hover {
    border-color: rgba(245,197,24,0.35);
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5), 0 0 30px rgba(245,197,24,0.08);
  }

  .game-card.featured {
    grid-column: span 2;
    grid-row: span 2;
  }

  .game-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    filter: brightness(0.8) saturate(0.9);
  }

  .game-card.featured .game-card-img {
    aspect-ratio: 4/3;
  }

  .game-card:hover .game-card-img {
    transform: scale(1.05);
    filter: brightness(0.9) saturate(1.1);
  }

  .game-card-body {
    padding: 1.5rem;
    position: relative;
  }

  .game-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .game-tag::before {
    content: '';
    width: 20px;
    height: 1px;
    background: var(--gold);
    opacity: 0.5;
  }

  .game-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
  }

  .game-card.featured .game-card-title {
    font-size: 1.6rem;
  }

  .game-card-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
  }

  .game-card.featured .game-card-desc {
    font-size: 1rem;
  }

  .game-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--black);
    font-family: 'Cinzel', serif;
    font-size: 0.55rem;
    letter-spacing: 0.2em;
    padding: 0.3rem 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
  }

  /* TECHNOLOGY SECTION */
  .tech-section {
    position: relative;
    overflow: hidden;
  }

  .tech-section::before {
    content: '';
    position: absolute;
    top: 0; right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(245,197,24,0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(245,197,24,0.08);
    border: 1px solid rgba(245,197,24,0.08);
    margin-top: 3rem;
  }

  .tech-item {
    background: var(--deep);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
  }

  .tech-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    transform: scaleX(0);
    transition: transform 0.3s;
  }

  .tech-item:hover::after { transform: scaleX(1); }

  .tech-item:hover { background: var(--surface2); }

  .tech-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
  }

  .tech-name {
    font-family: 'Cinzel', serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
  }

  .tech-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
  }

  /* MARKET SECTION */
  .market-section {
    background: var(--surface);
    border-top: 1px solid rgba(245,197,24,0.08);
    border-bottom: 1px solid rgba(245,197,24,0.08);
    padding: 6rem 0;
  }

  .market-section > div {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
  }

  .market-numbers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 4rem;
    background: rgba(245,197,24,0.06);
  }

  .market-num {
    background: var(--deep);
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
  }

  .market-num .big-num {
    font-family: 'Cinzel Decorative', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold);
    display: block;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .market-num .num-label {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
  }

  /* TEAM SECTION */
  .team-card {
    background: var(--surface);
    border: 1px solid rgba(245,197,24,0.1);
    padding: 3rem;
    position: relative;
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
    transition: border-color 0.3s;
  }

  .team-card:hover { border-color: rgba(245,197,24,0.3); }

  .team-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--gold), transparent);
  }

  .team-avatar {
    width: 100%;
    aspect-ratio: 1;
    background: var(--surface2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel Decorative', serif;
    font-size: 3rem;
    color: var(--gold);
    border: 1px solid rgba(245,197,24,0.15);
    position: relative;
    overflow: hidden;
  }

  .team-avatar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(245,197,24,0.05) 0%, transparent 70%);
  }

  .team-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    color: var(--text);
    margin-bottom: 0.3rem;
  }

  .team-role {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--gold);
    opacity: 0.8;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
  }

  .team-info p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.75;
  }

  .skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
  }

  .skill-tag {
    font-family: 'Cinzel', serif;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    padding: 0.35rem 0.9rem;
    border: 1px solid rgba(245,197,24,0.25);
    color: var(--gold);
    background: rgba(245,197,24,0.05);
    text-transform: uppercase;
  }

  /* CONTACT */
  .contact-section {
    text-align: center;
    padding: 8rem 4rem;
    position: relative;
    overflow: hidden;
    max-width: 100%;
  }

  .contact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(245,197,24,0.04) 0%, transparent 70%);
    pointer-events: none;
  }

  .contact-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
  }

  .contact-inner .section-title {
    margin-bottom: 1.5rem;
  }

  .contact-inner p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.75;
    margin-bottom: 3rem;
    font-style: italic;
  }

  /* FOOTER */
  footer {
    background: var(--black);
    border-top: 1px solid rgba(245,197,24,0.08);
    padding: 3rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
  }

  .footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .footer-brand img {
    height: 80px;
    filter: brightness(0.8);
  }

  .footer-brand span {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
  }

  .footer-legal {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.6;
    font-style: italic;
    text-align: center;
  }

  .footer-links {
    display: flex;
    gap: 2rem;
  }

  .footer-links a {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s;
  }

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

  /* GAME PLACEHOLDER GRADIENTS */
  .game-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }

  .game-card.featured .game-placeholder {
    aspect-ratio: 4/3;
  }

  .game-placeholder-text {
    font-family: 'Cinzel Decorative', serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.15);
    z-index: 1;
    text-align: center;
    padding: 1rem;
  }

  .game-card.featured .game-placeholder-text {
    font-size: 2rem;
  }

  /* KEYFRAMES SCROLL ANIMATION */
  [data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  [data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
  }

  @media (max-width: 900px) {
    nav { padding: 1rem 1.5rem; }
    nav ul { display: none; }
    section { padding: 4rem 1.5rem; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .games-grid { grid-template-columns: 1fr; }
    .game-card.featured { grid-column: 1; grid-row: auto; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .market-numbers { grid-template-columns: 1fr; }
    .team-card { grid-template-columns: 1fr; }
    .team-avatar { max-width: 150px; }
    footer { flex-direction: column; text-align: center; }
    .games-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .market-section > div { padding: 0 1.5rem; }
    .games-section > div { padding: 0 1.5rem; }
  }