:root {
    --primary-color: #2a2a72;
    --secondary-color: #009ffd;
    --accent-color: #4cc9f0;
    --text-color: #333;
    --light-text: #f1f1f1;
    --background-color: #fafafa;
    --card-background: #ffffff;
    --primary-gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

section {
    padding: 80px 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--primary-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary-gradient);
    color: var(--light-text);
    border-radius: 50px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: var(--box-shadow);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: var(--light-text);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 36px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.header.sticky {
    background-color: var(--card-background);
    box-shadow: var(--box-shadow);
}

.header.sticky .logo,
.header.sticky .nav-links li a {
    color: var(--primary-color);
}

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

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--light-text);
    transition: var(--transition);
}

.logo span {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links li a {
    color: var(--light-text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--light-text);
    transition: var(--transition);
}

.header.sticky .hamburger .bar {
    background-color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("Images/baground_profile_pic1.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}


.hero-content {
    position: relative;
    z-index: 1;
    color: var(--light-text);
    margin-right: 10%;
}



.hero-content h1 {
    font-size: 60px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light-text);
    animation: fadeInUp 1s ease;
}

.hero-content h3 {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

.social-icons {
    display: flex;
    margin-top: 30px;
    animation: fadeInUp 1s ease 0.6s;
    animation-fill-mode: both;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 15px;
    color: var(--light-text);
    font-size: 18px;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 500px;
    height: 500px;
    animation: float 6s ease-in-out infinite;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background-color: var(--background-color);
}

.about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.about-image {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-text p {
    margin-bottom: 25px;
    color: #666;
}

.personal-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
}

.info-item i {
    width: 30px;
    font-size: 18px;
    color: var(--secondary-color);
}

.info-item p {
    margin: 0;
    color: var(--text-color);
}

.info-item p span {
    font-weight: 500;
}

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

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

.skill-category {
    background-color: var(--card-background);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-category h3 {
    font-size: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.skill-item {
    margin-bottom: 15px;
}

.skill-item .skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-item .skill-info h4 {
    font-size: 16px;
    font-weight: 500;
    margin: 0;
}

.skill-item .skill-info span {
    font-size: 14px;
    color: #888;
}

.skill-progress {
    width: 100%;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Experience Section */
.experience {
    background-color: var(--background-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 20px 40px;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.timeline-item.in-view {
    opacity: 1;
    transform: translateY(0);
}

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

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

.timeline-content {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -50px;
}

.timeline-date {
    font-size: 14px;
    color: #888;
    margin-bottom: 10px;
}

.timeline-title {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.timeline-company {
    font-size: 16px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.timeline-description {
    color: #666;
}
/* Projects Section */
.projects {
    background-color: var(--card-background);
    padding: 60px 20px;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.project-card.in-view {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.project-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.project-image img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

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

.project-content {
    padding: 25px;
}

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

.project-tag {
    padding: 5px 12px;
    background-color: rgba(76, 201, 240, 0.1);
    color: var(--accent-color);
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.project-title {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.project-description {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.project-link i {
    margin-right: 5px;
}

.project-link:hover {
    color: var(--accent-color);
}
/* Contact Section */
.contact {
    background: var(--primary-gradient);
    color: var(--light-text);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("Images/baground_profile_pic2.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.10;
}

.contact .section-title h2 {
    color: var(--light-text);
}

.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 30px;
    opacity: 0.9;
}

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

.contact-info-item i {
    font-size: 24px;
    color: var(--accent-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-details h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--light-text);
}

.contact-details p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background-color: rgba(255, 255, 255, 0.05);
    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;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control::placeholder {
    color: rgba(255, 255, 255);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.15);
}

textarea.form-control {
    resize: none;
    min-height: 150px;
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-social {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin: 0 10px;
    color: var(--light-text);
    font-size: 18px;
    transition: var(--transition);
}

.footer-social a:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

.footer-text {
    opacity: 0.8;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: 50%;
    color: var(--light-text);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateY(100px);
    transition: var(--transition);
    z-index: 100;
}

.scroll-top.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .hero-content h1 {
        font-size: 48px;
    }

    .hero-content h3 {
        font-size: 20px;
    }

    .hero-image {
        width: 400px;
        height: 400px;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

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

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -39px;
    }
}

@media screen and (max-width: 768px) {
    section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 30px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content h3 {
        font-size: 18px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .hero-image {
        display: none;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        margin-bottom: 30px;
    }

    .personal-info {
        grid-template-columns: 1fr;
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: var(--card-background);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        text-align: center;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        top: 70px;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .nav-links li a {
        color: var(--text-color);
    }

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

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

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

@media screen and (max-width: 576px) {
    .hero-content h1 {
        font-size: 32px;
    }

    .project-card {
        min-width: 100%;
    }
}


@media (max-width: 480px) {
    .project-image {
        aspect-ratio: 4 / 3;
        max-height: 180px;
    }
}
