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

:root {
    --primary-red: #DC143C;
    --accent-red: #FF6B6B;
    --dark-red: #A4161A;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --dark-text: #1A1A1A;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: var(--white);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==================== NAVBAR ANIMATIONS ==================== */
.navbar {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(220, 20, 60, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: bold;
    animation: fadeInLeft 0.8s ease;
}

.logo {
    background-color: var(--primary-red);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(220, 20, 60, 0.3);
}

.logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(220, 20, 60, 0.5);
}

.brand-text {
    color: var(--primary-red);
    transition: var(--transition);
}

.logo:hover ~ .brand-text {
    transform: translateX(5px);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    animation: fadeInRight 0.8s ease;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link:hover {
    color: var(--primary-red);
    transform: translateY(-3px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-red);
    transition: var(--transition);
    border-radius: 2px;
}

/* ==================== HERO SECTION ANIMATIONS ==================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--accent-red) 100%);
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    z-index: 2;
    position: relative;
}

.hero-content {
    display: contents;
}

.hero-text {
    animation: slideInLeft 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
    animation: fadeInUp 1.2s ease 0.2s both;
}

.hero-title .highlight {
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: textGlow 3s ease-in-out infinite;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 15px;
    opacity: 0.95;
    animation: fadeInUp 1.2s ease 0.4s both;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1.2s ease 0.6s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1.2s ease 0.8s both;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: inline-block;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background-color: var(--white);
    color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-4px) scale(1.05);
}

.hero-animation {
    position: relative;
    height: 400px;
    animation: fadeInRight 1s ease;
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: 50px;
    right: 50px;
    animation: float 6s ease-in-out infinite, pulse 4s ease-in-out infinite;
    animation-delay: 0s, 0.5s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    top: 200px;
    right: 200px;
    animation: float 8s ease-in-out infinite reverse, pulse 5s ease-in-out infinite;
    animation-delay: 1s, 1.5s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    bottom: 50px;
    right: 100px;
    animation: float 7s ease-in-out infinite, pulse 4.5s ease-in-out infinite;
    animation-delay: 2s, 2.5s;
}

/* ==================== ABOUT SECTION ANIMATIONS ==================== */
.about {
    padding: 100px 0;
    background-color: var(--white);
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 50px;
    color: var(--dark-text);
    position: relative;
    padding-bottom: 20px;
    animation: fadeInDown 0.8s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80px;
    height: 4px;
    background-color: var(--primary-red);
    border-radius: 2px;
    animation: expandWidth 0.8s ease 0.3s forwards;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
    animation: fadeInLeft 0.8s ease;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--light-gray) 0%, #E0E0E0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 150px;
    color: var(--primary-red);
    box-shadow: 0 10px 40px rgba(220, 20, 60, 0.2);
    transition: var(--transition);
    position: relative;
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--primary-red);
    border-radius: 50%;
    opacity: 0;
    animation: expandBorder 2s ease infinite;
}

.image-placeholder:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 20px 60px rgba(220, 20, 60, 0.35);
}

.about-text {
    animation: fadeInRight 0.8s ease;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.highlight-item {
    text-align: center;
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 10px;
    transition: var(--transition);
    animation: scaleIn 0.8s ease backwards;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.highlight-item:nth-child(1) { animation-delay: 0.1s; }
.highlight-item:nth-child(2) { animation-delay: 0.2s; }
.highlight-item:nth-child(3) { animation-delay: 0.3s; }

.highlight-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-red);
    transition: left 0.4s ease;
    z-index: -1;
}

.highlight-item:hover::before {
    left: 0;
}

.highlight-item:hover {
    color: var(--white);
    transform: translateY(-10px);
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-red);
    transition: var(--transition);
}

.highlight-item:hover .highlight-number {
    color: var(--white);
    animation: countUp 0.6s ease;
}

.highlight-label {
    display: block;
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.8;
    transition: var(--transition);
}

/* ==================== SKILLS SECTION ANIMATIONS ==================== */
.skills {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    animation: slideInUp 0.6s ease backwards;
    cursor: pointer;
    position: relative;
}

.skill-card:nth-child(1) { animation-delay: 0s; }
.skill-card:nth-child(2) { animation-delay: 0.15s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.45s; }

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.25);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
    transition: var(--transition);
    animation: fadeInDown 0.6s ease 0.2s both;
}

.skill-card:hover .skill-icon {
    animation: bounceIcon 0.6s ease;
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--dark-text);
    animation: fadeInUp 0.6s ease 0.3s both;
}

.skill-card p {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.95rem;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 10px;
    overflow: hidden;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    border-radius: 10px;
    animation: fillBar 2.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.6s both;
    position: relative;
    overflow: hidden;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

/* ==================== PROJECTS SECTION ==================== */
.projects {
    padding: 100px 0;
    background-color: #FFFFFF;
}

.projects .section-title {
    margin-bottom: 60px;
}

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

.project-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.project-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(220, 20, 60, 0.3);
}

.card-top {
    background: linear-gradient(135deg, #DC143C, #FF6B6B);
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
}

.card-bottom {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-bottom h3 {
    color: #1A1A1A;
    font-size: 1.3rem;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.card-bottom p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    background-color: #F5F5F5;
    color: #DC143C;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tag:hover {
    background-color: #DC143C;
    color: white;
}

.btn-github {
    display: inline-block;
    background-color: #DC143C;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid #DC143C;
    width: fit-content;
}

.btn-github:hover {
    background-color: transparent;
    color: #DC143C;
}
/* ==================== EXPERIENCE SECTION ANIMATIONS ==================== */
.experience {
    padding: 100px 0;
    background-color: var(--light-gray);
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-red), var(--accent-red));
    animation: growLine 1.5s ease forwards;
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    animation: fadeIn 0.8s ease;
}

.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }

.timeline-item:nth-child(odd) {
    text-align: right;
    padding-right: 50%;
}

.timeline-item:nth-child(even) {
    text-align: left;
    padding-left: 50%;
}

.timeline-marker {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-red);
    border-radius: 50%;
    top: 0;
    transition: var(--transition);
    box-shadow: 0 0 0 4px var(--primary-red);
    animation: scaleMarker 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards;
}

.timeline-item:nth-child(1) .timeline-marker { animation-delay: 0.3s; }
.timeline-item:nth-child(2) .timeline-marker { animation-delay: 0.4s; }
.timeline-item:nth-child(3) .timeline-marker { animation-delay: 0.5s; }
.timeline-item:nth-child(4) .timeline-marker { animation-delay: 0.6s; }

.timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.3);
    box-shadow: 0 0 0 8px rgba(220, 20, 60, 0.2);
}

.timeline-content {
    background-color: var(--white);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--accent-red));
    transition: left 0.5s ease;
}

.timeline-item:hover .timeline-content::before {
    left: 100%;
}

.timeline-item:hover .timeline-content {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(220, 20, 60, 0.2);
}

.timeline-content h3 {
    color: var(--primary-red);
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content .company {
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

/* ==================== CONTACT SECTION ANIMATIONS ==================== */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 30s linear infinite reverse;
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-title {
    color: var(--white);
    animation: fadeInDown 0.8s ease;
}

.contact .section-title::after {
    background-color: var(--white);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 50px;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
    animation: fadeIn 0.8s ease 0.4s both;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    animation: slideInLeft 0.6s ease backwards;
    transition: var(--transition);
    cursor: pointer;
}

.contact-item:nth-child(1) { animation-delay: 0.5s; }
.contact-item:nth-child(2) { animation-delay: 0.6s; }
.contact-item:nth-child(3) { animation-delay: 0.7s; }

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
    animation: rotateIcon 0.6s ease;
}

.contact-item:hover i {
    animation: rotateIcon 0.6s ease infinite;
    transform: rotate(360deg);
}

.contact-item p {
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    animation: slideInRight 0.6s ease backwards;
}

.form-group:nth-child(1) { animation-delay: 0.5s; }
.form-group:nth-child(2) { animation-delay: 0.6s; }
.form-group:nth-child(3) { animation-delay: 0.7s; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.95);
    transition: var(--transition);
    position: relative;
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.contact-form .btn-primary {
    padding: 15px;
    font-size: 1.1rem;
    animation: slideInUp 0.6s ease 0.8s both;
}

.contact-form .btn-primary:hover {
    animation: pulse 0.6s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    animation: fadeInUp 0.8s ease 0.9s both;
}

.social-links a {
    color: var(--white);
    font-size: 2rem;
    transition: var(--transition);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    animation: scaleIn 0.6s ease backwards;
}

.social-links a:nth-child(1) { animation-delay: 1s; }
.social-links a:nth-child(2) { animation-delay: 1.1s; }
.social-links a:nth-child(3) { animation-delay: 1.2s; }

.social-links a:hover {
    transform: scale(1.2) rotate(360deg);
    background-color: var(--white);
}

/* ==================== FOOTER ==================== */
.footer {
    background-color: var(--dark-red);
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
    animation: fadeIn 0.8s ease;
}

.heart {
    color: var(--accent-red);
    animation: heartbeat 1.5s ease-in-out infinite;
}

/* ==================== KEYFRAME ANIMATIONS ==================== */

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

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeInDown {
    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(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleInLink {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

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

@keyframes fillBar {
    from {
        width: 0;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 107, 107, 0.6);
    }
}

@keyframes expandWidth {
    from {
        transform: translateX(-50%) scaleX(0);
    }
    to {
        transform: translateX(-50%) scaleX(1);
    }
}

@keyframes expandBorder {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1.2);
    }
}

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

@keyframes bounceIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes growLine {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

@keyframes scaleMarker {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

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

@keyframes moveBackground {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(50px, 50px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.3);
    }
    50% {
        transform: scale(1);
    }
}

/* ==================== RESPONSIVE DESIGN ==================== */

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: var(--white);
        gap: 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: 15px 20px;
        border-bottom: 1px solid var(--light-gray);
    }

    .hamburger {
        display: flex;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

    .hero-animation {
        height: 300px;
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        padding: 15px;
        width: 100%;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .image-placeholder {
        width: 250px;
        height: 250px;
        font-size: 100px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 70px;
        padding-right: 0;
    }

    .timeline-marker {
        left: 15px;
    }

    .timeline-content {
        margin: 0;
    }

    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        gap: 20px;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-brand {
        font-size: 18px;
    }

    .logo {
        width: 35px;
        height: 35px;
    }

    .hero {
        min-height: auto;
        padding: 60px 0;
    }

    .hero-title {
        font-size: 1.8rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .section-title::after {
        width: 60px;
    }

    .about {
        padding: 60px 0;
    }

    .skills {
        padding: 60px 0;
    }

    .projects {
        padding: 60px 0;
    }

    .experience {
        padding: 60px 0;
    }

    .contact {
        padding: 60px 0;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .highlight-item {
        padding: 15px;
    }

    .highlight-number {
        font-size: 1.5rem;
    }

    .highlight-label {
        font-size: 0.8rem;
    }

    .timeline-item {
        margin-bottom: 30px;
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        text-align: left;
        padding-left: 60px;
    }

    .timeline-marker {
        left: 10px;
    }

    .timeline-content {
        padding: 15px;
        font-size: 0.9rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-content .company {
        font-size: 0.85rem;
    }

    .contact-info {
        gap: 20px;
    }

    .contact-item {
        gap: 15px;
    }

    .contact-item i {
        font-size: 1.5rem;
    }

    .contact-item p {
        font-size: 1rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
        font-size: 16px;
    }

    .contact-form .btn-primary {
        padding: 12px;
        font-size: 1rem;
    }

    .social-links {
        gap: 15px;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .footer {
        padding: 20px 10px;
        font-size: 0.9rem;
    }

    .project-card {
        border-radius: 8px;
    }

    .project-image {
        height: 150px;
    }

    .project-content {
        padding: 15px;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .tag {
        padding: 4px 10px;
        font-size: 0.75rem;
    }

    .skill-card {
        padding: 20px;
    }

    .skill-icon {
        font-size: 2rem;
    }

    .skill-card h3 {
        font-size: 1.1rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.5rem;
    }

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

    .btn {
        padding: 12px;
        font-size: 0.9rem;
    }
}

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

.scroll-animate {
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-animate.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-animate].animate-in {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ==================== NOTIFICATION ANIMATIONS ==================== */

@keyframes slideNotification {
    from {
        opacity: 0;
        transform: translateX(400px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideNotificationOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* ==================== PAGE LOAD ANIMATION ==================== */

@keyframes pageLoad {
    from {
        opacity: 0;
        transform: scale(0.98);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==================== ENHANCED PARALLAX ==================== */

.animated-circle {
    will-change: transform;
    transform: translateZ(0);
}

/* ==================== STAGGER ANIMATION ==================== */

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

[data-stagger-item] {
    opacity: 0;
    transform: translateY(30px);
}

/* ==================== ENHANCED SKILL CARD ANIMATIONS ==================== */

.skill-card {
    position: relative;
    overflow: hidden;
}

.skill-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.skill-card:hover::after {
    left: 100%;
}

/* ==================== GLOW EFFECTS ==================== */

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(220, 20, 60, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(220, 20, 60, 0.6);
    }
}

.project-card:hover {
    animation: glow 1s ease infinite;
}

/* ==================== SMOOTH TRANSITIONS ==================== */

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

a, button {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==================== ENHANCED HOVER STATES ==================== */

.project-card:hover .project-content {
    animation: slideInUp 0.5s ease;
}

.skill-card:hover .skill-icon {
    animation: bounceIcon 0.6s ease;
    color: var(--accent-red);
}

.tag:hover {
    animation: pulse 0.4s ease;
}

/* ==================== MOBILE MENU ANIMATION ==================== */

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translateY(10px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-10px);
}

.nav-menu.active {
    display: flex;
    animation: slideDown 0.4s ease;
}

/* ==================== INTERSECTION OBSERVER ANIMATION ==================== */

.project-card {
    opacity: 0;
}

.project-card.animate-in {
    opacity: 1;
}

/* ==================== NUMBER COUNTER ANIMATION ==================== */

@keyframes countPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.highlight-number {
    font-weight: bold;
    animation: countPulse 0.5s ease;
}

body.dark-mode {
    background: #1a1a1a;
    color: #f0f0f0;
}

body.dark-mode .project-card {
    background: #2a2a2a;
}
