/* Reset & Base Styles */
:root {
    --primary-color: #9f5afd;
    --secondary-color: #7f00ff;
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --text-color: #f0f0f0;
    --text-muted: #a0a0a0;
    --neon-glow: 0 0 10px rgba(159, 90, 253, 0.7);
    --section-spacing: 100px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--darker-bg), var(--dark-bg), #1a0a2e, #2d0a4a);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Cyber Grid Background */
.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(rgba(159, 90, 253, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(159, 90, 253, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger-line {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
    overflow: hidden;
}

.title-line {
    display: block;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(159, 90, 253, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 600px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn {
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 0 15px rgba(159, 90, 253, 0.5);
}

.btn-glow {
    animation: pulseGlow 2s infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 10px rgba(159, 90, 253, 0.5);
    }

    to {
        box-shadow: 0 0 20px rgba(159, 90, 253, 0.8);
    }
}

.btn-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: rgba(159, 90, 253, 0.1);
    color: white;
}

.social-link {
    color: var(--text-muted);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(159, 90, 253, 0.3);
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
    border-color: var(--primary-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    margin-bottom: 10px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(159, 90, 253, 0.3);
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

section {
    padding: var(--section-spacing) 20px;
    position: relative;
}

/* Projects Section */
.projects-section {
    background: rgba(10, 10, 10, 0.5);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 400px;
    transition: all 0.5s ease;
    border: 1px solid rgba(159, 90, 253, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(159, 90, 253, 0.3);
}

.project-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.project-tags {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 2;
}

.project-tag {
    background: rgba(10, 10, 10, 0.8);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--primary-color);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    opacity: 0.8;
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    z-index: 2;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.project-description {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: white;
    text-shadow: var(--neon-glow);
}

/* About Section */
.about-section {
    background: rgba(15, 15, 15, 0.5);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.detail-item {
    display: flex;
    gap: 10px;
}

.detail-label {
    color: var(--primary-color);
    font-weight: 600;
}

.detail-value {
    color: var(--text-muted);
}

.about-image {
    flex: 1;
    position: relative;
    min-height: 400px;
}

.image-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    transform: rotate(5deg);
    z-index: 1;
}

.image-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.1;
    filter: blur(20px);
    border-radius: 10px;
}

/* Skills Section */
.skills-section {
    background: rgba(10, 10, 10, 0.5);
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.skills-category {
    background: rgba(20, 20, 20, 0.5);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(159, 90, 253, 0.2);
    transition: all 0.5s ease;
}

.skills-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(159, 90, 253, 0.2);
}

.skills-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(30, 30, 30, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(159, 90, 253, 0.2);
    transition: all 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(159, 90, 253, 0.3);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.2);
    text-shadow: 0 0 10px rgba(159, 90, 253, 0.7);
}

.skill-name {
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
}

.skill-item:hover .skill-name {
    color: var(--text-color);
}

@media (max-width: 768px) {
    .skills-list {
        grid-template-columns: 1fr;
    }
}

/* Contact Section */
.contact-section {
    background: rgba(15, 15, 15, 0.5);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(159, 90, 253, 0.3);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--text-muted);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus~label,
.form-group input:valid~label,
.form-group textarea:focus~label,
.form-group textarea:valid~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.form-group input:focus~.form-line,
.form-group textarea:focus~.form-line {
    width: 100%;
}

/* Footer */
.main-footer {
    background: rgba(10, 10, 10, 0.8);
    padding: 50px 20px 20px;
    text-align: center;
    border-top: 1px solid rgba(159, 90, 253, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--neon-glow);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-social {
    display: flex;
    gap: 20px;
}

.footer-copyright {
    margin-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Particles */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    filter: blur(1px);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.5s ease;
        border-bottom: 1px solid rgba(159, 90, 253, 0.2);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-hamburger {
        display: flex;
    }

    .about-content {
        flex-direction: column;
    }

    .about-image {
        min-height: 300px;
        width: 100%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* nav */
.floating-nav {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(159, 90, 253, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(159, 90, 253, 0.3);
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
}

.nav-button:hover {
    box-shadow: 0 0 25px rgba(159, 90, 253, 0.5);
    transform: scale(1.05);
}

.nav-icon {
    width: 24px;
    height: 18px;
    position: relative;
}

.nav-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-icon span:nth-child(1) {
    top: 0;
}

.nav-icon span:nth-child(2) {
    top: 8px;
}

.nav-icon span:nth-child(3) {
    top: 16px;
}

.nav-wheel {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    transform-origin: left center;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
}

.floating-nav.active .nav-wheel {
    transform: translateY(-50%) scale(1);
    opacity: 1;
    pointer-events: all;
}

.wheel-item {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(159, 90, 253, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.wheel-item:hover {
    background: rgba(159, 90, 253, 0.2);
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(159, 90, 253, 0.3);
    transform: scale(1.1);
}

.wheel-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 70px;
    background: rgba(20, 20, 20, 0.9);
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(159, 90, 253, 0.2);
}

.wheel-item:hover::after {
    opacity: 1;
    left: 60px;
}

/* Position wheel items */
.wheel-item:nth-child(1) {
    transform: rotate(0deg) translate(125px) rotate(0deg);
}

.wheel-item:nth-child(2) {
    transform: rotate(72deg) translate(125px) rotate(-72deg);
}

.wheel-item:nth-child(3) {
    transform: rotate(144deg) translate(125px) rotate(-144deg);
}

.wheel-item:nth-child(4) {
    transform: rotate(216deg) translate(125px) rotate(-216deg);
}

.wheel-item:nth-child(5) {
    transform: rotate(288deg) translate(125px) rotate(-288deg);
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    50% {
        transform: translateY(-50%) translateX(-10px);
    }
}

/* Project Modal Styles */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    opacity: 0;
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: var(--darker-bg);
    border-radius: 10px;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(159, 90, 253, 0.5);
    padding: 30px;
    transform: scale(0.8);
    opacity: 0;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(159, 90, 253, 0.2);
    border: 1px solid var(--primary-color);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

.modal-main-image {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(159, 90, 253, 0.3);
}

.modal-main-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.modal-thumbnails {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-thumbnail {
    width: 100px;
    height: 70px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.modal-thumbnail::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(159, 90, 253, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-thumbnail:hover::after {
    opacity: 1;
}

.modal-thumbnail.active {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.modal-thumbnail.active::after {
    opacity: 0;
}

.modal-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        padding: 15px;
    }

    .modal-thumbnail {
        width: 80px;
        height: 60px;
    }
}