:root {
    --primary-color: #067db5bb;
    --secondary-color: #689fe1;
    --text-color: #000000;
    --bg-color: #ffffff;
    --card-bg-color: #f5f5f5;
}



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

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

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

/* Header and Navigation */
header {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar {
    background-color: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

.menu-icon {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 30px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .menu-icon {
        display: block;
    }

    .nav-links {
        position: fixed;
        left: -100%;
        top: 5rem;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 2.5rem 0;
    }

    .navbar-container {
        padding: 1rem;
    }
}

/* Main Content */
main {
    padding-top: 60px;
}

.section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem; 
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-align: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.animated-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.shape1 { width: 300px; height: 300px; top: -150px; left: -150px; animation: float 10s infinite ease-in-out; }
.shape2 { width: 200px; height: 200px; top: 50%; right: -100px; animation: float 14s infinite ease-in-out reverse; }
.shape3 { width: 150px; height: 150px; bottom: -75px; left: 10%; animation: float 16s infinite ease-in-out; }
.shape4 { width: 100px; height: 100px; top: 20%; left: 20%; animation: float 18s infinite ease-in-out reverse; }
.shape5 { width: 80px; height: 80px; bottom: 30%; right: 15%; animation: float 21s infinite ease-in-out; }
.shape6 { width: 120px; height: 120px; top: 40%; left: 60%; animation: float 21s infinite ease-in-out reverse; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, 10px) rotate(5deg); }
    50% { transform: translate(20px, 0) rotate(10deg); }
    75% { transform: translate(10px, -10px) rotate(5deg); }
}


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

.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bg-color);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#typing-text {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    min-height: 3rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1rem;
    font-size: 1.5rem;
}

.contact-info a {
    color: var(--bg-color);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hobby-icons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.hobby-icon {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out;
}

.hobby-icon:hover {
    transform: scale(1.1);
}

.about-text ul {
    list-style-type: none;
    margin: 1rem 0;
}

.about-text li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-text li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Skills */
.skills {
    text-align: center;
    background-color: var(--bg-color);
    padding: 3rem 0;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 20px;
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.skills-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.skill {
    margin-bottom: 1.5rem;
    text-align: left;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.skill-bar {
    width: 100%;
    height: 30px;
    background-color: #e0e0e0;
    border-radius: 25px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--secondary-color);
    width: 0;
    border-radius: 25px;
    transition: width 1s ease-in-out;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .skills-container {
        padding: 1rem;
    }

    .skill-bar {
        height: 20px;
    }
}

.experience-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between; /* Space between the cards */
    gap: 20px; /* Add gap between cards */
    margin-top: 2rem;
}

.experience-card {
    flex: 1 1 calc(33.333% - 20px); /* Three cards in a row with space */
    background-color: var(--card-bg-color);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
    max-width: 300px; /* Prevent cards from being too wide */
}

.experience-card:hover {
    transform: translateY(-10px);
}

.experience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
}

.bg-emerald-600 {
    background-color: #10b981;
}

.bg-cyan-600 {
    background-color: #06b6d4;
}

.bg-violet-700 {
    background-color: #8b5cf6;
}

.time-period {
    font-size: 0.875rem;
    color: var(--text-color);
    margin: 0.5rem 0;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .experience-grid {
        flex-direction: column; /* Stack cards vertically on smaller screens */
        gap: 1.5rem;
    }

    .experience-card {
        flex: 1 1 100%; /* Take full width on smaller screens */
        max-width: 100%;
    }
}
.bg-emerald-600 {
    background-color: #10b981;
}

.bg-cyan-600 {
    background-color: #06b6d4;
}

.bg-violet-700 {
    background-color: #8b5cf6;
}

.time-period {
    font-size: 0.875rem;
    color: var(--text-color);
    margin: 0.5rem 0;
}

/* Projects */
.project-card {
    display: flex;
    background-color: var(--card-bg-color);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.reverse {
    flex-direction: row-reverse;
}

.project-image {
    border-radius: 5%;
    flex: 1;
    overflow: hidden;
}

.project-image img {

    padding: 10%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.project-info {
    flex: 1;
    padding: 2rem;
}

.project-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.project-info p, .project-info ul {
    margin-bottom: 1rem;
}

 ul {
    padding-left: 1.5rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

/* Blog Posts */
.blog-posts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-post {
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blog-post h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--secondary-color);
    text-decoration: none;
}

/* Add card styling to the publication section */
.publication {
    background-color: var(--card-bg-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 2.0;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);

    
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--bg-color);
    text-align: center;
    padding: 2rem 0;
    margin-top: 5rem;
}

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--bg-color);
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: var(--secondary-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-content, .project-card, .project-card.reverse {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .timeline::after {
        left: 31px;
    }
    
    .experience-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .experience-item::after {
        left: 15px;
    }
    
    .experience-item:nth-child(even) {
        left: 0%;
    }

    .animated-shape {
        transform: scale(0.7);
    }
}