/* ─── RESET & BASE ─── */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6C3CE1;
    --primary-light: #8B5CF6;
    --primary-dark: #4A1E9E;
    --secondary: #00D4FF;
    --accent: #FF6B6B;
    --gradient-1: linear-gradient(135deg, #6C3CE1 0%, #00D4FF 100%);
    --gradient-2: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 25px 60px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 60px rgba(108, 60, 225, 0.15);
    --radius: 20px;
    --transition: 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a1a;
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ─── ANIMATED BACKGROUND ─── */
.bg-canvas {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; overflow: hidden; pointer-events: none;
}

.bg-canvas .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.3;
    animation: orbFloat 25s ease-in-out infinite alternate;
}

.bg-canvas .orb:nth-child(1) {
    width: 700px; height: 700px;
    background: #6C3CE1;
    top: -250px; right: -250px;
    animation-delay: 0s;
}

.bg-canvas .orb:nth-child(2) {
    width: 600px; height: 600px;
    background: #00D4FF;
    bottom: -200px; left: -200px;
    animation-delay: -8s;
    opacity: 0.2;
}

.bg-canvas .orb:nth-child(3) {
    width: 400px; height: 400px;
    background: #FF6B6B;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -16s;
    opacity: 0.1;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(100px, -80px) scale(1.15); }
    66% { transform: translate(-80px, 100px) scale(0.85); }
    100% { transform: translate(60px, -60px) scale(1.05); }
}

.bg-grid {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 70px 70px;
    pointer-events: none;
}

/* ─── CONTENT WRAPPER ─── */
.content {
    position: relative; z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ─── HEADER ─── */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 26, 0.75);
}

.logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-icon {
    width: 50px; height: 50px;
    background: var(--gradient-1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(108, 60, 225, 0.35);
    animation: pulseGlow 3s ease-in-out infinite;
    position: relative;
}

.logo-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 17px;
    background: var(--gradient-1);
    opacity: 0.3;
    filter: blur(8px); z-index: -1;
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 8px 32px rgba(108, 60, 225, 0.35); }
    50% { box-shadow: 0 8px 48px rgba(108, 60, 225, 0.6), 0 0 80px rgba(0, 212, 255, 0.1); }
}

.logo-text {
    font-size: 1.6rem; font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.logo-sub {
    font-size: 0.65rem; font-weight: 400;
    color: rgba(255,255,255,0.3);
    -webkit-text-fill-color: rgba(255,255,255,0.3);
    letter-spacing: 2.5px; text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.header-nav a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    font-size: 0.85rem; font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

.header-nav a:hover { color: #fff; }
.header-nav a:hover::after { width: 100%; }

.header-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.04);
    padding: 8px 20px 8px 16px;
    border-radius: 40px;
    border: 1px solid rgba(255,255,255,0.06);
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    transition: var(--transition);
}

.header-badge:hover {
    border-color: rgba(108, 60, 225, 0.3);
    color: #fff;
    background: rgba(108, 60, 225, 0.08);
}

.header-badge i { color: var(--secondary); }

.header-badge .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

/* ─── HERO ─── */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: 75vh;
    padding: 30px 0 50px;
}

.hero-content { animation: fadeInUp 1s ease-out; }

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

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 60, 225, 0.12);
    color: #a78bfa;
    font-size: 0.7rem; font-weight: 600;
    padding: 5px 18px 5px 14px;
    border-radius: 40px;
    border: 1px solid rgba(108, 60, 225, 0.15);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: shimmerBorder 3s ease-in-out infinite;
}

@keyframes shimmerBorder {
    0%, 100% { border-color: rgba(108, 60, 225, 0.15); }
    50% { border-color: rgba(0, 212, 255, 0.3); }
}

.hero h1 {
    font-size: 3.6rem;
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 18px;
    min-height: 1.2em;
}

#typewriter {
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cursor {
    display: inline-block;
    color: var(--secondary);
    font-weight: 100;
    animation: blink 0.7s step-end infinite;
}

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

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.55);
    max-width: 480px;
    line-height: 1.9;
}

.hero-desc i { color: var(--secondary); margin: 0 4px; }

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 32px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 8px 32px rgba(108, 60, 225, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 14px 48px rgba(108, 60, 225, 0.5);
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 60%);
    opacity: 0;
    transition: var(--transition);
    transform: scale(0);
}

.btn-primary:hover::after { opacity: 1; transform: scale(1); }

.btn-secondary {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-3px);
    border-color: rgba(108, 60, 225, 0.3);
}

/* ─── HERO VISUAL ─── */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.orbit-container {
    position: relative;
    width: 380px;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.orbit-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: spinRing 16s linear infinite;
}

.orbit-icon {
    position: absolute;
    width: 48px;
    height: 48px;
    top: 50%;
    left: 50%;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--secondary);
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-180px) rotate(calc(var(--i) * -72deg));
    transition: all 0.3s ease;
}

.orbit-icon:hover {
    color: #fff;
    background: var(--gradient-1);
    transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-180px) rotate(calc(var(--i) * -72deg)) scale(1.2);
    box-shadow: 0 0 24px rgba(108, 60, 225, 0.4);
}

.orbit-center {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 6px;
    background: var(--gradient-1);
    box-shadow: 0 0 60px rgba(108, 60, 225, 0.4);
    z-index: 2;
    position: relative;
}

.orbit-center::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.06);
    animation: spinRing 10s linear infinite reverse;
}

.orbit-center img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

@keyframes spinRing {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ─── SECTION ─── */
.section { padding: 60px 0 50px; }

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title-group { flex: 1; }

.section-title {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title i {
    background: var(--gradient-1);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-right: 10px;
}

.section-sub {
    color: rgba(255,255,255,0.35);
    font-size: 0.9rem;
    max-width: 500px;
    margin-top: 4px;
}

.section-sub i { color: var(--secondary); margin: 0 4px; }

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.carousel-btn:hover {
    background: rgba(108, 60, 225, 0.15);
    border-color: rgba(108, 60, 225, 0.3);
    color: #fff;
    transform: scale(1.05);
}

/* ─── CARROUSEL ─── */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.carousel-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 6s ease-out;
}

.carousel-slide.active img {
    animation: zoomIn 8s ease-out forwards;
}

@keyframes zoomIn {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.2); }
}

.carousel-slide .slide-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 32px 28px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7) 60%);
    color: #fff;
}

.carousel-slide .slide-overlay .slide-tag {
    display: inline-block;
    background: rgba(108, 60, 225, 0.6);
    backdrop-filter: blur(8px);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.carousel-slide .slide-overlay h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.carousel-slide .slide-overlay p {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ─── CARROUSEL DOTS ─── */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 18px 0 6px;
}

.carousel-dots .dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.carousel-dots .dot.active {
    background: var(--gradient-1);
    width: 28px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(108, 60, 225, 0.3);
}

.carousel-dots .dot:hover:not(.active) { background: rgba(255,255,255,0.2); }

/* ─── ABOUT GRID ─── */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
    perspective: 1200px;
}

.flip-card {
    background: transparent;
    height: 180px;
    perspective: 1200px;
    cursor: pointer;
}

.flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-inner {
    transform: rotateY(180deg);
}

.flip-front, .flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: var(--radius);
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--glass-border);
    overflow: hidden;
}

.flip-front {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
}

.flip-front::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(108, 60, 225, 0.06), transparent 60%);
    pointer-events: none;
}

.flip-front .icon {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 10px;
    position: relative;
}

.flip-front h4 {
    font-size: 0.95rem;
    font-weight: 600;
    position: relative;
}

.flip-back {
    background: var(--gradient-1);
    transform: rotateY(180deg);
    box-shadow: 0 8px 32px rgba(108, 60, 225, 0.3);
}

.flip-back p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
}

/* ─── QUOTE ─── */
.quote-block {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px 44px;
    margin: 30px 0 0;
    position: relative;
    text-align: center;
    overflow: hidden;
}

.quote-block::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(108, 60, 225, 0.04), transparent 60%);
    pointer-events: none;
}

.quote-block .bi-quote {
    color: var(--primary);
    font-size: 2rem;
    opacity: 0.2;
    display: block;
    margin-bottom: 4px;
}

.quote-block blockquote {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255,255,255,0.65);
    font-style: italic;
    position: relative;
}

.quote-block .author {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.2);
    margin-top: 8px;
    font-style: normal;
    letter-spacing: 1px;
}

/* ─── TECH STRIP ─── */
/* ─── FOOTER ─── */
/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #0a0a1a; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .flip-card { height: 160px; }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: auto;
        padding: 20px 0 40px;
}
    .hero-desc { margin: 0 auto; }
    .hero-actions { justify-content: center; }
    .orbit-container { width: 300px; height: 300px; }
    .orbit-icon { width: 42px; height: 42px; font-size: 1.1rem; transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-140px) rotate(calc(var(--i) * -72deg)); }
    .orbit-icon:hover { transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-140px) rotate(calc(var(--i) * -72deg)) scale(1.15); }
    .orbit-center { width: 140px; height: 140px; }
    .header-nav { display: none; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .carousel-controls { align-self: flex-end; }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.2rem; }
    .orbit-container { width: 250px; height: 250px; }
    .orbit-icon { width: 36px; height: 36px; font-size: 0.9rem; transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-115px) rotate(calc(var(--i) * -72deg)); }
    .orbit-icon:hover { transform: translate(-50%, -50%) rotate(calc(var(--i) * 72deg)) translateY(-115px) rotate(calc(var(--i) * -72deg)) scale(1.12); }
    .orbit-center { width: 110px; height: 110px; padding: 5px; }
    .about-grid { grid-template-columns: 1fr; }
    .flip-card { height: 140px; }
    .quote-block { padding: 24px 20px; }
    .quote-block blockquote { font-size: 0.95rem; }
    .logo-text { font-size: 1.2rem; }
    .logo-icon { width: 40px; height: 40px; font-size: 1.1rem; }

    .carousel-slide .slide-overlay h3 { font-size: 1rem; }
    .carousel-slide .slide-overlay p { font-size: 0.75rem; }
    .carousel-slide .slide-overlay { padding: 24px 18px 16px; }
}
