:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --text-color: #333;
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    transition: all 0.3s ease;
}

body {
    background: url('WhatsApp Image 2025-03-07 at 17.00.17_4786923e.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-color);
    line-height: 1.6;
}

.content-container {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    width: 80%;
    margin: auto;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Section */
header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    position: relative;
}

h1 {
    font-size: 2.9rem;
}

header h1,
header .tagline {
    text-align: center;
    margin-top: 20px;
    margin-right: 20px;
}

.profile-img {
    width: 280px;
    /* Adjust size as needed */
    height: 280px;
    border-radius: 50%;
    border: 5px solid white;
    position: absolute;
    top: 10px;
    left: 10%;
    right: 150px;
    object-fit: cover;
}

.contact-bar {
    display: flex;
    gap: 15px;
}

.contact-item {
    text-decoration: none;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    position: relative;
}

.contact-item:hover {
    outline: 2px solid rgb(201, 35, 35);
    outline-offset: 3px;
}

.contact-bar {
    background: var(--secondary-color);
    padding: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

.contact-bar a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.contact-bar a:hover {
    transform: translateY(-2px);
    color: var(--primary-color);
}

/* Sections */
.section,
.project-card,
.skill-card {
    background: rgba(255, 255, 255, 0.1);
    /* More transparency */
    border: 2px solid rgba(255, 255, 255, 0.6);
    /* White Border */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    /* Ensure text is white */
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}


.section.visible {
    opacity: 1;
    transform: translateY(0);
}



/* Timeline */
.timeline-item {
    margin: 2rem 0;
    padding-left: 2rem;
    border-left: 3px solid var(--primary-color);
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}



.skill-icon {
    font-size: 2rem;
    width: 50px;
    text-align: center;
}

/* Progress Bars */
.progress-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 10px;
    margin-top: 0.5rem;
}

.progress {
    background: var(--primary-color);
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.project-card:hover,
.skill-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    /* Slightly more visible on hover */
}

.project-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

h2,
h3,
p,
li {
    color: white !important;
    /* Override default text color */
}

.project-links a {
    color: #fff !important;
    /* Ensure links are white */
    text-decoration: underline;
}


/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
}

@media (max-width: 1024px) {
    .container {
        width: 90%;
        padding: 1.5rem;
    }

    .profile-img {
        width: 180px;
        /* Smaller profile picture */
        height: 180px;
        position: relative;
        /* Avoid overlapping */
        margin-bottom: 10px;
    }

    .contact-bar {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .contact-bar a {
        font-size: 0.9rem;
        padding: 0.3rem;
    }

    h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }

    .project-card,
    .skill-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 1rem;
    }

    header {
        clip-path: none;
        padding: 3rem 0;
    }

    .profile-img {
        width: 150px;
        height: 150px;
        margin-bottom: 15px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .contact-bar {
        flex-direction: column;
        text-align: center;
    }

    .section {
        padding: 1rem;
    }
}