/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0a;
    --bg2: #12121a;
    --text: #ffffff;
    --text2: #aaa;
    --primary: #6c63ff;
    --primary2: #3a2e8a;
    --card: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.05);
    --shadow: rgba(108, 99, 255, 0.3);
    --gradient: linear-gradient(135deg, #6c63ff, #ff6b6b);
}

[data-theme="light"] {
    --bg: #f0f2f5;
    --bg2: #ffffff;
    --text: #1a1a2e;
    --text2: #555;
    --card: rgba(0, 0, 0, 0.03);
    --border: rgba(0, 0, 0, 0.08);
    --shadow: rgba(108, 99, 255, 0.2);
    --gradient: linear-gradient(135deg, #6c63ff, #ff6b6b);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    transition: all 0.3s ease;
    overflow-x: hidden;
    cursor: default;
}

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

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s;
}

#preloader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader {
    position: relative;
    width: 100px;
    height: 100px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(2) {
    animation-delay: -0.3s;
    border-top-color: #ff6b6b;
}

.loader-ring:nth-child(3) {
    animation-delay: -0.6s;
    border-top-color: #4ade80;
}

.loader-ring:nth-child(4) {
    animation-delay: -0.9s;
    border-top-color: #fbbf24;
}

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

.loader-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    opacity: 0;
}

.mouse-follower.active {
    opacity: 1;
}

.mouse-follower.hover {
    width: 60px;
    height: 60px;
    border-color: #ff6b6b;
}

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

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: var(--card);
    border: 1px solid var(--border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
    border-color: var(--primary);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(var(--bg), 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: all 0.3s;
}

nav.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

.logo {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

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

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

.nav-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hero-content {
    position: relative;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.hero-content h1 {
    font-size: 52px;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-content h1 .highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.typing-wrapper {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 15px;
}

.prefix {
    color: var(--text2);
}

.typing-text {
    color: var(--primary);
    font-weight: 600;
    border-right: 3px solid var(--primary);
    padding-right: 8px;
    animation: blink 0.8s step-end infinite;
}

@keyframes blink {
    50% { border-color: transparent; }
}

.hero-desc {
    font-size: 18px;
    color: var(--text2);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}

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

.btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px var(--shadow);
}

.btn.secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn.secondary:hover {
    background: var(--primary);
    color: #fff;
}

.btn.tertiary {
    border: 2px solid var(--border);
    color: var(--text2);
    background: transparent;
}

.btn.tertiary:hover {
    border-color: var(--primary);
    color: var(--text);
}

.btn.pulse {
    animation: btnPulse 2s infinite;
}

@keyframes btnPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--shadow); }
    50% { box-shadow: 0 4px 40px rgba(108, 99, 255, 0.6); }
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 20px var(--shadow);
}

.floating-info {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.floating-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    color: var(--text2);
    transition: all 0.3s;
}

.floating-item i {
    color: var(--primary);
}

.floating-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Profile Card */
.profile-card {
    text-align: center;
}

.profile-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    margin: 0 auto;
    box-shadow: 0 0 60px var(--shadow);
    border: 3px solid rgba(108, 99, 255, 0.2);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.profile-status {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text2);
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    animation: dotPulse 2s infinite;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.profile-stats div {
    text-align: center;
}

.profile-stats h4 {
    font-size: 24px;
    color: var(--primary);
}

.profile-stats p {
    font-size: 12px;
    color: var(--text2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text2);
    font-size: 13px;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    margin-top: 5px;
    font-size: 20px;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Section Titles */
section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 50px;
}

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

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin: 10px auto 0;
    border-radius: 4px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.about-text p {
    color: var(--text2);
    margin-bottom: 15px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 20px 0;
}

.about-info div {
    background: var(--card);
    padding: 12px 18px;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14px;
}

.about-info i {
    color: var(--primary);
    margin-right: 10px;
}

.about-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.stat:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--shadow);
}

.stat h3 {
    font-size: 36px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat p {
    color: var(--text2);
    font-size: 14px;
    margin-top: 5px;
}

/* Skills */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto 60px;
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--text);
}

.skill-category h3 i {
    color: var(--primary);
    margin-right: 10px;
}

.skill-bar {
    margin-bottom: 18px;
}

.skill-bar span {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 5px;
}

.skill-percent {
    color: var(--primary);
    font-weight: 600;
}

.progress {
    width: 100%;
    height: 8px;
    background: var(--card);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    border-radius: 10px;
    width: 0;
    transition: width 1.2s ease;
}

/* Tech Stack */
.tech-stack {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.tech-stack h3 {
    font-size: 22px;
    margin-bottom: 30px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.tech-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 25px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s;
    min-width: 80px;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--shadow);
}

.tech-icon i {
    font-size: 36px;
    color: var(--primary);
}

.tech-icon span {
    font-size: 12px;
    color: var(--text2);
}

/* Projects */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.1);
}

.project-img {
    font-size: 48px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.project-tags span {
    background: rgba(108, 99, 255, 0.15);
    color: var(--primary);
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
}

.testimonial-quote {
    margin-bottom: 20px;
}

.testimonial-quote i {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 10px;
}

.testimonial-quote p {
    color: var(--text2);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.testimonial-author h4 {
    font-size: 16px;
}

.testimonial-author p {
    font-size: 13px;
    color: var(--text2);
}

/* Contact */
.contact {
    background: var(--bg2);
}

.contact-desc {
    text-align: center;
    color: var(--text2);
    font-size: 18px;
    margin-bottom: 40px;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.contact-item i {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h4 {
    color: var(--text);
    font-size: 16px;
}

.contact-item p {
    color: var(--text2);
    font-size: 14px;
}

.contact-social {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.contact-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text2);
    font-size: 18px;
    transition: all 0.3s;
    text-decoration: none;
}

.contact-social a:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-3px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    align-self: flex-start;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--border);
    background: var(--bg);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 28px;
    font-weight: 800;
}

.footer-brand h3 span {
    color: var(--primary);
}

.footer-brand p {
    color: var(--text2);
    font-size: 14px;
    margin-top: 10px;
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 15px;
}

.footer-links a {
    display: block;
    color: var(--text2);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text2);
    font-size: 14px;
}

.footer-bottom p i {
    color: #ff6b6b;
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    color: var(--text2);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--gradient);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    box-shadow: 0 4px 20px var(--shadow);
}

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

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(var(--bg), 0.98);
        padding: 20px;
        gap: 15px;
        text-align: center;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

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

    .social-icons {
        justify-content: center;
    }

    .hero-desc {
        margin: 0 auto 30px;
    }

    .floating-info {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-img {
        width: 200px;
        height: 200px;
        font-size: 70px;
    }

    .profile-stats {
        gap: 20px;
    }

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

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

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

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

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

    .section-title {
        font-size: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }

    .mouse-follower {
        display: none;
    }

    .tech-icons {
        gap: 10px;
    }

    .tech-icon {
        padding: 15px 18px;
        min-width: 60px;
    }

    .tech-icon i {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }

    .typing-wrapper {
        font-size: 18px;
    }

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

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

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

    .btn {
        padding: 12px 25px;
        font-size: 13px;
    }

    .floating-item {
        font-size: 11px;
        padding: 6px 12px;
    }
}
/* Notification Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    to {
        opacity: 0;
        transform: translateX(-50%) translateY(50px);
    }
}
