/* === Tower Rush — Global Styles === */

:root {
    --bg-1: #0a0e1f;
    --bg-2: #111a32;
    --bg-3: #16223d;
    --bg-4: #1d2c52;

    --text: #e8eef7;
    --text-dim: #b8c3d8;
    --text-muted: #6f7fa3;

    --accent: #ffb84d;          /* orange */
    --accent-2: #ff6a3d;         /* hot orange */
    --accent-3: #00e0d6;         /* cyan */
    --accent-4: #a06bff;         /* purple */
    --accent-glow: rgba(255, 184, 77, 0.45);
    --cyan-glow: rgba(0, 224, 214, 0.35);
    --purple-glow: rgba(160, 107, 255, 0.35);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* animated background blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -120px;
    left: -120px;
    background: var(--accent-4);
    animation: floatBlob 14s ease-in-out infinite alternate;
}

body::after {
    bottom: -160px;
    right: -120px;
    background: var(--accent-3);
    animation: floatBlob 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatBlob {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(80px, 60px) scale(1.1); }
    100% { transform: translate(-40px, 100px) scale(0.95); }
}

main,
.site-header,
.site-footer {
    position: relative;
    z-index: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--accent-3);
}

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

::selection {
    background: var(--accent);
    color: var(--bg-1);
}

/* === Header / Navigation === */
.site-header {
    background: linear-gradient(135deg, rgba(22, 34, 61, 0.85) 0%, rgba(29, 44, 82, 0.85) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 16px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
    border-bottom: 1px solid rgba(255, 184, 77, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.04);
}

.logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 0 8px var(--accent-glow));
    transition: transform 0.5s ease, filter 0.3s ease;
}

.logo:hover img {
    transform: rotate(-8deg) scale(1.1);
    filter: drop-shadow(0 0 14px var(--accent-glow));
}

.logo span {
    color: var(--text);
    background: linear-gradient(135deg, var(--accent-3), var(--accent-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
}

.main-nav a {
    position: relative;
    color: var(--text);
    font-weight: 500;
    padding: 6px 2px;
    transition: color 0.25s ease;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--accent);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

/* === Hero === */
.hero {
    position: relative;
    padding: 100px 0 110px;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(160, 107, 255, 0.25), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 224, 214, 0.22), transparent 60%),
        linear-gradient(135deg, var(--bg-1) 0%, var(--bg-3) 100%);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(0deg,  rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 80px);
    pointer-events: none;
    animation: gridPan 30s linear infinite;
}

@keyframes gridPan {
    from { transform: translate(0, 0); }
    to   { transform: translate(80px, 80px); }
}

.hero h1 {
    font-size: clamp(2rem, 4.8vw, 3.6rem);
    background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 40%, var(--accent-4) 80%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 22px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    animation: fadeUp 0.9s ease both;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 36px;
    font-size: 1.18rem;
    color: var(--text-dim);
    animation: fadeUp 0.9s ease 0.15s both;
}

.btn {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--bg-1);
    padding: 14px 38px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 28px var(--accent-glow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: fadeUp 0.9s ease 0.3s both, pulseGlow 3s ease-in-out infinite;
    overflow: hidden;
    isolation: isolate;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
        transparent 30%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.7s ease;
    z-index: -1;
}

.btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 36px var(--accent-glow);
    color: var(--bg-1);
}

.btn:hover::before {
    transform: translateX(100%);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 28px var(--accent-glow); }
    50%      { box-shadow: 0 8px 38px rgba(255, 184, 77, 0.7); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* === Sections === */
.section {
    padding: 80px 0;
    position: relative;
}

.section-alt {
    background: linear-gradient(180deg, rgba(17, 26, 50, 0.6), rgba(17, 26, 50, 0.85));
}

.section h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 32px;
    text-align: center;
    background: linear-gradient(120deg, var(--accent), var(--accent-3));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3));
}

.section p {
    max-width: 880px;
    margin: 0 auto 18px;
    color: var(--text-dim);
    font-size: 1.05rem;
}

/* === Feature grid === */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 26px;
    margin-top: 50px;
}

.feature-card {
    position: relative;
    background: linear-gradient(160deg, rgba(22, 34, 61, 0.95), rgba(29, 44, 82, 0.9));
    border: 1px solid rgba(255, 184, 77, 0.12);
    border-radius: 16px;
    padding: 30px 26px;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.35s ease,
                border-color 0.35s ease;
    overflow: hidden;
    isolation: isolate;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 0%, rgba(255, 184, 77, 0.18), transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.feature-card::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-3), var(--accent-4));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.45s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 184, 77, 0.45);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 184, 77, 0.2);
}

.feature-card:hover::before { opacity: 1; }
.feature-card:hover::after  { transform: scaleX(1); }

.feature-card h3 {
    color: var(--accent);
    margin-bottom: 12px;
    font-size: 1.22rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--accent-3);
    transform: translateX(4px);
}

.feature-card p {
    color: var(--text-dim);
    font-size: 1rem;
    margin: 0;
}

/* === Image placeholders / media === */
.media-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.media-box,
.media-single {
    position: relative;
    background: var(--bg-3);
    border: 1px solid rgba(255, 184, 77, 0.18);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
}

.media-box {
    aspect-ratio: 16 / 10;
}

.media-single {
    max-width: 760px;
    margin: 0 auto 40px;
    aspect-ratio: 16 / 9;
}

.media-box::after,
.media-single::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 224, 214, 0.0), rgba(160, 107, 255, 0.25));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.media-box:hover,
.media-single:hover {
    transform: translateY(-6px) scale(1.015);
    border-color: var(--accent);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5),
                0 0 0 1px var(--accent-glow);
}

.media-box:hover::after,
.media-single:hover::after { opacity: 1; }

.media-box img,
.media-single img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
                filter 0.4s ease;
}

.media-box:hover img,
.media-single:hover img {
    transform: scale(1.08);
    filter: brightness(1.1) saturate(1.15);
}

.media-box > span,
.media-single > span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
    font-style: italic;
}

/* === Content pages === */
.page-content {
    padding: 70px 0 90px;
    animation: fadeIn 0.6s ease both;
}

.page-content h1 {
    background: linear-gradient(120deg, var(--accent), var(--accent-4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    margin-bottom: 24px;
    text-align: center;
    animation: fadeUp 0.7s ease both;
}

.page-content h2 {
    color: var(--accent);
    font-size: 1.4rem;
    margin: 40px 0 14px;
    padding-left: 14px;
    border-left: 3px solid var(--accent-3);
}

.page-content p,
.page-content li {
    color: var(--text-dim);
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.page-content ul {
    margin: 0 0 18px 24px;
}

.page-content li {
    transition: color 0.25s ease, transform 0.25s ease;
}

.page-content li:hover {
    color: var(--text);
    transform: translateX(4px);
}

.content-wrap {
    max-width: 880px;
    margin: 0 auto;
}

/* === Contacts === */
.contacts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    margin-top: 40px;
}

.contact-item {
    background: linear-gradient(160deg, rgba(22, 34, 61, 0.95), rgba(29, 44, 82, 0.9));
    padding: 26px 22px;
    border-radius: 14px;
    text-align: center;
    border: 1px solid rgba(255, 184, 77, 0.15);
    transition: transform 0.35s ease, border-color 0.35s ease,
                box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--accent), var(--accent-3), var(--accent-4));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.contact-item:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4),
                0 0 24px var(--cyan-glow);
}

.contact-item:hover::before { opacity: 1; }

.contact-item strong {
    display: block;
    color: var(--accent);
    margin-bottom: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === Footer === */
.site-footer {
    background: linear-gradient(180deg, rgba(10, 14, 31, 0.85), var(--bg-1));
    border-top: 1px solid rgba(255, 184, 77, 0.15);
    padding: 40px 0 28px;
    margin-top: auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-bottom: 20px;
}

.footer-links a {
    position: relative;
    color: var(--text-dim);
    transition: color 0.25s ease;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent-3);
    transition: width 0.3s ease, left 0.3s ease;
}

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

.footer-links a:hover::before {
    width: 100%;
    left: 0;
}

/* === Scroll reveal === */
.section > .container > * {
    animation: fadeUp 0.7s ease both;
}

.section .features .feature-card:nth-child(1) { animation: fadeUp 0.7s 0.05s ease both; }
.section .features .feature-card:nth-child(2) { animation: fadeUp 0.7s 0.15s ease both; }
.section .features .feature-card:nth-child(3) { animation: fadeUp 0.7s 0.25s ease both; }
.section .features .feature-card:nth-child(4) { animation: fadeUp 0.7s 0.35s ease both; }

.media-row .media-box:nth-child(1) { animation: fadeUp 0.7s 0.05s ease both; }
.media-row .media-box:nth-child(2) { animation: fadeUp 0.7s 0.15s ease both; }
.media-row .media-box:nth-child(3) { animation: fadeUp 0.7s 0.25s ease both; }

/* === Responsive === */
@media (max-width: 640px) {
    .nav-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav ul {
        gap: 16px;
    }

    .hero {
        padding: 70px 0;
    }

    .section {
        padding: 60px 0;
    }

    body::before,
    body::after {
        width: 280px;
        height: 280px;
        filter: blur(80px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}
