/* Global CSS Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #fff; 
    background-color: #1D232A; 
}

/* Scroll Button */
.scroll-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background-color: #1ABC9C;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(26, 188, 156, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.scroll-btn:hover {
    height: 90px;
    background-color: #16A085;
}

.scroll-btn i {
    font-size: 24px;
    transition: all 0.3s ease;
    position: absolute;
}

#scroll-up {
    top: 12px;
}

#scroll-down {
    bottom: -30px;
}

.scroll-btn:hover #scroll-up {
    top: 18px;
}

.scroll-btn:hover #scroll-down {
    bottom: 18px;
}

/* By default, hide the menu icon */
.menu-icon {
    display: none;
}

/* Header Section */
header {
    position: fixed;
    width: 100%;
    padding: 1rem 9%;
    background: #2B2C2C; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: bold;
    color: #1ABC9C;
    transition: color 0.3s ease-in-out;
}

.logo:hover {
    color: #2f9480;
}


header a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease-in-out, transform 0.2s ease-in-out;
}

header a:hover {
    color: #1ABC9C;
    transform: translateY(-3px);
}


/* Home section */
.hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1D232A; 
}

.hero-text {
    flex: 1;
    padding-right: 2rem;
    margin-top: 3rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff; 
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ccc; 
}

.hero img{
    margin-top: 4rem;
}


.hero-text .buttons a {
    display: inline-block;
    padding: 10px 20px ;
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    background-color: #1ABC9C;
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
    margin-right: 20px;
}

.hero-text .buttons a:hover {
    background-color: #16A085;
    border-color: #1ABC9C;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.7);
}


.hero-image {
    flex: 1;
    text-align: center;
    
}

.hero-image img {
    max-width: 75%;
    height: auto;
    border-radius: 50%;
    border: 5px solid #1ABC9C;
    box-shadow: 0 0 20px rgba(26, 188, 156, 0.7); 
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.hero-image img:hover {
    transform: scale(1.1); 
}


/* Social-icons */
.social-icons {
    display: flex;
    justify-content: left;
    gap: 20px;
    margin: 1.5rem 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #1ABC9C; 
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    position: relative;
}

.social-link i {
    font-size: 1.8rem;
    color: #ffffff;
    transition: transform 0.3s ease-in-out;
}

.social-link:hover {
    background-color: #16A085; 
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.7);
}

.social-link:hover i {
    transform: rotate(10deg) scale(1.1);
}


/* Services Section */
.services-section {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1D232A; 
}

.services-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1ABC9C; 
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    
}

.service {
    background-color: #2B2C2C; 
    padding: 20px;
    border-radius: 10px; 
    border: 3px solid transparent; 
    position: relative; 
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.service:hover {
    transform: translateY(-5px) scale(1.03);
    border-color: #1ABC9C;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.8);
}

.service i {
    font-size: 3rem;
    color: #1ABC9C; 
    margin-bottom: 15px;
}

.service h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #fff; 
}

.service p {
    font-size: 1em;
    color: #ccc; 
}



/* Skills Section */
.skills-section {
    background-color: #1D232A;
    padding: 80px 0;
    text-align: center;
}

.skills-section .container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Title */
.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1ABC9C;
    margin-bottom: 10px;
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1.2rem;
    color: #ccc;
    margin-bottom: 40px;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}

/* Skill Category */
.skill-category {
    background-color: #2B2C2C; 
    padding: 20px;
    border-radius: 10px; 
    border: 3px solid transparent; 
    position: relative; 
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    text-align: center;
}

.skill-category:hover {
    transform: translateY(-5px) scale(1.03); 
    border-color: #1ABC9C;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.8);
}

.skill-category h3 {
    font-size: 1.5rem;
    color: #1ABC9C;
    margin-bottom: 15px;
}

/* Skill List */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

/* Skill Item */
.skill-item {
    background: #333;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    width: 100%;
    max-width: 250px;
    transition: transform 0.3s ease-in-out;
}

.skill-item:hover {
    transform: scale(1.05);
}

/* Skill Icon */
.skill-item img {
    width: 30px;
    height: 30px;
}

/* Skill Name */
.skill-item span {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #444;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

.progress-bar div {
    height: 100%;
    background: #1ABC9C;
    border-radius: 5px;
    transition: width 0.5s ease-in-out;
}



/* Projects Section */
#projects {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1D232A; 
}

#projects h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1ABC9C; 
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.project {
    background-color: #2B2C2C; 
    border-radius: 10px;
    border: 3px solid transparent;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 20px;
}

.project:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #1ABC9C;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.8);
}



.project img {
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin-bottom: 20px;
}

.project h3 {
    font-size: 24px;
    margin: 15px 0 10px;
    color: #1ABC9C; 
}

.project p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 20px 20px;
    color: #ccc; 
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    color: #fff;
    background-color: #1ABC9C; 
    text-decoration: none;
    border: 2px solid transparent;
    border-radius: 50px; 
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.btn:hover {
    background-color: #16A085;
    border-color: #1ABC9C;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.7);
}

/* Active Click Effect */
.btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.5);
}

  /* Achievements Section */
#achievements {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1D232A;
}

#achievements h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1ABC9C; 
    text-align: center;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-items: center;
}

.achievement-card {
    background-color: #2B2C2C; 
    border-radius: 10px;
    border: 3px solid transparent;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    width: 100%;
    max-width: 350px;
    text-align: center;
    padding: 20px;
}

.achievement-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: #1ABC9C;
    box-shadow: 0 0 15px rgba(26, 188, 156, 0.8);
}


.achievement-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.achievement-card h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #1ABC9C; 
}

.achievement-card p {
    font-size: 1em;
    color: #ccc; 
    margin-bottom: 15px;
}

.achievement-links {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.achievement-links a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1ABC9C; 
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 50px; 
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.achievement-links a:hover {
    background-color: #16A085;
    border-color: #1ABC9C;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.7);
}

/* Active Click Effect */
.achievement-links a:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.5);
}



/* Contact Me Section */
.contact-section {
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #1D232A; 
}

.contact-section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #1ABC9C; 
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
    text-align: center;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    background-color: #2B2C2C; 
    color: #fff; 
}

.form-group textarea {
    resize: vertical;
}

.form-group button {
    padding: 12px 25px;
    background-color: #1ABC9C; 
    color: #fff;
    border: 2px solid transparent;
    border-radius: 50px; 
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
    position: relative;
    overflow: hidden;
}

/* Hover Effect */
.form-group button:hover {
    background-color: #16A085;
    border-color: #1ABC9C;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.7);
}

/* Active Click Effect */
.form-group button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(26, 188, 156, 0.5);
}



/* Footer Section */
.footer {
    background-color: #2B2C2C; 
    color: #fff;
    padding: 25px 0;
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    border-top: 3px solid rgba(26, 188, 156, 0.5); 
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer p {
    margin: 5px 0;
    letter-spacing: 0.5px;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.social-media-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: #1ABC9C; 
    border-radius: 50%; 
    box-shadow: 0 4px 10px rgba(26, 188, 156, 0.5);
    transition: all 0.3s ease-in-out;
    position: relative;
}

.social-media-icons img {
    width: 25px;
    height: 25px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease-in-out;
}

.social-media-icons a:hover {
    background-color: #16A085; 
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 15px rgba(26, 188, 156, 0.7);
}

.social-media-icons a:hover img {
    transform: rotate(10deg) scale(1.1);
}


/* Responsive Styles for Mobile and Tablet Devices */
@media (max-width: 1024px) {
    /* Header Section */
    header {
        position: relative; 
    }

    .menu-icon {
        position: absolute;
        right: 5%; 
        top: 50%;
        transform: translateY(-50%); 
    }


    .menu-icon {
        display: block; 
        cursor: pointer;
    }

    .menu-icon #menu-icon-times {
        display: none; 
    }

    .nav-links {
        display: none; 
        flex-direction: column;
        background-color: #2B2C2C;
        position: absolute;
        top: 60px;
        right: 0;
        width: 100%;
        text-align: center;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        z-index: 1000; 
    }

    .nav-links.active {
        display: flex; 
    }

    .nav-links a {
        margin: 1rem 0; 
        color: #fff; 
    }
    /* Hero Section */
    .hero {
        flex-direction: column; 
        padding: 2rem 1rem; 
        text-align: center; 
    }

    .hero-text {
        padding-right: 0; 
        margin-top: 3.5rem; 
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        font-size: 1.5rem; 
    }

    .hero-text .buttons {
        flex-direction: column; 
        align-items: center; 
    }

    .hero-text .buttons a {
        margin: 0.5rem 0; 
    }

    .hero-image {
        margin-top: -1rem; 
    }

    .hero-image img {
        max-width: 80%; 
    }

    /* Social Icons */
    .social-icons {
        justify-content: center; 
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .hero-text h1 {
        font-size: 1.8rem; 
    }

    .hero-text p {
        font-size: 0.9rem; 
    }

    .hero-text .buttons {
        display: flex;
        flex-direction: row; 
        justify-content: center; 
        gap: 10px; 
    }

    .hero-text .buttons a {
        padding: 0.5rem 1rem; 
        font-size: 0.9rem; 
        width: auto; 
        text-align: center; 
    }
    /* Header Section */
    header {
        position: fixed;
        padding: 1rem 3%; 
    }

    .logo {
        font-size: 1.5rem; 
    }
    .services-grid{
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(6, auto);
    }.services-grid > div {
        width: 100%; 
        margin: 0 auto; 
    }
    .projects-grid {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(6, auto);
    }
    .achievements-grid {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(6, auto);
    }
    .social-media-icons a{
        width: 35px;
        height: 35px;
    }
    .footer{
        font-size: 14px;
        font-weight: 400;
    }
    
}

@media (max-width: 768px) {
    .projects-grid .btn,
    .projects-grid a[href*="github"],
    .projects-grid a[href*="demo"] {
        padding: 0.5rem 1rem !important; 
        font-size: 0.8rem !important;
        width: fit-content; 
    }
.achievements-grid {
        grid-template-columns: 1fr; 
        grid-template-rows: repeat(6, auto);
    }
    .achievement-links a {
        padding: 8px 12px !important;
        font-size: 0.8rem !important;
        width: 100% !important;
        text-align: center;
    }
}


@media (max-width: 480px) {
    /* Hero Section */
    .hero-text h1 {
        font-size: 1.5rem; 
    }

    .hero-text p {
        font-size: 0.8rem; 
    }

    /* Header Section */
    header {
        padding: 1rem 2%;
        position: fixed;
    }

    .logo {
        font-size: 1.2rem; 
    }
    .social-media-icons a{
        width: 35px;
        height: 35px;
    }
    .footer{
        font-size: 14px;
        font-weight: 400;
    }
}