/* ============================================================
   OrangeKey — Custom Styles
   Design tokens & component styles that extend Tailwind
   ============================================================ */

/* ── Base ── */
* { scroll-behavior: smooth; }

body {
    background-color: #020617; /* slate-950 */
}

/* ── Typography ── */
.text-gradient {
    background: linear-gradient(135deg, #f97316 0%, #fb923c 50%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Buttons ── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.625rem 1.5rem;
    transition: all 0.2s;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
    text-decoration: none;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #fb923c, #f97316);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.5);
    transform: translateY(-1px);
}
.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #cbd5e1;
    font-weight: 600;
    border-radius: 0.75rem;
    padding: 0.625rem 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: all 0.2s;
    text-decoration: none;
}
.btn-ghost:hover {
    background: rgba(148, 163, 184, 0.08);
    border-color: rgba(148, 163, 184, 0.4);
    color: #fff;
    transform: translateY(-1px);
}

/* ── Navigation ── */
.nav-link {
    color: #94a3b8;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.nav-link:hover { color: #fff; }

.lang-btn {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s;
}
.lang-btn:hover { color: #cbd5e1; }
.lang-btn--active {
    background: #f97316;
    color: #fff !important;
}

/* ── Section Helpers ── */
.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #f97316;
    background: rgba(249, 115, 22, 0.1);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 9999px;
    padding: 0.25rem 0.875rem;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 1rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: #64748b;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* ── Hero Background ── */
.hero-bg {
    background: radial-gradient(ellipse at 50% 0%, rgba(249,115,22,0.12) 0%, transparent 60%),
                #020617;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
}
.hero-orb--1 {
    width: 500px; height: 500px;
    background: rgba(249,115,22,0.12);
    top: -100px; left: -100px;
    animation-delay: 0s;
}
.hero-orb--2 {
    width: 400px; height: 400px;
    background: rgba(234,88,12,0.1);
    top: 10%; right: -80px;
    animation-delay: -3s;
}
.hero-orb--3 {
    width: 300px; height: 300px;
    background: rgba(251,191,36,0.07);
    bottom: 10%; left: 30%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(20px, -30px) scale(1.05); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148,163,184,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148,163,184,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

/* ── Scroll Indicator ── */
.scroll-indicator {
    width: 1.5px;
    height: 48px;
    background: linear-gradient(to bottom, transparent, #f97316, transparent);
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0%   { transform: scaleY(0) translateY(-50%); opacity: 0; }
    50%  { transform: scaleY(1) translateY(0); opacity: 1; }
    100% { transform: scaleY(0) translateY(50%); opacity: 0; }
}

/* ── Service Cards ── */
.service-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 1.25rem;
    padding: 1.75rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}
.service-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(249, 115, 22, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 0 1px rgba(249,115,22,0.1);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(234,88,12,0.1));
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 0.875rem;
    color: #f97316;
}

/* ── Portfolio Cards ── */
.portfolio-card {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.08);
    border-radius: 1.25rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
}
.portfolio-card:hover {
    border-color: rgba(249, 115, 22, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

/* ── Contact ── */
.contact-icon-wrap {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(249,115,22,0.1);
    border: 1px solid rgba(249,115,22,0.2);
    border-radius: 0.75rem;
    color: #f97316;
}

/* ── Forms ── */
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 0.375rem;
    letter-spacing: 0.01em;
}

.form-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #f8fafc;
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}
.form-input::placeholder { color: #475569; }
.form-input:focus {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-error {
    font-size: 0.75rem;
    color: #f87171;
    margin-top: 0.25rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}
.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ── Animations ── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in 0.7s ease forwards;
}
@keyframes fade-in {
    to { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .hero-orb--1 { width: 300px; height: 300px; }
    .hero-orb--2 { width: 250px; height: 250px; }
    .hero-orb--3 { display: none; }
}
