/*
Theme Name:  Warhial
Theme URI:   https://warhial.com
Author:      Warhial
Author URI:  https://warhial.com
Description: Agenție Premium de Web & Software Development. Landing page ultra-modern cu design dark-mode, glassmorphism și Bento Grid layout.
Version:     1.0.0
Requires at least: 6.0
Tested up to:      6.7
Requires PHP:      8.0
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: warhial
Tags:        full-width-template, custom-colors, dark, translation-ready, one-page
*/

/* ============================================================
   BASE RESET & CSS ROOT VARIABLES
============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue:   #3b82f6;
    --violet: #8b5cf6;
    --cyan:   #06b6d4;
    --bg:     #0a0a0a;
}

html {
    font-family: 'Space Grotesk', sans-serif;
}

body {
    background-color: var(--bg);
    color: #e5e7eb;
    overflow-x: hidden;
}

/* ============================================================
   CUSTOM SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--blue), var(--violet));
    border-radius: 99px;
}

/* ============================================================
   TEXT SELECTION
============================================================ */
::selection {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
}

/* ============================================================
   SUBTLE NOISE TEXTURE OVERLAY
============================================================ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 999;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

/* ============================================================
   GRADIENT TEXT UTILITY
============================================================ */
.grad-text {
    background: linear-gradient(135deg, var(--blue) 0%, var(--violet) 55%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   GLASSMORPHISM CARD
============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: background 0.35s ease, border-color 0.35s ease,
                transform 0.35s ease, box-shadow 0.35s ease;
}
.glass:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(139, 92, 246, 0.28);
    transform: translateY(-5px);
    box-shadow: 0 24px 64px rgba(139, 92, 246, 0.12);
}

/* ============================================================
   GLOW ORBS — HERO BACKGROUND DECORATION
============================================================ */
.orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    will-change: transform;
}
.orb-blue {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(59,130,246,0.22) 0%, transparent 70%);
    top: -200px; left: -180px;
    animation: floatA 8s ease-in-out infinite;
}
.orb-violet {
    width: 550px; height: 550px;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
    top: 50px; right: -100px;
    animation: floatB 10s ease-in-out infinite;
}
.orb-cyan {
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, transparent 70%);
    bottom: -100px; left: 35%;
    animation: floatC 7s ease-in-out infinite;
}

/* ============================================================
   ORB FLOATING KEYFRAMES
============================================================ */
@keyframes floatA {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-28px) scale(1.04); }
}
@keyframes floatB {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(22px) scale(0.97); }
}
@keyframes floatC {
    0%, 100% { transform: translateY(0) scale(1); }
    50%       { transform: translateY(-18px) scale(1.06); }
}

/* ============================================================
   PRIMARY BUTTON
============================================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    padding: 14px 30px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    opacity: 0;
    transition: opacity 0.35s ease;
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 44px rgba(139, 92, 246, 0.45);
    color: #fff;
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

/* ============================================================
   GHOST / OUTLINE BUTTON
============================================================ */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
    font-size: 15px;
    color: #d1d5db;
    padding: 13px 30px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    transition: all 0.3s ease;
}
.btn-ghost:hover {
    border-color: rgba(139, 92, 246, 0.45);
    background: rgba(139, 92, 246, 0.07);
    color: #fff;
    transform: translateY(-3px);
}

/* ============================================================
   NAVIGATION LINKS
============================================================ */
.nav-link {
    position: relative;
    color: #9ca3af;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.25s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -3px; left: 0;
    width: 0; height: 1.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    transition: width 0.3s ease;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { width: 100%; }

/* ============================================================
   PILL / TAG BADGES
============================================================ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(59,130,246,0.07);
    border: 1px solid rgba(59,130,246,0.18);
    border-radius: 999px;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 500;
    color: #93c5fd;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pill-violet {
    background: rgba(139,92,246,0.07);
    border-color: rgba(139,92,246,0.2);
    color: #c4b5fd;
}
.pill-cyan {
    background: rgba(6,182,212,0.07);
    border-color: rgba(6,182,212,0.2);
    color: #67e8f9;
}
.pill-orange {
    background: rgba(249,115,22,0.07);
    border-color: rgba(249,115,22,0.2);
    color: #fdba74;
}
.pill-green {
    background: rgba(34,197,94,0.07);
    border-color: rgba(34,197,94,0.2);
    color: #86efac;
}

/* ============================================================
   BENTO GRID — SERVICES LAYOUT
============================================================ */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.bento-main  { grid-column: span 8; min-height: 380px; }
.bento-sm-a  { grid-column: span 4; min-height: 180px; }
.bento-sm-b  { grid-column: span 4; min-height: 180px; }
.bento-mid-a { grid-column: span 6; min-height: 190px; }
.bento-mid-b { grid-column: span 6; min-height: 190px; }

@media (max-width: 1024px) {
    .bento-main, .bento-sm-a, .bento-sm-b, .bento-mid-a, .bento-mid-b {
        grid-column: span 12;
        min-height: 200px;
    }
}
@media (min-width: 640px) and (max-width: 1023px) {
    .bento-sm-a, .bento-sm-b { grid-column: span 6; }
    .bento-mid-a, .bento-mid-b { grid-column: span 6; }
}

/* ============================================================
   GLOWING LINE DIVIDER
============================================================ */
.glow-line {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(139,92,246,0.35) 50%, transparent 100%);
    margin: 0 auto;
    max-width: 80rem;
}

/* ============================================================
   PORTFOLIO CARD
============================================================ */
.port-card { position: relative; overflow: hidden; border-radius: 20px; }
.port-card .port-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(10,10,10,0.97) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex; flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}
.port-card:hover .port-overlay { opacity: 1; }
.port-card .port-img-wrap { transition: transform 0.5s ease; }
.port-card:hover .port-img-wrap { transform: scale(1.07); }

/* ============================================================
   FORM FIELDS
============================================================ */
.form-field {
    width: 100%;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 12px;
    padding: 13px 17px;
    color: #e5e7eb;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.form-field::placeholder { color: #6b7280; }
.form-field:focus {
    border-color: rgba(139,92,246,0.5);
    background: rgba(255,255,255,0.055);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.08);
}
select.form-field option { background: #111; }

/* ============================================================
   SCROLL REVEAL ANIMATION (toggled by JS IntersectionObserver)
============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.72s ease, transform 0.72s ease;
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   DOT GRID PATTERN — Hero background
============================================================ */
.dot-grid {
    background-image: radial-gradient(rgba(255,255,255,0.07) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ============================================================
   MOBILE MENU — animated slide-down
============================================================ */
#mob-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
#mob-menu.open { max-height: 400px; }

/* ============================================================
   HAMBURGER ICON LINES
============================================================ */
.hb-line {
    display: block;
    width: 22px; height: 1.5px;
    background: #9ca3af;
    border-radius: 99px;
    transform-origin: center;
    transition: all 0.3s ease;
}
.hb-open .hb-line:nth-child(1) { transform: rotate(45deg)  translate(3px,  5px); }
.hb-open .hb-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hb-open .hb-line:nth-child(3) { transform: rotate(-45deg) translate(3px, -5px); }

/* ============================================================
   STAT NUMBER — gradient text
============================================================ */
.stat-num {
    background: linear-gradient(135deg, var(--blue), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================================
   SERVICE ICON RING
============================================================ */
.icon-ring {
    width: 52px; height: 52px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
