/* Modern CSS Reset */
:root {
    /* Dark Mode (Default) */
    --primary-color: #ff4d6d;
    --secondary-color: #7b2cbf;
    --accent-color: #00b4d8;
    --text-color: #e0e0e0;
    --background-dark: #121212;
    --card-bg: #1e1e1e;
    --card-hover: #2a2a2a;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --header-bg: rgba(18, 18, 18, 0.9);
    --footer-bg: rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --shadow-color: rgba(0, 0, 0, 0.3);
    --border-color: rgba(255, 255, 255, 0.05);
    --highlight-color: #ff4d6d;
}

.light-mode {
    --primary-color: #e63946;
    --secondary-color: #6a00f4;
    --accent-color: #00b4d8;
    --text-color: #2c3e50;
    --background-dark: #f8f9fa;
    --card-bg: #ffffff;
    --card-hover: #f0f0f0;
    --header-bg: rgba(255, 255, 255, 0.9);
    --footer-bg: #f0f0f0;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --border-color: rgba(0, 0, 0, 0.05);
    --highlight-color: #e63946;
}

/* Highlight for Babita name */
.highlight {
    color: var(--highlight-color);
    position: relative;
    display: inline-block;
    animation: pulse-text 2s infinite alternate;
}

@keyframes pulse-text {
    0% {
        text-shadow: 0 0 5px rgba(255, 77, 109, 0.5);
    }

    100% {
        text-shadow: 0 0 15px rgba(255, 77, 109, 0.8);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-dark);
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Container */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px var(--shadow-color);
    z-index: 1000;
    transition: background-color 0.5s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
    padding: 0 5px;
}

.logo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.5s ease;
    border-radius: 2px;
}

.logo:hover::before {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    font-size: 1.05rem;
}

.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu li a:hover {
    color: var(--primary-color);
}

.nav-menu li a:hover::after {
    width: 100%;
}

/* Mode Switch */
.mode-switch {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: var(--gradient-primary);
    cursor: pointer;
    box-shadow: 0 0 10px var(--shadow-color);
    margin-left: 20px;
    overflow: hidden;
}

.mode-switch::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--white);
    transition: transform 0.3s ease;
    z-index: 1;
}

.light-mode .mode-switch::before {
    transform: translateX(30px);
}

.mode-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    color: var(--white);
    font-size: 14px;
}

/* Hero Section */
.hero {
    padding: 150px 0 80px;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease;
}

.light-mode .hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.15) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 30%, rgba(255, 77, 109, 0.1) 0%, transparent 50%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-image {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid transparent;
    background: linear-gradient(var(--background-dark), var(--background-dark)) padding-box,
        var(--gradient-primary) border-box;
    box-shadow: 0 0 30px rgba(255, 77, 109, 0.3);
    transition: var(--transition);
    animation: pulse 3s infinite alternate;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 77, 109, 0.3);
    }

    100% {
        box-shadow: 0 0 40px rgba(255, 77, 109, 0.6);
    }
}

.hero-image:hover {
    transform: scale(1.05);
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.light-mode .hero-title {
    text-shadow: none;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
    letter-spacing: 1px;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s backwards;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 2rem;
    max-width: 500px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    min-width: 140px;
    text-align: center;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.light-mode .btn-secondary {
    color: var(--text-color);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 20px var(--shadow-color);
}

.btn-download {
    background: var(--accent-color);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sections */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--white);
    position: relative;
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.light-mode .section-title h2 {
    color: transparent;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Quote Section */
.quote-section {
    background: var(--card-bg);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.quote-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 77, 109, 0.05) 0%, transparent 70%);
}

.quote-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.quote-slider {
    overflow: hidden;
    position: relative;
    height: 250px;
}

.quote {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.quote.active {
    opacity: 1;
    transform: translateX(0);
}

.quote.prev {
    transform: translateX(-100%);
}

.quote-text {
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding: 0 40px;
}

.quote-text::before,
.quote-text::after {
    content: '"';
    font-size: 4rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.quote-text::before {
    top: -20px;
    left: 0;
}

.quote-text::after {
    bottom: -40px;
    right: 0;
}

.quote-author {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.quote-nav {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.quote-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin: 0 15px;
    transition: var(--transition);
}

.quote-btn:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.skill-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 77, 109, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px var(--shadow-color);
    background: var(--card-hover);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    transition: var(--transition);
}

.skill-card:hover .skill-icon {
    transform: scale(1.2);
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.blog-image-container {
    overflow: hidden;
    border-radius: 15px 15px 0 0;
    height: 200px;
    position: relative;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-content h3 {
    margin-bottom: 15px;
    color: var(--white);
}

.light-mode .blog-content h3 {
    color: var(--text-color);
}

.blog-content p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-content .btn {
    align-self: flex-start;
    margin-top: auto;
}

/* Blog Modal */
.blog-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.blog-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card-bg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.blog-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--white);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.light-mode .modal-title {
    color: transparent;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-text {
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    transition: var(--transition);
}

.light-mode .form-control {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px var(--shadow-color);
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 50px 0 30px;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
}

.social-links {
    margin-bottom: 30px;
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    margin: 0 10px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition);
}

.light-mode .social-links a {
    background: rgba(0, 0, 0, 0.05);
}

.social-links a:hover {
    color: var(--white);
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
}

/* Chatbot */
#botpress-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    z-index: 999;
    box-shadow: 0 5px 15px var(--shadow-color);
    transition: all 0.3s ease;
    overflow: hidden;
}

#botpress-chat.expanded {
    width: 350px;
    height: 600px;
    border-radius: 15px;
}

.chat-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 77, 109, 0.3);
    z-index: 1000;
    transition: var(--transition);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--background-dark);
        padding: 20px;
        box-shadow: 0 5px 15px var(--shadow-color);
        z-index: 100;
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
        font-size: 1.5rem;
        cursor: pointer;
        color: var(--primary-color);
    }

    .btn {
        padding: 10px 20px;
        margin: 5px;
    }

    .quote-text {
        font-size: 1.4rem;
        padding: 0 20px;
    }

    .quote-slider {
        height: 300px;
    }

    #botpress-chat.expanded {
        width: 300px;
        height: 500px;
    }

    .mode-switch {
        margin-right: 20px;
    }

    .blog-image-container {
        height: 180px;
    }

    #modal-1 .modal-image,
    #modal-2 .modal-image,
    #modal-3 .modal-image {
        height: 200px;
    }

    .hero-image {
        width: 180px;
        height: 180px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    .blog-image-container {
        height: 160px;
    }

    #modal-1 .modal-image,
    #modal-2 .modal-image,
    #modal-3 .modal-image {
        height: 180px;
    }

    .hero-image {
        width: 150px;
        height: 150px;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
    animation: slideInRight 1s ease-out forwards;
}

/* Particle background */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Neon glow effect */
.neon-glow {
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    }

    50% {
        text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }

    100% {
        text-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    }
}

/* Blog Images - Using copyright-free images */
.blog-card[data-blog-id="1"] .blog-image {
    background: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.blog-card[data-blog-id="2"] .blog-image {
    background: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

.blog-card[data-blog-id="3"] .blog-image {
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    height: 100%;
    width: 100%;
    transition: transform 0.5s ease;
}

#modal-1 .modal-image {
    background: url('https://images.unsplash.com/photo-1536440136628-849c177e76a1?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modal-2 .modal-image {
    background: url('https://images.unsplash.com/photo-1506126613408-eca07ce68773?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

#modal-3 .modal-image {
    background: url('https://images.unsplash.com/photo-1498050108023-c5249f4df085?ixlib=rb-1.2.1&auto=format&fit=crop&w=800&q=80');
    background-size: cover;
    background-position: center;
    height: 300px;
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* New Feature: Typing Animation */
.typing-effect {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.1em;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    display: inline-block;
}

@keyframes typing {
    from {
        width: 0
    }

    to {
        width: 100%
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--primary-color)
    }
}

/* Skills Progress Section */
.skills-progress-section {
    background: var(--card-bg);
    position: relative;
    overflow: hidden;
}

.skills-progress-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(255, 77, 109, 0.05) 0%, transparent 70%);
}

.skills-progress {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-progress-item {
    width: 100%;
}

.skill-progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.skill-progress-header h3 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--white);
}

.light-mode .skill-progress-header h3 {
    color: var(--text-color);
}

.skill-progress-header span {
    color: var(--primary-color);
    font-weight: 600;
}

.skill-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.light-mode .skill-progress-bar {
    background: rgba(0, 0, 0, 0.1);
}

.skill-progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    position: relative;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 5px;
    background: var(--white);
    border-radius: 4px;
    box-shadow: 0 0 10px var(--primary-color);
}

/* Animation for skill progress bars */
.skills-progress.animated .skill-progress-fill {
    animation: fillProgress 1.5s ease-in-out forwards;
}

@keyframes fillProgress {
    from {
        width: 0;
    }

    to {
        width: var(--progress-width);
    }
}

@media (max-width: 768px) {
    .skills-progress {
        padding: 0 15px;
    }
}

/* Calendar Section */
.calendar-section {
    position: relative;
    overflow: hidden;
}

.calendar-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(123, 44, 191, 0.1), transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 77, 109, 0.1), transparent 50%);
    z-index: -1;
}

.calendar-container {
    background-color: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 25px;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.current-month {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.month-nav {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.month-nav:hover {
    background-color: var(--card-hover);
    color: var(--primary-color);
}

.year-toggle {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.year-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.year-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.year-btn:hover:not(.active) {
    background-color: var(--card-hover);
    transform: translateY(-2px);
}

.weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    text-align: center;
    margin-bottom: 15px;
}

.weekdays div {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.day {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-size: 0.9rem;
    color: var(--text-color);
}

.day:hover:not(.empty) {
    background-color: var(--card-hover);
    transform: scale(1.1);
}

.day.empty {
    cursor: default;
}

.day.event {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.day.event:hover {
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.day.selected {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

.event-details {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--card-hover);
    text-align: center;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-details p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.light-mode .calendar-container {
    background-color: #f8f8f8;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.light-mode .day {
    color: #333;
}

.light-mode .event-details {
    background-color: #eaeaea;
}

@media (max-width: 768px) {
    .calendar-container {
        padding: 15px;
    }

    .weekdays div {
        font-size: 0.8rem;
    }

    .day {
        height: 35px;
        font-size: 0.8rem;
    }

    .current-month {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .days {
        gap: 5px;
    }

    .weekdays {
        gap: 5px;
    }

    .day {
        height: 30px;
        font-size: 0.7rem;
    }
}

/* Timeline Section */
.timeline-section {
    position: relative;
    overflow: hidden;
    background-color: var(--background-dark);
}

.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(123, 44, 191, 0.1), transparent 40%),
        radial-gradient(circle at 80% 30%, rgba(255, 77, 109, 0.1), transparent 40%);
    z-index: -1;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 0;
}

.timeline-line {
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    display: flex;
}

.timeline-item:nth-child(odd) {
    justify-content: flex-start;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
    padding-left: 50%;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient-primary);
    border-radius: 50%;
    left: 50%;
    top: 20px;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: 0 0 10px rgba(255, 77, 109, 0.5);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 15px rgba(255, 77, 109, 0.7);
}

.timeline-date {
    position: absolute;
    top: 18px;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-date {
    right: calc(50% + 30px);
}

.timeline-item:nth-child(even) .timeline-date {
    left: calc(50% + 30px);
}

.timeline-content {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 80%;
    transition: all 0.3s ease;
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    top: 20px;
    transform: rotate(45deg);
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -10px;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-top: 0;
    font-size: 1.3rem;
}

.timeline-content p {
    color: var(--text-color);
    margin-bottom: 0;
    line-height: 1.6;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.timeline-item.future .timeline-content {
    background: linear-gradient(135deg, rgba(123, 44, 191, 0.2), rgba(255, 77, 109, 0.2));
    border: 2px dashed var(--primary-color);
}

.light-mode .timeline-section {
    background-color: #f8f8f8;
}

.light-mode .timeline-content {
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.light-mode .timeline-content::before {
    background-color: white;
}

.light-mode .timeline-content h3 {
    color: var(--secondary-color);
}

.light-mode .timeline-content p {
    color: #333;
}

@media (max-width: 768px) {
    .timeline-line {
        left: 30px;
    }

    .timeline-item {
        padding-right: 0 !important;
        padding-left: 70px !important;
        justify-content: flex-start !important;
    }

    .timeline-dot {
        left: 30px;
    }

    .timeline-date {
        position: relative;
        top: 0;
        left: 0 !important;
        right: auto !important;
        margin-bottom: 10px;
        display: inline-block;
    }

    .timeline-content {
        width: 100%;
    }

    .timeline-content::before {
        display: none;
    }
}

/* Testimonials Section */
.testimonials-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(33, 33, 33, 0.8) 100%);
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1516541196182-6bdb0516ed27?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    opacity: 0.15;
    z-index: -1;
}

.testimonial-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.testimonial-track {
    display: flex;
    overflow: hidden;
    position: relative;
    min-height: 400px;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 30px;
    border-radius: 15px;
    background: rgba(30, 30, 30, 0.7);
    backdrop-filter: blur(10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card.active {
    transform: scale(1);
    opacity: 1;
    z-index: 2;
}

.testimonial-card.prev,
.testimonial-card.next {
    opacity: 0.5;
    z-index: 1;
}

.testimonial-card.prev {
    transform: translateX(-100%) scale(0.8);
}

.testimonial-card.next {
    transform: translateX(100%) scale(0.8);
}

.testimonial-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 20px;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 77, 109, 0.5);
    position: relative;
}

.testimonial-avatar::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid var(--secondary-color);
    animation: pulse 2s infinite;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.testimonial-card:hover .testimonial-avatar img {
    transform: scale(1.1);
}

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.testimonial-rating {
    margin-bottom: 15px;
    color: #ffd700;
    font-size: 1.2rem;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -20px;
    left: -10px;
}

.testimonial-text::after {
    bottom: -40px;
    right: -10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.2rem;
    position: relative;
    padding-top: 15px;
}

.testimonial-author::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gradient-primary);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 20px;
}

.testimonial-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.1);
}

.testimonial-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--gradient-primary);
    transform: scale(1.2);
}

.light-mode .testimonials-section {
    background: linear-gradient(135deg, rgba(240, 240, 240, 0.9) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.light-mode .testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.light-mode .testimonial-text {
    color: #333;
}

.light-mode .testimonial-btn {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
}

.light-mode .dot {
    background-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .testimonial-card {
        padding: 20px;
    }

    .testimonial-avatar {
        width: 100px;
        height: 100px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    .testimonial-track {
        min-height: 450px;
    }
}

@media (max-width: 480px) {
    .testimonial-avatar {
        width: 80px;
        height: 80px;
    }

    .testimonial-text {
        font-size: 0.9rem;
    }

    .testimonial-track {
        min-height: 500px;
    }
}