:root {
    --bg: #030303;
    --card: #0D1117;
    --accent: #00BFFF;
    --glow: #32D5FF;
    --text: #FFFFFF;
    --muted: #94A3B8;
    
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Backgrounds & Canvas */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}

#particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

#topology-container {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.bg-world {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    opacity: 0.03;
    pointer-events: none;
}

/* Hardware Decorations */
.decor-switch, .decor-server {
    position: fixed;
    z-index: -1;
    opacity: 0.7;
    pointer-events: none;
}
.decor-switch {
    bottom: -50px;
    left: -100px;
    width: 600px;
    transform: rotate(15deg);
}
.decor-server {
    bottom: -100px;
    right: -50px;
    width: 300px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: relative;
    z-index: 10;
}

.logo img {
    height: 32px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--text);
    text-shadow: 0 0 8px var(--glow);
}

/* Main Container */
.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 4rem;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Typography */
h1, h2, h3 {
    font-family: var(--font-heading);
    line-height: 1.1;
}

.hero {
    margin-bottom: 5rem;
    margin-top: 4rem;
}

.hero-small {
    color: var(--accent);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-large {
    font-size: 2.5rem;
    color: var(--muted);
    font-weight: 400;
    margin-bottom: 1rem;
}

.hero-huge {
    font-size: 6rem;
    font-weight: 700;
    text-transform: uppercase;
    background: linear-gradient(180deg, #FFFFFF 0%, #94A3B8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--muted);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.1);
}

.btn-primary:hover {
    background-color: var(--accent);
    color: var(--bg);
    box-shadow: 0 0 25px rgba(50, 213, 255, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Glass Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.glass-card {
    background: rgba(13, 17, 23, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 255, 0.3);
}

.glass-card .card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

.glass-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.glass-card ul {
    list-style: none;
}

.glass-card ul li {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.glass-card ul li::before {
    content: '›';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-family: var(--font-heading);
    font-weight: bold;
}
/* Contact Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 3, 3, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* Modal Card */
.modal-card {
    background: var(--card);
    border: 1px solid rgba(0, 191, 255, 0.3);
    border-radius: 12px;
    padding: 3rem;
    width: 100%;
    max-width: 550px;
    position: relative;
    box-shadow: 0 0 40px rgba(0, 191, 255, 0.15);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
    transform: translateY(0) scale(1);
}

/* Close Button */
.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--accent);
}

/* Typography & Form Elements */
.modal-title {
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.modal-subtitle {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.8rem 1rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.2);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    cursor: pointer;
}