@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #081b29;
    --secondary-bg: #112e42;
    --text-color: #ededed;
    --accent-color: #00abf0;
    --border-color: rgba(0, 171, 240, 0.3);
    --hover-bg: rgba(0, 171, 240, 0.1);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(8, 27, 41, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999; /* Highest z-index for desktop header */
    transition: all 0.3s ease;
}

.header.sticky {
    background: var(--bg-color);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3);
}

.logo {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.logo span {
    color: var(--accent-color);
}

.logo:hover {
    color: var(--accent-color);
}

.navbar {
    display: flex;
    gap: 0;
}

.navbar a {
    margin-left: 3.5rem;
    font-size: 1.7rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.navbar a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.navbar a:hover::after,
.navbar a.active::after {
    width: 100%;
}

.navbar a:hover,
.navbar a.active {
    color: var(--accent-color);
}

#menu-icon-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    width: 4rem;
    height: 4rem;
    background: var(--accent-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 2rem rgba(0, 171, 240, 0.5);
}

.theme-toggle i {
    font-size: 2rem;
    color: #fff;
}

#menu-icon {
    font-size: 35px;
    color: var(--main-color);
    display: none;
    cursor: pointer;
}

#menu-icon:hover {
    color: var(--accent-color);
}

.home {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 12rem 9% 4rem;
    gap: 4rem;
    position: relative;
}

.home-content {
    flex: 1;
    max-width: 60rem;
    animation: slideRight 1s ease forwards;
}

@keyframes slideRight {
    0% { opacity: 0; transform: translateX(-100px); }
    100% { opacity: 1; transform: translateX(0); }
}

.home-content h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.home-content h1 span {
    color: var(--accent-color);
}

.home-content h3 {
    font-size: 3rem;
    font-weight: 700;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.7px var(--accent-color);
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--accent-color), var(--text-color));
    -webkit-background-clip: text;
    background-clip: text;
}

.home-content p {
    font-size: 1.8rem;
    margin: 2rem 0 4rem;
    line-height: 1.8;
    color: rgba(237, 237, 237, 0.9);
}

.btn-box {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    padding: 1.3rem 2.8rem;
    background: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 0.8rem;
    font-size: 1.6rem;
    color: var(--bg-color);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.1rem;
    overflow: hidden;
    transition: all 0.5s ease;
    cursor: pointer;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 171, 240, 0.4);
}

.btn:nth-child(2) {
    background: transparent;
    color: var(--accent-color);
}

.btn:nth-child(2):hover {
    color: var(--bg-color);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--bg-color);
    z-index: -1;
    transition: 0.5s;
}

.btn:hover::before {
    width: 100%;
}

.btn:nth-child(2)::before {
    background: var(--accent-color);
}

.btn i {
    font-size: 2rem;
}

.home-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideLeft 1s ease forwards;
}

@keyframes slideLeft {
    0% { opacity: 0; transform: translateX(100px); }
    100% { opacity: 1; transform: translateX(0); }
}

.home-img .img-container {
    position: relative;
    width: 40rem;
    height: 40rem;
    border-radius: 50%;
    padding: 0.8rem;
    background: linear-gradient(45deg, var(--accent-color), var(--text-color));
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 3rem rgba(0, 171, 240, 0.5);
}

.home-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 0.6rem solid var(--bg-color);
}

.circle-spin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: 0.3rem solid transparent;
    border-bottom: 0.3rem solid transparent;
    border-left: 0.3rem solid var(--accent-color);
    border-right: 0.3rem solid var(--accent-color);
    animation: spin 8s linear infinite;
}

@keyframes spin {
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.home-sci {
    position: absolute;
    bottom: 4rem;
    left: 9%;
    display: flex;
    gap: 2.5rem;
    z-index: 10;
}

.home-sci a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    background: transparent;
    border: 0.2rem solid var(--accent-color);
    border-radius: 50%;
    font-size: 2.2rem;
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.5s ease;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.home-sci a:hover {
    color: var(--bg-color);
    transform: scale(1.15) rotate(360deg);
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    z-index: -1;
    transition: 0.5s;
    border-radius: 50%;
}

.home-sci a:hover::before {
    width: 100%;
}

/* --- ABOUT SECTION --- */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 3rem;
    background: var(--secondary-bg);
    padding: 10rem 9%;
    min-height: 100vh;
}

.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

.heading span {
    color: var(--accent-color);
    text-shadow: 0 0 2rem rgba(0, 171, 240, 0.5);
}

.about-img {
    position: relative;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 50%;
    border: 0.4rem solid var(--accent-color);
    box-shadow: 0 0 3rem rgba(0, 171, 240, 0.4);
}

.about-content {
    text-align: center;
    max-width: 85rem;
}

.about-content p {
    font-size: 1.7rem;
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: justify;
    color: rgba(237, 237, 237, 0.9);
}

.about-content .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

#additional-content {
    margin-top: 3rem;
    animation: fadeIn 0.5s ease;
}

#additional-content h3 {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

#additional-content p {
    text-align: center;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- SKILLS --- */
.skills {
    padding: 10rem 9%;
    background: var(--bg-color);
}

.skills-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 3rem;
    margin-top: 5rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border-radius: 1.2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.05) rotate(5deg);
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.3);
}

.skill-item i {
    font-size: 5.5rem;
    margin-bottom: 1.5rem;
    color: var(--bg-color);
    transition: all 0.3s ease;
}

.skill-item:hover i {
    transform: scale(1.2);
}

.skill-item p {
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--bg-color);
}

.one { background: #bdc4bf; }
.two { background: #f1b130; }
.three { background: #2fbbee; }
.four { background: #f3ef0e; }
.five { background: #4d86b4; }
.six { background: #def9c2; }
.seven { background: #f8f3e3; }

/* --- SOFT SKILLS --- */
.soft-skills-section {
    padding: 10rem 9%;
    background: var(--secondary-bg);
}

.soft-skills-section h2 {
    font-size: 5rem;
    text-align: center;
    margin-bottom: 5rem;
}

.soft-skills-section h2 span {
    color: var(--accent-color);
    text-shadow: 0 0 2rem rgba(0, 171, 240, 0.5);
}

.soft-skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
    gap: 4rem;
}

.soft-skill {
    text-align: center;
    transition: all 0.3s ease;
}

.soft-skill:hover {
    transform: translateY(-10px);
}

.soft-skill i {
    font-size: 5.5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.soft-skill:hover i {
    transform: scale(1.2) rotate(10deg);
}

.soft-skill h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

/* --- PROGRESS CIRCLE --- */
.progress-circle {
    position: relative;
    width: 16rem;
    height: 16rem;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-color) calc(var(--value) * 3.6deg),
        rgba(17, 46, 66, 0.5) 0deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.progress-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 0 3rem rgba(0, 171, 240, 0.5);
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 13rem;
    height: 13rem;
    border-radius: 50%;
    background: var(--secondary-bg);
}

.progress-value {
    position: relative;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-color);
    z-index: 1;
}

/* --- SERVICES --- */
.services {
    padding: 10rem 9%;
    background: var(--secondary-bg);
}

.services-subtitle {
    text-align: center;
    font-size: 1.6rem;
    color: rgba(237, 237, 237, 0.7);
    margin-bottom: 5rem;
}

.services-container {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
   gap: 30px;
   width: 100%;
}

.service-card {
    background: var(--bg-color);
    padding: 4rem 3rem;
    border-radius: 1.5rem;
    border: 0.2rem solid transparent;
    transition: all 0.4s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 1.5rem 4rem rgba(0, 171, 240, 0.3);
}

.service-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
}

.service-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.service-card p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: rgba(237, 237, 237, 0.7);
}

/* --- PROJECTS --- */
.projects {
    padding: 10rem 9%;
    background: var(--bg-color);
}

.projects-list {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 25px;
   width: 100%;
}

.project-item {
    background: var(--secondary-bg);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 0.2rem solid transparent;
}

.project-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 2rem 5rem rgba(0, 171, 240, 0.3);
}

.project-image {
    position: relative;
    width: 100%;
    height: 25rem;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-item:hover .project-image img {
    transform: scale(1.1);
}

.project-tag {
    position: absolute;
    top: 2rem;
    left: 2rem;
    padding: 0.8rem 1.8rem;
    background: rgba(0, 171, 240, 0.9);
    color: #fff;
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-content {
    padding: 3rem;
}

.project-content h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: rgba(237, 237, 237, 0.8);
    margin-bottom: 2rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-tech span {
    padding: 0.6rem 1.4rem;
    background: rgba(0, 171, 240, 0.1);
    color: var(--accent-color);
    border-radius: 2rem;
    font-size: 1.3rem;
    font-weight: 500;
    border: 0.1rem solid rgba(0, 171, 240, 0.3);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--accent-color);
    color: var(--bg-color);
    text-decoration: none;
    border-radius: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 171, 240, 0.4);
}

.project-link i {
    font-size: 1.8rem;
}

/* --- EXPERIENCE --- */
.experience {
    padding: 10rem 9%;
    background: var(--secondary-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.experience-column {
    width: 100%;
    max-width: 85rem;
}

.column-title {
    font-size: 2.8rem;
    color: var(--accent-color);
    margin-bottom: 2.5rem;
    margin-top: 4.5rem;
    font-weight: 600;
}

.column-title:first-child {
    margin-top: 0;
}

.experience-box {
    border-left: 0.3rem solid var(--accent-color);
    padding-left: 3.5rem;
    margin-bottom: 3rem;
}

.experience-content {
    position: relative;
    margin-bottom: 3.5rem;
}

.experience-content:last-child {
    margin-bottom: 0;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -4.2rem;
    width: 2.2rem;
    height: 2.2rem;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 1rem var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 1rem var(--accent-color); }
    50% { box-shadow: 0 0 2.5rem var(--accent-color); }
}

.experience-content .content {
    position: relative;
    padding: 2.8rem;
    border: 0.2rem solid var(--accent-color);
    border-radius: 0.8rem;
    background: var(--bg-color);
    transition: all 0.4s ease;
}

.experience-content .content:hover {
    transform: translateX(10px);
    box-shadow: 0 1rem 2rem rgba(0, 171, 240, 0.3);
    background: rgba(17, 46, 66, 0.5);
}

.experience-content h3 {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.experience-content .day {
    font-size: 1.6rem;
    color: var(--accent-color);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}

.experience-content h4 {
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.experience-content p {
    font-size: 1.6rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
}

.key-areas {
    margin-top: 1.8rem;
}

.key-areas strong {
    font-size: 1.8rem;
    color: var(--accent-color);
    display: block;
    margin-bottom: 1.2rem;
}

.key-areas ul {
    list-style: none;
    padding-left: 0;
}

.key-areas ul li {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.75);
    padding: 0.6rem 0;
    padding-left: 2.2rem;
    position: relative;
}

.key-areas ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 2rem;
    line-height: 1.6rem;
}

/* --- CONTACT --- */
.contact {
    padding: 10rem 9%;
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
    width: 100%;
    max-width: 100rem;
}

.info-card {
    background: var(--secondary-bg);
    padding: 3.5rem 2.5rem;
    border-radius: 1.2rem;
    text-align: center;
    border: 0.2rem solid transparent;
    transition: all 0.4s ease;
}

.info-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-8px);
    box-shadow: 0 1.2rem 3rem rgba(0, 171, 240, 0.3);
}

.info-card i {
    font-size: 4.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.info-card:hover i {
    transform: scale(1.2);
}

.info-card h3 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.info-card p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.75);
}

.contact-form {
    max-width: 85rem;
    margin: 0 auto;
    width: 100%;
}

.input-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.input-field {
    position: relative;
    width: 100%;
}

.input-field input,
.textarea-field textarea {
    width: 100%;
    padding: 1.6rem;
    font-size: 1.6rem;
    color: var(--text-color);
    background: transparent;
    border-radius: 0.8rem;
    border: 0.2rem solid var(--accent-color);
    resize: none;
    transition: all 0.3s ease;
}

.input-field input:focus,
.textarea-field textarea:focus {
    outline: none;
    background: rgba(17, 46, 66, 0.4);
    box-shadow: 0 0 2.5rem rgba(0, 171, 240, 0.3);
    border-color: var(--accent-color);
}

.input-field input::placeholder,
.textarea-field textarea::placeholder {
    color: rgba(237, 237, 237, 0.5);
}

.textarea-field {
    position: relative;
    margin-bottom: 3rem;
}

.textarea-field textarea {
    min-height: 16rem;
}

.focus {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(17, 46, 66, 0.3);
    border-radius: 0.8rem;
    z-index: -1;
    transition: 0.5s;
    pointer-events: none;
}

.input-field input:focus ~ .focus,
.textarea-field textarea:focus ~ .focus {
    width: 100%;
}

/* --- FOOTER --- */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 3rem 9%;
    background: var(--secondary-bg);
    gap: 2rem;
}

.footer-text p {
    font-size: 1.6rem;
    color: rgba(237, 237, 237, 0.85);
}

.footer-icontop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1.2rem;
    background: var(--accent-color);
    border: 0.2rem solid var(--accent-color);
    border-radius: 0.8rem;
    text-decoration: none;
    transition: all 0.5s ease;
}

.footer-icontop a:hover {
    background: transparent;
    transform: translateY(-5px);
}

.footer-icontop a i {
    font-size: 2.6rem;
    color: var(--bg-color);
    transition: 0.5s;
}

.footer-icontop a:hover i {
    color: var(--accent-color);
}

/* --- MEDIA QUERIES --- */

/* Laptops / Desktops */
@media (max-width: 1200px) {
    html { font-size: 57%; }
    .header { padding: 2rem 6%; }
    .home, .about, .skills, .soft-skills-section, 
    .services, .projects, .experience, .contact { padding: 9rem 6% 5rem; }
    .home-sci { left: 6%; }
    .skills-box { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 2.5rem; }
    .services-container { grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); }
    .projects-list { grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); }
}

/* Tablets */
@media (max-width: 991px) {
    html { font-size: 55%; }
    .header { padding: 2rem 5%; }
    .home { flex-direction: column-reverse; padding: 12rem 5% 5rem; text-align: center; gap: 4rem; }
    .home-content { max-width: 100%; }
    .home-img .img-container { width: 35rem; height: 35rem; }
    .home-sci { position: static; justify-content: center; margin-top: 3rem; left: auto; bottom: auto; }
    .btn-box { justify-content: center; }
    .about, .skills, .soft-skills-section, 
    .services, .projects, .experience, .contact { padding: 8rem 5% 5rem; }
    .about-img { width: 30rem; height: 30rem; }
    .skills-box { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2.5rem; }
    .soft-skills-container { grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr)); gap: 3rem; }
    .progress-circle { width: 14rem; height: 14rem; }
    .progress-circle::before { width: 11rem; height: 11rem; }
    .services-container { grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr)); gap: 2.5rem; }
    .projects-list { grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr)); gap: 2.5rem; }
    .contact-info { grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr)); gap: 2rem; }
    .experience-box { padding-left: 2.5rem; }
    .experience-content::before { left: -3.3rem; width: 1.8rem; height: 1.8rem; }
}

/* MOBILE PHONES (This is where the fix is!) */
@media (max-width: 768px) {
    html { font-size: 52%; }
    .header { padding: 1.8rem 4%; }
    .logo { font-size: 2.2rem; }
    
    #menu-icon {
        display: block;
        font-size: 3.5rem;
        color: var(--text-color);
        cursor: pointer;
    }
    
    /* NAVBAR FIX: Display toggle instead of position shift */
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--secondary-bg);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
        display: none; /* This ensures it is invisible by default */
        flex-direction: column;
        text-align: center;
        z-index: 10000;
    }

    /* When class 'active' is added via JS, show it */
    .navbar.active {
        display: flex;
        animation: slideDown 0.4s ease forwards;
    }
    
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 1.5rem 0;
        padding: 1rem 0;
        margin-left: 0;
    }
    
    .navbar a::after { display: none; }
    
    /* Adjust other sections for mobile */
    .home { padding: 10rem 4% 4rem; gap: 3rem; flex-direction: column-reverse; text-align: center; }
    .home-content h1 { font-size: 4rem; }
    .home-content h3 { font-size: 2.6rem; }
    .home-content p { font-size: 1.7rem; }
    .home-img .img-container { width: 28rem; height: 28rem; }
    .home-sci { left: 50%; transform: translateX(-50%); bottom: 3rem; position: static; margin-top: 2rem; }
    .btn { padding: 1.2rem 2.4rem; font-size: 1.5rem; }
    .about { padding: 8rem 4% 4rem; }
    .heading { font-size: 4rem; margin-bottom: 2rem; }
    .about-img { width: 26rem; height: 26rem; }
    .about-content p { text-align: center; font-size: 1.6rem; }
    
    .skills, .soft-skills-section, .services, .projects, .experience, .contact { padding: 8rem 4% 4rem; }
    .skills-box { grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 2rem; }
    .soft-skills-container { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 2.5rem; }
    .progress-circle { width: 12rem; height: 12rem; }
    .progress-circle::before { width: 9.5rem; height: 9.5rem; }
    .progress-value { font-size: 2.2rem; }
    .services-container { grid-template-columns: 1fr; gap: 2rem; }
    .projects-list { grid-template-columns: 1fr; gap: 2.5rem; }
    .project-image { height: 22rem; }
    .project-content { padding: 2.5rem; }
    .experience-box { padding-left: 2rem; }
    .experience-content::before { left: -2.8rem; width: 1.6rem; height: 1.6rem; }
    .column-title { font-size: 2.4rem; margin-top: 3.5rem; }
    .contact-info { grid-template-columns: 1fr; gap: 2rem; }
    .info-card { padding: 3rem 2rem; }
    .input-box { grid-template-columns: 1fr; gap: 2rem; }
    .footer { flex-direction: column; text-align: center; gap: 1.5rem; padding: 2.5rem 4%; }
    
    #back-to-top { width: 4.5rem; height: 4.5rem; bottom: 20px; right: 20px; font-size: 2.2rem; }
}

@media (max-width: 576px) {
    html { font-size: 55%; }
    .home-content h1 { font-size: 4rem; }
    .home-content h3 { font-size: 2.4rem; }
    .about { padding: 8rem 5%; }
    .about-img { width: 24rem; height: 24rem; }
    .soft-skills-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .services-container, .projects-list { grid-template-columns: 1fr; }
    .service-card, .project-item { padding: 3rem 2rem; }
    .experience { padding: 8rem 5%; }
}

@media (max-width: 480px) {
    html { font-size: 50%; }
    .header { padding: 1.5rem 3%; }
    .logo { font-size: 2rem; }
    .home { padding: 9rem 3% 3rem; gap: 2.5rem; }
    .home-content h1 { font-size: 3.4rem; }
    .home-content h3 { font-size: 2.2rem; }
    .home-content p { font-size: 1.6rem; margin: 1.5rem 0 3rem; }
    .home-img .img-container { width: 24rem; height: 24rem; }
    .btn { padding: 1rem 2rem; font-size: 1.4rem; gap: 0.6rem; }
    .btn-box { gap: 1.2rem; flex-direction: column; align-items: center; }
    .home-sci { gap: 1.8rem; }
    .home-sci a { width: 4rem; height: 4rem; font-size: 2rem; }
    .about { padding: 7rem 3% 3rem; }
    .heading { font-size: 3.5rem; }
    .about-img { width: 22rem; height: 22rem; }
    .skills, .soft-skills-section, .services, .projects, .experience, .contact { padding: 7rem 3% 3rem; }
    .skills-box { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .soft-skills-container { grid-template-columns: 1fr; gap: 2rem; }
    .progress-circle { width: 11rem; height: 11rem; }
    .progress-circle::before { width: 8.5rem; height: 8.5rem; }
    .progress-value { font-size: 2rem; }
    .services-container { gap: 1.5rem; }
    .projects-list { gap: 2rem; }
    .project-image { height: 20rem; }
    .experience-box { padding-left: 1.8rem; border-left-width: 0.2rem; }
    .experience-content::before { left: -2.5rem; width: 1.4rem; height: 1.4rem; }
    .contact-info { margin-bottom: 4rem; }
    .info-card { padding: 2.5rem 1.8rem; }
    .input-box { gap: 1.5rem; margin-bottom: 1.5rem; }
    .textarea-field { margin-bottom: 2.5rem; }
    #menu-icon { font-size: 3rem; }
    .footer { padding: 2rem 3%; }
    #back-to-top { width: 4rem; height: 4rem; bottom: 15px; right: 15px; font-size: 2rem; }
}

@media (max-width: 420px) {
    .home-img .img-container { width: 23rem; height: 23rem; }
    .home { padding-top: 14rem; }
    .skills-box, .soft-skills-container { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    html { font-size: 48%; }
    .home-content h1 { font-size: 3rem; }
    .home-content h3 { font-size: 2rem; }
    .home-img .img-container { width: 20rem; height: 20rem; }
    .about-img { width: 20rem; height: 20rem; }
    .skills-box { grid-template-columns: 1fr; }
}