:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --accent-color: #3b82f6;
    --text-color: #334155;
    --text-light: #64748b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.7);
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
}

.hero-content .btn {
    display: inline-block;
    background-color: #E3242B;
    color: white;
    padding: 14px 32px;
    border: none;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 8px 20px #BC544B;
}

.hero-content .btn:hover {
    background-color: #E3242B;
    transform: translateY(-3px);
}

.hero-subtext {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    color: #f5f5f5;
    letter-spacing: 0.03em;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 650px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
}


@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}


/* Navbar */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background-color: white !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: white !important;
}

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

.nav-link:hover {
    color: white !important;
}

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

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

.navbar-toggler {
    border: none;
    color: white !important;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: #cc0033 !important;
}

.navbar.scrolled .nav-link:hover {
    color: #cc0033 !important;
}

.navbar.scrolled .nav-link::after {
    background-color: #5F6A72;
}

/* Section Common Styles */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
    text-align: center;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #E3242B;
    margin: 15px auto 0;
}

   /* About Section */
        .about-section {
            background-color: white;
            padding: 4rem 0;
        }

        .profile-image-container {
            position: relative;
            display: flex;
            justify-content: center;
            margin-bottom: 2rem;
        }

        .profile-img {
            width: 100%;
            max-width: 280px;
            border-radius: 15px;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            transition: all 0.4s ease;
            border: 4px solid white;
        }

        .profile-img:hover {
            transform: translateY(-5px) rotate(1deg);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }

        .about-content {
            text-align: center;
        }

        .about-content h2 {
            font-size: 2.2rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            position: relative;
            display: inline-block;
            color: var(--text-dark);
        }

        .about-content h2::after {
            content: '';
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            bottom: -10px;
            width: 50px;
            height: 3px;
            background: #E3242B;
            border-radius: 2px;
        }

        .about-content p {
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 1.5rem;
            color: var(--text-light);
            text-align: left;
            max-width: 100%;
        }

        /* Mobile Optimizations */
        @media (max-width: 768px) {
            .section {
                padding: 2rem 0;
            }

            .about-section {
                padding: 2.5rem 0;
            }

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

            .profile-img {
                max-width: 200px;
                border: 3px solid white;
            }

            .profile-image-container {
                margin-bottom: 1.5rem;
            }

            .about-content {
                padding: 0 1rem;
            }

            .about-content h2 {
                font-size: 1.8rem;
                margin-bottom: 1rem;
            }

            .about-content h2::after {
                width: 40px;
                height: 3px;
                bottom: -8px;
            }

            .about-content p {
                font-size: 1rem;
                line-height: 1.6;
                margin-bottom: 1rem;
                text-align: center;
            }

            .container {
                padding-left: 1rem;
                padding-right: 1rem;
            }
        }

        /* Extra small screens */
        @media (max-width: 480px) {
            .section-title {
                font-size: 1.8rem;
            }

            .profile-img {
                max-width: 180px;
            }

            .about-content h2 {
                font-size: 1.6rem;
            }

            .about-content p {
                font-size: 0.95rem;
                line-height: 1.5;
            }

            .about-section {
                padding: 2rem 0;
            }
        }

        /* Desktop layout restoration */
        @media (min-width: 992px) {
            .about-content {
                text-align: left;
            }

            .about-content h2::after {
                left: 0;
                transform: none;
            }

            .about-content p {
                text-align: left;
                font-size: 1.1rem;
                line-height: 1.8;
            }

            .profile-img {
                max-width: 320px;
            }

            .profile-image-container {
                margin-bottom: 0;
            }
        }



/* Skills Section */
.skills-section {
    background-color: var(--light-color);
}

.skill-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    text-align: center;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #E3242B;
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

/* Projects Section */
.projects-section {
    background-color: white;
}

.project-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid #cc0033;
    color: #cc0033;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0 5px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background-color: #cc0333;
    color: white;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-img {
    height: 200px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.project-tag {
    background-color: var(--light-color);
    color: #cc0333;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 8px;
    margin-bottom: 8px;
}

.project-links a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.project-links a:first-child {
    background-color: #cc0033;
    color: white;
}

.project-links a:last-child {
    border: 1px solid #cc0033;
    color: #cc0333;
}

.project-links a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-color);
}

.contact-info {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: #cc0033;
    font-size: 1.2rem;
}

.contact-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: #cc0033;
}

.contact-form {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-control {
    height: 50px;
    border-radius: 5px;
    border: 1px solid #e2e8f0;
    padding: 0 15px;
    margin-bottom: 20px;
}

.form-control:focus {
    box-shadow: none;
    border-color: #cc0033;
}

textarea.form-control {
    height: 150px;
    padding: 15px;
}

.submit-btn {
    background-color: #cc0033;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}
.footer {
    background: var(--dark-color);
    color: white;
    padding: 50px 0 20px;
    text-align: center;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-description {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.footer-links h4::after {
    content: '';
    width: 40px;
    height: 2px;
    background: #cc0033;
    display: block;
    margin: 8px auto 0;
}

.footer-links ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-links li {
    display: inline-block;
    margin: 0 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

@media (max-width: 576px) {
    .footer-links li {
        display: block;
        margin: 8px 0;
    }
}


.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.8rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        margin-top: 30px;
    }
    
    .project-img {
        height: 180px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .filter-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
    
    .project-info {
        padding: 20px;
    }
    
    .project-links a {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

.about-container {
    padding: 120px 0;
    background-color: #f9fafb;
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

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

.profile-column {
    position: relative;
}

.image-container {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
    transform: scale(1);
    transition: transform 0.5s ease;
}

.image-container:hover img {
    transform: scale(1.03);
}

.bio-column {
    position: relative;
}

.name-heading {
    font-size: 42px;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.title-subheading {
    font-size: 20px;
    font-weight: 500;
    color: #4a5568;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    position: relative;
}

.title-subheading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #3182ce;
}

.bio-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #2d3748;
    margin-bottom: 24px;
}

.skills-section {
    margin-top: 40px;
}

.skills-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.skills-grid li {
    background-color: #e2e8f0;
    color: #2d3748;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skills-grid li:hover {
    background-color: #3182ce;
    color: white;
    transform: translateY(-2px);
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Vertical center line */
.timeline-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #cc0033;
    transform: translateX(-50%);
}

/* Timeline item */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    box-sizing: border-box;
}

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

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

/* Dot */
.timeline-dot {
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background-color: white;
    border: 4px solid #cc0033;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -10px;
}

/* Date */
.timeline-date {
    font-weight: bold;
    color: #cc0033;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* Content */
.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
    font-size: 1.3rem;
    color: #333;
}

.timeline-content p {
    color: #666;
    margin-bottom: 0;
}

/* ------------------ Responsive Design ------------------ */
@media screen and (max-width: 768px) {
    .timeline-container::after {
        left: 20px;
        transform: none;
    }

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

    .timeline-dot {
        left: 20px !important;
        right: auto;
    }
}

@media screen and (max-width: 480px) {
    .timeline-item {
        padding: 15px 15px 15px 50px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
        left: 15px !important;
    }

    .timeline-content {
        padding: 15px;
    }

    .timeline-date {
        font-size: 1rem;
    }

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


/* Skills Section */
.skills-section {
    background-color: #f9f9fc;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.skills-section::before {
    content: '';
    position: absolute;
    top: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.04);
    z-index: 0;
}

.skills-section::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background-color: rgba(var(--primary-rgb), 0.06);
    z-index: 0;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: #cc0033;
    border-radius: 2px;
}

.skill-card {
    background: white;
    border-radius: 15px;
    padding: 30px 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    transition: all 0.4s ease;
    height: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.skill-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-bottom: 3px solid #cc0033;
}

.skill-icon {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: #cc0033;
    height: 75px;
    width: 75px;
    line-height: 75px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(var(--primary-rgb), 0.08);
    transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
    background-color: #cc0033;
    color: white;
    transform: scale(1.1);
}

.skill-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.skill-card:hover h3 {
    color: #cc0033;
}

.skill-card p {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 0.95rem;
}

@media (max-width: 991px) {
    .skills-section {
        padding: 5rem 0;
    }
    
    .section-title {
        font-size: 2.4rem;
    }
    
    .skill-card {
        padding: 25px 20px;
    }
    
    .skill-icon {
        font-size: 2.5rem;
        height: 65px;
        width: 65px;
        line-height: 65px;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .skill-card h3 {
        font-size: 1.2rem;
    }
    
    .skill-icon {
        margin-bottom: 1.2rem;
    }
}

