:root {
    --bg-color: #0a0a0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #3b82f6;
    /* Bright Blue */
    --accent-glow: rgba(59, 130, 246, 0.5);
    --gradient-1: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background: var(--bg-color);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Cursor Glow Effect */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0.8;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.dot {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 0.95rem;
}

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

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

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

/* Active Nav Link */
.nav-links a.active {
    color: var(--accent);
}

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

/* Hamburger */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    position: relative;
    gap: 2rem;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
}

.greeting {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    height: 1.2em; /* fixed height for typing effect */
}

/* Typing Cursor */
.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: var(--accent);
    margin-left: 5px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.subtitle .accent {
    color: var(--accent);
    font-weight: 600;
}

.bio-snippet {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 450px;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.btn {
    padding: 0.8rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
}

.btn.primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn.secondary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    background: transparent;
}

.btn.secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.hero-visual {
    position: absolute;
    right: 36%;
    top: 50%;
    transform: translateY(-50%);
    width: 32vw;
    height: 48vh;
    z-index: 1;
}

.circle-blur {
    width: 300px;
    height: 300px;
    background: var(--accent);
    filter: blur(80px);
    opacity: 0.2;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    position: absolute; /* Fix position */
    z-index: -1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-20px) scale(1.1);
    }
}

/* Sections */
.section {
    padding: 6rem 10%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 4px;
    background: var(--accent);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

/* About Grid */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.about-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.about-text strong {
    color: var(--text-primary);
}

.skills-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, border-color 0.3s ease;
}

.skills-container.visible {
    opacity: 1;
    transform: translateX(0);
}

.skills-container h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    margin: 0 0.5rem 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition);
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

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

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

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

.card-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tech-stack {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tech-stack span {
    font-size: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    color: #ccc;
}

.card-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.card-link:hover {
    text-decoration: underline;
}

.coming-soon {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* Contact Footer */
footer {
    padding: 4rem 10%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    text-align: center;
    margin-top: 4rem;
}

footer h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--accent);
    transform: scale(1.1);
    border-color: var(--accent);
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.5;
}


/* Profile Image */
.img-container {
    width: 100%;
    height: 100%;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.3s ease;
    filter: drop-shadow(0 10px 30px rgba(59, 130, 246, 0.3));
}

.img-container:hover .profile-img {
    transform: scale(1.05);
    filter: drop-shadow(0 15px 40px rgba(59, 130, 246, 0.5));
}

/* Press Links */
.press-link {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, background 0.3s ease;
}

.press-link.visible {
    opacity: 1;
    transform: translateX(0);
}

.press-link strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.underline-link {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--accent);
    padding-bottom: 2px;
    transition: var(--transition);
}

.underline-link:hover {
    color: var(--accent);
}


/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar {
        padding: 1.5rem 2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding-top: 100px;
        gap: 3rem;
    }

    .bio-snippet {
        margin: 0 auto 2.5rem auto;
    }

    .hero h1 {
        font-size: 3rem;
    }

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

    .hero-visual {
        position: relative;
        width: 250px;
        height: 250px;
        top: auto;
        right: auto;
        transform: none;
    }

    .img-container {
        width: 250px;
        height: 250px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        transform: translateY(20px);
    }
    
    .about-grid.visible {
        transform: translateY(0);
    }
    
    .skills-container {
        transform: translateY(20px);
    }
    
    .skills-container.visible {
        transform: translateY(0);
    }

    .section {
        padding: 4rem 5%;
    }
}

/* Button Group Alignment */
.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.course-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.course-card:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.course-name {
    color: var(--text-primary);
    font-weight: 500;
}

.course-grade {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- NEW STYLES --- */

/* Leadership Block */
.leadership-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.leadership-block.visible {
    opacity: 1;
    transform: translateY(0);
}

.leadership-block h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.leadership-block h3 i {
    color: var(--accent);
}

.highlight-box {
    background: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--accent);
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    color: #ddd;
    font-style: italic;
    margin-top: 1rem;
}

/* Skill Categories */
.skill-category {
    margin-bottom: 1.5rem;
}

.category-title {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
}

/* Education Header */
.education-header {
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.education-header.visible {
    opacity: 1;
    transform: translateY(0);
}

.education-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.uni-name {
    color: var(--accent);
    font-weight: 500;
}

/* Badges */
.badge-wip {
    font-size: 0.7rem;
    background: #eab308;
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    vertical-align: middle;
    margin-left: 0.5rem;
    font-weight: 700;
}

/* Staggered Animation */
.education-grid .course-card,
.projects-grid .project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* We will handle the actual delay triggering in JS or via classes */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Work Experience Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: rgba(59, 130, 246, 0.2);
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 3rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

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

.timeline-content {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

.timeline-date {
    display: block;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-role {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-company {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    display: block;
}

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

.timeline-list li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Section Specific Styles for Visual Flow */

/* About: Semi-transparent with blue tint */
#about {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(10, 10, 15, 0.9) 50%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* Experience: Semi-transparent to show starfield */
#experience {
    background: linear-gradient(180deg, rgba(13, 13, 20, 0.85) 0%, rgba(10, 10, 18, 0.85) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 0 100px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

/* Education: Semi-transparent with purple accent */
#education {
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(139, 92, 246, 0.08) 50%, rgba(10, 10, 15, 0.9) 100%);
    position: relative;
    overflow: hidden;
}

/* Projects: Semi-transparent with tech grid pattern */
#projects {
    background-color: rgba(10, 10, 15, 0.85);
    background-image: 
        radial-gradient(rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
    background-size: 40px 40px, 100% 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

/* ======================================
   FLOATING SHAPES & ANIMATED ELEMENTS
   ====================================== */

/* Floating Shape Base */
.floating-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.15;
    z-index: 0;
}

/* Circle Shape */
.shape-circle {
    border-radius: 50%;
    background: var(--gradient-1);
    filter: blur(60px);
}

/* Ring Shape */
.shape-ring {
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: transparent;
}

/* Square Shape */
.shape-square {
    background: linear-gradient(135deg, var(--accent), #8b5cf6);
    border-radius: 15px;
    filter: blur(40px);
}

/* Triangle Shape (using borders) */
.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid var(--accent);
    filter: blur(30px);
}

/* Dot Grid Pattern */
.shape-dots {
    background-image: radial-gradient(var(--accent) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
}

/* Line Shape */
.shape-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* Animations for floating shapes */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) translateX(10px) rotate(3deg);
    }
    50% {
        transform: translateY(-10px) translateX(-10px) rotate(-3deg);
    }
    75% {
        transform: translateY(-25px) translateX(5px) rotate(2deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

@keyframes drift {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    33% {
        transform: translateX(20px) translateY(-10px);
    }
    66% {
        transform: translateX(-15px) translateY(5px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes expandRing {
    0% {
        transform: scale(0.8);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.1;
    }
    100% {
        transform: scale(0.8);
        opacity: 0.3;
    }
}

/* Specific Shape Positions and Sizes per Section */

/* Hero floating elements */
.hero .shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 5%;
    animation: floatSlow 8s ease-in-out infinite;
}

.hero .shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 15%;
    animation: pulse 6s ease-in-out infinite;
}

/* About floating elements */
#about .shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: floatMedium 12s ease-in-out infinite;
}

#about .shape-2 {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 5%;
    animation: expandRing 8s ease-in-out infinite;
}

#about .shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation: drift 15s ease-in-out infinite;
}

/* Experience floating elements */
#experience .shape-1 {
    width: 250px;
    height: 250px;
    top: 10%;
    right: 5%;
    animation: pulse 10s ease-in-out infinite;
}

#experience .shape-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    left: 10%;
    animation: floatSlow 10s ease-in-out infinite;
}

/* Education floating elements */
#education .shape-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    left: -50px;
    animation: floatMedium 14s ease-in-out infinite;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
}

#education .shape-2 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 5%;
    animation: expandRing 10s ease-in-out infinite;
    border-color: #8b5cf6;
}

/* Projects floating elements */
#projects .shape-1 {
    width: 180px;
    height: 180px;
    top: 15%;
    left: 5%;
    animation: drift 12s ease-in-out infinite;
}

#projects .shape-2 {
    width: 250px;
    height: 250px;
    bottom: 5%;
    right: -50px;
    animation: floatSlow 15s ease-in-out infinite;
}

#projects .shape-3 {
    width: 80px;
    height: 80px;
    top: 40%;
    right: 20%;
    animation: pulse 8s ease-in-out infinite;
    border-color: #8b5cf6;
}

/* ======================================
   SCROLL ANIMATIONS
   ====================================== */

/* Base state for animated elements */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Slide from left */
.animate-slide-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Slide from right */
.animate-slide-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up */
.animate-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0s; }
.stagger-children > *:nth-child(2) { transition-delay: 0.1s; }
.stagger-children > *:nth-child(3) { transition-delay: 0.2s; }
.stagger-children > *:nth-child(4) { transition-delay: 0.3s; }
.stagger-children > *:nth-child(5) { transition-delay: 0.4s; }
.stagger-children > *:nth-child(6) { transition-delay: 0.5s; }

/* Timeline items animation */
.timeline-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline-item:nth-child(1) { transition-delay: 0s; }
.timeline-item:nth-child(2) { transition-delay: 0.15s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.45s; }

/* Section title animation */
.section-title {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section-title.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ======================================
   SECTION DIVIDERS
   ====================================== */

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 0;
    opacity: 0.3;
}

/* ======================================
   GLOW ACCENTS
   ====================================== */

/* Corner glow effects */
.corner-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.1;
    pointer-events: none;
}

.corner-glow.top-left {
    top: -150px;
    left: -150px;
    background: var(--accent);
}

.corner-glow.bottom-right {
    bottom: -150px;
    right: -150px;
    background: #8b5cf6;
}

/* ======================================
   PARALLAX EFFECT (CSS only)
   ====================================== */

@supports (background-attachment: fixed) {
    .parallax-bg {
        background-attachment: fixed;
    }
}

/* Responsive adjustments for floating shapes */
@media (max-width: 768px) {
    .floating-shape {
        opacity: 0.08;
    }
    
    .shape-circle,
    .shape-square {
        filter: blur(80px);
    }
    
    #about .shape-1,
    #experience .shape-1,
    #education .shape-1,
    #projects .shape-1 {
        width: 150px;
        height: 150px;
    }
    
    #about .shape-2,
    #experience .shape-2,
    #education .shape-2,
    #projects .shape-2 {
        display: none;
    }
}