/* =============================================
   ROMAN BANGE — Professional Dark Theme
   ============================================= */

:root {
    --bg-dark: #050505;
    --bg-surface: rgba(18, 18, 18, 0.65);
    --bg-card: rgba(25, 25, 25, 0.4);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent: #e4e4e7;
    --accent-glow: rgba(255, 255, 255, 0.05);
    
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 9999px;
    
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* ---- CUSTOM CURSOR ---- */
.cursor-dot, .cursor-ring {
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    border-radius: 50%;
    z-index: 9999;
    will-change: transform;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: transparent;
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

.cursor-ring.ring-grow {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px);
}

@media (hover: none) and (pointer: coarse) {
    body, .btn {
        cursor: auto;
    }
    .cursor-dot, .cursor-ring {
        display: none !important;
    }
}

/* ---- LAYOUT ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ---- AMBIENT BACKGROUND ---- */
.ambient {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(20,20,25,1) 0%, var(--bg-dark) 60%);
}

.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: pulse 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(40,40,45,0.8), transparent 70%);
    top: -30vw; left: -10vw;
}

.blob-2 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(25,25,30,0.8), transparent 70%);
    bottom: -20vw; right: -10vw;
    animation-delay: -5s;
}

.blob-3 {
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(30,30,30,0.6), transparent 70%);
    top: 40%; left: 60%;
    animation-delay: -2s;
}

@keyframes pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.3; }
    100% { transform: scale(1.1) translate(-20px, 20px); opacity: 0.5; }
}

/* ---- NAVIGATION ---- */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    pointer-events: none;
    transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-scrolled {
    padding-top: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    pointer-events: auto;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-scrolled .nav-links {
    background: rgba(25, 25, 25, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-cta {
    padding: 0.5rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    transition: border-color var(--transition), background var(--transition) !important;
}

.nav-cta:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* ---- HERO ---- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 6rem;
    position: relative;
}

.hero-content {
    max-width: 800px;
    z-index: 2;
}

.overline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    backdrop-filter: blur(4px);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(161, 161, 170, 0.4);
    animation: flash 2s infinite;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.accent-text {
    color: var(--text-muted);
}

.cursor-blink {
    font-weight: 400;
    color: var(--text-primary);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-subtitle {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.amp {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.bio strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-full);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
    cursor: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--text-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-accent {
    background: var(--text-primary);
    color: var(--bg-dark);
}

.btn-accent:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.9);
}

/* Floating hero stats */
.hero-stats {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateX(20px);
    opacity: 0;
    animation: slideIn 0.8s forwards cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.stat-card-1 { animation-delay: 0.2s; }
.stat-card-2 { animation-delay: 0.4s; }
.stat-card-3 { animation-delay: 0.6s; }

@keyframes slideIn {
    to { transform: translateX(0); opacity: 1; }
}

.stat-icon {
    font-size: 1.5rem;
    filter: grayscale(0.5);
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* ---- MARQUEE TICKER ---- */
.ticker {
    padding: 1.5rem 0;
    background: rgba(10, 10, 10, 0.5);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.ticker-inner {
    width: 100%;
}

.ticker-track {
    display: inline-flex;
    animation: ticker linear 30s infinite;
    align-items: center;
    will-change: transform;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-track span {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.divider {
    color: var(--border-subtle) !important;
    font-size: 1rem !important;
    margin: 0 2rem;
}

/* ---- SECTION COMMON ---- */
.section {
    padding: 8rem 0;
    position: relative;
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.label-line {
    width: 40px;
    height: 1px;
    background-color: var(--text-muted);
}

.label-text {
    font-family: var(--font-display);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
}

/* ---- ABOUT ---- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text h3 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.about-text h3 em {
    font-style: normal;
    color: var(--text-muted);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.about-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-pill {
    padding: 0.6rem 1.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: var(--bg-card);
    transition: all var(--transition);
}

.skill-pill:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: transparent;
    transform: translateY(-2px);
}

/* ---- EXPERIENCE CARDS ---- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition), background var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover {
    border-color: var(--border-hover);
    background: rgba(30, 30, 30, 0.6);
}

.card:hover::before {
    opacity: 1;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-subtle);
}

.badge-green { color: #10b981; border-color: rgba(16, 185, 129, 0.3); background: rgba(16, 185, 129, 0.05); }
.badge-cyan { color: #06b6d4; border-color: rgba(6, 182, 212, 0.3); background: rgba(6, 182, 212, 0.05); }
.badge-pink { color: #ec4899; border-color: rgba(236, 72, 153, 0.3); background: rgba(236, 72, 153, 0.05); }

.card-arrow {
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.card:hover .card-arrow {
    transform: translate(4px, -4px);
    color: var(--text-primary);
}

.card h4 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.card-role {
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-weight: 500;
}

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

/* ---- CTA BAND ---- */
.cta-band {
    padding: 6rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 60%; height: 100%;
    background: radial-gradient(ellipse at top, rgba(255,255,255,0.03) 0%, transparent 60%);
    pointer-events: none;
}

.cta-band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-label {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.cta-heading {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ---- FOOTER ---- */
.footer {
    padding: 3rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition);
}

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

.footer-made {
    font-style: italic;
}

/* ---- ANIMATIONS ---- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        display: none;
    }
    
    .cta-band-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-links {
        display: none;
    }
    
    .cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
    }
}
