/*For it to be viewable in all devices in a great way, i will first style the Responsive Design*/
@media (max-width: 768px) {
    .nav.links {
        display: none;
    }

    .my-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .my-container h1 {
        font-size: 2.5rem;

    }

    .my-subtitle {
        font-size: 1.2rem;
    }

    .profile-circle {
        width: 300px;
        height: 300px;
    }

    .profile-image {
        width: 220px;
        height: 220px;
        font-size: 3rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .skills-grid,
    .interests-grid,
    .project-grid {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 2rem;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .my-content h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .my-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
        .social-links {
        justify-content: flex-start;
    }

}



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

:root {
    --primary-green: #00ff88;
    --secondary-green: #00cc6a;
    --dark-bg: #1a1f2e;
    --darker-bg: #151922;
    --card-bg: #232937;
    --text-white: #ffffff;
    --text-gray: #a8b2d1;
    --text-light-gray: #8892b0;
    --border-color: #2d3748;
    --purple-accent: #6b5b95;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-white);
    background-color: var(--dark-bg);
    scroll-behavior: smooth;

}

/*Header Section*/

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 31, 46, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

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

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

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

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

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

/*Main content Section*/
main {
    margin-top: 0;
}

.section {
    padding: 5rem 0;
}

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

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    margin: 1rem auto;
    border-radius: 2px;
}

/*(My details) Section styling*/
#my {
    min-height: 100vh;
    background-color: var(--dark-bg);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.my-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.my-content {
    z-index: 2;

}

.my-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-white);
    font-weight: 700;
}

.my-subtitle {
    font-size: 1.5rem;
    color: var(--primary-green);
    margin-bottom: 1.5rem;
    font-weight: 400;

}

.my-description {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 500px;

}

.my-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 2rem;

}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-green);
    color: var(--dark-blog);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.cta-button:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.social-links {
    display: flex;
    gap: 1rem;

}

.social-link {
    width: 50px;
    height: 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-gray);
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-link:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
    transform: translateY(-2px);
}

.my-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-circle {
    width: 400px;
    height: 400px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    padding: 20px;
}

.profile-circle::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    border-top: none;
    border-left: none;
}

.profile-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple-accent), var(--primary-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--text-white);
    overflow: hidden;
    position: relative;

}
.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;

}
.profile-image .placeholder {
    font-size: 4rem;
    color: var(--text-white);
    z-index: -3;

}
.profile-image img:not([style*="display: none"]) + .placeholder {
    display: none !important;
}



/*My about section*/

#about {
    background: var(--darker-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    width: 300px;
    height: 300px;
    background: var(--card-bg);
    border: 2px solid var(--primary-green);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary-green);
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
}

.about-text h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/*My skills section*/
#skills {
    background: var(--dark-bg);

}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(259px, 1fr));
    gap: 2rem;
    margin-top: 2rem;

}

.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-green);

}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.skill-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
    color: var(--dark-bg);
    font-weight: bold;

}

.skill-card h3 {
    color: var(--text-white);
    margin-bottom: 1rem'

}

.skill-card p {
    color: var(--text-gray);

}


/*Education Section*/
#education {
    background: var(--darker-bg);
}

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

.education-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-green);
}

.education-item h3 {
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.education-item .year {
    color: var(--primary-green);
    font-weight: bold;
    margin-bottom: 1rem;
}

.education-item p {
    color: var(--text-gray);
}

.cv-download {
    text-align: center;
    margin-top: 2rem;
}

.download-btn {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-green);
    color: var(--dark-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/*My interests section*/
#interests {
    background: var(--dark-bg);

}

.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.interest-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.interest-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 36, 0.1);

}

.interest-card h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.interest-card p {
    color: var(--text-gray);
}

/*Projects Secction Styling*/
#projects {
    background: var(--darker-bg);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.1);
}

.project-image {
    height: 200px;
    background: linear-gradient(45deg, var(--purple-accent)), var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 2rem;

}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    color: var(--text-white);
    margin-bottom: 1rem;
}

.project-content p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;

}

.project-link {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--primary-green);
    text-decoration: none;
    border: 2px solid var(--primary-green);
    border-radius: 25px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: var(--primary-green);
    color: var(--dark-bg);
}


/*Contact Form Section*/
#contact {
    background: var(--dark-bg);

}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 2rem;

}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-white);
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--dark-bg);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    color: var(--text-white);
    transition: border-color 0.3s ease;

}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: var(--primary-green);
    color: var(--dark-bg);
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: var(--secondary-green);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

/*Footer Section*/

footer {
    background: var(--darker-bg);
    color: var(--text-gray);
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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