/* --- GOOGLE FONT --- */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

/* --- GLOBAL STYLES & RESET --- */
:root {
    --neon-blue: #00d9ff;
    --background-color: #000000;
    --text-color: #e0e0e0;
    --glow-color: rgba(0, 217, 255, 0.546);
    --card-bg: rgba(22, 22, 22, 0.6);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    font-family: 'Exo 2', sans-serif;
    /* cursor: none; */
    overflow-x: hidden;
}




/* --- LAYOUT & SECTIONS --- */
section {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
}

/* --- NAVIGATION BUTTONS --- */
.nav-button {
    position: fixed;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-color);
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.nav-button:hover {
    color: white;
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-color), 0 0 30px var(--glow-color) inset;
    transform: translateY(-2px);
}

.nav-about {
    top: 3rem;
    left: 3rem;
}

.nav-tech {
    bottom: 3rem;
    right: 3rem;
}

.nav-projects {
    top: 3rem;
    right: 3rem;
}

.nav-resume {
    bottom: 3rem;
    left: 3rem;
}


/* --- HERO SECTION --- */
#home {
    flex-direction: column;
    text-align: center;
    position: relative; 
}

@keyframes slideUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-0.3em); /* Slide up */
  }
  75% {
    transform: translateY(0.3em);  /* Slide down */
  }
}

.hero-intro {
    font-size: 2.5rem;
    font-weight: 300;
}

.hero-name {
    font-size: 8rem;
    font-weight: 900;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--glow-color),
                 0 0 20px var(--glow-color),
                 0 0 40px var(--glow-color);
    margin: 3rem 0;
    display: flex;
    line-height: 1;
    cursor: pointer;
}

.hero-name .letter {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease, text-shadow 0.3s ease;
    position: relative;
}

/* 🔥 Hover per-letter glow */
.hero-name .letter:hover {
    color: #00cfff;
    text-shadow: 
        0 0 20px #00cfff,
        0 0 40px #00cfff,
        0 0 60px #00cfff,
        0 0 100px #00cfff;
}

/* Odd letters spin clockwise on hover */
.hero-name .letter:nth-child(odd):hover {
    animation: spinClockwise 0.6s linear infinite;
}

/* Even letters spin anti-clockwise on hover */
.hero-name .letter:nth-child(even):hover {
    animation: spinAnti 0.6s linear infinite;
}

@keyframes spinClockwise {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes spinAnti {
    0%   { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(-360deg) scale(1); }
}




.hero-title {
    font-size: 2rem;
    font-weight: 500;
    font-style: italic;
}

.socials {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1.5rem;
}


.socials a {
    color: var(--text-color);
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.socials a:hover {
    color: var(--neon-blue);
    transform: scale(1.2) translateY(-3px);
    filter: drop-shadow(0 0 10px var(--glow-color));
}




/* --- SHARED STYLES FOR ABOUT & TECH --- */
.section-container {
    display: flex;
    width: 100%;
    max-width: 1200px;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
}

.section-title {
    font-size: 9rem;
    font-weight: 900;
    color: white;
    position: relative;
    flex-basis: 40%;
    text-align: center;
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 35%;
    left: 35%;
    transform: translate(-50%, -50%);
    -webkit-text-stroke: 2px var(--neon-blue);
    -webkit-text-fill-color: transparent;
    z-index: -1;
    filter: drop-shadow(0 0 15px var(--glow-color));
    transition: all 0.3s ease;
}

.section-title:hover::before {
    transform: translate(-52%, -52%);
}

.section-content {
    flex-basis: 60%;
}

/* --- ABOUT ME SECTION --- */
#about .section-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}



.bio {
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.bio-highlight {
    color: var(--neon-blue);
    font-weight: 600;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    padding-bottom: 2.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.timeline-item:last-child {
    border-left: 2px solid transparent;
    padding-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 1px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--background-color);
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--glow-color);
    transition: transform 0.3s ease;
}

.timeline-item:hover::before {
    transform: scale(1.2);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.timeline-meta {
    font-size: 0.9rem;
    color: var(--neon-blue);
    margin-bottom: 0.75rem;
}

.timeline-details {
    list-style-type: none;
    padding-left: 0;
}

.timeline-details li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.timeline-details li::before {
    content: '•';
    color: var(--neon-blue);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}




/* --- PROJECT SECTION --- */


#projects .section-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.section-pro-title {
    font-size: 6.2rem;
    font-weight: 900;
    color: white;
    position: relative;
    flex-basis: 40%;
    text-align: center;
}

.section-pro-title::before {
    content: attr(data-text);
    position: absolute;
    top: 35%;
    left: 35%;
    transform: translate(-50%, -50%);
    -webkit-text-stroke: 2px var(--neon-blue);
    -webkit-text-fill-color: transparent;
    z-index: -1;
    filter: drop-shadow(0 0 15px var(--glow-color));
    transition: all 0.3s ease;
}

.section-pro-title:hover::before {
    transform: translate(-52%, -52%);
}



/* --- TECH SET SECTION --- */
.tech-categories {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tech-category h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #aaa;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(0, 217, 255, 0.15);
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px var(--glow-color);
}

.tech-icon svg {
    width: 40px;
    height: 40px;
    filter: grayscale(80%) brightness(1.5);
    transition: filter 0.3s ease;
}

.tech-icon:hover svg {
    filter: grayscale(0%) brightness(1);
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 1024px) {
    .hero-name { font-size: 6rem; }
    .hero-intro, .hero-title { font-size: 1.8rem; }
    .section-container { flex-direction: column; text-align: center; }
    .section-title { font-size: 5rem; margin-bottom: 2rem; }
    .section-pro-title { font-size: 3.5rem; margin-bottom: 1.5rem; }  
    .section-content { flex-basis: 100%; }
    #about .section-content { padding: 1.5rem; text-align: left; }
}

@media (max-width: 768px) {
    body { cursor: default; }

    .hero-name { font-size: 4rem; }
    .hero-intro, .hero-title { font-size: 1.5rem; }

    .nav-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .nav-about { top: 1rem; left: 1rem; }
    .nav-tech { bottom: 1rem; right: 1rem; }
    .nav-projects { top: 1rem; right: 1rem; }
    .nav-resume { bottom: 1rem; left: 1rem; } 
    .socials { bottom: 1.5rem; }

    section { padding: 4rem 1rem; }
    .section-title { font-size: 3.5rem; }
    
    .tech-icon {
        width: 60px;
        height: 60px;
    }
    .tech-icon svg {
        width: 30px;
        height: 30px;
    }
    .tech-icons {
        justify-content: center;
    }
}

.ripple-container {
  position: fixed;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1; 
}

.ripple {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 200, 255, 0.7); /* Blue glowing ripple */
  transform: scale(0);
  animation: rippleAnimation 1s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnimation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}



/* --- PROJECT SECTION --- */
#contact .section-content {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    background: rgba(30, 30, 30, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    color: var(--text-color);
    font-family: 'Exo 2', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-color);
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--neon-blue);
    background: transparent;
    border: 2px solid var(--neon-blue);
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: none; /* Inherits custom cursor */
}

.submit-button:hover {
    color: white;
    background: rgba(0, 217, 255, 0.2);
    box-shadow: 0 0 20px var(--glow-color);
    transform: translateY(-2px);
}




/* --- FORM SUBMISSION TOOLTIP --- */
#form-status {
    /* Positioning */
    position: relative;
    bottom: -10rem;
    left: 0rem;
    z-index: 1000;

    /* Styling to match your website */
    background: rgba(22, 22, 22, 0.7); /* --card-bg with more opacity */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    backdrop-filter: blur(8px);
    
    /* Font */
    color: var(--text-color);
    font-weight: 500;
    
    /* Initial State (Hidden) */
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none; /* Can't be clicked when hidden */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* State when the tooltip is visible */
#form-status.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Success State (Green/Blue Glow) */
#form-status.success {
    border-color: var(--neon-blue);
    box-shadow: 0 0 15px var(--glow-color);
    color: greenyellow;
}

/* Error State (Red Glow) */
#form-status.error {
    border-color: #ff4d4d;
    box-shadow: 0 0 15px #ff4d4d88;
    color: red;
}