/* polytics.club - Vaporwave Professional */
/* Colors: #0f0f23 deep, #1a1a2e near-black, #f8fafc white, #7c3aed violet, #f97316 coral, #06b6d4 teal, #64748b gray, #a78bfa soft-violet */

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

:root {
    --deep: #0f0f23;
    --near-black: #1a1a2e;
    --white: #f8fafc;
    --violet: #7c3aed;
    --coral: #f97316;
    --teal: #06b6d4;
    --gray: #64748b;
    --soft-violet: #a78bfa;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--deep);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

.hidden { display: none !important; }

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

/* Neon Glow Effects */
.neon-glow-violet {
    text-shadow: 0 0 10px #7c3aed, 0 0 20px #7c3aed, 0 0 40px rgba(124,58,237,0.3);
}
.neon-glow-coral {
    text-shadow: 0 0 10px #f97316, 0 0 20px #f97316, 0 0 40px rgba(249,115,22,0.3);
}
.neon-glow-teal {
    text-shadow: 0 0 10px #06b6d4, 0 0 20px #06b6d4, 0 0 40px rgba(6,182,212,0.3);
}

/* Shimmer Animation for Skeleton Loading */
@keyframes shimmer {
    0% { background-position: -400px 0; }
    100% { background-position: 400px 0; }
}

.shimmer {
    background: linear-gradient(90deg, var(--near-black) 0%, #2a2a4e 50%, var(--near-black) 100%);
    background-size: 400px 100%;
    animation: shimmer 1.5s infinite linear;
}

/* Scroll indicator */
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Fade in animation */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(2deg); }
    66% { transform: translateY(-8px) rotate(-1deg); }
}

/* ===== NAVIGATION ===== */
#main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15,15,35,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(124,58,237,0.15);
    transition: background 0.3s, box-shadow 0.3s;
}

#main-nav.scrolled {
    background: rgba(15,15,35,0.95);
    box-shadow: 0 4px 30px rgba(124,58,237,0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    text-decoration: none;
    font-family: 'Spectral', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.logo-poly { color: var(--violet); }
.logo-tics { color: var(--coral); }
.logo-dot { color: var(--teal); }

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: color 0.3s, text-shadow 0.3s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--violet);
    transition: width 0.3s;
    box-shadow: 0 0 8px var(--violet);
}

.nav-link:hover {
    color: var(--white);
    text-shadow: 0 0 10px var(--violet);
}

.nav-link:hover::after { width: 100%; }

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,15,35,0.98);
    z-index: 999;
    backdrop-filter: blur(20px);
}

.mobile-menu.active { display: flex; align-items: center; justify-content: center; }

.mobile-nav-links {
    list-style: none;
    text-align: center;
}

.mobile-nav-links li { margin-bottom: 32px; }

.mobile-nav-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'Spectral', serif;
    font-size: 2rem;
    font-weight: 500;
    transition: text-shadow 0.3s;
}

.mobile-nav-link:hover {
    text-shadow: 0 0 20px var(--violet), 0 0 40px var(--violet);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-mountain-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.mountain-svg {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 100px 24px 60px;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--teal);
    border: 1px solid rgba(6,182,212,0.3);
    padding: 8px 20px;
    border-radius: 30px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title-line {
    display: block;
}

.hero-title-line:first-child {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-title-line:last-child {
    font-size: clamp(3rem, 7vw, 6rem);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.8s both;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--violet);
    color: var(--white);
    box-shadow: 0 0 20px rgba(124,58,237,0.3);
}

.btn-primary:hover {
    background: #8b5cf6;
    box-shadow: 0 0 30px rgba(124,58,237,0.5), 0 0 60px rgba(124,58,237,0.2);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(248,250,252,0.2);
}

.btn-outline:hover {
    border-color: var(--teal);
    color: var(--teal);
    box-shadow: 0 0 20px rgba(6,182,212,0.2);
    transform: translateY(-2px);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-line {
    width: 2px;
    height: 40px;
    background: var(--violet);
    animation: scrollPulse 2s ease infinite;
    box-shadow: 0 0 10px var(--violet);
}

/* ===== SECTIONS ===== */
.section {
    padding: 120px 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ===== ABOUT ===== */
.about-section {
    background: var(--near-black);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
}

.about-lead {
    font-family: 'Spectral', serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: var(--soft-violet);
    margin-bottom: 20px;
    line-height: 1.7;
}

.about-text p {
    color: var(--gray);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(124,58,237,0.15);
}

.stat-item { text-align: center; }

.stat-number {
    display: block;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.triadic-blocks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    width: 280px;
    height: 280px;
}

.triadic-block {
    border-radius: 8px;
    transition: transform 0.5s, box-shadow 0.5s;
}

.block-violet {
    background: var(--violet);
    grid-row: span 2;
    box-shadow: 0 0 30px rgba(124,58,237,0.3);
    animation: float 6s ease-in-out infinite;
}

.block-coral {
    background: var(--coral);
    box-shadow: 0 0 30px rgba(249,115,22,0.3);
    animation: float 6s ease-in-out infinite 1s;
}

.block-teal {
    background: var(--teal);
    box-shadow: 0 0 30px rgba(6,182,212,0.3);
    animation: float 6s ease-in-out infinite 2s;
}

.triadic-block:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px currentColor;
}

/* ===== PORTFOLIO ===== */
.portfolio-section {
    background: var(--deep);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* Skeleton cards */
.skeleton-card {
    background: var(--near-black);
    border-radius: 8px;
    overflow: hidden;
}

.skeleton-image {
    aspect-ratio: 4/3;
    background: var(--near-black);
}

.skeleton-content {
    padding: 20px;
}

.skeleton-line {
    height: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

/* Portfolio cards */
.portfolio-card {
    background: var(--near-black);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.portfolio-card:nth-child(1) { animation-delay: 0.1s; }
.portfolio-card:nth-child(2) { animation-delay: 0.2s; }
.portfolio-card:nth-child(3) { animation-delay: 0.3s; }
.portfolio-card:nth-child(4) { animation-delay: 0.4s; }
.portfolio-card:nth-child(5) { animation-delay: 0.5s; }
.portfolio-card:nth-child(6) { animation-delay: 0.6s; }

.portfolio-card:hover {
    transform: translateY(-8px);
}

.portfolio-card[data-color='violet']:hover {
    box-shadow: 0 20px 60px rgba(124,58,237,0.3);
}
.portfolio-card[data-color='coral']:hover {
    box-shadow: 0 20px 60px rgba(249,115,22,0.3);
}
.portfolio-card[data-color='teal']:hover {
    box-shadow: 0 20px 60px rgba(6,182,212,0.3);
}

.card-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-svg {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s;
}

.portfolio-card:hover .card-svg {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15,15,35,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.card-cta {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid var(--violet);
    border-radius: 4px;
    box-shadow: 0 0 15px rgba(124,58,237,0.3);
}

.card-content {
    padding: 20px;
}

.card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    margin-bottom: 12px;
}

.tag-violet { background: rgba(124,58,237,0.15); color: var(--violet); }
.tag-coral { background: rgba(249,115,22,0.15); color: var(--coral); }
.tag-teal { background: rgba(6,182,212,0.15); color: var(--teal); }

.card-title {
    font-family: 'Spectral', serif;
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--gray);
    line-height: 1.6;
}

/* ===== INSIGHTS ===== */
.insights-section {
    background: var(--near-black);
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.insight-card {
    background: var(--deep);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.insight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.insight-featured {
    grid-column: span 2;
}

.insight-accent {
    width: 4px;
    min-height: 100%;
    flex-shrink: 0;
}

.accent-violet { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.accent-coral { background: var(--coral); box-shadow: 0 0 10px var(--coral); }
.accent-teal { background: var(--teal); box-shadow: 0 0 10px var(--teal); }

.insight-content {
    padding: 28px;
}

.insight-date {
    font-size: 0.75rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    display: block;
}

.insight-title {
    font-family: 'Spectral', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 12px;
    line-height: 1.3;
}

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

.insight-excerpt {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.insight-link {
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.insight-link:hover { opacity: 0.8; }

/* ===== CONTACT ===== */
.contact-section {
    background: var(--deep);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-desc {
    color: var(--gray);
    margin: 20px 0 32px;
    line-height: 1.7;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-icon {
    flex-shrink: 0;
}

.detail-text {
    color: var(--white);
    font-size: 0.95rem;
}

.contact-form {
    background: var(--near-black);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid rgba(124,58,237,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gray);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    background: var(--deep);
    border: 1px solid rgba(100,116,139,0.2);
    color: var(--white);
    padding: 14px 16px;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    outline: none;
}

.form-input:focus {
    border-color: var(--violet);
    box-shadow: 0 0 15px rgba(124,58,237,0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
    position: relative;
}

.btn-loader {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== FOOTER ===== */
.footer {
    background: var(--near-black);
    padding: 60px 0 40px;
    border-top: 1px solid rgba(124,58,237,0.1);
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    margin-bottom: 24px;
    font-family: 'Spectral', serif;
    font-size: 1.5rem;
    font-weight: 600;
}

.footer-tagline {
    color: var(--gray);
    font-family: 'Roboto', sans-serif;
    font-size: 0.9rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(100,116,139,0.1);
}

.footer-bottom p {
    color: var(--gray);
    font-size: 0.8rem;
}

.footer-triadic {
    display: flex;
    gap: 8px;
}

.triadic-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.dot-coral { background: var(--coral); box-shadow: 0 0 8px var(--coral); }
.dot-teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); }

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .mobile-menu-btn { display: flex; }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .stat-number { font-size: 2rem; }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .insights-grid {
        grid-template-columns: 1fr;
    }

    .insight-featured {
        grid-column: span 1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 24px;
    }

    .hero-title-line:first-child { font-size: 2rem; }
    .hero-title-line:last-child { font-size: 2.8rem; }

    .section { padding: 80px 0; }

    .footer-links { gap: 16px; flex-wrap: wrap; }
    .footer-bottom { flex-direction: column; gap: 12px; }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
}
