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

html, body {
    overflow-x: hidden;
}

:root {
    --primary: #6C63FF;
    --primary-dark: #5A4CC4;
    --secondary: #FF6B6B;
    --accent: #4ECDC4;
    --light-bg: #F7F8FC;
    --dark: #1A1A2E;
    --text-gray: #6B7280;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* ===== NAVIGATION ===== */
.navbar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 1rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: white !important;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

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

/* ===== UNIFORM ROW SPACING ===== */
.section .row {
    row-gap: 1.5rem;
}

#certifications .col-md-6 > div {
    margin-bottom: 0 !important;
}

/* ===== HERO SECTION ===== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 150px 0 60px;
    margin-top: 70px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(30px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -2px;
}

.hero .subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(255, 107, 107, 0.6);
    background: #ff5252;
    color: white;
}

.cta-button-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
    box-shadow: none;
}

.cta-button-secondary:hover {
    background: white;
    color: var(--primary);
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
    position: relative;
    scroll-margin-top: 90px;
}

.section-bg {
    background: var(--light-bg);
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    margin-top: 3rem;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
}

.about-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.3);
    animation: bounceIn 0.8s ease-out;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== SKILLS SECTION ===== */
.skill-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid transparent;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.3);
    border-color: var(--primary);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    transform: scale(1.2) rotate(10deg);
}

.skill-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark);
}

.skill-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-filters {
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
}

.filter-btn:hover {
    transform: translateY(-3px);
}

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

.portfolio-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    cursor: pointer;
    height: 300px;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.4);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.9), rgba(78, 205, 196, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    flex-direction: column;
    gap: 1rem;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.portfolio-overlay p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===== EXPERIENCE SECTION ===== */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 3rem;
    width: 45%;
    position: relative;
}

.timeline-item:nth-child(odd) {
    margin-left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    margin-left: 55%;
}

.timeline-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.2);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 0.5rem;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid white;
    border-radius: 50%;
    transform: translateX(-50%) translateY(-50%);
    box-shadow: 0 0 0 4px var(--primary);
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-item:hover .timeline-dot {
    width: 30px;
    height: 30px;
    box-shadow: 0 0 0 8px rgba(108, 99, 255, 0.3);
}

.timeline-card h3 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline-card .date {
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.timeline-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        margin-left: 60px !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 20px;
    }
}

/* ===== CONTACT SECTION ===== */
.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(108, 99, 255, 0.3);
}

.contact-card:hover .contact-icon {
    animation: iconBounce 0.6s ease-in-out;
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-card h3 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.contact-card p {
    color: var(--text-gray);
}

a.contact-card {
    color: inherit;
}

a.contact-card:hover,
a.contact-card:hover h3,
a.contact-card:hover p,
a.contact-card:hover .contact-icon {
    color: var(--secondary);
}

.contact-card a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-card a:hover {
    color: var(--secondary);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(108, 99, 255, 0.25);
}

.form-control.is-invalid {
    border-color: var(--secondary);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.invalid-feedback {
    color: var(--secondary);
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.form-control.is-invalid + .invalid-feedback {
    display: block;
}

.form-alert {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
    display: none;
}

.form-alert-success {
    background: rgba(78, 205, 196, 0.15);
    color: #0d9488;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.form-alert-error {
    background: rgba(255, 107, 107, 0.15);
    color: #dc2626;
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: #f0f1f5;
    color: #333;
    padding: 3rem 0 1rem;
    text-align: center;
}

footer p {
    color: #555;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: var(--primary);
    text-decoration: none;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    line-height: 45px;
}

.social-links a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-5px) scale(1.1);
}

/* ===== REACTIONS ===== */
.reactions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 2px solid rgba(0, 0, 0, 0.15);
    border-radius: 25px;
    background: transparent;
    color: #555;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reaction-btn:hover:not(:disabled) {
    transform: translateY(-3px);
}

.reaction-like:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.reaction-love:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.reaction-dislike:hover:not(:disabled) {
    border-color: #999;
    color: #333;
}

.reaction-btn:disabled {
    cursor: default;
    opacity: 0.5;
}

.reaction-btn.active {
    opacity: 1 !important;
}

.reaction-like.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.reaction-love.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.reaction-dislike.active {
    background: #e0e0e0;
    border-color: #ccc;
    color: #333;
}

/* ===== FLOATING REACTION SIDEBAR ===== */
.reaction-sidebar {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) translateX(-100%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(26, 26, 46, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0 12px 12px 0;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-sidebar.visible {
    transform: translateY(-50%) translateX(0);
}

.sidebar-reaction-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 48px;
}

.sidebar-count {
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1;
}

.sidebar-reaction-btn:hover:not(:disabled) {
    transform: scale(1.1);
}

.sidebar-like:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.3);
}

.sidebar-love:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.3);
}

.sidebar-dislike:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-reaction-btn:disabled {
    cursor: default;
    opacity: 0.5;
}

.sidebar-reaction-btn.active {
    opacity: 1 !important;
}

.sidebar-like.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.sidebar-love.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.sidebar-dislike.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* ===== MOBILE REACTION BOTTOM BAR ===== */
.reaction-bottombar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reaction-bottombar.visible {
    transform: translateY(0);
}

.bottombar-reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bottombar-like:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.bottombar-love:hover:not(:disabled) {
    border-color: var(--secondary);
    color: var(--secondary);
}

.bottombar-dislike:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

.bottombar-reaction-btn:disabled {
    cursor: default;
    opacity: 0.5;
}

.bottombar-reaction-btn.active {
    opacity: 1 !important;
}

.bottombar-like.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.bottombar-love.active {
    background: var(--secondary);
    border-color: var(--secondary);
    color: white;
}

.bottombar-dislike.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

@media (max-width: 768px) {
    .reaction-sidebar {
        display: none;
    }

    .reaction-bottombar {
        display: flex;
    }

    .grecaptcha-badge {
        bottom: 80px !important;
    }
}

/* ===== FEEDBACK MODAL ===== */
.feedback-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.feedback-modal-overlay.active {
    display: flex;
}

.feedback-modal {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.feedback-modal h3 {
    color: var(--dark);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feedback-modal h3 i {
    color: var(--primary);
    margin-right: 0.5rem;
}

.feedback-modal p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feedback-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
    margin-bottom: 1rem;
    resize: vertical;
}

.feedback-input:focus {
    outline: none;
    border-color: var(--primary);
}

.feedback-input.error {
    border-color: #ff4444;
}

.feedback-modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.feedback-btn {
    flex: 1;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn-cancel {
    background: #f0f0f0;
    color: var(--dark);
}

.feedback-btn-cancel:hover {
    background: #e0e0e0;
}

.feedback-btn-submit {
    background: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.feedback-btn-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.feedback-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ===== CAUSES GRID ===== */
.causes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
}

.bounce-in {
    animation: bounceIn 0.8s ease-out;
}

/* ===== ENHANCED INTERACTIVE ANIMATIONS ===== */

/* Card Hover Effects */
.cause-box {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.cause-box:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
}

.cause-box:hover div:first-child {
    animation: iconBounce 0.6s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-10px) scale(1.1); }
}

/* Project Card Enhancements */
div[class*="col"] [style*="border-radius: 15px"] {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

div[class*="col"] [style*="border-radius: 15px"]:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Button Animations */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
    z-index: 0;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button span {
    position: relative;
    z-index: 1;
}

/* Animated Counter */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: inline-block;
    animation: countUp 2s ease-out forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skill Tag Animation */
span[style*="padding: 8px"] {
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

span[style*="padding: 8px"]:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Enhanced Timeline Dots */
.timeline::before {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.3);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.6); }
}

/* Smooth Section Entrance */
[data-aos] {
    opacity: 0;
}

[data-aos="fade-up"] {
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-aos="fadeInUp"] {
    animation: fadeInUp 0.8s ease-out forwards;
}

[data-aos="zoom-in"] {
    animation: zoomIn 0.8s ease-out forwards;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes flipInX {
    from {
        opacity: 0;
        transform: perspective(400px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(400px) rotateY(0deg);
    }
}

[data-aos="flip-left"] {
    animation: flipInX 0.8s ease-out forwards;
}

[data-aos="bounceIn"] {
    animation: bounceIn 0.8s ease-out forwards;
}

/* Parallax Effect Text */
.hero h1 {
    animation: slideInDown 1s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* List Item Stagger Animation */
li[style*="color: var(--text-gray)"] {
    animation: slideInLeft 0.6s ease-out forwards;
    opacity: 0;
}

li[style*="color: var(--text-gray)"]:nth-child(1) { animation-delay: 0.1s; }
li[style*="color: var(--text-gray)"]:nth-child(2) { animation-delay: 0.2s; }
li[style*="color: var(--text-gray)"]:nth-child(3) { animation-delay: 0.3s; }
li[style*="color: var(--text-gray)"]:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Icon Rotation on Hover */
[style*="fas fa-"],
i[class*="fas"] {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[style*="border-radius: 15px"]:hover [style*="fas fa-"],
[style*="border-radius: 15px"]:hover i[class*="fas"] {
    transform: rotate(10deg) scale(1.15);
}

/* Progress Bar Animation */
.progress {
    background-color: var(--light-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: slideRight 1.5s ease-out forwards;
}

@keyframes slideRight {
    from {
        width: 0 !important;
    }
}

/* Pulse Animation for Important Elements */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.section-title::after {
    animation: slideRight 1s ease-out 0.5s forwards, pulse 3s ease-in-out 2s infinite;
    opacity: 0;
}

/* Smooth Link Transitions */
a {
    transition: all 0.3s ease;
}

/* Staggered Row Animation */
.row [data-aos-delay] {
    opacity: 0;
}

/* Stat Items Interactive */
.stat-item {
    padding: 1rem !important;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stat-item:hover {
    transform: scale(1.05);
    background: rgba(108, 99, 255, 0.05);
    border-radius: 15px;
}

.stat-item p[data-count] {
    transition: all 0.3s ease;
}

.stat-item:hover p[data-count] {
    transform: scale(1.15);
}

/* Hobby Cards Interactive */
.hobby-card {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.hobby-card:hover {
    transform: translateY(-12px) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12) !important;
}

.hobby-card:hover h3 {
    animation: iconBounce 0.6s ease-in-out;
}

.hobby-card:hover i {
    animation: spinIcon 0.6s ease-in-out;
}

@keyframes spinIcon {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .navbar-toggler {
        border-color: white;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar-collapse {
        background: var(--primary-dark);
        border-radius: 10px;
        margin-top: 0.5rem;
        padding: 1rem;
    }

    .nav-link {
        margin: 0.25rem 0;
        padding: 0.5rem 1rem !important;
    }
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --light-bg: #1a1a2e;
    --text-gray: #a0a0b0;
}

[data-theme="dark"] body {
    background: #0f0f1a;
    color: #e0e0e0;
}

/* Headings and text that use color: var(--dark) */
[data-theme="dark"] .section-title,
[data-theme="dark"] .skill-card h3,
[data-theme="dark"] .contact-card h3,
[data-theme="dark"] [style*="color: var(--dark)"] {
    color: #e0e0e0 !important;
}

/* Navbar - dark mode */
[data-theme="dark"] .navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hero - dark mode */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1a 100%);
}

/* Section backgrounds */
[data-theme="dark"] .section-bg {
    background: #141428 !important;
}

[data-theme="dark"] .section {
    background-color: #0f0f1a;
}

/* Footer - dark mode */
[data-theme="dark"] footer {
    background: #0a0a18;
    color: white;
}

[data-theme="dark"] footer p {
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .social-links a {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

[data-theme="dark"] .social-links a:hover {
    background: var(--primary);
    color: white;
}

[data-theme="dark"] .reaction-btn {
    border-color: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .reaction-dislike:hover:not(:disabled) {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.9);
}

[data-theme="dark"] .reaction-dislike.active {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Cards with class-based backgrounds */
[data-theme="dark"] .skill-card {
    background: #1e1e38 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skill-card:hover {
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.2);
}

[data-theme="dark"] .timeline-card {
    background: #1e1e38 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .timeline-card:hover {
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.15);
}

[data-theme="dark"] .timeline-dot {
    border-color: #1e1e38;
}

[data-theme="dark"] .contact-card {
    background: #1e1e38 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .contact-card:hover {
    box-shadow: 0 25px 50px rgba(108, 99, 255, 0.2);
}

/* Catch ALL inline background: white elements */
[data-theme="dark"] [style*="background: white"] {
    background: #1e1e38 !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] [style*="background: white"]:hover {
    box-shadow: 0 20px 50px rgba(108, 99, 255, 0.15) !important;
}

/* Feedback modal */
[data-theme="dark"] .feedback-modal {
    background: #1e1e38;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .feedback-modal h3 {
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-input {
    background: #141428;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-input:focus {
    border-color: var(--primary);
}

[data-theme="dark"] .feedback-btn-cancel {
    background: #2a2a4a;
    color: #e0e0e0;
}

[data-theme="dark"] .feedback-btn-cancel:hover {
    background: #3a3a5a;
}

/* About section text */
[data-theme="dark"] .about-text p {
    color: #a0a0b0;
}

/* Additional competencies gradient box */
[data-theme="dark"] [style*="background: linear-gradient(135deg, rgba(108"] {
    background: rgba(108, 99, 255, 0.08) !important;
}

/* Form controls */
[data-theme="dark"] .form-control {
    background: #141428;
    border-color: #333;
    color: #e0e0e0;
}

[data-theme="dark"] .form-control:focus {
    border-color: var(--primary);
    background: #1a1a30;
}

[data-theme="dark"] .form-control::placeholder {
    color: #666;
}

/* Featured Work tag pills - darken light backgrounds */
[data-theme="dark"] [style*="background: #E8F4F8"] {
    background: rgba(8, 145, 178, 0.15) !important;
}
[data-theme="dark"] [style*="background: #FEF3E2"] {
    background: rgba(217, 119, 6, 0.15) !important;
}
[data-theme="dark"] [style*="background: #F0FDF4"] {
    background: rgba(21, 128, 61, 0.15) !important;
}
[data-theme="dark"] [style*="background: #DBEAFE"] {
    background: rgba(30, 64, 175, 0.15) !important;
}
[data-theme="dark"] [style*="background: #FCE7F3"] {
    background: rgba(190, 24, 93, 0.15) !important;
}
[data-theme="dark"] [style*="background: #F5F3FF"] {
    background: rgba(124, 58, 237, 0.15) !important;
}
[data-theme="dark"] [style*="background: #FEE2E2"] {
    background: rgba(220, 38, 38, 0.15) !important;
}
[data-theme="dark"] [style*="background: #DCFCE7"] {
    background: rgba(22, 163, 74, 0.15) !important;
}

/* About image shadow */
[data-theme="dark"] .about-image {
    box-shadow: 0 20px 60px rgba(108, 99, 255, 0.15);
}

/* Progress bar background */
[data-theme="dark"] .progress {
    background-color: #1e1e38;
}

/* Stat item hover */
[data-theme="dark"] .stat-item:hover {
    background: rgba(108, 99, 255, 0.1);
}

/* Dark mode toggle styling */
.dark-mode-toggle {
    color: white !important;
    font-size: 1.1rem;
    padding: 0.5rem !important;
    transition: transform 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    [data-theme="dark"] .navbar-collapse {
        background: #1a1a2e;
    }
}
