:root {
    --bg-color: #050505;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    overflow-x: hidden;
}

body {
    position: relative;
    min-height: 100vh;
}

/* Background Animated Blobs */
.blob-c {
    position: fixed;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    top: 0;
    left: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    filter: blur(90px);
    opacity: 0.5;
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
}

.blob1 {
    width: 400px;
    height: 400px;
    background: var(--accent-secondary);
    top: -100px;
    left: -100px;
}

.blob2 {
    width: 300px;
    height: 300px;
    background: var(--accent-primary);
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(100px, 50px) rotate(360deg);
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

nav.scrolled {
    padding: 1rem 5%;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -1px;
}

.hamburger {
    display: none;
    width: 40px;
    height: 28px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    transition: transform 0.35s ease, opacity 0.35s ease, background 0.35s ease;
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: calc(50% - 1.5px);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

.hamburger:hover span {
    transform: scaleX(1.05);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

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

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

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

/* Layout */
main {
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 0;
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

.highlight {
    color: var(--accent-primary);
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 240, 255, 0.1);
    border-color: rgba(0, 240, 255, 0.2);
}

/* Hero Section */
.hero {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-content {
    flex: 1;
}

.greeting {
    font-size: 1.2rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.glitch {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    position: relative;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.primary {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(112, 0, 255, 0.3);
}

.primary:hover {
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}

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

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

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    animation: pulseGlow 4s infinite alternate;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    }

    100% {
        box-shadow: 0 0 50px rgba(112, 0, 255, 0.6);
    }
}

/* About Section */
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Projects Section */
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 1rem auto 3rem auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
}

/* Gallery and Back Button Styles */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: start;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.15);
    z-index: 20;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 1rem;
    font-size: 0.95rem;
    color: var(--text-main);
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    z-index: 10;
}

/* Fixed 3:4 ratio gallery variant */
.gallery-fixed-ratio .gallery-item {
    aspect-ratio: 3 / 4;
}

.gallery-fixed-ratio .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fixed 16:9 widescreen gallery variant */
.gallery-widescreen .gallery-item {
    aspect-ratio: 16 / 9;
}

.gallery-widescreen .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item .image-placeholder {
    font-size: 2rem;
}

.project-image {
    width: 100%;
    height: 200px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    color: var(--accent-primary);
    background: linear-gradient(45deg, rgba(0, 240, 255, 0.05), rgba(112, 0, 255, 0.05));
}

.project-info {
    padding: 2rem;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* Education Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
    left: 20px;
    top: 0;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 2rem;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-primary);
    left: 13px;
    top: 30px;
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.date {
    display: inline-block;
    padding: 0.3rem 1rem;
    background: rgba(112, 0, 255, 0.2);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(112, 0, 255, 0.3);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Accordion / Experience Section */
.accordion-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.1);
}

.accordion-header {
    display: flex;
    flex-direction: column;
}

.accordion-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    font-size: 1.2rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.accordion-content-inner {
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 1rem;
}

.accordion-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.accordion-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.accordion-gallery .gallery-item {
    border-radius: 10px;
    height: 150px;
}

.accordion-gallery .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(0, 240, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.contact-card:hover .icon-box {
    background: var(--accent-primary);
    color: #000;
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-primary);
}

.contact-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.instagram-card {
    grid-column: 2;
    width: 100%;
}

.instagram-card .icon-box {
    margin: 0 auto 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
    color: var(--text-muted);
}

/* Animations and Interactivity */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        background: rgba(10, 10, 10, 0.96);
        backdrop-filter: blur(20px);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.35s ease, opacity 0.35s ease;
        opacity: 0;
        padding: 0 1.5rem;
    }
    
    .nav-links.active {
        right: 0;
        opacity: 1;
    }
    
    .nav-links li {
        margin: 0.6rem 0;
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: inline-block;
        width: 100%;
        max-width: 320px;
        padding: 0.75rem 1.2rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        color: var(--text-main);
        font-size: 1.15rem;
        font-weight: 600;
        transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    }

    .nav-links a:hover {
        background: linear-gradient(135deg, rgba(0, 240, 255, 0.18), rgba(112, 0, 255, 0.18));
        border-color: rgba(0, 240, 255, 0.28);
        transform: translateX(6px);
    }
    
    .nav-links a::after {
        display: none;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .image-wrapper {
        width: 300px;
        height: 300px;
        margin-top: 2rem;
    }

    .glitch {
        font-size: 3.5rem;
    }
    
    .project-grid, .contact-grid, .gallery-grid {
        grid-template-columns: 1fr;
    }

    .instagram-card {
        grid-column: auto;
    }
    
    .accordion-gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .glitch {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    section {
        padding: 60px 0;
    }
    
    .timeline::before {
        left: 10px;
    }
    
    .timeline-item {
        padding-left: 35px;
    }
    
    .timeline-dot {
        left: 3px;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-modal.active {
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    object-fit: contain;
}

.lightbox-modal.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--accent-primary);
    text-decoration: none;
    cursor: pointer;
}