* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #07111F;
    color: #F8FAFC;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* ================================
   NAVBAR
================================ */

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 17, 31, 0.95);
    border-bottom: 1px solid #26374A;
    backdrop-filter: blur(10px);
}

.nav-container {
    min-height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.logo {
    font-size: 25px;
    font-weight: 700;
}

.logo span {
    color: #3B82F6;
}

.navbar nav {
    display: flex;
    gap: 25px;
}

.navbar nav a {
    color: #CBD5E1;
    font-size: 14px;
    transition: 0.3s;
}

.navbar nav a:hover {
    color: #3B82F6;
}

.cv-button {
    background: #2563EB;
    padding: 10px 18px;
    border-radius: 7px;
    font-size: 14px;
    transition: 0.3s;
}

.cv-button:hover {
    background: #3B82F6;
}


/* ================================
   HERO
================================ */

.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(
            circle at 80% 30%,
            rgba(37, 99, 235, 0.18),
            transparent 35%
        );
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 70px;
}

.small-title,
.section-label {
    color: #3B82F6;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.hero h1 {
    font-size: clamp(45px, 7vw, 78px);
    line-height: 1.05;
    margin-bottom: 15px;
}

.hero h2 {
    color: #CBD5E1;
    font-size: clamp(24px, 4vw, 38px);
    font-weight: 500;
    margin-bottom: 25px;
}

.hero-description {
    max-width: 650px;
    color: #94A3B8;
    font-size: 17px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 13px 23px;
    border-radius: 7px;
    font-weight: 600;
    transition: 0.3s;
}

.primary-button {
    background: #2563EB;
}

.primary-button:hover {
    background: #3B82F6;
    transform: translateY(-2px);
}

.secondary-button {
    border: 1px solid #3B82F6;
    color: #3B82F6;
}

.secondary-button:hover {
    background: #2563EB;
    color: white;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-tech span,
.project-tech span {
    padding: 6px 12px;
    border-radius: 20px;
    background: #111E2E;
    border: 1px solid #26374A;
    color: #CBD5E1;
    font-size: 12px;
}


/* ================================
   CODE CARD
================================ */

.hero-card {
    background: #0D1B2A;
    border: 1px solid #26374A;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.code-header {
    height: 45px;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 18px;
    border-bottom: 1px solid #26374A;
}

.code-header span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748B;
}

.code-content {
    padding: 30px;
    color: #CBD5E1;
    font-family: Consolas, monospace;
    font-size: 14px;
    line-height: 2;
}

.indent {
    padding-left: 25px;
}

.indent2 {
    padding-left: 50px;
}

.code-blue {
    color: #60A5FA;
}

.code-green {
    color: #4ADE80;
}

.code-orange {
    color: #FBBF24;
}


/* ================================
   SECTIONS
================================ */

.section {
    padding: 100px 0;
    border-top: 1px solid #172638;
}

.section-title {
    font-size: clamp(30px, 5vw, 45px);
    margin-bottom: 20px;
}

.section-text {
    max-width: 750px;
    color: #94A3B8;
    font-size: 16px;
}


/* ================================
   SKILLS
================================ */

.skills-grid {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.skill-card {
    background: #111E2E;
    border: 1px solid #26374A;
    border-radius: 12px;
    padding: 28px;
    transition: 0.3s;
}

.skill-card:hover {
    border-color: #3B82F6;
    transform: translateY(-5px);
}

.skill-card h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.skill-card p {
    color: #94A3B8;
    font-size: 14px;
}


/* ================================
   AI CAREER ASSISTANT
================================ */

.ai-section {
    background: #0D1B2A;
}

.ai-box {
    position: relative;
    max-width: 850px;
    margin-top: 40px;
    background: #07111F;
    border: 1px solid #26374A;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.ai-box::before {
    content: "";
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 50%;
    filter: blur(60px);
    top: -100px;
    right: -70px;
    pointer-events: none;
}

.ai-message {
    position: relative;
    min-height: 110px;
    padding: 25px;
    border-bottom: 1px solid #26374A;
}

.ai-message strong {
    color: #3B82F6;
    display: block;
    margin-bottom: 10px;
}

.ai-message p {
    margin-top: 0;
    color: #CBD5E1;
    line-height: 1.7;
    white-space: pre-wrap;
}

.ai-input {
    position: relative;
    padding: 20px;
    display: flex;
    gap: 10px;
}

.ai-input input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 9px;
    border: 1px solid #26374A;
    background: #111E2E;
    color: #F8FAFC;
    outline: none;
    font-size: 15px;
    transition: 0.3s;
}

.ai-input input::placeholder {
    color: #64748B;
}

.ai-input input:focus {
    border-color: #3B82F6;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ai-input button {
    padding: 14px 22px;
    border: none;
    border-radius: 9px;
    background: #2563EB;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.ai-input button:hover {
    background: #3B82F6;
    transform: translateY(-1px);
}

.ai-input button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


/* ================================
   PROJECTS
================================ */

.projects-grid {
    margin-top: 45px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.project-card {
    background: #111E2E;
    border: 1px solid #26374A;
    border-radius: 14px;
    padding: 30px;
    transition: 0.3s;
}

.project-card:hover {
    border-color: #3B82F6;
    transform: translateY(-5px);
}

.project-number {
    color: #3B82F6;
    font-family: Consolas, monospace;
    font-size: 14px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.project-card p {
    color: #94A3B8;
    font-size: 15px;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-card > a {
    color: #60A5FA;
    font-weight: 600;
}

.project-card > a:hover {
    color: #93C5FD;
}


/* ================================
   CONTACT
================================ */

.contact-section {
    text-align: center;
}

.contact-section .section-text {
    margin: 0 auto 30px;
}


/* ================================
   FOOTER
================================ */

footer {
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #26374A;
    color: #64748B;
    font-size: 13px;
}


/* ================================
   TABLET
================================ */

@media (max-width: 900px) {

    .navbar nav {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .hero {
        padding: 80px 0;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}


/* ================================
   MOBILE
================================ */

@media (max-width: 550px) {

    .container {
        width: 92%;
    }

    .nav-container {
        min-height: 65px;
    }

    .cv-button {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .ai-input {
        flex-direction: column;
    }

    .ai-input button {
        width: 100%;
    }

    .code-content {
        padding: 20px;
        font-size: 11px;
    }
}