/* Reset */
* {margin:0; padding:0; box-sizing:border-box;}
html, body {
    font-family: 'Segoe UI', sans-serif;
    color: #fff;
    overflow-x: hidden;
    height: 100%;
}

/* === Custom Scrollbar Styling === */
::-webkit-scrollbar {
    width: 10px; /* Width of the entire scrollbar */
}

::-webkit-scrollbar-track {
    background: #1a1a1a; /* Color of the tracking area */
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7b2ff7, #f107a3); /* Gradient for the scrollbar handle */
    border-radius: 10px; /* Rounded corners on the handle */
    border: 2px solid #1a1a1a; /* Creates a padding effect */
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #8c42f7, #f735b3); /* Brighter gradient on hover */
}

a {color: inherit; text-decoration: none;}

/* Header for About Page */
.about-header {
    /* position: sticky; REMOVED TO PREVENT GAP */
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(15,15,15,0.9);
    backdrop-filter: blur(10px);
}
.back-button {
    font-weight: bold;
    transition: transform 0.3s ease;
}
.back-button:hover {
    transform: translateX(-5px);
}
.about-header .logo {
    margin: 0 auto;
    transform: translateX(-50%);
}

/* Background gradient waves */
.background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(120deg,#0d0d0d,#1a1a1a,#0d0d0d);
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    z-index: -2;
}
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Floating particles */
.particles {
    position: fixed; inset: 0;
    z-index: -1;
    overflow: hidden;
}
.particle {
    position: absolute;
    width: 6px; height: 6px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: float 20s linear infinite;
}
@keyframes float {
    from { transform: translateY(100vh) scale(0.5); opacity:0; }
    to { transform: translateY(-10vh) scale(1); opacity:1; }
}

/* About Page Navigation - STYLED LIKE INDEX.HTML */
.about-nav {
    display: flex;
    justify-content: center;
    padding: 1rem;
    background: rgba(20,20,20,0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0; /* Stick to the top on scroll */
    z-index: 99;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.about-nav a {
    margin: 0 1.5rem;
    font-weight: 500;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.about-nav a:hover {
    transform: translateY(-2px);
}
.about-nav a::after {
    content: "";
    position: absolute;
    width: 0%; height: 2px;
    bottom: -4px; left: 0;
    background: linear-gradient(90deg,#7b2ff7,#f107a3);
    transition: width .3s;
}
.about-nav a:hover::after,
.about-nav a.active::after {
    width: 100%;
}

/* Sections on About Page */
.about-section {
    padding: 12rem 2rem;
    max-width: 800px;
    margin: auto;
}
.about-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3.5rem;
    position: relative;
}
.about-section h2::after {
    content: "";
    width: 60px; height: 3px;
    background: linear-gradient(90deg,#7b2ff7,#f107a3);
    position: absolute;
    left: 50%; transform: translateX(-50%);
    bottom: -10px;
}
.about-content p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-align: justify;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    text-align: center;
}
.skills-grid .skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease; 
}

.skills-grid .skill-card:hover {
    cursor: pointer;
    transform: translateY(-5px) scale(1.05); /* Lifts and enlarges the card */
    box-shadow: 0 0 25px rgba(123, 47, 247, 0.5); /* Adds a purple highlight/glow effect */
}

/* Footer */
footer {
    text-align:center;
    padding: 3rem;
    font-size: 0.9rem;
    color: #aaa;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 1s ease-out, transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transition-delay: var(--delay, 0s);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive for About Page */
@media (max-width: 768px) {
    .about-header .logo {
        transform: translateX(0);
        margin-left: auto;
        margin-right: 2rem;
    }
    .about-nav {
        flex-wrap: wrap;
        justify-content: center;
        padding: 1rem 0;
        top: 0;
    }
    .about-nav a {
        margin: 0.5rem 1rem;
    }
    .about-section {
        padding: 6rem 1.5rem;
    }
}

/* === Laughing Animation === */
.laugh-animate {
  display: inline-block; /* Makes transform animations work correctly */
  animation: shake 0.8s infinite ;
}

@keyframes shake {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-2deg); }
  20% { transform: translate(-3px, 0px) rotate(2deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(2deg); }
  50% { transform: translate(-1px, 2px) rotate(-2deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-2deg); }
  80% { transform: translate(-1px, -1px) rotate(2deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-2deg); }
}

/* Animated text */
.animated-text {
    font-size: 1.1rem;
    font-weight: bold;
    background: linear-gradient(90deg, #7b2ff7, #f107a3, #7b2ff7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 300% 300%;
    animation: gradientFlow 6s ease infinite;
}
@keyframes gradientFlow {
    0% {background-position: 0% 50%;}
    50% {background-position: 100% 50%;}
    100% {background-position: 0% 50%;}
}