/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #2563eb;
    --secondary: #1e40af;
    --accent: #8b5cf6;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --white: #ffffff;
    --black: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.btn {
    display: inline-block;
    background: var(--primary);
    color: rgba(245, 158, 11);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--primary);
    cursor: pointer;
    border: 2px solid rgba(245, 158, 11);
}

.btn:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 2px solid rgba(245, 158, 11);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid rgba(245, 158, 11);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    display: inline-block;
    padding-bottom: 10px;
    position: relative;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

.section-title p {
    color: var(--gray);
    margin-top: 15px;
    font-size: 1.1rem;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.683);
    color: var(--dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

header.sticky {
    background: var(--white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Home Section */
#home {
    background: linear-gradient(rgba(2, 21, 61, 0.5), rgba(1, 10, 41, 0.9)), 
                url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&w=1950') center/cover no-repeat;
    color: var(--white);
    text-align: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.home-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 80px;
}

.home-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
   text-outline: red;

}

.home-content h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease;
}

.home-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.home-btns {
    animation: fadeInUp 1s ease;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-img img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.about-text p {
    margin-bottom: 20px;
    color: var(--gray);
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.about-info div h4 {
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--dark);
}

.about-info div p {
    color: var(--gray);
    margin: 0;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 50px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 70px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 70px;
}

.timeline-content {
    padding: 30px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    position: relative;
}

.timeline-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.timeline-content h4 {
    color: var(--accent);
    margin-bottom: 15px;
    font-weight: 600;
}

.timeline-content ul {
    padding-left: 20px;
}

.timeline-content ul li {
    margin-bottom: 10px;
    color: var(--gray);
}

.timeline-date {
    position: absolute;
    top: 20px;
    right: -80px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -80px;
    right: auto;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border: 4px solid var(--white);
    border-radius: 50%;
    top: 30px;
    z-index: 1;
}

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 10px;
    font-size: 1.2rem;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background: var(--light-gray);
    border-radius: 5px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--primary);
    border-radius: 5px;
}

/* Notables Section */
.notables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.notable-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.notable-card:hover {
    transform: translateY(-10px);
}

.notable-img {
    height: 250px;
    overflow: hidden;
}

.notable-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.notable-card:hover .notable-img img {
    transform: scale(1.1);
}

.notable-content {
    padding: 25px;
}

.project-tag {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.notable-content h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.notable-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-stack span {
    background: var(--light);
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    flex-direction: column;
    color: var(--white);
    text-align: center;
    padding: 20px;
}

.gallery-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Blogs Section */
.blog-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
}

.blog-img {
    height: 250px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--gray);
    font-size: 0.9rem;
}

.blog-content h3 {
    color: var(--dark);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.blog-content p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: var(--secondary);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Contact Section */
#contact {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    font-size: 1.5rem;
    margin-right: 15px;
    color: #fbbf24;
    min-width: 40px;
    text-align: center;
}

.contact-details h3 {
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.contact-details p {
    color: rgba(255,255,255,0.8);
    margin: 0;
    font-size: 1.1rem;
}

.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--white);
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: var(--white);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: #fbbf24;
    color: var(--dark);
    border: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: #f59e0b;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    padding: 70px 0 0;
}

.footer-content {
    text-align: center;
    margin-bottom: 50px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo i {
    margin-right: 10px;
    color: var(--primary);
}

.footer-content p {
    color: rgba(245, 158, 11);
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-radius: 50%;
    margin: 0 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(245, 158, 11);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll Effects */
@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 scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll reveal classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations */
.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }

/* Apply scroll effects to common elements */
.section-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.section-title.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-content .about-img,
.about-content .about-text {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.about-content .about-img.revealed,
.about-content .about-text.revealed {
    opacity: 1;
    transform: translateY(0);
}

.skill-category,
.notable-card,
.blog-card,
.timeline-item,
.contact-item {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-category.revealed,
.notable-card.revealed,
.blog-card.revealed,
.timeline-item.revealed,
.contact-item.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Enhanced card animations */
.skill-category {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.skill-category:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.notable-card,
.blog-card {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.notable-card:hover,
.blog-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.notable-card .notable-img img,
.blog-card .blog-img img {
    transition: all 0.6s ease;
}

.notable-card:hover .notable-img img,
.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

/* Card entrance animations with different effects */
.skill-category:nth-child(odd) {
    animation: cardSlideInLeft 0.8s ease forwards;
}

.skill-category:nth-child(even) {
    animation: cardSlideInRight 0.8s ease forwards;
}

.notable-card:nth-child(odd),
.blog-card:nth-child(odd) {
    animation: cardFlipIn 0.8s ease forwards;
}

.notable-card:nth-child(even),
.blog-card:nth-child(even) {
    animation: cardBounceIn 0.8s ease forwards;
}

@keyframes cardSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px) rotateY(-15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes cardSlideInRight {
    from {
        opacity: 0;
        transform: translateX(100px) rotateY(15deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotateY(0);
    }
}

@keyframes cardFlipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0);
    }
}

@keyframes cardBounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(50px);
    }
    50% {
        opacity: 1;
        transform: scale(1.05) translateY(-10px);
    }
    70% {
        transform: scale(0.9) translateY(5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Gallery items with scale effect */
.gallery-item {
    opacity: 0;
    transform: scale(0.8) rotateY(15deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-item.revealed {
    opacity: 1;
    transform: scale(1) rotateY(0);
}

.gallery-item:hover {
    transform: scale(1.05) rotateY(-5deg);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
}

/* Enhanced card hover effects */
.skill-category {
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.notable-card,
.blog-card {
    position: relative;
    overflow: hidden;
}

.notable-card::after,
.blog-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(37, 99, 235, 0.05) 50%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.notable-card:hover::after,
.blog-card:hover::after {
    opacity: 1;
}

/* Card content animations */
.blog-content h3,
.notable-content h3 {
    transition: color 0.3s ease;
}

.blog-card:hover .blog-content h3,
.notable-card:hover .notable-content h3 {
    color: var(--primary);
}

/* Timeline enhanced animations */
.timeline-item {
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item:hover {
    transform: translateX(10px);
}

.timeline-item:nth-child(even):hover {
    transform: translateX(-10px);
}

/* Contact item enhanced animations */
.contact-item {
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.contact-item:hover {
    transform: translateX(15px) scale(1.02);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Experience/Skills Card Animations */
.excard {
    opacity: 0;
    transform: translateY(60px) rotateX(10deg);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.excard.revealed {
    opacity: 1;
    transform: translateY(0) rotateX(0);
}

.excard::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
    transition: left 0.7s ease;
    z-index: 1;
}

.excard:hover::before {
    left: 100%;
}

.excard:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.excard * {
    position: relative;
    z-index: 2;
}

/* Staggered animation delays for excard elements */
.excard:nth-child(1) { transition-delay: 0.1s; }
.excard:nth-child(2) { transition-delay: 0.2s; }
.excard:nth-child(3) { transition-delay: 0.3s; }
.excard:nth-child(4) { transition-delay: 0.4s; }
.excard:nth-child(5) { transition-delay: 0.5s; }
.excard:nth-child(6) { transition-delay: 0.6s; }
.excard:nth-child(7) { transition-delay: 0.7s; }
.excard:nth-child(8) { transition-delay: 0.8s; }
.excard:nth-child(9) { transition-delay: 0.9s; }
.excard:nth-child(10) { transition-delay: 1.0s; }

/* Enhanced excard entrance animations */
.excard:nth-child(odd) {
    animation: excardSlideInLeft 0.8s ease forwards;
}

.excard:nth-child(even) {
    animation: excardSlideInRight 0.8s ease forwards;
}

@keyframes excardSlideInLeft {
    from {
        opacity: 0;
        transform: translateX(-80px) translateY(40px) rotateY(-20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) rotateY(0);
    }
}

@keyframes excardSlideInRight {
    from {
        opacity: 0;
        transform: translateX(80px) translateY(40px) rotateY(20deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0) rotateY(0);
    }
}

/* Excard content animations */
.excard:hover div:first-child {
    color: var(--primary);
    transform: scale(1.05);
    transition: all 0.3s ease;
}

.excard p {
    transition: color 0.3s ease;
}

.excard:hover p {
    color: var(--gray);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .timeline::before {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        margin-bottom: 30px;
    }
    
    .timeline-item:nth-child(even) {
        left: 0;
    }
    
    .timeline-item::after {
        left: 20px;
    }
    
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        position: static;
        margin-bottom: 15px;
        display: inline-block;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 50px 0;
        transition: all 0.3s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .home-content h1 {
        font-size: 2.8rem;
    }
    
    .home-content h2 {
        font-size: 1.8rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .home-btns .btn {
        display: block;
        margin: 10px auto;
        width: 80%;
        max-width: 250px;
    }
    
    .home-btns .btn-outline {
        margin-left: 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .home-content h1 {
        font-size: 2.2rem;
    }
    
    .home-content h2 {
        font-size: 1.5rem;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
}