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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #080b12;
    color: #ffffff;
    line-height: 1.6;
}


/* ===== NAVBAR ===== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(8, 11, 18, 0.95);
    border-bottom: 1px solid #1d2633;
}

.navbar {
    max-width: 1200px;
    margin: auto;
    padding: 18px 25px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo span {
    color: #00a8ff;
}

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

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #00a8ff;
}

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

.hero {
    min-height: calc(100vh - 80px);
    max-width: 1400px;
    margin: auto;

    padding: 80px 50px;

    display: grid;

    grid-template-columns: 1.1fr 1fr 0.8fr;

    align-items: center;

    gap: 45px;

    position: relative;
}

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

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


.hero-card {
    width: 100%;
    max-width: 600px;
    margin: auto;
}
.hero-content {
    min-width: 0;
}

.small-text {
    color: #00a8ff;

    font-size: 15px;
    font-weight: bold;

    letter-spacing: 4px;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: 78px;

    line-height: 1;

    margin-bottom: 22px;
}

.hero h2 {
    color: #00a8ff;

    font-size: 30px;

    line-height: 1.3;

    margin-bottom: 24px;
}

.typewriter {
    overflow: hidden;

    border-right: 3px solid #00a8ff;

    white-space: nowrap;

    width: 0;

    animation:
        typing 4s steps(30, end) forwards,
        blink 0.8s infinite;
}

@keyframes typing {

    from {
        width: 0;
    }

    to {
        width: 100%;
    }

}

@keyframes blink {

    50% {
        border-color: transparent;
    }

}
.hero-description {

    color: #aab4c3;

    max-width: 560px;

    font-size: 18px;

    line-height: 1.8;

    margin-bottom: 32px;
}


/* ===== BUTTONS ===== */

.hero-buttons {

    display: flex;

    gap: 15px;

    flex-wrap: wrap;
}

.btn {

    display: inline-block;

    padding: 14px 22px;

    border-radius: 7px;

    text-decoration: none;

    font-weight: bold;

    transition: 0.3s ease;
}

.primary-btn {

    background: #00a8ff;

    color: white;
}

.primary-btn:hover {

    background: #0088cc;

    transform: translateY(-3px);
}

.secondary-btn {

    border: 1px solid #00a8ff;

    color: #00a8ff;
}

.secondary-btn:hover {

    background: #00a8ff;

    color: white;

    transform: translateY(-3px);
}


/* ===== TERMINAL ===== */

.hero-card {

    width: 100%;

    max-width: 470px;

    background: #0d1117;

    border: 1px solid #29445f;

    border-radius: 12px;

    overflow: hidden;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(0, 168, 255, 0.08);

    justify-self: center;
}

.terminal-header {

    height: 60px;

    background: #151f2d;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 0 20px;
}

.terminal-header span {

    width: 15px;

    height: 15px;

    border-radius: 50%;

    background: #667085;
}

.terminal-header .red-dot {
    background: #ff5f56;
}

.terminal-header .yellow-dot {
    background: #ffbd2e;
}

.terminal-header .green-dot {
    background: #27c93f;
}

.terminal-title {

    margin-left: auto;

    color: #aab4c3;

    font-family: "Courier New", monospace;

    font-size: 14px;
}

.terminal-body {

    padding: 28px 22px;

    font-family: "Courier New", monospace;

    font-size: 15px;

    line-height: 1.8;
}

.green {
    color: #35d07f;
}

.white {
    color: #ffffff;
}

.output {

    color: #b7c3d4;

    margin: 5px 0 18px;
}

.success {

    color: #35d07f;

    margin-top: 5px;
}


/* ===== COMMON SECTION ===== */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 100px 25px;
}

.section-title {
    margin-bottom: 50px;
}

.section-title p {
    color: #00a8ff;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

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


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

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-text h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.about-text p {
    color: #aab4c3;
    margin-bottom: 18px;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-box {
    background: #0d1117;
    border: 1px solid #263241;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    transition: 0.3s;
}

.info-box:hover {
    border-color: #00a8ff;
    transform: translateY(-5px);
}

.info-box h3 {
    font-size: 30px;
    margin-bottom: 8px;
}

.info-box p {
    font-weight: bold;
}

.info-box span {
    color: #7f8b9d;
    font-size: 14px;
}


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

.skills-section {
    background: #0a0e15;
    max-width: none;
    padding-left: calc((100% - 1150px) / 2);
    padding-right: calc((100% - 1150px) / 2);
}

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

.skill-card {
    background: #0d1117;
    border: 1px solid #263241;
    border-radius: 8px;
    padding: 30px;
    transition: 0.3s;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: #00a8ff;
}

.skill-card h3 {
    font-size: 21px;
    margin-bottom: 15px;
}

.skill-card p {
    color: #9ca8b8;
    font-size: 15px;
}


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

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

.project-card {
    position: relative;
    background: #0d1117;
    border: 1px solid #263241;
    border-radius: 8px;
    padding: 35px;
    transition: 0.3s;
}

.project-card:hover {
    border-color: #00a8ff;
    transform: translateY(-6px);
}

.project-number {
    color: #00a8ff;
    font-family: "Courier New", monospace;
    font-size: 14px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 23px;
    margin-bottom: 15px;
}

.project-card p {
    color: #9ca8b8;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    background: #151d28;
    color: #00a8ff;
    border: 1px solid #263241;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}


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

.contact-section {
    text-align: center;
}

.contact-section .section-title {
    text-align: center;
}

.contact-content {
    max-width: 700px;
    margin: auto;
}

.contact-content > p {
    color: #aab4c3;
    margin-bottom: 30px;
    font-size: 17px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-links a {
    text-decoration: none;
    color: #ffffff;
    border: 1px solid #263241;
    padding: 12px 20px;
    border-radius: 6px;
    transition: 0.3s;
}

.contact-links a:hover {
    border-color: #00a8ff;
    color: #00a8ff;
}


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

footer {
    border-top: 1px solid #1d2633;
    padding: 30px 20px;
    text-align: center;
    color: #6f7b8c;
    font-size: 14px;
}

footer p {
    margin: 5px;
}


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

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

@media (max-width: 1100px) {

    .hero {

        grid-template-columns: 1fr 1fr;

        gap: 40px;

        padding: 70px 35px;
    }

    .profile-area {

        grid-column: 1 / -1;

        grid-row: 2;

        justify-self: center;
    }

    .hero-card {

        justify-self: center;
    }

}


@media (max-width: 800px) {

    .hero {

        grid-template-columns: 1fr;

        text-align: center;

        padding: 60px 25px;
    }

    .hero-content {

        display: flex;

        flex-direction: column;

        align-items: center;
    }

    .hero-description {

        margin-left: auto;

        margin-right: auto;
    }

    .hero-buttons {

        justify-content: center;
    }

    .hero-card {

        width: 100%;

        max-width: 550px;
    }

    .profile-area {

        grid-column: auto;

        grid-row: auto;

        justify-self: center;
    }

}

@media (max-width: 600px) {

    /* ===== MOBILE NAVBAR ===== */

    .navbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }

    .logo {
        font-size: 22px;
    }

    .nav-links {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px;
    }

    .nav-links a {
        font-size: 13px;
    }


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

    .hero {
        width: 100%;
        box-sizing: border-box;
        padding: 50px 20px;
        gap: 45px;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        box-sizing: border-box;
    }

    .hero h1 {
        font-size: 50px;
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 21px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: break-word;
    }

    .typewriter {
        width: auto;
        border-right: none;
        animation: none;
    }

    .hero-description {
        width: 100%;
        box-sizing: border-box;
        font-size: 15px;
        line-height: 1.7;
    }


    /* ===== MOBILE BUTTONS ===== */

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }


    /* ===== MOBILE TECH STACK ===== */

    .tech-stack {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }


    /* ===== MOBILE TERMINAL ===== */

    .hero-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
    }


    /* ===== MOBILE PROFILE ===== */

    .profile-area {
        width: 100%;
        box-sizing: border-box;
    }

    .profile-photo img {
        width: 240px;
        height: 240px;
    }


    /* ===== MOBILE SECTIONS ===== */

    .section {
        width: 100%;
        box-sizing: border-box;
        padding-left: 20px;
        padding-right: 20px;
    }

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


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

    .skills-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .skill-card {
        box-sizing: border-box;
    }


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

    .projects-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .project-card {
        box-sizing: border-box;
    }


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

    .contact-content {
        width: 100%;
        box-sizing: border-box;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-links a {
        text-align: center;
    }

}


/* ===== PROFILE PHOTO ===== */
/* ===== PROFILE PHOTO ===== */

/* ===== PROFILE PHOTO ===== */

.profile-area {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    justify-self: end;
}

.profile-photo {

    display: flex;

    justify-content: center;

    align-items: center;
}

.profile-photo img {

    width: 350px;

    height: 350px;

    object-fit: cover;

    object-position: center top;

    border-radius: 50%;

    border: 4px solid #00a8ff;

    box-shadow:

        0 0 0 7px rgba(0, 168, 255, 0.08),

        0 0 45px rgba(0, 168, 255, 0.35);

    transition: 0.4s ease;
}

.profile-photo img:hover {

    transform: scale(1.03);

    box-shadow:

        0 0 0 10px rgba(0, 168, 255, 0.08),

        0 0 60px rgba(0, 168, 255, 0.45);
}

.profile-motto {

    margin-top: 25px;

    color: #aab4c3;

    font-family: "Courier New", monospace;

    font-size: 18px;

    font-style: italic;

    text-align: center;
}

.motto-line {

    width: 180px;

    height: 2px;

    background: #00a8ff;

    margin-top: 8px;

    transform: rotate(-4deg);
}

/* ===== TECH STACK ===== */

.tech-stack {

    display: flex;

    align-items: center;

    gap: 20px;

    margin-top: 35px;

    color: #aab4c3;

    font-family: "Courier New", monospace;

    font-size: 15px;

    flex-wrap: wrap;
}

.tech-stack span {

    transition: 0.3s ease;
}

.tech-stack span:hover {

    color: #00a8ff;

    transform: translateY(-3px);
}

.hero-line {

    width: 100%;

    max-width: 520px;

    height: 1px;

    background: #263241;

    margin-top: 22px;
}

.hero-motto {

    color: #7f8b9d;

    font-family: "Courier New", monospace;

    font-size: 13px;

    letter-spacing: 3px;

    margin-top: 12px;
}
/* ===== CONTACT SECTION ===== */

.contact-section {
    text-align: center;
}

.contact-content {
    max-width: 850px;
    margin: 45px auto 0;
}

.contact-text h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.contact-text p {
    max-width: 650px;
    margin: 0 auto 25px;
    color: #9ca8b8;
    line-height: 1.7;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-links a {
    display: inline-block;
    padding: 12px 22px;
    border: 1px solid #29445f;
    border-radius: 6px;
    color: #ffffff;
    background: #0d1117;
    text-decoration: none;
    transition: 0.3s ease;
}

.contact-links a:hover {
    border-color: #00a8ff;
    color: #00a8ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 168, 255, 0.15);
}

/* ===== PROJECT LINKS ===== */

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.project-btn {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #29445f;
    border-radius: 5px;
    color: #ffffff;
    background: #111923;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s ease;
}

.project-btn:hover {
    color: #00a8ff;
    border-color: #00a8ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 168, 255, 0.15);
}

/* ===== FINAL MOBILE FIX ===== */

@media (max-width: 600px) {

    /* NAVBAR FIX */
    header {
        width: 100%;
        overflow: hidden;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
        padding: 14px 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .logo {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 22px;
    }

    .nav-links {
        width: 100%;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 10px 14px;
        margin: 0;
        padding: 0;
    }

    .nav-links li {
        flex-shrink: 0;
    }

    .nav-links a {
        font-size: 12px;
        white-space: nowrap;
    }


    /* HERO FIX */
    .hero {
        width: 100%;
        max-width: 100%;
        padding: 45px 16px;
        gap: 40px;
        overflow: hidden;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

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

    .hero h2 {
        width: 100%;
        max-width: 100%;
        font-size: 20px;
        line-height: 1.4;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .hero-description {
        width: 100%;
        max-width: 500px;
        font-size: 15px;
        line-height: 1.7;
    }


    /* BUTTON FIX */
    .hero-buttons {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }


    /* TECH STACK FIX */
    .tech-stack {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        font-size: 13px;
    }


    /* TERMINAL FIX */
    .hero-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .terminal-body {
        padding: 22px 16px;
        font-size: 12px;
        overflow-x: auto;
    }


    /* PROFILE FIX */
    .profile-area {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .profile-photo img {
        width: 230px;
        height: 230px;
        max-width: 80vw;
    }


    /* SECTIONS FIX */
    .section {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

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


    /* ABOUT FIX */
    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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


    /* SKILLS FIX */
    .skills-section {
        width: 100%;
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
        box-sizing: border-box;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .skill-card {
        width: 100%;
        box-sizing: border-box;
        padding: 24px;
    }


    /* PROJECTS FIX */
    .projects-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .project-card {
        width: 100%;
        box-sizing: border-box;
        padding: 25px;
    }

    .project-links {
        flex-wrap: wrap;
    }


    /* CONTACT FIX */
    .contact-content {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .contact-links {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .contact-links a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

}

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

.contact-form {
    width: 100%;
    max-width: 600px;
    margin: 35px auto 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.form-group input,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 14px 16px;
    border: 1px solid #263548;
    border-radius: 8px;
    background: #0d1117;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #7f8b99;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #00a8ff;
    box-shadow: 0 0 0 2px rgba(0, 168, 255, 0.12);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-form button {
    align-self: flex-start;
    cursor: pointer;
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#contactStatus {
    margin: 0;
    font-size: 14px;
    min-height: 20px;
}