/* =========================
   RESET
========================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text);
    background-color: var(--white);
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================
   VARIABLES
========================= */

:root {
    --dark-blue: #10233f;
    --blue: #1d3b63;
    --light-blue: #eaf0f7;
    --light-gray: #f5f6f8;
    --gray: #697386;
    --white: #ffffff;
    --text: #172033;
    --border: #eeeeee;
}


/* =========================
   NEON DARK MODE
========================= */

body.dark-mode {
    --dark-blue: #07111f;
    --blue: #00cfff;
    --light-blue: #102b40;
    --light-gray: #0b1828;
    --gray: #9fb3c8;
    --white: #0d1d30;
    --text: #f5fbff;
    --border: #16415a;

    background-color: #050d18;
    color: var(--text);
}

/* =========================
   GENERAL
========================= */

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

.section {
    padding: 100px 0;
}

.section-heading {
    max-width: 650px;
    margin-bottom: 55px;
}

.section-label {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-heading h2 {
    font-size: 42px;
    line-height: 1.2;
    color: var(--dark-blue);
}


/* =========================
   NAVBAR
========================= */
.header {
    width: 100%;
    background-color: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark-blue);
}

.logo span {
    color: var(--blue);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: #4b5563;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--dark-blue);
}

.nav-button {
    background-color: var(--dark-blue);
    color: white;
    padding: 11px 20px;
    border-radius: 6px;
    font-size: 14px;
    transition: 0.3s;
}

.nav-button:hover {
    transform: translateY(-2px);
}
/* =========================
   THEME BUTTON
========================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-button {
    width: 40px;
    height: 40px;
    border: 1px solid #d5d9df;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark-blue);
    cursor: pointer;
    font-size: 17px;
    transition: 0.3s;
}

.theme-button:hover {
    transform: rotate(15deg) scale(1.05);
}

.menu-button {
    display: none;
    border: none;
    background: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--dark-blue);
}


/* =========================
   HERO
========================= */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--light-gray);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.small-title {
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.hero h1 {
    max-width: 750px;
    font-size: 68px;
    line-height: 1.05;
    color: var(--dark-blue);
    margin-bottom: 25px;
}

.hero h1 span {
    color: var(--blue);
}

.hero-description {
    max-width: 620px;
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.primary-button,
.secondary-button {
    padding: 13px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-button {
    background-color: var(--dark-blue);
    color: white;
}

.primary-button:hover {
    transform: translateY(-3px);
}

.secondary-button {
    border: 1px solid #ccd2da;
    color: var(--dark-blue);
}

.secondary-button:hover {
    background-color: white;
}


/* Hero Placeholder */

.hero-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 330px;
    height: 400px;
    background-color: var(--dark-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.image-placeholder::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--blue);
    top: 15px;
    left: 15px;
}

.image-placeholder span {
    color: white;
    font-size: 70px;
    font-weight: 800;
    position: relative;
}


/* =========================
   ABOUT
========================= */

.about {
    background-color: white;
}

.about-content {
    max-width: 800px;
    display: grid;
    gap: 20px;
}

.about-content p {
    color: var(--gray);
    font-size: 18px;
}


/* =========================
   SKILLS
========================= */

.skills {
    background-color: var(--light-gray);
}

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

.skill-card {
    background-color: var(--dark-blue);
    padding: 30px;
    border: 1px solid #e8e9ec;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
}

.skill-card span {
    color: #9aa3b1;
    font-size: 13px;
}

.skill-card h3 {
    margin: 20px 0 10px;
    color: white;
}

.skill-card p {
    color: var(--gray);
    font-size: 14px;
}


/* =========================
   PROJECTS
========================= */

.projects {
    background-color: var(--dark-blue);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.project-card {
    border: 1px solid #e5e7eb;
    background-color: white;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    height: 220px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-image span {
    font-size: 50px;
    font-weight: 800;
    color: var(--blue);
}

.project-content {
    padding: 30px;
}

.project-category {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-content h3 {
    color: var(--dark-blue);
    font-size: 22px;
    margin: 10px 0;
}

.project-content p {
    color: var(--gray);
    font-size: 14px;
}

.project-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--dark-blue);
    font-weight: 600;
    font-size: 14px;
}


/* =========================
   SERVICES
========================= */

.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background-color: var(--dark-blue);
    color: white;
    padding: 30px;
    min-height: 260px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-number {
    color: #aab9cb;
    font-size: 13px;
    margin-bottom: 35px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    color: #c3ccd7;
    font-size: 14px;
}


/* =========================
   CONTACT
========================= */

.contact {
    background-color: white;
}

.contact-box {
    background-color: var(--light-gray);
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 {
    font-size: 48px;
    line-height: 1.1;
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.contact-text h2 span {
    color: var(--blue);
}

.contact-text > p:last-child {
    color: var(--gray);
    max-width: 500px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-links a {
    padding-bottom: 15px;
    border-bottom: 1px solid #d9dde3;
    color: var(--dark-blue);
    font-weight: 500;
}

.contact-links span {
    display: block;
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 5px;
}


/* =========================
   FOOTER
========================= */

.footer {
    background-color: var(--dark-blue);
    color: #c3ccd7;
    padding: 25px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}


/* =========================
   ANIMATIONS
========================= */

.hero-text,
.hero-image,
.section-heading,
.skill-card,
.project-card,
.service-card,
.contact-box {
    animation: fadeUp 0.8s ease both;
}

@keyframes fadeUp {

    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .menu-button {
        display: block;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .image-placeholder {
        width: 250px;
        height: 300px;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .section {
        padding: 70px 0;
    }

    .section-heading h2 {
        font-size: 32px;
    }

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

    .hero-description {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        text-align: center;
    }

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

    .contact-box {
        padding: 35px 25px;
    }

    .contact-text h2 {
        font-size: 36px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

}


@media (max-width: 900px) {

    .nav-links.show-menu {
        display: flex;
        position: absolute;
        top: 75px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 25px;
        gap: 20px;
        border-bottom: 1px solid var(--border);
    }

}


/* =========================
   THEME BUTTON
========================= */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-button {
    width: 40px;
    height: 40px;
    border: 1px solid #ccd2da;
    border-radius: 50%;
    background-color: var(--white);
    color: var(--dark-blue);
    cursor: pointer;
    font-size: 17px;
    transition: 0.3s;
}

.theme-button:hover {
    transform: rotate(15deg) scale(1.05);
}


/* =========================
   DARK MODE
========================= */

body.dark-mode {
    --dark-blue: #f5f7fa;
    --blue: #8da9c4;
    --light-blue: #26364a;
    --light-gray: #111a27;
    --gray: #b5beca;
    --white: #182333;
    --text: #f5f7fa;
    --border: #2d3949;

    background-color: #0d1520;
    color: var(--text);
}


/* =========================
   DARK MODE FIXES
========================= */

body.dark-mode .nav-links a {
    color: #c3ccd7;
}

body.dark-mode .nav-links a:hover {
    color: #ffffff;
}

body.dark-mode .secondary-button {
    color: #ffffff;
    border-color: #536174;
}

body.dark-mode .secondary-button:hover {
    background-color: #26364a;
}

body.dark-mode .skill-card {
    border-color: #2d3949;
}

body.dark-mode .project-card {
    border-color: #2d3949;
}

body.dark-mode .project-content h3 {
    color: #ffffff;
}

body.dark-mode .project-link {
    color: #ffffff;
}

body.dark-mode .contact-links a {
    border-color: #2d3949;
}

body.dark-mode .nav-links.show-menu {
    background-color: #182333;
    border-color: #2d3949;
}
/* =========================
   NEON EFFECTS
========================= */

body.dark-mode .logo span {
    color: #00cfff;
}

body.dark-mode .hero h1 span {
    color: #00cfff;
}

body.dark-mode .small-title {
    color: #00cfff;
}

body.dark-mode .section-label {
    color: #00cfff;
}

body.dark-mode .primary-button {
    background-color: #00cfff;
    color: #04101c;
}

body.dark-mode .primary-button:hover {
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
}

body.dark-mode .nav-button {
    background-color: #00cfff;
    color: #04101c;
}

body.dark-mode .nav-button:hover {
    box-shadow: 0 0 15px rgba(0, 207, 255, 0.5);
}

body.dark-mode .theme-button {
    border-color: #00cfff;
    color: #00cfff;
    box-shadow: 0 0 10px rgba(0, 207, 255, 0.25);
}

body.dark-mode .skill-card {
    background-color: #0a1929;
    border-color: #16415a;
}

body.dark-mode .skill-card:hover {
    border-color: #00cfff;
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.12);
}

body.dark-mode .project-card {
    background-color: #0d1d30;
    border-color: #16415a;
}

body.dark-mode .project-card:hover {
    border-color: #00cfff;
    box-shadow: 0 0 25px rgba(0, 207, 255, 0.15);
}

body.dark-mode .project-category {
    color: #00cfff;
}

body.dark-mode .project-link {
    color: #00cfff;
}

body.dark-mode .service-card {
    background-color: #0a1929;
}

body.dark-mode .service-card:hover {
    box-shadow: 0 0 20px rgba(0, 207, 255, 0.12);
}

body.dark-mode .contact-text h2 span {
    color: #00cfff;
}

body.dark-mode .contact-links a:hover {
    color: #00cfff;
}

body.dark-mode .image-placeholder {
    background-color: #07111f;
}

body.dark-mode .image-placeholder::before {
    border-color: #00cfff;
}

body.dark-mode .image-placeholder span {
    color: #00cfff;
    text-shadow: 0 0 20px rgba(0, 207, 255, 0.5);
}