* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    scroll-behavior: smooth;
    font-family: 'Inter Tight', sans-serif;
}

:root {
    --bg-color: #0F172A;
    --text-color: #F0F0DB;
    --main-color: #22D3EE;
}

html, body {
    height: 100%;
    overflow-x: hidden;
}

html {
    font-size: 60%;
}

body {
    background: linear-gradient(180deg, #0F172A 0%, #15203C 50%, #0F172A 100%);
    color: var(--text-color);
    padding-top: 4rem;
}

.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 4rem 5%;
    background-color: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#menu-icon {
    font-size: 3.5rem;
    color: var(--main-color);
    display: none;
    cursor: pointer;
}

.logo {
    font-size: 3.2rem;
    color: var(--text-color);
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.1);
}

span {
    background: linear-gradient(90deg, #22D3EE 0%, #00FFFF 50%, #33CCFF 100%);
    background-clip: text;
    color: transparent;
}

.navbar a {
    font-size: 1.95rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: 0.3s ease-in-out;
    border-bottom: 3px solid transparent;
}

.navbar a:hover {
    color: var(--main-color);
    border-bottom: 3px solid var(--main-color);
}

.gradient-btn {
    font-size: 1.8rem;
    padding: 1rem 2rem;
    border-radius: 3rem;
    background: linear-gradient(90deg, #22D3EE 0%, #00FFFF 50%, #33CCFF 100%);
    box-shadow: 0 0 0 rgba(34, 211, 238, 0);
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    color: var(--bg-color);
    white-space: nowrap;
}

.gradient-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(34, 211, 238, 0.45);
}

section {
    min-height: 100vh;
    padding: 12rem 10% 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.home-content {
    flex: 1.2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.home-content h1 {
    font-size: clamp(4rem, 8vw, 8rem); 
    line-height: 1.1;
    margin-bottom: 1.5rem;
    white-space: nowrap; 
    flex-shrink: 0; 
}

.home-content h3 {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    margin-bottom: 1.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.home-content p {
    font-size: 2rem;
    line-height: 1.6;
    max-width: 55ch;
    text-wrap: balance;
}

.home-img {
    display: flex;
    justify-content: center;
    align-self: center;
}

.home-img img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 3rem;
    padding: 1rem;
    border: 2px solid var(--main-color);
    border-radius: 50%;
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

.social-icons a:hover {
    color: var(--text-color);
    background-color: var(--main-color);
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 0 25px var(--main-color);
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    flex-wrap: nowrap;
}

.about-content {
    flex: 1;
}

.about-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-img img {
    width: auto;
    max-width: 400px;
    border-radius: 50%;
    box-shadow: 0 0 25px var(--main-color);
    transition: 0.4s ease-in-out;
}

.about-img img:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color),
                0 0 100px var(--main-color);
}

.about-content h2 {
    font-size: 7rem;
    text-align: left;
}

.about-content p {
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--text-color);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: var(--main-color);
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    background-color: var(--bg-color);
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--main-color) var(--bg-color);
}

.heading {
    text-align: center;
    font-size: 7rem;
    margin: 5rem 0;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    align-items: center;
    gap: 3rem;
}

.skills-box {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #111C33;
    border: 2px solid rgba(34, 211, 238, 0.18); 
    height: 520px;
    border-radius: 3rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border 0.3s ease;
    overflow: hidden; 
}

.skills-box:hover {
    border: 2px solid var(--main-color);
    transform: translateY(-6px);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.25);
}

.skills-info {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: center;
    align-items: center;
    padding: 3.5rem;
    width: 100%;
}

.skills-info h4 {
    font-size: 2.4rem;
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-color);
}

.skills-info p {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-color);
}

.skills-info i {
    font-size: 4.5rem;
    color: var(--main-color);
    margin-bottom: 1rem;
    display: block;
    height: 5rem; 
    line-height: 5rem;
}

.projects-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.projects-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid var(--main-color);
    border-radius: 3rem;
    gap: 2rem;
    padding: 5rem 2rem;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 0 5px var(--main-color);
    transition: 0.3s ease;
}

.projects-card:hover {
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transform: scale(1.02);
}

.projects-card img {
    max-width: 300px;
    border-radius: 2rem;
    object-fit: cover;
}

.projects-card h3 {
    font-size: 3rem;
}

.projects-card p {
    font-size: 2rem;
}

.contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact form {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 2.5rem;
}

.input-box {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    width: 100%;
}

.input-box input, 
.input-box textarea {
    width: 100%;
    padding: 2rem;
    font-size: 1.8rem;
    color: var(--text-color);
    background-color: var(--bg-color);
    border-radius: 2rem;
    border: 2px solid var(--main-color);
    outline: none;
    transition: 0.3s ease-in-out;
}

.input-box input:focus, 
.input-box textarea:focus {
    box-shadow: 0 0 15px var(--main-color);
}

.input-box input:valid,
.input-box textarea:valid {
    border: 2px solid var(--main-color);
}

textarea {
    min-height: 200px;
}

.btn {
    align-self: center;
    padding: 1.5rem 3rem;
    font-size: 1.8rem;
    border-radius: 3rem;
    border: 2px solid var(--main-color);
    background-color: transparent;
    color: var(--main-color);
    cursor: pointer;
    transition: 0.3s ease-in-out;
}

.btn:hover {
    background-color: var(--main-color);
    color: var(--text-color);
    box-shadow: 0 0 25px var(--main-color),
                0 0 50px var(--main-color);
    transform: scale(1.05);
}

.footer {
    padding: 6rem 5%;
    color: var(--text-color);
     width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer .social-icons a {
    font-size: 2.8rem;
    color: var(--text-color);
    transition: 0.3s ease-in-out;
}

.footer .social-icons a:hover {
    color: var(--text-color);
    transform: scale(1.2);
}

.footer .list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer .list li:first-child {
    list-style: none;
}

.footer .list li a {
    color: var(--text-color);
    font-size: 1.8rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: 0.3s ease-in-out;
}

.footer .list li a:hover {
    border-bottom: 3px solid var(--main-color);
}

.footer .copyright {
    text-align: center;
    font-size: 1.6rem;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color);
    -webkit-box-shadow: 0 0 0px 1000px var(--bg-color) inset;
    transition: background-color 5000s ease-in-out 0s;
}

@media (max-width: 1285px) {
    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50%;
        padding: 1rem 3rem;
        background: rgba(15, 23, 42, 0.95);
        border-bottom-left-radius: 2rem;
        border-left: 2px solid var(--main-color);
        border-bottom: 2px solid var(--main-color);
        display: none;
        z-index: 100;
    }

    .navbar.active {
        display: block;
    }

    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
        color: var(--text-color);
    }

    .gradient-btn {
        display: none;
    }

    .home {
        flex-direction: column-reverse; 
        margin: 0;
        gap: 3rem;
        text-align: center;
        align-items: center;
    }

    .home-content {
        margin-left: 0;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .home-content h1,
    .home-content h3 {
        white-space: normal; 
    }

    .home-img {
        width: 56vw;
        max-width: 350px;
        margin: 0 auto 4rem;
        display: flex;
        justify-content: center;
    }

    .home-img img {
        width: 100%;
        height: auto;
    }

    .about {
        flex-direction: column; 
        text-align: center;
        gap: 4rem;
        align-items: center;
    }

    .about-content h2 {
        text-align: center;
        margin: 2rem 0;
        font-size: 5rem;
    }

    .about-img {
        width: 60vw;
        max-width: 300px;
        margin: 0 auto;
    }

    .about-img img {
        width: 100%;
        height: auto;
    }

    .contact form {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    .projects-box {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        padding: 0 5%;
    }
}

@media (min-width: 1286px) {
    html {
        font-size: 62.5%; 
    }

    .header {
        padding: 2rem 5%;
    }

    .home {
        display: flex;
        flex-direction: row;
        justify-content: center;
        gap: 10rem;
        max-width: 1400px;
        margin: 0 auto;
        padding-top: 15rem;
    }

    .home-content {
        text-align: center;
        align-items: center;
        flex: 1.2;
    }

    .home-content h1 {
        font-size: 8rem;
        white-space: nowrap; 
    }

    .home-content h3 {
        font-size: 3.6rem;
        white-space: nowrap;
    }

    .home-img {
        flex: 1;
        transform: translateY(-3rem); 
    }

    .home-img img {
        width: 100%;
        max-width: 450px;
        height: auto;
    }

    .about {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8rem;
    }

    .about-img img {
        max-width: 500px;
    }

    .contact form {
        width: 100%;
        max-width: 800px;
        margin: 0 auto;
    }
}