* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0f172a;
    color: #ffffff;
}

.hero {
    min-height: 100vh;
    padding: 0 8%;
}

nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    padding: 0 8%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #0f172a;
    z-index: 1000;
}

.logo {
    font-family: "Trebuchet MS", sans-serif;
    font-size: 30px;
    font-weight: 1000;
    letter-spacing: 1px;
    color: #38bdf8;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #38bdf8;
}

.hero-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 750px;
}

.intro {
    color: #38bdf8;
    font-size: 20px;
    margin-bottom: 10px;
}

.hero-content h1 {
    font-size: 72px;
    margin-bottom: 10px;
}

.hero-content h2 {
    font-size: 45px;
    color: #94a3b8;
    margin-bottom: 20px;
}

.description {
    max-width: 550px;
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn {
    width: fit-content;
    padding: 14px 25px;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s;
}

.btn:hover {
    background: #38bdf8;
    color: #0f172a;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: #ffffff;
    margin: 5px 0;
    border-radius: 2px;
}

.about {
    min-height: 100vh;
    padding: 100px 8%;
    display: flex;
    align-items: center;
    background: #111827;
}

.about-container {
    width: 100%;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: center;
}

.section-label {
    color: #38bdf8;
    font-size: 16px;
    margin-bottom: 10px;
}

.about h2 {
    font-size: 48px;
    margin-bottom: 25px;
}

.about-text {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
}

.skills-container {
    background: #1e293b;
    padding: 35px;
    border-radius: 12px;
}

.skills-container h3 {
    font-size: 24px;
    margin-bottom: 25px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skills span {
    background: #0f172a;
    color: #7dd3fc;
    padding: 10px 16px;
    border-radius: 6px;
}

/* Scroll animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.projects {
    min-height: 100vh;
    padding: 100px 8%;
    background: #0f172a;
}

.projects-heading {
    margin-bottom: 50px;
}

.projects-heading h2 {
    font-size: 48px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.project-card {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-image {
    height: 200px;
    background: #334155;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #94a3b8;
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.project-content p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tech span {
    font-size: 13px;
    color: #7dd3fc;
    background: #0f172a;
    padding: 6px 10px;
    border-radius: 5px;
}

nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0f172a;
}

.services {
    min-height: 100vh;
    padding: 100px 8%;
    display: flex;
    align-items: center;
    background: #111827;
}

.services-container {
    width: 100%;
}

.services-heading {
    margin-bottom: 50px;
}

.services-heading h2 {
    font-size: 48px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    position: relative;
    background: #1e293b;
    padding: 35px;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

.service-number {
    color: #38bdf8;
    font-size: 18px;
    margin-bottom: 30px;
}

.service-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.service-card p {
    color: #cbd5e1;
    line-height: 1.7;
}

.contact {
    min-height: 85vh;
    padding: 100px 8%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #0f172a;
}

.contact-container {
    max-width: 700px;
}

.contact h2 {
    font-size: 52px;
    margin-bottom: 25px;
}

.contact-text {
    color: #cbd5e1;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.contact-btn {
    display: inline-block;
    padding: 14px 28px;
    border: 2px solid #38bdf8;
    color: #38bdf8;
    text-decoration: none;
    border-radius: 6px;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: #38bdf8;
    color: #0f172a;
    transform: translateY(-3px);
}

.social-links {
    margin-top: 35px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-links a:hover {
    color: #38bdf8;
}

footer {
    padding: 30px 8%;
    text-align: center;
    background: #111827;
    color: #94a3b8;
    font-size: 14px;
}

footer p {
    margin: 6px 0;
}

.menu-toggle span {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

nav {
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

nav.scrolled {
    background: rgba(15, 23, 42, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .hero {
        padding: 0 6%;
    }

    .menu-toggle {
        display: block;
        position: relative;
        z-index: 1001;
    }

    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -280px;
        width: 280px;
        height: 100vh;

        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 35px;

        background: #1e293b;
        transition: right 0.4s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-content h1 {
        font-size: 52px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .description {
        font-size: 16px;
    }

    .nav-links.active a {
        color: #7dd3fc;


    }
}

@media (max-width: 768px) {
    .nav-links a {
        display: inline-block;
        transition: transform 0.2s ease, color 0.2s ease;
    }

    .nav-links a:active {
        transform: scale(0.92);
        color: #38bdf8;
    }

    .about {
        padding: 80px 6%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about h2 {
        font-size: 38px;
    }

    .about-text {
        font-size: 16px;
    }

    .skills-container {
        padding: 25px;
    }

    .projects {
        padding: 80px 6%;
    }

    .projects-heading h2 {
        font-size: 38px;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .services {
        padding: 80px 6%;
    }

    .services-heading h2 {
        font-size: 38px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 28px;
    }

    .contact {
        padding: 80px 6%;
    }

    .contact h2 {
        font-size: 38px;
    }

    .contact-text {
        font-size: 16px;
    }
}