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

:root {
    --color-primary: #0f172a;
    --color-primary-light: #1e3a8a;
    --color-secondary: #2563eb;
    --color-accent: #f59e0b;

    --color-background: #e3e3e3;
    --color-surface: #ffffff;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-border: #e2e8f0;

    --font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

    --container-width: 1000px;

    --radius: 12px;
    --radius-sm: 8px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);

    --transition: all 0.3s ease;
}

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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

ul {
    list-style: none;
}

/* ==================================================
   GLOBAL ELEMENTS
================================================== */

.container {
    width: min(var(--container-width), calc(100% - 2rem));
    margin: 0 auto;
}

section {
    padding: 2rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--color-text-light);
    max-width: 700px;
    margin: 0 auto;
}

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

.btn {
    display: inline-block;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: #ffffff;
    color: var(--color-primary);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==================================================
   CARDS
================================================== */

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

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

.navbar {
    background: var(--color-primary);
    border-bottom: 1px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-secondary);
}

.navbar-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.navbar-menu a {
    color: var(--color-background);
    font-weight: 500;
}

.navbar-menu a:hover {
    color: var(--color-secondary);
}

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

.hero {
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #ffffff;
    padding: 1rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    /*background: rgba(255, 255, 255, 0.15);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;*/
    font-size: 0.875rem;
    font-weight: 700 ;
    color: #f2c94c;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #2796ff;
}

.hero-description {
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.85);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

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

.hero-image img {
    width: 650px;
    max-width: none;
    height: auto;
}

/* ==================================================
   VPS INFO
================================================== */

.vps-info {
    background: #e4e4e4;
}

.vps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 0.5fr));
    gap: 1rem;
}

.vps-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 0.5rem 0.25rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.vps-card img {
    width: 80px;
    margin: 0 auto 0.1rem;
}

.vps-card .label {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-light);
    margin-bottom: 0.5rem;
}

.vps-card .value {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.tech-stack {
    background: var(--color-background);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.2rem;
}

.tech-item {
    text-align: center;
}

.tech-item img {
    width: 80px;
    margin: 0 auto 0.5rem;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

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

.projects {
    background: #e4e4e4;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.8rem;
}

.project-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.project-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-badge {
    background: #eff6ff;
    color: var(--color-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.projects-search {
    max-width: 700px;
    margin: 0 auto 2.5rem;
}

.projects-search input {
    width: 100%;
    padding: 0.9rem 1.2rem;
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

.projects-search input:focus {
    outline: none;
    border-color: var(--color-secondary);
}
/* ==================================================
   RESOURCES
================================================== */

.resources {
    background: var(--color-background);
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
}

.resource-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
}

.resource-card h3 {
    margin-bottom: 1rem;
}

.resource-card p {
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.resource-card a {
    color: var(--color-secondary);
    font-weight: 600;
}

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

.footer {
    background: var(--color-primary);
    color: #ffffff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
}

.footer-links a:hover {
    color: #ffffff;
}

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

@media (max-width: 768px) {
    .navbar .container,
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

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

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    section {
        padding: 4rem 0;
    }
}