/* 
=======================================
   GLOBAL VARIABLES & RESET
=======================================
*/
:root {
    --bg-color: #0d0f1a;
    --text-color: #f1f2f6;
    --acc-color: #4cd137;
    --acc-color-hover: #44bd32;
    --sec-bg: #131728;
    --border-color: rgba(255, 255, 255, 0.1);

    --font-main: 'Inter', sans-serif;

    --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: #0d0f1a;
}

body {
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background: transparent;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Super-boosted background for immediate visibility */
    background:
        radial-gradient(circle at 10% 10%, rgba(76, 209, 53, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(0, 168, 255, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(156, 136, 255, 0.2) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 0, 128, 0.15) 0%, transparent 40%);
    z-index: -1;
    filter: blur(80px);
    animation: aurora 25s infinite alternate ease-in-out;
    pointer-events: none;
}

@keyframes aurora {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(2%, 2%) scale(1.1);
    }

    100% {
        transform: translate(-2%, -2%) scale(1);
    }
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* 
=======================================
   TYPOGRAPHY
=======================================
*/
h1,
h2,
h3 {
    font-weight: 800;
}

p {
    color: #a4b0be;
    font-weight: 300;
}

/* 
=======================================
   REUSABLE UTILITIES
=======================================
*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--acc-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: var(--acc-color);
    color: var(--bg-color);
    font-weight: 600;
    border-radius: 30px;
    border: 2px solid var(--acc-color);
    transition: var(--transition);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background: transparent;
    color: var(--acc-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(76, 209, 55, 0.3);
}

/* 
=======================================
   NAVIGATION
=======================================
*/
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: transparent;
}

nav.scrolled {
    background: rgba(13, 15, 26, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px 5%;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--acc-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--acc-color);
}

/* 
=======================================
   HERO SECTION
=======================================
*/
#hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    position: relative;
    background: transparent;
}

.hero-content {
    animation: fadeIn 1s ease-out forwards;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    display: inline-block;
}

/* Glitch Effect */
.glitch {
    position: relative;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(25px, 9999px, 88px, 0);
    }

    20% {
        clip: rect(69px, 9999px, 14px, 0);
    }

    40% {
        clip: rect(38px, 9999px, 7px, 0);
    }

    60% {
        clip: rect(93px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(54px, 9999px, 51px, 0);
    }

    100% {
        clip: rect(10px, 9999px, 25px, 0);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(10px, 9999px, 60px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 30px, 0);
    }

    60% {
        clip: rect(5px, 9999px, 85px, 0);
    }

    80% {
        clip: rect(40px, 9999px, 15px, 0);
    }

    100% {
        clip: rect(90px, 9999px, 45px, 0);
    }
}

.subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mouse scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: #a4b0be;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
    animation: bounce 2s infinite;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #a4b0be;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 5px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: #a4b0be;
    border-radius: 2px;
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(15px);
        opacity: 0;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* 
=======================================
   ABOUT SECTION
=======================================
*/
.about-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.pfp-frame {
    width: 280px;
    height: 280px;
    margin: 0 auto;
    border-radius: 50%;
    position: relative;
    padding: 8px;
    background: transparent;
    box-shadow: 0 0 40px rgba(76, 209, 55, 0.25);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pfp-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: conic-gradient(var(--acc-color),
            #00a8ff,
            #9c88ff,
            #fbc531,
            var(--acc-color));
    animation: rotate-conic 4s linear infinite;
    z-index: 1;
}

@keyframes rotate-conic {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.pfp-frame::after {
    content: '';
    position: absolute;
    inset: 6px;
    background: var(--bg-color);
    border-radius: 50%;
    z-index: 2;
}

.pfp-frame img {
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    object-fit: cover;
    object-position: center 15%;
    transform: scale(1.45);
    border-radius: 50%;
    position: relative;
    z-index: 3;
    filter: none !important;
}



.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.skills-list li {
    background: var(--sec-bg);
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.skills-list li:hover {
    border-color: var(--acc-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(76, 209, 55, 0.2);
}

.skills-list.small li {
    padding: 6px 14px;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* 
=======================================
   EDUCATION TIMELINE
=======================================
*/
.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 13.5px;
    top: 5px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--acc-color);
    box-shadow: 0 0 10px rgba(76, 209, 55, 0.5);
    z-index: 1;
}

.timeline-content {
    background: var(--sec-bg);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--acc-color);
    transform: translateX(5px);
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--acc-color);
    margin-bottom: 15px;
    font-weight: 600;
}

/* 
=======================================
   GALLERY SLIDER
=======================================
*/
.gallery-section {
    position: relative;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 30px;
    padding: 20px 10px;
    scrollbar-width: none;
    /* Hide scrollbar Firefox */
    -ms-overflow-style: none;
    /* Hide scrollbar IE/Edge */
}

.slider-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar Chrome/Safari/Opera */
}

.slide {
    flex: 0 0 350px;
    background: var(--sec-bg);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    cursor: grab;
}

.slide:active {
    cursor: grabbing;
}

.slide:hover {
    transform: translateY(-10px);
    border-color: var(--acc-color);
    box-shadow: 0 15px 40px rgba(76, 209, 55, 0.2);
}

.slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.slide:hover img {
    transform: scale(1.05);
}

.slide-info {
    padding: 25px;
    background: rgba(19, 23, 40, 0.85);
    backdrop-filter: blur(10px);
    position: absolute;
    bottom: 0;
    width: 100%;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
    border-top: 1px solid var(--border-color);
}


.slide:hover .slide-info {
    transform: translateY(0);
    opacity: 1;
}

.slide-info h3 {
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 5px;
}

.slide-info p {
    font-size: 0.9rem;
    color: var(--acc-color);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(13, 15, 26, 0.8);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.slider-btn:hover {
    background: var(--acc-color);
    color: var(--bg-color);
    border-color: var(--acc-color);
}

.prev {
    left: -25px;
}

.next {
    right: -25px;
}

@media (max-width: 1100px) {
    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .slide {
        flex: 0 0 280px;
    }
}


/* 
=======================================
   PROJECTS SECTION
=======================================
*/
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--sec-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--acc-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.project-image {
    height: 200px;
    width: 100%;
}

.project-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-info p {
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.project-link {
    font-weight: 600;
    color: var(--acc-color);
    display: inline-flex;
    align-items: center;
    width: fit-content;
}

.project-link:hover {
    color: #fff;
    letter-spacing: 1px;
}

/* 
=======================================
   CONTACT SECTION
=======================================
*/
#contact {
    text-align: center;
}

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: var(--sec-bg);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.contact-desc {
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.contact-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* 
=======================================
   FOOTER
=======================================
*/
footer {
    text-align: center;
    padding: 30px;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

footer p {
    font-size: 0.9rem;
}

/* 
=======================================
   ANIMATIONS
=======================================
*/
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
=======================================
   RESPONSIVE DESIGN
=======================================
*/
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* simple hidden state for mobile, could add a hamburger menu */
    }

    .section {
        padding: 60px 0;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }
}