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

body {
    font-family: sans-serif;
    overflow-x: hidden;
    background-color: #0f172a;
}

nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 20px 20px;
    background-color: #111827;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}


nav ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
}

nav ul li {
    list-style: none;
}

nav a {
    text-decoration: none;
    color: white;
    padding: 10px;
    transition: 0.3s;
    position: relative;
    text-align: center;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 2px;
    background-color: #60a5fa;
    transition: 0.3s;

}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: #60a5fa;
}

.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;

}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    color: #f8fafc;
}

.hero h2 {
    font-size: 28px;
    color: #94a3b8;
}

.hero h3 {
    font-size: 22px;
    color: #60a5fa;
}

.hero p {
    max-width: 700px;
    line-height: 1.6;
    margin-top: 20px;
    color: #94a3b8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.hero-buttons a {
    padding: 12px 28px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.3s;
}

.hero-buttons a:first-child {
    background-color: #60a5fa;
    color: #0f172a;
}

.hero-buttons a:last-child {
    border: 1px solid #60a5fa;
    color: white;
}

.hero-buttons a:hover {
    transform: translateY(-3px);
}

.social-icons {
    display: flex;
    gap: 25px;
    margin-top: 35px;
}

.social-icons a {
    color: #f8fafc;
    font-size: 28px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #60a5fa;
    transform: translateY(-3px);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
}

.stat-label {
    font-size: 0.75rem;
    color: #6b7280;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.stat-item:not(:last-child) {
    border-right: 1px solid #1e2a3a;
    padding-right: 48px;
}

.about {
    padding: 120px 10%;
}

.section-title {
    margin-bottom: 60px;
    text-align: center;
}

.section-title h2 {
    font-size: 48px;
    color: #f8fafc;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 300px;
}

.about-text p {
    color: #94a3b8;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 25px;
    max-width: 650px;
}

.about-cards {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.card {
    background: #1e293b;
    padding: 30px 25px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    border: 1px solid #60a5fa;

}

.card h3 {
    color: #60a5fa;
    font-size: 30px;
    margin-bottom: 15px;
}

.card p {
    color: #cbd5e1;
    line-height: 1.6;
}


@media (max-width: 900px) {

    .about-container {
        flex-direction: column;
    }

    .about-cards {
        width: 100%;
    }

}

@media (max-width: 600px) {

    .section-title h2 {
        font-size: 38px;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

}

.skills {
    padding: 120px 10%;

}

.skills-title {
    margin-bottom: 60px;
    text-align: center;
}

.skills-title h2 {
    color: #f8fafc;
    font-size: 48px;
}

.skills-container {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-card {
    background: #1e293b;
    padding: 30px 25px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border: 1px solid #60a5fa;
}

.skill-card h3 {
    color: #60a5fa;
    text-align: center;
    margin-bottom: 15px;
    font-size: 30px;
}

.skill-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.list p {
    background: rgba(96, 165, 250, 0.08);
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: #94a3b8;
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.list p:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: #60a5fa;
    color: #60a5fa;
}

.projects {
    padding: 120px 10%;
}

.project-title {
    margin-bottom: 60px;
    text-align: center;
}

.project-title h2 {
    color: #f8fafc;
    font-size: 48px;
}

.projects-container {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-card {
    background: #1e293b;
    padding: 30px 25px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    border: 1px solid #60a5fa;
}

.project-card h3 {
    color: #60a5fa;
    text-align: center;
    margin-bottom: 15px;
    font-size: 23px;
}

.project-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.project-button {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.project-card a {
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    background-color: #0f172a;
    color: #cbd5e1;
    transition: 0.3s;
}



.services {
    padding: 120px 10%;
}

.service-title {
    margin-bottom: 60px;
    text-align: center;
}

.service-title h2 {
    color: #f8fafc;
    font-size: 48px;
}

.service-container {
    flex: 1;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-card {
    background: #1e293b;
    padding: 30px 25px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-6px);
    border: 1px solid #60a5fa;
}

.service-card h3 {
    color: #60a5fa;
    text-align: center;
    margin-bottom: 15px;
    font-size: 23px;
}

.service-card p {
    color: #cbd5e1;
    line-height: 1.6;
}

.contact {
    padding: 120px 10%;

}

.contact-title {
    margin-bottom: 60px;
    text-align: center;
}

.contact-title h2 {
    color: #f8fafc;
    font-size: 48px;
}

.contact-title p {
    color: #cbd5e1;
    line-height: 1.6;
}

form {
    max-width: 520px;
    margin: 50px auto 20px;
    padding: 25px;
    background: #1a2338;
    border-radius: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

form input,
form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #2b3a55;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
}

form textarea {
    resize: none;
}

form input:focus,
form textarea:focus {
    border-color: #60a5fa;
    box-shadow: 0 0 10px rgba(96, 165, 250, 0.35);
}

form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #60a5fa;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s ease;
    font-size: 15px;
}

form button:hover {
    background: #3b82f6;
    transform: translateY(-2px);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
}

.social-icons a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a2338;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    transition: 0.3s ease;
    border: 1px solid #2b3a55;
}

.social-icons a:hover {
    background: #60a5fa;
    color: #0f172a;
    transform: translateY(-4px);
}

.footer {
    background: #0f172a;
    padding: 40px 20px;
    text-align: center;
    margin-top: 60px;
    border-top: 1px solid #1a2338;
}

.copyright {
    color: #64748b;
    font-size: 12px;
}


@media (max-width: 1024px) {

    nav ul {
        gap: 25px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero h2 {
        font-size: 22px;
    }

    .hero h3 {
        font-size: 18px;
    }

    .skills-container,
    .projects-container,
    .service-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        flex-direction: column;
    }
}

/* Mobile */
@media (max-width: 768px) {

    nav {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero h2 {
        font-size: 18px;
    }

    .hero p {
        font-size: 14px;
        padding: 0 10px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }

    .skills-container,
    .projects-container,
    .service-container {
        grid-template-columns: 1fr;
    }

    .section-title h2,
    .skills-title h2,
    .project-title h2,
    .service-title h2,
    .contact-title h2 {
        font-size: 32px;
    }

    form {
        width: 90%;
    }
}

/* Small Mobile */
@media (max-width: 480px) {

    .hero h1 {
        font-size: 30px;
    }

    nav ul {
        gap: 10px;
    }

    nav a {
        font-size: 14px;
        padding: 6px;
    }

    .hero-buttons a {
        width: 100%;
        text-align: center;
    }

    .card,
    .skill-card,
    .project-card,
    .service-card {
        padding: 20px;
    }
}