:root {
    --bg-color: #081c2b;
    --main-color: #c46ee4;
    --text-color: #ededed;
    --secondary-text-color: #a0b2c0;
    --card-bg-color: #0e2a47;
    --border-color: #57285d;
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background-image: url('assets/portfolio\ bg\ 1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 10%;
    background: #57285d80;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.logo a {
    font-size: 24px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 700;
}

.logo span {
    color: var(--main-color);
}

.navbar a {
    font-size: 18px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 35px;
    transition: color 0.3s;
}

.navbar a:hover,
.navbar a.active {
    color: var(--main-color);
}

.btn {
    padding: 10px 10px 12px 12px;
    background: rgba(14, 41, 71, 0.676);
    backdrop-filter: blur(8px);
    border: 2px solid var(--main-color);
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 1px;
    transition: box-shadow 0.3s;
    width: 15%;
}

.email i {
    border: 2px solid rgb(255, 255, 255);
    padding: 10px;
    border-radius: 50%;
}

.email span {
    font-size: 20px;
    padding: 15px 10px 10px 10px;
}

.email-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 28px;
    background-color: transparent;
    color: var(--main-color);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid var(--main-color);
    transition: background-color 0.3s, color 0.3s;
}

.email-btn-outline:hover {
    background-color: var(--border-color);
    color: #ffffff;
}

.email-btn-outline i {
    font-size: 18px;
}

.email-btn-outline:hover {
    box-shadow: 0 0 10px var(--main-color);
}

.menu-icon {
    font-size: 28px;
    color: var(--text-color);
    cursor: pointer;
    display: none;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55), background-color 0.2s, border-color 0.2s;
    transform: rotate(0deg);
    padding: 10px;
    border: 2px solid transparent;
    border-radius: 5px;
}

.menu-icon.active {
    transform: rotate(90deg);
}

.menu-icon:hover {
    border: 2px solid rgba(239, 239, 239, 0.815);
    background-color: rgba(62, 62, 62, 0.664);
}

.menu-icon:active {
    border: 2px solid rgba(239, 239, 239, 1);
    background-color: rgba(62, 62, 62, 0.9);
}

/* Sections */
section {
    padding: 100px 10%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-bottom: 20px;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 2rem;
    flex-grow: 1;
}

.hero-text {
    max-width: 50%;
}

.hero-text .intro {
    font-size: 16px;
    color: var(--secondary-text-color);
    letter-spacing: 2px;
}

.hero-text h1 {
    font-size: 41px;
    font-weight: 700;
    margin: 10px 0;
}

.hero-text h2 {
    font-size: 39px;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-text h2 span {
    color: var(--main-color);
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero-text .description {
    font-size: 16px;
    color: var(--secondary-text-color);
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-touch {
    display: inline-block;
    padding: 12px 28px;
    background: var(--main-color);
    border-radius: 40px;
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-touch:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--main-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    text-decoration: none;
    margin-left: 10px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-links a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--main-color);
}

.hero-image-container {
    position: relative;
    max-width: 400px;
}

.hero-image {
    width: 90%;
    z-index: 10;
    position: relative;
    border-radius: 20px;
    border: 2px solid rgb(158, 158, 158);
    background: #35293759;
    transition: box-shadow 300ms ease-in-out;
}

.hero-image:hover {
    cursor: pointer;
    box-shadow: 0px 0px 15px 1px rgba(219, 219, 219, 0.537);
}

.hero-bg-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    z-index: 1;
}

.partners {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    padding: 20px 0;
    color: var(--secondary-text-color);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.partners i {
    margin-right: 8px;
    color: var(--main-color);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

/* About Section */
.about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    background-color: var(--bg-color);
    padding: 100px 10%;
    min-height: 100vh;
}

.about-header-centered {
    text-align: center;
    margin-bottom: 2rem;
}

.about-header-centered .subheading {
    color: var(--secondary-text-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.about-header-centered h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.about-header-centered h2 span {
    color: var(--main-color);
}

.about-main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.about-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.about-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 50%;
    border: 5px solid var(--border-color);
    box-shadow: 0 0 30px 10px #3b253fa5;
    position: relative;
    z-index: 2;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.about-coder-shape {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    border: 3px solid var(--main-color);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    opacity: 0.5;
    z-index: 1;
    animation: rotateShape 10s linear infinite;
}

@keyframes rotateShape {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about-text-content {
    flex: 2;
    min-width: 400px;
    text-align: left;
}

.about-text-content h2 {
    font-size: 2.2rem;
    margin: 0 0 1.5rem;
    line-height: 1.3;
    color: var(--text-color);
}

.about-text-content h2 span {
    color: var(--main-color);
}

.about-text-content .description {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.stats-grid-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    width: 100%;
    flex-wrap: wrap;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    border-left: 3px solid var(--main-color);
    flex-shrink: 0;
}

.stats-grid-container .stat-item:first-child {
    border-left: none;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--main-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1rem;
    color: var(--secondary-text-color);
}

/* Project Section */
.projects {
    backdrop-filter: blur(3px) brightness(0.8);
    z-index: -1;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.projects .subheading {
    color: var(--secondary-text-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.projects h2 {
    font-size: 3.2rem;
    margin: 10px 0 20px;
    font-weight: 700;
    color: var(--text-color);
}

.projects h2 span {
    color: var(--main-color);
}

.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 50px;
}

.filter-btn {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.filter-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
}

.filter-btn.active {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
    box-shadow: 0 0 15px rgba(196, 110, 228, 0.4);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.project-card {
    background: rgba(14, 42, 71, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 300px;
}

@keyframes border-pulse {
    0% {
        border-color: var(--main-color);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    }

    50% {
        border-color: #ffffff;
        box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
    }

    100% {
        border-color: var(--main-color);
        box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
    }
}

.project-card:hover {
    border: 2px solid;
    animation: border-pulse 2s infinite;
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
}

.project-card:hover .project-image-wrapper img {
    transform: scale(1.15);
    filter: blur(4px) brightness(0.6);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-in-out;
    padding: 20px;
    z-index: 2;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.8rem;
    color: var(--main-color);
    margin: 0 0 5px 0;
    text-transform: uppercase;
    font-weight: 700;
}

.project-overlay .tech-stack {
    color: #fff;
    font-size: 1rem;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.project-overlay .project-desc {
    color: #ddd;
    font-size: 0.9rem;
    margin: 0 0 20px 0;
    line-height: 1.5;
    max-width: 85%;
}

.explore-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 28px;
    background: transparent;
    border: 2px solid var(--main-color);
    color: #fff;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.explore-btn i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
    transform: scale(1.05);
}

.explore-btn:hover i {
    transform: translateX(5px);
}

.static-project-name {
    padding: 15px;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.static-project-name h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 600;
    text-transform: capitalize;
}

/* Services Section */
.services {
    text-align: center;
    background-color: #0b223a;
    padding: 80px 0;
}

.subheading {
    color: var(--secondary-text-color);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.services h2 {
    font-size: 42px;
    margin-bottom: 60px;
    color: #ffffff;
}

.services h2 span {
    color: var(--main-color);
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.service-card {
    background: linear-gradient(145deg, #1a3a5a, #0d2740);
    padding: 45px 35px;
    border-radius: 15px;
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
    border: 1px solid rgba(0, 170, 255, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(0, 170, 255, 0.05);
    transform: rotate(45deg);
    transition: all 0.5s ease;
    z-index: 0;
}

.service-card:hover::before {
    top: -100%;
    left: -100%;
    background: rgba(0, 170, 255, 0.15);
}

.service-card:hover {
    transform: translateY() scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 170, 255, 0.25);
    border-color: var(--main-color);
}

.service-card i {
    font-size: 55px;
    color: var(--main-color);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: #a0a0a0;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

/* Skills Section */
.skills {
    padding: 80px 20px;
    text-align: center;
}

.skills h2 {
    font-size: 42px;
    margin-bottom: 60px;
    color: var(--main-color);
}

.skills h2 span {
    color: #ffffff;
}

.skills .subheading {
    color: var(--secondary-text-color);
    font-size: 16px;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.main-skills-grid-container {
    margin: 0px 50px 0px 50px;
    display: grid;
    grid-template-columns: 2.2fr 1.5fr;
    gap: 40px;
    align-items: start;
    padding: 0 20px;
}

/* Left Column: Tech Stack Logos */
.tech-stack-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.skill-category {
    background: #0b223a93;
    backdrop-filter: blur(10px);
    padding: 35px 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-category h3 {
    font-size: 24px;
    color: var(--main-color);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 20px;
    justify-items: center;
    width: 100%;
}

/* Adjust grid columns specifically for the front-end category */
.front-end-category .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-8px) scale(1.05);
}

.skill-item img {
    width: 60px;
    height: 60px;
}

.skill-item p {
    color: #a0a0a0;
    font-weight: 500;
    font-size: 15px;
}

.minor-skills-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}


/* Right Column: Percentage Bars */
.percentage-skills-column {
    background: #0b223a37;
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.percentage-skills-column h3 {
    font-size: 24px;
    color: var(--main-color);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-align: center;
}

.skill-bar-item {
    margin-bottom: 25px;
}

.skill-bar-item:last-child {
    margin-bottom: 0;
}

.skill-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.skill-title img,
.skill-title i {
    width: 30px;
    height: 30px;
    font-size: 30px;
    color: var(--main-color);
}

.skill-title p {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
}

.progress-bar-container {
    background-color: #1a3a5a;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(to right, #00aaff, #0077cc);
    height: 100%;
    border-radius: 10px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    transition: width 1.5s ease-out;
    position: relative;
}

.progress-bar span {
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Contact Section */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 10%;
    min-height: 100vh;
    background: var(--bg-color);
}

.contact-header-centered {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.contact-header-centered .subheading {
    color: var(--secondary-text-color);
    font-weight: 500;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.contact-header-centered h2 {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--text-color);
}

.contact-header-centered h2 span {
    color: var(--main-color);
}

.contact-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
    flex-wrap: wrap;
}

.contact-image-container {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    filter: drop-shadow(0px 0px 30px rgba(0, 0, 0, 0.687));
}

.contact-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
}

.contact-form-details-container {
    flex: 2;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.contact-form-box {
    background: rgba(14, 42, 71, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(196, 110, 228, 0.15);
    text-align: left;
}

.contact-form-box h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.3;
}

.contact-form .input-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--secondary-text-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 10px rgba(196, 110, 228, 0.3);
}

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

.btn-send-message {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: var(--main-color);
    border: none;
    border-radius: 40px;
    color: var(--bg-color);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
}

.btn-send-message:hover {
    background: #a44ee4;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(196, 110, 228, 0.4);
}

.contact-details-box {
    background: rgba(14, 42, 71, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(196, 110, 228, 0.15);
    text-align: left;
}

.contact-details-box h3 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 15px;
}

.detail-item i {
    font-size: 24px;
    color: var(--main-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.detail-item p {
    color: var(--secondary-text-color);
    font-size: 1.1rem;
    line-height: 1.5;
}

.social-links-contact {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 30px;
}

.social-links-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--main-color);
    text-decoration: none;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-links-contact a:hover {
    background: var(--main-color);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--main-color);
}

.word-W {
    background-color: #3abbe6;
    border-radius: 50%;
}

/* Footer */
footer {
    padding: 20px 10%;
    text-align: center;
    background: #112b3e;
    border-top: 1px solid var(--border-color);
    color: var(--secondary-text-color);
}


/* ============================================= */
/* Responsive Design (Consolidated) */
/* ============================================= */

@media (max-width: 1200px) {
    .social-media {
        margin-left: -10px;
    }

    .about-coder-shape {
        height: 370px;
        width: 110%;
    }

    .project-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }

    .header {
        padding: 20px 5%;
    }

    section {
        padding: 100px 5%;
    }

    .hero-buttons {
        display: inline-grid;
        align-items: center;
    }
}

@media (max-width: 1024px) {
    /* .hero-content {
        gap: 1rem;
    } */

    .about-coder-shape {
        height: 480px;
    }

    .about-image {
        max-width: 400px;
    }

    .about-image-wrapper {
        min-width: 480px;
    }
}

@media (max-width: 992px) {
    .header {
        padding: 20px 5%;
    }

    .email-btn-outline {
        padding: 12px;
    }

    .email-btn-outline i {
        font-size: 20px;
        margin: 0;
    }

    .about-main-content {
        flex-direction: column;
        text-align: center;
    }

    .about-text-content {
        min-width: unset;
        text-align: center;
    }

    .about-image-wrapper {
        margin-bottom: 2rem;
    }

    .stats-grid-container {
        flex-direction: row;
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .stats-grid-container .stat-item {
        border-left: none;
        padding: 0;
    }

    .projects h2 {
        font-size: 2.5rem;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 450px;
    }

    .project-card {
        max-width: 100%;
    }

    .project-image-container {
        height: 180px;
    }

    .project-content h3 {
        font-size: 1.5rem;
    }

    .project-filters {
        gap: 10px;
        margin-bottom: 30px;
    }

    .filter-btn {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .main-skills-grid-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .front-end-category,
    .minor-skills-wrapper,
    .percentage-skills-column {
        min-width: unset;
        width: 100%;
    }

    .front-end-category .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .contact-content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .contact-image-container {
        max-width: 100%;
        padding: 15px;
    }

    .contact-form-details-container {
        min-width: unset;
        width: 100%;
        max-width: 500px;
        gap: 2.5rem;
    }

    .contact-form-box,
    .contact-details-box {
        padding: 30px;
    }

    .contact-form-box h3,
    .contact-details-box h3 {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .detail-item {
        margin-bottom: 15px;
        gap: 10px;
    }

    .detail-item i {
        font-size: 20px;
    }

    .detail-item p {
        font-size: 1rem;
    }

    .social-links-contact {
        justify-content: center;
        gap: 10px;
        margin-top: 25px;
    }

    .social-links-contact a {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    /* 
    .navbar {
        display: none;
    } */

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

    .hero-text {
        max-width: 100%;
    }

    .hero-image-container {
        max-width: 350px;
        margin-top: 40px;
    }

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

    .stats {
        justify-content: center;
    }
}

@media (max-width: 769px) {
    .header {
        justify-content: space-between;
    }

    .menu-icon {
        display: block;
        order: -1;
    }

    .email-btn-outline {
        order: 1;
    }

    .logo {
        order: 0;
    }

    .navbar {
        position: absolute;
        top: 100%;
        display: block;
        left: 0;
        width: 50%;
        background: #0b223a;
        border-radius: 0px 0px 5px 0px;
        border-top: 1px solid var(--border-color);

        /* Hide menu by default */
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
    }

    .navbar.active {
        max-height: 500px;
        background: #0b223a;
        width: 50%;
        border-radius: 0px 0px 5px 0px;
    }

    .navbar a {
        font-size: 15px;
        display: block;
        /* Stack links vertically */
        margin: 0;
        padding: 15px 5%;
        /* Add padding to links */
        text-align: center;
        border-bottom: 1px solid var(--border-color);
    }

    .navbar a:last-child {
        border-bottom: none;
    }

    .navbar a:hover,
    .navbar a.active {
        background-color: var(--main-color);
        color: var(--bg-color);
    }

    .about {
        padding: 80px 50px 50px 50px;
    }

    .about-image {
        max-width: 200px;
    }

    .about-coder-shape {
        height: 360px;
        width: 85%;
    }

    .about-header-centered h2 {
        font-size: 2.5rem;
    }

    .about-text-content h2 {
        font-size: 1.5rem;
    }

    .about-text-content .description {
        text-align: justify;
    }

    .stat-item h3 {
        font-size: 25px;
    }

    .stat-item p {
        font-size: 11px;
    }

    .partners {
        flex-wrap: wrap;
        gap: 20px;
    }

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

    .project-image-wrapper {
        height: 250px;
    }

    .project-cards,
    .service-cards {
        grid-template-columns: 1fr;
    }

    .contact-image {
        width: 80%;
    }

    .hero-buttons {
        display: flex;
    }

    .service-card {
        max-width: 600px;
    }
}

@media (max-width: 576px) {
    .skills h2 {
        font-size: 32px;
        margin-bottom: 40px;
    }

    .skill-category h3,
    .percentage-skills-column h3 {
        font-size: 20px;
    }

    .skill-item img {
        width: 50px;
        height: 50px;
    }

    .skill-item p {
        font-size: 13px;
    }

    .skill-title img,
    .skill-title i {
        width: 25px;
        height: 25px;
        font-size: 25px;
    }

    .skill-title p {
        font-size: 16px;
    }

    .contact-header-centered h2 {
        font-size: 2.5rem;
    }

    .contact-form-box h3,
    .contact-details-box h3 {
        font-size: 1.4rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .btn-send-message {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .projects h2 {
        font-size: 2rem;
    }

    .project-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 80%;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .technologies {
        font-size: 0.8rem;
    }

    .project-image-container {
        height: 150px;
    }
}

/* @media (max-width: 426px) { */
@media (max-width: 560px) {
    .social-media {
        margin-left: -10px;
    }

    .hero-text h1 {
        font-size: 35px;
    }

    .hero-buttons {
        /* justify-content: center; */
        display: grid;
    }

    .about-coder-shape {
        height: 240px;
        width: 100%;
    }

    .about-image-wrapper {
        max-width: 270px;
        min-width: 270px;
    }

    .about-text-content .description {
        font-size: 0.9rem;
        line-height: 1.5;
        text-align: justify;
    }

    .hero-text h2 {
        font-size: 25px;
    }

    .services h2 {
        font-size: 2rem;
    }

    .service-cards {
        width: 80%;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 15px;
    }

    .service-card::before {
        width: 130%;
    }

    .main-skills-grid-container {
        display: grid;
        justify-content: center;
        margin: auto;
    }

    .front-end-category .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    /* === CONTACT SECTION FIX === */
    .contact {
        padding: 100px 40px;
    }

    .contact-image-container,
    .contact-form-details-container {
        min-width: unset;
        width: 100%;
    }

    .contact-form-box,
    .contact-details-box {
        padding: 30px 25px;
    }

    .contact-form-box h3,
    .contact-details-box h3 {
        font-size: 1.6rem;
    }

    .detail-item p {
        word-break: break-all;
    }
}

@media (max-width: 376px) {
    .about-image-wrapper {
        max-width: 200px;
        min-width: 200px;
    }

    .about-coder-shape {
        height: 225px;
        width: 100%;
    }

    .email-btn-outline {
        padding: 8px 20px;
        font-size: 13px;
    }

    .email-btn-outline i {
        font-size: 14px;
    }
}