/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00f0ff;
    --secondary-color: #ff00ff;
    --accent-color: #7000ff;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --text-light: #ffffff;
    --text-gray: #b0b0b0;
    --card-bg: rgba(20, 20, 30, 0.8);
    --border-glow: rgba(0, 240, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at top, rgba(112, 0, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom, rgba(0, 240, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-glow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-image {
    width: 90px;
    height: 90px;
    max-width: 100px;
    max-height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.logo-text {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    min-height: 140vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 10rem 2rem 10rem;
    overflow: visible;
}

.hero-content {
    text-align: center;
    z-index: 2;
    margin-bottom: 2rem;
    margin-top:30px;
}

.hero-logo {
    width: 250px;
    height: 250px;
    max-width: 250px;
    max-height: 250px;
    margin: 0 auto 2rem;
    display: block;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.6));
    animation: float 3s ease-in-out infinite;
}

.glitch {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: bold;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: glitch 2s infinite;
    text-shadow: 
        2px 2px 0 var(--primary-color),
        -2px -2px 0 var(--secondary-color);
}

@keyframes glitch {
    0%, 100% {
        text-shadow: 
            2px 2px 0 var(--primary-color),
            -2px -2px 0 var(--secondary-color);
    }
    25% {
        text-shadow: 
            -2px -2px 0 var(--primary-color),
            2px 2px 0 var(--secondary-color);
    }
    50% {
        text-shadow: 
            2px -2px 0 var(--primary-color),
            -2px 2px 0 var(--secondary-color);
    }
    75% {
        text-shadow: 
            -2px 2px 0 var(--primary-color),
            2px -2px 0 var(--secondary-color);
    }
}

.subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin: 1rem 0;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
    border: none;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
}

/* Turntable Container */
.turntable-container {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0rem auto 4rem;
    perspective: 1000px;
    position: relative;
    z-index: 10;
}

/* 3D Carousel */
.carousel-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate3d 20s infinite linear;
}

@keyframes rotate3d {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.carousel-item {
    position: absolute;
    width: 150px;
    height: 150px;
    left: 50%;
    top: 50%;
    margin-left: -75px;
    margin-top: -75px;
    background: var(--card-bg);
    border: 2px solid var(--border-glow);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backface-visibility: hidden;
}

.carousel-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    transform: scale(1.1);
}

.carousel-item:nth-child(1) {
    transform: rotateY(0deg) translateZ(250px);
}

.carousel-item:nth-child(2) {
    transform: rotateY(60deg) translateZ(250px);
}

.carousel-item:nth-child(3) {
    transform: rotateY(120deg) translateZ(250px);
}

.carousel-item:nth-child(4) {
    transform: rotateY(180deg) translateZ(250px);
}

.carousel-item:nth-child(5) {
    transform: rotateY(240deg) translateZ(250px);
}

.carousel-item:nth-child(6) {
    transform: rotateY(300deg) translateZ(250px);
}

.item-icon {
    font-size: 3rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.item-label {
    font-size: 1rem;
    font-weight: bold;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Pause animation on hover */
.turntable-container:hover .carousel-3d {
    animation-play-state: paused;
}

.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-gray);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

.arrow-down {
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid var(--primary-color);
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

/* About Section */
.about {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text {
    font-size: 1.1rem;
}

.about-text .lead {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-gray);
}

.about-stats {
    display: grid;
    gap: 1.5rem;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    color: var(--text-gray);
    margin-top: 0.5rem;
}

/* Projects Section */
.projects {
    background: var(--bg-darker);
}

.project-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--card-bg);
    color: var(--text-light);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 240, 255, 0.4);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 240, 255, 0.3);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 15, 0.4);
    backdrop-filter: blur(2px);
    transition: backdrop-filter 0.3s ease;
    z-index: 0;
}

.project-card:hover .project-image::before {
    backdrop-filter: blur(0px);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-btn {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--bg-dark);
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-btn:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.project-info {
    padding: 1.5rem;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
}

.project-logo-small {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0; /* Removed bottom margin as it's handled by row gap/margin */
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.project-link {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 auto 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(0, 240, 255, 0.05);
    text-align: center;
    width: fit-content;
}

.project-link:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateX(5px);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 240, 255, 0.2);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--primary-color);
}

/* Skills Section */
.skills {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-category {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    text-align: center;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.5rem 0;
    color: var(--text-gray);
    position: relative;
    padding-left: 1.5rem;
}

.skill-category li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background: var(--bg-dark);
}

.contact-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--border-glow);
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.3);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-glow);
}

.footer p {
    color: var(--text-gray);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--card-bg);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
}

.close {
    color: var(--text-gray);
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--primary-color);
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.15s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        min-height: 160vh;
        padding: 8rem 2rem 12rem;
    }

    .turntable-container {
        margin: 4rem auto 6rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .contact-methods {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        min-height: 250vh;
        padding: 6rem 1rem 30rem;
    }

    .hero-logo {
        width: 180px;
        height: 180px;
        max-width: 180px;
        max-height: 180px;
    }

    .turntable-container {
        height: 300px;
        margin: 4rem auto 20rem;
        
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}
