@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Outfit:wght@400;700&display=swap');

:root {
    --primary-color: #0066cc;
    --accent-red: #cc0000;
    --bg-dark: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(circle at 0% 0%, rgba(0, 102, 204, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(204, 0, 0, 0.05) 0%, transparent 50%);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

header,
footer {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border-bottom: 1px solid var(--glass-border);
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
}

footer {
    border-bottom: none;
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 1rem;
    margin-top: auto;
}

header h1 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

nav a:hover {
    color: var(--primary-color);
}

main {
    padding: 40px 20px;
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

article {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

h2 {
    font-size: 1.8rem;
    margin: 1.5rem 0 1rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
}

h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1.2rem;
    color: var(--text-dim);
}

.project-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 1.5rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.project-card::after {
    content: '→';
    opacity: 0.5;
    transition: var(--transition);
}

.project-card:hover::after {
    opacity: 1;
    transform: translateX(5px);
}


.overflow-auto {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: rgba(255, 255, 255, 0.05);
    font-family: 'Outfit', sans-serif;
    color: white;
    font-weight: 700;
}

tr:last-child td {
    border-bottom: none;
}

tfoot {
    background: rgba(255, 255, 255, 0.02);
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="search"],
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

button,
input[type="submit"] {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

button:hover,
input[type="submit"]:hover {
    background: #0077ee;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

[role="group"] {
    display: flex;
    gap: 0.5rem;
}

hr {
    border: 0;
    height: 1px;
    background: var(--glass-border);
    margin: 2rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    main {
        display: flex;
        align-items: flex-start;
        gap: 3rem;
    }

    img {
        width: 40%;
        order: 2;
        margin-bottom: 0;
    }

    article {
        width: 60%;
        order: 1;
    }

    main:not(:has(img)) article,
    main.no-img article {
        width: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.6s ease-out;
}