/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden; /* Fixes the zoom-out issue */
    width: 100%;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #111827;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden; /* Prevents animations from creating scrollbars */
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
    animation: slideDown 0.8s ease-out;
}

.navbar.scrolled {
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
    text-decoration: none;
    z-index: 1001; /* Keeps logo above mobile menu */
    position: relative;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover,
.nav-link.active {
    color: #60a5fa;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2000; /* Important: Keeps hamburger on top of everything */
    padding: 10px; /* Makes it easier to tap */
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #111827 0%, rgba(59, 130, 246, 0.1) 50%, rgba(147, 51, 234, 0.1) 100%);
    animation: gradientShift 8s ease-in-out infinite;
}

.hero-background::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, 0.15), transparent 50%);
    animation: float 6s ease-in-out infinite;
}

.hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 80%, rgba(147, 51, 234, 0.15), transparent 50%);
    animation: float 8s ease-in-out infinite reverse;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 10;
}

.hero-image {
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
    animation: slideInLeft 1.2s ease forwards;
}

.profile-img {
    width: 320px;
    height: 320px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease;
}

.profile-img:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 35px 70px rgba(59, 130, 246, 0.3);
    border-color: rgba(59, 130, 246, 0.6);
}

.hero-text {
    flex: 1;
    text-align: left;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1.2s ease 0.3s forwards;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #a855f7, #ec4899);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 4s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #d1d5db;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-description {
    font-size: 1.125rem;
    color: #9ca3af;
    margin-bottom: 2.5rem;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.9s both;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 1.2s both;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #1f2937;
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.social-link svg {
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.social-link:hover svg {
    transform: rotate(360deg);
}

.cta-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out 1.5s both;
    text-decoration: none;
    display: inline-block;
}

.cta-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-button:hover::before {
    opacity: 0;
}

.cta-button:hover {
    transform: scale(1.05) translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.4);
    font-size: 1.09rem;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    color: #9ca3af;
    animation: bounce 2s infinite ease-in-out;
    transition: transform 0.3s ease, color 0.3s ease;
    font-size: 30px;
}

.scroll-indicator:hover {
    color: #ffffff;
    transform: translateX(-50%) scale(1.2);
}

/* Section Styles */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    border-radius: 2px;
    animation: expandWidth 0.8s ease-out 0.5s both;
}

/* About Section */
.about {
    background: rgba(31, 41, 55, 0.5);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
}

.about-text p {
    font-size: 1.125rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.about-text p:nth-child(1) { animation-delay: 0.2s; }
.about-text p:nth-child(2) { animation-delay: 0.4s; }
.about-text p:nth-child(3) { animation-delay: 0.6s; }

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.highlight-card {
    background: rgba(17, 24, 39, 0.5);
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #374151;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateY(50px) scale(0.9);
    animation: cardSlideIn 0.8s ease forwards;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(147, 51, 234, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.highlight-card:hover::before {
    opacity: 1;
}

.highlight-card:nth-child(1) { animation-delay: 0.1s; }
.highlight-card:nth-child(2) { animation-delay: 0.2s; }
.highlight-card:nth-child(3) { animation-delay: 0.3s; }
.highlight-card:nth-child(4) { animation-delay: 0.4s; }

.highlight-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.2);
}

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: iconFloat 3s ease-in-out infinite;
    position: relative;
    z-index: 1;
}

.highlight-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.highlight-card p {
    color: #9ca3af;
    font-size: 0.875rem;
    position: relative;
    z-index: 1;
}

/* Education Section */
.education {
    background: #111827;
}

.education-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    background: rgba(31, 41, 55, 0.5);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #374151;
    transition: all 0.4s ease;
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out forwards;
    position: relative;
    overflow: hidden;
}

.education-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.education-item:hover::before {
    transform: scaleY(1);
}

.education-item:nth-child(1) { animation-delay: 0.1s; }
.education-item:nth-child(2) { animation-delay: 0.3s; }
.education-item:nth-child(3) { animation-delay: 0.5s; }

.education-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.education-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.education-item:hover .education-icon {
    transform: scale(1.1) rotate(360deg);
    animation: none;
}

.education-content {
    flex: 1;
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.education-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
    transition: color 0.3s ease;
}

.education-item:hover .education-header h3 {
    color: #60a5fa;
}

.education-year {
    color: #60a5fa;
    font-weight: 600;
    font-size: 0.9rem;
}

.education-field {
    font-size: 1.125rem;
    color: #60a5fa;
    font-weight: 600;
}

.education-grade {
    color: #10b981;
    font-weight: 600;
}

.education-institution {
    font-size: 1.25rem;
    color: #d1d5db;
    font-weight: 500;
    margin-bottom: 1rem;
}

.education-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #9ca3af;
    flex-wrap: wrap;
}

.education-description {
    color: #d1d5db;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #111827;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

.contact-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.125rem;
    color: #d1d5db;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(31, 41, 55, 0.5);
    border-radius: 0.5rem;
    border: 1px solid #374151;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-item:hover {
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateX(10px) scale(1.05);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.2);
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.2) rotate(360deg);
}

.contact-item div span {
    color: #ffffff;
    font-weight: 500;
}

.contact-item div a {
    color: #ffffff;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item div a:hover {
    color: #60a5fa;
}

.contact-label {
    display: block;
    color: #9ca3af;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Contact Social Links */
.contact-social {
    margin-top: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.contact-social h4 {
    font-size: 1.125rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.social-links-footer {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-link-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1f2937;
    border-radius: 50%;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #374151;
}

.social-link-footer:hover {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
    border-color: transparent;
}

.contact-form {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 1s ease-out 0.5s forwards;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9ca3af;
}

.contact-form textarea {
    resize: none;
    margin-bottom: 1.5rem;
}

.submit-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border: none;
    border-radius: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    position: relative;
    overflow: hidden;
}

.submit-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #60a5fa, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.submit-button:hover::before {
    opacity: 1;
}

.submit-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.4);
}

.submit-button:disabled {
    cursor: not-allowed;
}

.submit-button span {
    position: relative;
    z-index: 1;
}

.button-icon {
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.submit-button:hover .button-icon {
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: #0f172a;
    border-top: 1px solid #374151;
    margin-top: 5rem;
    padding: 3rem 0 1.5rem;
    color: #9ca3af;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-left {
    text-align: left;
}

.footer-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #9ca3af;
    font-size: 0.9rem;
}

.footer-center {
    text-align: center;
}

.footer-center h4 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-nav a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #60a5fa;
}

.footer-right {
    text-align: right;
}

.footer-right h4 {
    color: #e2e8f0;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-contact-item {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.contact-icon-small {
    margin-right: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 1px solid #374151;
}

.footer-made {
    color: #9ca3af;
    font-size: 0.875rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.875rem;
}

.heart {
    color: #ef4444;
}

/* Responsive Design - UPDATED FOR MOBILE FIXES */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .profile-img {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0; /* Ensures full height from top */
        flex-direction: column;
        background: rgba(17, 24, 39, 0.98);
        width: 100%;
        height: 100vh; /* Full viewport height */
        text-align: center;
        transition: all 0.3s ease;
        padding-top: 5rem; /* Space for items below the top bar */
        backdrop-filter: blur(12px);
    }

    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.25rem;
        display: block;
        padding: 1rem 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 1rem;
        margin-top: 4rem; /* Adds space so hero isn't hidden by nav */
    }

    .hero-text {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }

    .social-links {
        justify-content: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .education-item {
        flex-direction: column;
        text-align: center;
    }

    .education-header {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .education-details {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-left,
    .footer-right {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .footer-social {
        gap: 1rem;
        justify-content: center;
        display: flex;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .profile-img {
        width: 180px;
        height: 180px;
    }

    .social-link {
        width: 44px;
        height: 44px;
    }

    .social-link svg {
        width: 20px;
        height: 20px;
    }

    .cta-button {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .education-header h3 {
        font-size: 1.25rem;
    }

    .education-institution {
        font-size: 1rem;
    }

    .contact-info h3 {
        font-size: 1.25rem;
    }

    .contact-info p {
        font-size: 1rem;
    }
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    }
    to {
        text-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
    }
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
}

@keyframes blink {
    0%, 50% { border-color: #60a5fa; }
    51%, 100% { border-color: transparent; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInRightNotification {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Scroll animations trigger */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Focus and Error Styles */
*:focus {
    outline: 2px solid rgba(59, 130, 246, 0.5);
    outline-offset: 2px;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    opacity: 0;
    animation: fadeInUp 0.3s ease-out forwards;
}
