/* Root Variables */
:root {
    --primary-color: #f0f0f0;
    --secondary-color: #2c3e50;
    --accent-color: #8e44ad;
    --highlight-color: #3498db;
    --background-color: #1d1f27;
    --border-radius: 10px;
    --transition-speed: 0.3s ease;
    --font-family: 'Arial', sans-serif;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--primary-color);
    line-height: 1.6;
    padding: 0;
    margin: 0;
}

/* Navigation Bar */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--secondary-color);
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

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

.nav-logo h2 {
    color: var(--primary-color);
    font-size: 1.8rem;
}

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

.nav-links li a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color var(--transition-speed);
}

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

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 5rem 2rem;
    text-align: center;
    margin-top: 5rem;
    gap: 2rem;
}

.hero img {
    width: 20vw;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: transform 0.3s;
}

.hero img:hover {
    transform: scale(1.1);
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--highlight-color);
}

.hero-text h1 span {
    /* color: var(--accent-color); */
}
.hero-text h1 span:hover {
    color: var(--primary-color);
    cursor:none;
}

.hero-text p {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 0 15px;
    transition: color var(--transition-speed);
}

.social-links a:hover {
    color: var(--highlight-color);
}

/* Skills Section */
.skills {
    padding: 4rem 2rem;
    text-align: center;
}

.skills .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--highlight-color);
}

.skills-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.skill-card {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    width: 30%;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.skill-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card p {
    font-size: 1.1rem;
    color: var(--primary-color);
}

/* Projects Section */
.projects {
    padding: 4rem 2rem;
    text-align: center;
    background-color: var(--secondary-color);
}

.projects .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.project-card {
    background-color: var(--background-color);
    width: 45%;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s;
}

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

.project-card img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    transition: opacity 0.3s;
}

.project-card:hover img {
    opacity: 0.8;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--highlight-color);
    margin-bottom: 1rem;
}

.project-info p {
    font-size: 1.1rem;
    color: var(--primary-color);
}

.project-info a {
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color var(--transition-speed);
}

.project-info a:hover {
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    padding: 4rem 2rem;
    text-align: center;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.contact-info a {
    color: var(--highlight-color);
    font-weight: bold;
    font-size: 1.3rem;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    padding: 2rem;
    text-align: center;
    color: var(--primary-color);
}

.footer p {
    font-size: 1rem;
}


/* Media Queries */
@media only screen and (max-width: 768px) {

    .nav{
        font-size: xx-small;
    }
  .nav-link{
    display: none;

  }

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero img {
        width: 40vw;
    }
    #name{
        display: block;
    }

    .skills-container {
        flex-direction: column;
        align-items: center;
    }

    .skill-card {
        width: 80%;
        margin-bottom: 2rem;
    }

    .projects-container {
        flex-direction: column;
        align-items: center;
    }

    .project-card {
        width: 80%;
    }

    .footer p {
        font-size: 0.9rem;
    }
}
