* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(145deg, #020617, #0f172a);
    color: #ffffff;
    transition: 0.4s;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 5%;
}

.left {
    font-size: 1.4rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    transition: 0.3s;
    white-space: nowrap;
}

.left span {
    color: #38bdf8;
}

nav ul {
    display: flex;
    gap: 35px;
    align-items: center;
}

nav ul li {
    list-style: none;
}

nav a {
    display: block;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    text-align: center;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    transition: 0.3s;
    position: relative;
    font-size: 1rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background: #38bdf8;
    left: 0;
    bottom: -5px;
    transition: 0.3s;
}

nav ul li a:hover {
    color: #38bdf8;
}

nav ul li a:hover::after {
    width: 100%;
}

.container .hamburger.active {
    display: flex;
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}


.bar {
    width: 26px;
    height: 3px;
    background: white;
    border-radius: 3px;
}


.theme-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 25px 0;
}

.theme-buttons button {
    padding: 10px 28px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: 0.3s;
}

.theme-buttons button:hover {
    background: #38bdf8;
    color: #020617;
    transform: scale(1.05);
}

.firstSection {
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 85vh;
    padding: 0 5%;
}

.firstSection>div {
    width: 45%;
}

.leftSection {
    font-size: 2.6rem;
    line-height: 1.2;
}

.leftSection span,
#element {
    color: #38bdf8;
    font-weight: 600;
}

.rightSection {
    display: flex;
    justify-content: center;
}

.profile-img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid rgba(56, 189, 248, 0.6);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
    animation: float 4s ease-in-out infinite;
    max-width: 100%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

hr {
    border: 0;
    height: 2px;
    background: #38bdf8;
    margin: 80px auto;
    width: 85%;
    opacity: 0.3;
}

section {
    max-width: 85%;
    margin: auto;
    padding-top: 50px;
    padding-bottom: 50px;
}

section h1 {
    text-align: center;
    font-size: 2rem;
    color: inherit;
    margin: -50px auto 85px;
    background: linear-gradient(135deg, #38bdf8, #60a5fa);
    box-shadow: 0 4px 20px rgba(56, 189, 248, 0.5);
    transition: 0.4s;
    border-radius: 99px;
    width: fit-content;
    padding: 10px 40px;
}

section h1:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(56, 189, 248, 0.7);
}

#about p {
    border: 1px solid #38bdf8;
    border-radius: 20px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
}

.skills,
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.skillBox,
.projectCard {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 16px;
    padding: 25px 15px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: 0.3s;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.skillBox:hover,
.projectCard:hover {
    transform: translateY(-8px);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.4);
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.15);
}

.contact-cta {
    width: 100%;
    padding: 80px 20px;
    background: linear-gradient(135deg, #0ea5e9, #2563eb);
    text-align: center;
    color: white;
    border-radius: 30px;
}

.cta-btn {
    display: inline-block;
    padding: 16px 46px;
    border-radius: 40px;
    background: white;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: 0.4s;
    margin-top: 20px;
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.contact-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 60px;
    border-radius: 28px;
    background: rgba(56, 189, 248, 0.12);
    backdrop-filter: blur(14px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border-radius: 14px;
    border: 2px solid rgba(56, 189, 248, 0.5);
    background: rgba(0, 0, 0, 0.2);
    color: white;
    outline: none;
    transition: 0.3s;
}

.contact-form button {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: #38bdf8;
    color: #020617;
    font-weight: 600;
    cursor: pointer;
    transition: 0.4s;
}

body.light {
    background: linear-gradient(145deg, #f8fafc, #e0f2fe);
    color: #020617;
}

body.light nav {
    background: rgba(255, 255, 255, 0.8);
}

body.light nav ul li a {
    color: #020617;
}

body.light .bar {
    background-color: #020617;
}

body.light .theme-buttons button {
    color: #020617;
    border-color: #020617;
    background: rgba(0, 0, 0, 0.05);
}

body.light .skillBox,
body.light .projectCard {
    background: white;
    color: #020617;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

body.light .contact-container {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body.light .contact-form input,
body.light .contact-form textarea {
    background: #f1f5f9;
    color: #020617;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 992px) {
    nav {
        padding: 1.3rem 5%;
    }

    .firstSection {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 40px;
        text-align: center;
    }

    .firstSection>div {
        width: 100%;
    }

    .leftSection {
        font-size: 2rem;
        margin-top: 20px;
    }

    .profile-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
        cursor: pointer;
        flex-direction: column;
        gap: 5px;
        z-index: 101;
    }

    nav ul {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100%;
        background: rgba(2, 6, 23, 0.96);
        flex-direction: column;
        padding-top: 80px;
        padding-left: 20px;
        gap: 20px;
        transition: 0.3s;
        backdrop-filter: blur(18px);
        box-shadow: 3px 0 15px rgba(0, 0, 0, 0.2);
        z-index: 100;
    }

    nav ul.active {
        left: 0;
    }

    nav ul {
        display: flex;
        gap: 35px;
        align-items: center;
    }

    nav ul li {
        list-style: none;
    }

    nav a {
        display: block;
        font-size: 1.1rem;
        margin: 1.5rem 0;
        text-align: center;
    }

    nav ul li a {
        text-decoration: none;
        color: #ffffff;
        transition: 0.3s;
        position: relative;
        font-size: 1rem;
    }

    nav ul li a::after {
        content: '';
        position: absolute;
        width: 0%;
        height: 2px;
        background: #38bdf8;
        left: 0;
        bottom: -5px;
        transition: 0.3s;
    }

    nav ul li a:hover {
        color: #38bdf8;
    }

    nav ul li a:hover::after {
        width: 100%;
    }

    body.light nav ul {
        background: rgba(255, 255, 255, 0.95);
    }

    body.light nav ul li a {
        color: #020617;
    }

    body.light nav ul li a:hover {
        color: #38bdf8;
    }
}


section {
    max-width: 90%;
}

.contact-container {
    grid-template-columns: 1fr;
    padding: 30px;
    gap: 30px;
}

.contact-cta h2 {
    font-size: 1.8rem;
}

section h1 {
    font-size: 1.8rem;
    width: 100%;
    border-radius: 15px;
}

.theme-buttons {
    flex-direction: row;
}
