:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --accent-primary: #7c6aef;
    --accent-secondary: #38bdf8;
    --accent-tertiary: #22d3ee;
    --accent-glow: rgba(124, 106, 239, 0.25);
    --gradient-accent: linear-gradient(135deg, #7c6aef 0%, #38bdf8 50%, #22d3ee 100%);
    --gradient-card: linear-gradient(135deg, rgba(124, 106, 239, 0.08) 0%, rgba(56, 189, 248, 0.04) 100%);
    --gradient-bg: radial-gradient(ellipse at top, #12121a 0%, #0a0a0f 70%);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --section-padding: 7rem 0;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-main);
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

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

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-accent);
    z-index: 10000;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.15s, height 0.15s;
}

.cursor-outline {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(124, 106, 239, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

@media (max-width: 768px) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* Particles */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Header */
#header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.8rem 0;
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

#header.scrolled {
    background: rgba(10, 10, 15, 0.9);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}

.logo-text {
    color: var(--text-primary);
}

.logo-accent {
    color: var(--accent-primary);
    font-size: 2.5rem;
}

.nav-list {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

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

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 5px;
    z-index: 1001;
}

.bar {
    height: 2px;
    width: 24px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    background: var(--bg-card);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

.hero-name {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -2px;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typewriter-wrapper {
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.5rem;
}

.typewriter-prefix {
    color: var(--text-secondary);
}

#typewriter {
    color: var(--accent-secondary);
}

.typewriter-cursor {
    color: var(--accent-primary);
    animation: cursorBlink 0.7s infinite;
}

@keyframes cursorBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-main);
}

.btn-primary {
    background: var(--gradient-accent);
    color: #fff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 106, 239, 0.4);
}

.btn-primary i {
    transition: transform var(--transition-base);
}

.btn-primary:hover i {
    transform: translateX(4px);
}

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

.btn-ghost:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background: rgba(124, 106, 239, 0.05);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

/* Social Links */
.hero-socials {
    display: flex;
    gap: 1rem;
}

.hero-socials a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all var(--transition-base);
}

.hero-socials a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* Orbit Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orbit-container {
    position: relative;
    width: 320px;
    height: 320px;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.orbit-ring-1 {
    width: 200px;
    height: 200px;
    border-color: rgba(124, 106, 239, 0.15);
    animation: rotate 12s linear infinite;
}

.orbit-ring-2 {
    width: 260px;
    height: 260px;
    border-color: rgba(56, 189, 248, 0.1);
    animation: rotate 20s linear infinite reverse;
}

.orbit-ring-3 {
    width: 320px;
    height: 320px;
    border-color: rgba(34, 211, 238, 0.06);
    animation: rotate 30s linear infinite;
}

.orbit-ring-1::after,
.orbit-ring-2::after,
.orbit-ring-3::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
}

.orbit-ring-1::after {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.orbit-ring-2::after {
    background: var(--accent-secondary);
    box-shadow: 0 0 10px var(--accent-secondary);
}

.orbit-ring-3::after {
    background: var(--accent-tertiary);
    box-shadow: 0 0 10px var(--accent-tertiary);
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.orbit-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(124, 106, 239, 0.15);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 2s both;
}

.mouse {
    width: 22px;
    height: 36px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 3px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(14px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
    padding: 0.3rem 0.8rem;
    border: 1px solid rgba(124, 106, 239, 0.2);
    border-radius: var(--radius-full);
    background: rgba(124, 106, 239, 0.05);
}

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

/* About */
.about-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    line-height: 1.85;
}

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

.about-cards {
    display: grid;
    gap: 1rem;
}

.info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.info-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateX(5px);
}

.info-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 106, 239, 0.08);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.info-value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* Skills */
.skills-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.skill-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 106, 239, 0.04), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(124, 106, 239, 0.15);
}

.skill-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(124, 106, 239, 0.08);
    font-size: 1.8rem;
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

.skill-card:hover .skill-icon-wrapper {
    background: var(--gradient-accent);
    color: #fff;
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.skill-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-accent);
    border-radius: 4px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Contact */
.contact-section {
    padding: var(--section-padding);
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info>p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.contact-method:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
    transform: translateX(5px);
}

.contact-method-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(124, 106, 239, 0.08);
    color: var(--accent-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-method-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-method-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cta-card {
    padding: 3rem;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-card i:first-child {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.footer-socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: all var(--transition-base);
}

.footer-socials a:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-base);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

/* Animations */
[data-animate] {
    opacity: 0;
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate="fade-up"] {
    transform: translateY(40px);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate="zoom-in"] {
    transform: scale(0.85);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

[data-delay="0"] {
    transition-delay: 0s;
}

[data-delay="1"] {
    transition-delay: 0.1s;
}

[data-delay="2"] {
    transition-delay: 0.2s;
}

[data-delay="3"] {
    transition-delay: 0.3s;
}

[data-delay="4"] {
    transition-delay: 0.4s;
}

[data-delay="5"] {
    transition-delay: 0.5s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-name {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.5rem;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-left: 1px solid var(--border-color);
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        gap: 2rem;
    }

    .hero-name {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .typewriter-wrapper {
        font-size: 1.2rem;
    }

    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-badge {
        margin: 0 auto 1.5rem;
    }

    .hero-description {
        margin: 0 auto 2rem;
    }

    .orbit-container {
        width: 220px;
        height: 220px;
    }

    .orbit-ring-1 {
        width: 140px;
        height: 140px;
    }

    .orbit-ring-2 {
        width: 180px;
        height: 180px;
    }

    .orbit-ring-3 {
        width: 220px;
        height: 220px;
    }

    .orbit-core {
        width: 70px;
        height: 70px;
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .scroll-indicator {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2rem;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .skill-card {
        padding: 1.5rem 1rem;
    }
}