/* ---------- Reset & Base ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    color: #e6d5a8;
    min-height: 100vh;
    position: relative;
    line-height: 1.6;
}

/* ---------- Circuit Background ---------- */
.circuit-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #141412 100%);
}

/* Circuit trace pattern (pure CSS) */
.circuit-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        /* horizontal lines */
        linear-gradient(to right, rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        /* vertical lines */
        linear-gradient(to bottom, rgba(212, 175, 55, 0.06) 1px, transparent 1px),
        /* diagonal dots */
        radial-gradient(circle at 20% 30%, rgba(212, 175, 55, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 80% 70%, rgba(212, 175, 55, 0.08) 2px, transparent 2px);
    background-size: 40px 40px, 40px 40px, 80px 80px, 80px 80px;
    pointer-events: none;
}

/* ---------- Header & Nav ---------- */
header {
    background: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 0;
}

nav ul li a {
    color: #e6d5a8;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.25s, border-bottom 0.25s;
    border-bottom: 2px solid transparent;
    padding-bottom: 4px;
}

nav ul li a:hover {
    color: #D4AF37;
    border-bottom-color: #D4AF37;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #e6d5a8;
    font-size: 0.9rem;
}

.lang-switch button {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #e6d5a8;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.lang-switch button:hover {
    background: #D4AF37;
    color: #0a0a0a;
    border-color: #D4AF37;
}

.lang-switch button.active {
    background: #D4AF37;
    color: #0a0a0a;
    border-color: #D4AF37;
}

/* ---------- Main & Sections ---------- */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

section {
    margin-bottom: 3rem;
}

h1, h2, h3 {
    font-weight: 300;
    letter-spacing: 0.5px;
}

h1 {
    font-size: 3.2rem;
    color: #D4AF37;
    margin-bottom: 0.5rem;
}

h2 {
    font-size: 2.4rem;
    color: #D4AF37;
    border-left: 4px solid #D4AF37;
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

h3 {
    color: #D4AF37;
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
}

/* ---------- Hero (index) ---------- */
.hero {
    text-align: center;
    padding: 3rem 1rem;
}

.hero .tagline {
    font-size: 1.3rem;
    color: #e6d5a8;
    margin: 0.5rem 0 1rem;
}

.hero .quote {
    font-style: italic;
    font-size: 1.1rem;
    color: #b8a77d;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.7rem 2rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s;
    border: 1px solid transparent;
}

.gold-btn {
    background: #D4AF37;
    color: #0a0a0a;
}

.gold-btn:hover {
    background: #b8962e;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.gold-outline-btn {
    background: transparent;
    border: 1px solid #D4AF37;
    color: #D4AF37;
}

.gold-outline-btn:hover {
    background: #D4AF37;
    color: #0a0a0a;
}

/* ---------- Content cards / grids ---------- */
.content-section {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(4px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.8rem;
    margin-top: 1rem;
}

.skills-list li {
    background: rgba(212, 175, 55, 0.07);
    padding: 0.6rem 1rem;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    text-align: center;
    font-size: 0.95rem;
}

.service-card,
.project-card {
    background: rgba(212, 175, 55, 0.04);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(212, 175, 55, 0.12);
    transition: transform 0.2s, border-color 0.2s;
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-4px);
    border-color: #D4AF37;
}

.service-card h3,
.project-card h3 {
    color: #D4AF37;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.service-card p,
.project-card p {
    color: #d0c4a8;
    font-size: 0.95rem;
}

/* ---------- Contact form ---------- */
form input,
form textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 6px;
    color: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: #D4AF37;
}

form button {
    background: #D4AF37;
    color: #0a0a0a;
    border: none;
    padding: 0.8rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1rem;
}

form button:hover {
    background: #b8962e;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    nav ul { gap: 0.6rem; }
    nav ul li a { font-size: 0.9rem; }
    .lang-switch { font-size: 0.8rem; }
    .content-section { padding: 1.2rem; }
    .hero { padding: 1.5rem 0; }
    header { padding: 0.6rem 1rem; }
}

@media (max-width: 480px) {
    nav ul { gap: 0.4rem; }
    nav ul li a { font-size: 0.75rem; }
    .hero-buttons .btn { width: 100%; text-align: center; }
    .skills-list { grid-template-columns: 1fr 1fr; }
}