:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --accent-color: #ff9900;
    --accent-hover: #e68a00;
    --card-bg: #1e293b;
    --card-hover-border: #475569;
    --code-bg: #0b0f19;
    --tech-badge: #38bdf8;
    --nav-bg: rgba(15, 23, 42, 0.88);
}


/* ==============================
   RESET
================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family:
        'Segoe UI',
        Tahoma,
        Geneva,
        Verdana,
        sans-serif;

    background-color: var(--bg-color);
    color: var(--text-color);

    line-height: 1.6;

    margin: 0;
    padding-top: 75px;

    overflow-x: hidden;
}


/* ==============================
   ANIMATIONS
================================= */

@keyframes fadeInUp {

    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


@keyframes glow {

    0%,
    100% {
        border-color: var(--accent-color);
        box-shadow:
            0 0 5px rgba(255, 153, 0, 0.15);
    }

    50% {
        border-color: #ffb84d;
        box-shadow:
            0 0 14px rgba(255, 153, 0, 0.25);
    }

}


/* ==============================
   NAVBAR
================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    background-color: var(--nav-bg);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.05);

    z-index: 1000;

    box-shadow:
        0 4px 30px rgba(0, 0, 0, 0.3);
}


.nav-container {

    max-width: 1100px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 1rem 2rem;
}


.nav-logo {

    font-weight: bold;

    color: #fff;

    text-decoration: none;

    font-size: 1.2rem;

    white-space: nowrap;
}


.nav-logo span {
    color: var(--accent-color);
}


/* Navigation content */

.nav-content {

    display: flex;

    align-items: center;

    gap: 1.5rem;
}


.nav-links {

    display: flex;

    gap: 1.2rem;
}


.nav-links a {

    color: var(--text-color);

    text-decoration: none;

    font-size: 0.95rem;

    font-weight: 500;

    transition: color 0.3s;

    position: relative;
}


.nav-links a:hover {
    color: #fff;
}


.nav-links a::after {

    content: '';

    position: absolute;

    width: 100%;

    transform: scaleX(0);

    height: 2px;

    bottom: -4px;

    left: 0;

    background-color: var(--accent-color);

    transform-origin: bottom right;

    transition:
        transform 0.25s ease-out;
}


.nav-links a:hover::after {

    transform: scaleX(1);

    transform-origin: bottom left;
}


/* Social icons */

.nav-socials {

    display: flex;

    gap: 1rem;
}


.nav-socials a {

    color: var(--text-color);

    font-size: 1.2rem;

    transition:
        color 0.3s,
        transform 0.2s;
}


.nav-socials a:hover {

    color: var(--accent-color);

    transform: scale(1.1);
}


/* Language selector */

.language-switcher {

    display: flex;

    align-items: center;

    gap: 0.35rem;

    font-size: 0.8rem;

    font-weight: bold;
}


.language-switcher span {
    color: #64748b;
}


.language-btn {

    border: none;

    background: transparent;

    color: #64748b;

    cursor: pointer;

    font-weight: bold;

    padding: 0.2rem;

    transition: color 0.3s;
}


.language-btn:hover,
.language-btn.active {

    color: var(--accent-color);
}


/* Mobile menu button */

.mobile-menu-btn {

    display: none;

    background: transparent;

    border: none;

    color: var(--text-color);

    font-size: 1.4rem;

    cursor: pointer;

    padding: 0.4rem;
}


/* ==============================
   HEADER
================================= */

header {

    padding: 5rem 2rem;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #1e293b 0%,
            #0f172a 100%
        );

    border-bottom:
        2px solid var(--accent-color);

    animation:
        fadeInUp 0.8s ease-out forwards;
}


header h1 {

    margin: 0;

    font-size: 2.8rem;

    color: #fff;
}


.subtitle {

    color: var(--accent-color);

    font-size: 1.3rem;

    font-weight: bold;

    margin-top: 0.5rem;
}


.header-desc {

    max-width: 700px;

    margin: 1.5rem auto 0 auto;

    color: #94a3b8;

    font-size: 1rem;
}


/* ==============================
   CONTAINER
================================= */

.container {

    max-width: 1100px;

    margin: 0 auto;

    padding: 3rem 2rem;
}


section {

    margin-bottom: 5rem;

    animation:
        fadeInUp 1s ease-out forwards;
}


h2 {

    border-left:
        4px solid var(--accent-color);

    padding-left: 0.75rem;

    color: #fff;

    margin-bottom: 2rem;

    font-size: 1.75rem;
}


/* ==============================
   GRID
================================= */

.grid {

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px, 1fr)
        );

    gap: 2rem;
}


/* ==============================
   CARDS
================================= */

.card {

    background-color: var(--card-bg);

    padding: 1.8rem;

    border-radius: 12px;

    border:
        1px solid #334155;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

    transition:
        transform 0.25s ease,
        border-color 0.3s,
        box-shadow 0.3s;
}


.card:hover {

    transform: translateY(-4px);

    border-color:
        var(--card-hover-border);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.35);
}


.card h3 {

    margin-top: 0;

    color: #fff;

    font-size: 1.3rem;

    transition:
        color 0.3s;
}


.card:hover h3 {
    color: var(--accent-color);
}


.card p {

    font-size: 0.95rem;

    color: #cbd5e1;
}


.card strong {
    color: #e2e8f0;
}


/* ==============================
   WORKFLOW
================================= */

.timeline-card {
    position: relative;
}


.step-number {

    position: absolute;

    top: 10px;

    right: 15px;

    font-size: 3rem;

    font-weight: 900;

    color:
        rgba(255, 153, 0, 0.1);

    transition:
        color 0.3s;
}


.card:hover .step-number {

    color:
        rgba(255, 153, 0, 0.22);
}


/* ==============================
   CODE
================================= */

.code-block {

    background-color: var(--code-bg);

    border-radius: 10px;

    padding: 1.5rem;

    border:
        1px solid #1e293b;

    font-family:
        'Courier New',
        Courier,
        monospace;

    font-size: 0.85rem;

    overflow-x: auto;

    color: #a9b1d6;

    margin-top: 2rem;

    white-space: pre;

    box-shadow:
        inset 0 2px 8px rgba(0, 0, 0, 0.8);
}


/* ==============================
   SKILLS
================================= */

.skills-container {

    margin-top: 1rem;

    display: flex;

    flex-wrap: wrap;

    gap: 0.35rem;
}


.tag {

    background-color: #334155;

    color: #fff;

    padding:
        0.35rem 0.7rem;

    border-radius: 6px;

    font-size: 0.8rem;

    display: inline-block;
}


.tag-tech {

    background-color:
        rgba(56, 189, 248, 0.08);

    color: var(--tech-badge);

    border:
        1px solid rgba(56, 189, 248, 0.15);
}


/* ==============================
   CONTACT
================================= */

.contact-section {

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #1e293b 0%,
            #0f172a 100%
        );

    padding: 3.5rem 2rem;

    border-radius: 12px;

    border:
        1px solid var(--accent-color);

    animation:
        glow 5s infinite ease-in-out;
}


.contact-desc {

    max-width: 600px;

    margin:
        0 auto 1.5rem auto;

    color: #cbd5e1;
}


.email-link {

    color: var(--accent-color);

    text-decoration: none;

    font-weight: bold;

    font-size: 1.1rem;

    word-break: break-word;
}


.email-link:hover {
    text-decoration: underline;
}


/* ==============================
   BUTTON
================================= */

.btn {

    display: inline-block;

    background-color:
        var(--accent-color);

    color: #0f172a;

    padding:
        0.8rem 1.8rem;

    text-decoration: none;

    font-weight: bold;

    border-radius: 6px;

    margin-top: 1rem;

    transition:
        background-color 0.3s,
        transform 0.2s,
        box-shadow 0.3s;

    box-shadow:
        0 4px 15px
        rgba(255, 153, 0, 0.2);
}


.btn:hover {

    background-color:
        var(--accent-hover);

    transform:
        translateY(-2px);

    box-shadow:
        0 6px 20px
        rgba(255, 153, 0, 0.35);
}


/* ==============================
   FOOTER
================================= */

footer {

    text-align: center;

    padding: 3rem 2rem;

    color: #64748b;

    font-size: 0.9rem;

    border-top:
        1px solid #1e293b;
}


/* ==============================
   TABLET
================================= */

@media (max-width: 900px) {

    .nav-container {
        padding:
            1rem 1.5rem;
    }

    .nav-content {
        gap: 1rem;
    }

    .nav-links {
        gap: 0.8rem;
    }

    .nav-links a {
        font-size: 0.85rem;
    }

}


/* ==============================
   MOBILE
================================= */

@media (max-width: 768px) {

    body {
        padding-top: 65px;
    }


    /* Navbar */

    .nav-container {

        padding:
            0.8rem 1.2rem;

        position: relative;
    }


    .mobile-menu-btn {
        display: block;
    }


    .nav-content {

        position: absolute;

        top: 100%;

        left: 0;

        width: 100%;

        background-color:
            rgba(15, 23, 42, 0.98);

        border-bottom:
            1px solid #334155;

        padding: 1.2rem;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 1.2rem;

        box-shadow:
            0 15px 30px
            rgba(0, 0, 0, 0.35);
    }


    .nav-content.active {
        display: flex;
    }


    .nav-links {

        display: flex;

        flex-direction: column;

        gap: 0;
    }


    .nav-links a {

        padding:
            0.75rem 0;

        font-size: 1rem;

        border-bottom:
            1px solid
            rgba(255, 255, 255, 0.05);
    }


    .nav-links a::after {
        display: none;
    }


    .nav-socials {

        justify-content: center;

        padding-top: 0.5rem;
    }


    .language-switcher {
        justify-content: center;
    }


    /* Header */

    header {

        padding:
            4rem 1.3rem;

    }


    header h1 {

        font-size:
            clamp(
                2rem,
                9vw,
                2.8rem
            );
    }


    .subtitle {

        font-size:
            clamp(
                1rem,
                4.5vw,
                1.3rem
            );

        line-height: 1.4;
    }


    .header-desc {

        font-size:
            0.95rem;

        line-height: 1.7;
    }


    /* Main */

    .container {

        padding:
            2.5rem 1.2rem;
    }


    section {

        margin-bottom:
            4rem;
    }


    h2 {

        font-size:
            1.5rem;

        line-height: 1.3;
    }


    /* Cards */

    .grid {

        grid-template-columns:
            1fr;

        gap:
            1.2rem;
    }


    .card {

        padding:
            1.4rem;
    }


    .card h3 {

        font-size:
            1.2rem;

        padding-right:
            2rem;
    }


    .card p {

        font-size:
            0.92rem;
    }


    /* Contact */

    .contact-section {

        padding:
            2.5rem 1.2rem;
    }


    .contact-section h2 {

        border-left:
            none;

        padding-left: 0;
    }


    /* Button */

    .btn {

        width: 100%;

        max-width: 320px;

        text-align: center;

        padding:
            0.9rem 1.2rem;
    }


    /* Footer */

    footer {

        padding:
            2rem 1.2rem;
    }

}


/* ==============================
   SMALL MOBILE
================================= */

@media (max-width: 400px) {

    .nav-container {
        padding:
            0.75rem 1rem;
    }


    header {
        padding:
            3.5rem 1rem;
    }


    .container {
        padding:
            2rem 1rem;
    }


    h2 {
        font-size:
            1.35rem;
    }


    .tag {
        font-size:
            0.75rem;
    }

}


/* ==============================
   ACCESSIBILITY
================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;
    }

}