﻿@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=SUSE+Mono:ital,wght@0,100..800;1,100..800&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0d0d0d;
    color: #f0f0f0;
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1, h2, h3, p {
    line-height: 1.3;
}

header {
    background: linear-gradient(135deg, #121212, #1e1e1e);
    height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 20px 80px;
    align-items: center;
}

.logo {
    font-size: 2rem;
    color: #dddddd;
}

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

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 5px;
    transition: 0.3s;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: #111;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 25px 0;

        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.nav-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    nav {
        flex-direction: row;
        padding: 20px;
        position: relative;
    }
}

.hero {
    text-align: center;
    margin: auto;
    max-width: 800px;
    padding: 0 20px;
}

.hero h2 {
    font-size: clamp(2.2rem, 5vw, 3rem);
}

.hero p {
    font-size: 1.3rem;
    margin: 20px 0;
}

.btn {
    background: #dddddd;
    color: #000;
    padding: 12px 28px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    display: inline-block;
}

.btn:hover {
    background: #00b8e0;
    transform: translateY(-2px);
}

section {
    padding: 80px 15%;
    text-align: center;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #00d9ff;
}

#skills .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.skill {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s;
}

.skill:hover {
    transform: scale(1.05);
}

#projects .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.projects-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.project img {
    width: 100%;
    display: block;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.project h3 {
    margin: 15px 0 10px;
    font-size: 1.5rem;
}

.project p {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: #ccc;
}

#gallery .projects-grid .project {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    cursor: default;
    transition: none;
}

#gallery .projects-grid .project img {
    border-radius: 10px;
    transition: transform 0.3s;
}

#gallery .projects-grid .project img:hover {
    transform: scale(1.05);
}

#contact form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

#contact input,
#contact textarea {
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    background: #1e1e1e;
    color: #f0f0f0;
}

#contact input:focus,
#contact textarea:focus {
    outline: 2px solid #00d9ff;
}

#contact button {
    cursor: pointer;
}

footer {
    background: #111;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    color: #888;
}

#code-snippets {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.code-container {
    width: 90%;
    max-width: 900px;
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-controls button {
    background: #1e1e1e;
    color: #00d9ff;
    border: 1px solid #333;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    margin-left: 5px;
}

.code-controls button:hover {
    background: #00b8e0;
    color: #000;
}

.code-wrapper {
    display: flex;
    gap: 10px;
    background: #0b0b0b;
    border: 1px solid #222;
    border-radius: 6px;
    overflow: auto !important;
}

.code-wrapper.expanded {
    padding: 12px;
}

.code-wrapper.collapsed {
    max-height: 0 !important;
    padding: 0 !important;
}

.collapse-btn {
    background: #1e1e1e;
    color: #00d9ff;
    border: 1px solid #333;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    margin-left: 10px;
}

pre.line-numbers {
    background: #111 !important;
    color: #888;
    padding: 15px;
    text-align: right;
    user-select: none;
    display: inline-block;
    vertical-align: top;
}


pre.code-output {
    display: inline-block;
    vertical-align: top;
    width: calc(100% - 60px);
    padding: 16px;
    box-sizing: border-box;
    white-space: pre;
    overflow-x: auto;
}

.dropdown{
    position: relative;
}

.dropdown .dropbtn{
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #111;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.dropdown-content li {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #fff;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #00d9ff;
    color: #000;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-sub {
    position: relative;
}

.dropdown-sub-content {
    display: none;
    position: absolute;
    top: 0;
    left: 180px;
    background: #111;
    min-width: 180px;
    padding: 10px 0;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.4);
    z-index: 2000;
    white-space: nowrap;
}

.dropdown-sub:hover .dropdown-sub-content {
    display: block;
}

.dropdown-sub.open .dropdown-sub-content {
    display: block;
}

.dropdown-sub.flip-left .dropdown-sub-content {
    left: auto;
    right: 180px;
}

#development {
    display: flex;
    flex-direction: column;
    gap: 64px;

    align-items: center;
    padding-bottom: 40px;
}

#development .dev-section-block {
    display: flex;
    align-items: flex-start;
    gap: 40px;
    margin: 30px 0;
}

#development .dev-section-block:nth-child(even) {
    flex-direction: row-reverse;
}

#development .dev-text,
#development .dev-code {
    flex: 1 1 50%;
    min-width: 280px;
}

#development .dev-code .code-container {
    width: 100%;
    margin: 0;
}

.dev-section-block {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0d0d;
    gap: 48px;
    width: 100%;
    max-width: 1100px;
    box-sizing: border-box;
    padding: 10px 20px;
}

.dev-section-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    width: 100%;
    max-width: 1100px;
    padding: 0 20px;
}

.dev-section-block:nth-child(even) .dev-section-inner {
    flex-direction: row-reverse;
}

.dev-text,
.dev-code {
    flex: 0 1 480px;
    max-width: 480px;
    min-width: 260px;
    text-align: center;
}

.dev-text h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.dev-text p {
    margin-bottom: 12px;
    color: #eaeaea;
}

.dev-code .code-container {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.dev-code .code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dev-code .code-wrapper {
    width: 100%;
    box-sizing: border-box;
    background: #0b0b0b;
}
