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

:root {
    --primary-color: #00ff88;
    --primary-dark: #00cc6a;
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #242424;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #00ff88 0%, #00cc6a 100%);
    --gradient-bg: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

input,
button,
select,
textarea {
    font: inherit;
}

form {
    display: grid;
    gap: 1rem;

    /* @media (width > 720px) {
        grid-template-columns: 1fr 1fr;
    } */
}

.form-group label {
    text-transform: uppercase;
    font-size: 1rem;
    text-align: left;
    margin-bottom: 10px;
}

input, select, textarea {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1ex 2ex;
    resize: vertical;
    /* appearance: none; */
}

.phone {
    position: absolute !important;
    left: -9999px !important;
    visibility: hidden;  
}


input:not([type="checkbox"], [type="radio"]) {
    width: 100%;
}

/* .contact-form {
    width: 1000px;
} */

.form-group {
    display: grid;
}

.form-group-flex {
    display: flex;
    /* align-items: center; */
    gap: 10px;
}

.form-group-flex label {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-secondary);
}

.form-group-flex label a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-group-flex label a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.form-group-flex input {
    accent-color: var(--primary-color);
}

.contact-form button {
  width: auto;
}

.form-group:has(.fine-print) {
    display: flex;
}

.contact-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.section {
    width: 100%;
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-grey {
    background: var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo img {
    height: 40px;
    width: 40px;
}


.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.text-content {
    padding: 100px 0px 50px 0px;
    background: var(--gradient-bg);
    min-height: 100vh;
    width: 100%;
    position: relative;
    z-index: 2;
}

.text-content::before {
    content: '';
    position: absolute;
    pointer-events: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.text-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.text-content h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.text-content p {
    margin-bottom: 1rem;
}

.text-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.text-content ul li {
    margin-bottom: 0.5rem;
}

.text-content a {
    color: var(--text-primary);
    text-decoration: underline;
    cursor: pointer;
}

.text-content a:hover {
    text-decoration: underline;
    color: var(--primary-color);
}

.text-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1rem;
}

.text-content table th,
.text-content table td {
    padding: 12px 15px;
    border: 1px solid var(--border-color);
}

.highlight {
    font-weight: bold;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--gradient-bg);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    z-index: 1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-text .description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
}

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

.profile-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.profile-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    animation: rotate 20s linear infinite;
    opacity: 0.6;
}

.profile-ring::before {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg-primary);
    border-radius: 50%;
}

.profile-image {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    z-index: 2;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* Posts */
.post-featured-image img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.post-title {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.post-meta {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.separator {
  opacity: 0.5;
}

.post-toc {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.post-content {
  line-height: 1.7;
  font-size: 1.1rem;
}

.post-tags {
  margin-top: 2rem;
}

.post-tags .tag {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  background: var(--border-color);
  border-radius: 5px;
  margin-right: 0.3rem;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--text-secondary);
}

.post-tags .tag:hover {
  text-decoration: none;
  background: var(--primary-color);
  color: var(--bg-primary);
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.post-card a {
  text-decoration: none;
  color: inherit;
}

.post-card a:hover {
  text-decoration: none;
  color: inherit;
}

.post-card:hover .post-title {
  color: var(--primary-color);
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
}

.post-title {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.post-summary {
  font-size: 1rem;
  color: #555;
}

.post-meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #777;
  display: flex;
  gap: 0.3rem;
  align-items: center;
}

/* Not found */

.not-found {
  padding: 5rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.error-message {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #666;
}

.back-home {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border: 2px solid currentColor;
  border-radius: 8px;
  font-weight: 500;
}
.back-home:hover {
  transform: scale(1.05);
}

.error-illustration {
    width: 1000px;
    max-width: 100%;
    margin-bottom: 2rem;
}


/* Buttons */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-primary);
    /* background: var(--bg-card); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: var(--text-secondary); */
    text-decoration: none;
    transition: all 0.3s ease;
    /* border: 1px solid var(--border-color); */
}

#githubIcon {
    height: 42px;
    width: 42px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-primary);
    /* background: var(--bg-card); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: var(--text-secondary); */
    text-decoration: none;
    transition: all 0.3s ease;
}

#mailIcon {
    height: 48px;
    width: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--bg-primary);
    /* background: var(--bg-card); */
    display: flex;
    align-items: center;
    justify-content: center;
    /* color: var(--text-secondary); */
    text-decoration: none;
    transition: all 0.3s ease;
}
/* .social-link img {
    height: 40px;
    width: 40px;
} */

.social-icon {
    background: var(--primary-color);
    color: var(--bg-primary);
}

/* .social-link:hover {
    background: var(--primary-color);
    color: var(--bg-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.2);
} */

.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

/* Services Section */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

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

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 255, 136, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 4rem 0;
    background: var(--bg-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
    }

    .language-switcher {
        order: 3;
        flex-basis: auto;
        justify-content: center;
        margin-top: 1rem;
    }

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

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .profile-container {
        width: 250px;
        height: 250px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

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

    .service-card {
        padding: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Loading animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 0.8s ease forwards;
}

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

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #222;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: sans-serif;
    z-index: 1000;
}
#cookie-banner button {
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.875rem;
}
#accept-cookies { 
    background: var(--primary-color);
    color: var(--border-color);
    padding: 1rem 2rem;
    border: none;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
#reject-cookies { 
    background: var(--bg-primary); 
    color: var(--text-primary);
    border-color: var(--primary-color);
    padding: 1rem 2rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}
