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

:root {
    --bg-dark: #050505; /* Blackest black */
    --bg-card: #111827; /* Dark Gray */
    --primary: #10b981; /* Neon Green */
    --secondary: #d946ef; /* Neon Pink */
    --text-main: #e5e7eb; /* Light Gray */
    --text-muted: #9ca3af;
    --font-head: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --glow: 0 0 10px rgba(16, 185, 129, 0.5);
    --glow-secondary: 0 0 15px rgba(217, 70, 239, 0.4);
    --border-glow: 1px solid rgba(16, 185, 129, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { 
    font-family: var(--font-body); 
    color: var(--text-main); 
    background: var(--bg-dark); 
    line-height: 1.6; 
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: 2px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar { 
    position: fixed; top: 0; width: 100%; z-index: 1000; 
    background: rgba(5, 5, 5, 0.9); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid #222;
    padding: 15px 0;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; text-decoration: none; color: var(--text-main); gap: 10px; }
.logo-text { font-family: var(--font-head); font-weight: 900; font-size: 1.5rem; letter-spacing: 3px; position: relative; }
.nav-links { display: flex; list-style: none; gap: 30px; }
.nav-links a { 
    color: var(--text-muted); text-decoration: none; font-family: var(--font-head); font-size: 0.9rem; transition: 0.3s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); text-shadow: var(--glow); }

.pulsate { animation: pulsate 2s infinite; }
@keyframes pulsate { 0% { opacity: 0.5; } 50% { opacity: 1; r: 7; } 100% { opacity: 0.5; r: 5; } }

/* Hero */
#hero { 
    height: 90vh; display: flex; align-items: center; position: relative; 
    background: radial-gradient(circle at 50% 50%, #1a2336 0%, #050505 70%);
    overflow: hidden;
}
.hero-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background-image: linear-gradient(rgba(16, 185, 129, 0.03) 1px, transparent 1px), 
    linear-gradient(90deg, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: 0;
    pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.glitch-wrapper { min-height: 120px; display: flex; align-items: center; }
#hero h1 { font-size: 3.5rem; line-height: 1.2; color: var(--white); text-shadow: 2px 2px 0 var(--secondary); margin-bottom: 0; }
.cursor { font-size: 3.5rem; color: var(--primary); animation: blink 1s infinite; }
.hero-sub { color: var(--text-muted); font-size: 1.2rem; margin: 2rem 0 3rem; max-width: 600px; }

/* Buttons */
.btn { 
    display: inline-block; padding: 15px 30px; 
    background: transparent; color: var(--primary); 
    text-decoration: none; border: 2px solid var(--primary); 
    font-family: var(--font-head); font-weight: bold;
    text-transform: uppercase;
    transition: 0.3s; 
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
    cursor: pointer;
}
.btn:hover { background: var(--primary); color: #000; box-shadow: 0 0 20px var(--primary); }
.btn-sm { padding: 8px 20px; font-size: 0.8rem; }
.btn-outline { border-color: var(--secondary); color: var(--secondary); box-shadow: none; }
.btn-outline:hover { background: var(--secondary); color: #fff; }

/* Sections */
.section-padding { padding: 100px 0; border-bottom: 1px solid #1a1a1a; }
.section-title { font-size: 3rem; color: var(--text-main); margin-bottom: 1rem; text-align: center; text-shadow: 3px 3px 0px rgba(217, 70, 239, 0.5); }
.section-subtitle { text-align: center; color: var(--text-muted); max-width: 700px; margin: 0 auto 4rem; font-size: 1.1rem; font-family: 'Courier New', monospace; }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.card { 
    background: var(--bg-card); 
    border: 1px solid #333; 
    border-left: 3px solid var(--secondary); 
    transition: 0.3s; 
    position: relative; 
    overflow: hidden; 
    display: flex; flex-direction: column;
}
.card:hover { 
    transform: translateY(-10px); 
    border-color: var(--secondary); 
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.2); 
}
.card-img-wrap { overflow: hidden; height: 200px; position: relative; }
.card-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; filter: grayscale(80%); }
.card:hover .card-img { filter: grayscale(0%); transform: scale(1.1); }
.card-content { padding: 25px; display: flex; flex-direction: column; flex-grow: 1; }
.tag { color: var(--primary); font-family: 'Courier New', monospace; font-size: 0.8rem; letter-spacing: 1px; margin-bottom: 10px; display: block; }
.card h3 { font-size: 1.2rem; margin-bottom: 15px; color: #fff; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; flex-grow: 1; }
.read-more { color: var(--secondary); text-decoration: none; font-family: var(--font-head); font-size: 0.85rem; font-weight: bold; }
.read-more:hover { text-decoration: underline; text-shadow: 0 0 5px var(--secondary); }

/* Tech Stack */
.tech-bg { background: #080808; position: relative; }
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.tech-item { 
    background: rgba(17, 24, 39, 0.5); padding: 30px; border: 1px solid #333; 
    transition: 0.3s;
}
.tech-item:hover { border-color: var(--primary); background: rgba(16, 185, 129, 0.05); }
.tech-icon { 
    font-family: var(--font-head); color: var(--primary); font-weight: 900; font-size: 1.5rem; 
    margin-bottom: 20px; border: 2px solid var(--primary); display: inline-block; 
    padding: 10px 15px; box-shadow: var(--glow);
}
.tech-item h4 { margin-bottom: 10px; color: var(--text-main); }
.tech-item p { color: var(--text-muted); font-size: 0.9rem; }

/* Contact */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.map-frame { height: 100%; min-height: 400px; border: 1px solid #333; position: relative; filter: grayscale(100%); transition: 0.5s; }
.map-frame:hover { filter: grayscale(0%); }
.location-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; 
    background: rgba(5, 5, 5, 0.9); padding: 20px; 
    border-top: 2px solid var(--secondary);
    font-family: 'Courier New', monospace; font-size: 0.9rem;
}

.terminal-form { 
    background: #0a0a0a; border: 1px solid #333; padding: 0; 
    box-shadow: 0 0 30px rgba(0,0,0,0.8);
}
.terminal-header { 
    background: #222; padding: 10px 15px; display: flex; align-items: center; gap: 8px; 
    border-bottom: 1px solid #333;
}
.dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-title { font-family: 'Courier New', monospace; color: #ccc; margin-left: 10px; font-size: 0.9rem; }

form { padding: 30px; }
.input-group { margin-bottom: 25px; }
.input-group label { display: block; color: var(--secondary); font-family: 'Courier New', monospace; margin-bottom: 5px; }
.input-group input, .input-group textarea { 
    width: 100%; background: transparent; border: none; 
    border-bottom: 1px solid #444; color: var(--primary); 
    font-family: 'Courier New', monospace; padding: 10px 0; 
    font-size: 1rem;
}
.input-group input:focus, .input-group textarea:focus { 
    outline: none; border-bottom: 1px solid var(--primary); box-shadow: 0 5px 5px -5px var(--primary);
}
.terminal-btn { width: 100%; border-radius: 0; margin-top: 10px; }

/* Footer */
#main-footer { background: #000; padding: 50px 0; border-top: 1px solid #222; font-family: 'Courier New', monospace; }
.footer-content { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-logo h3 { color: var(--text-main); margin-bottom: 10px; font-size: 1.2rem; }
.footer-logo p { color: #555; font-size: 0.8rem; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #777; text-decoration: none; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }

/* Cookie Banner */
.cookie-banner { 
    position: fixed; bottom: 20px; right: 20px; max-width: 400px; 
    background: rgba(17, 24, 39, 0.95); border: 1px solid var(--secondary); 
    padding: 20px; z-index: 9999; display: none; 
    box-shadow: 0 0 20px rgba(0,0,0,0.8);
}
.cookie-content { display: flex; gap: 15px; margin-bottom: 15px; }
.alert-icon { font-size: 2rem; }
.alert-text h4 { color: var(--secondary); font-size: 0.9rem; margin-bottom: 5px; }
.alert-text p { font-size: 0.85rem; color: #ccc; }
.cookie-actions { display: flex; gap: 10px; }

/* Success Page Styles */
.success-circle { stroke-dasharray: 345; stroke-dashoffset: 345; animation: drawCircle 1s ease-out forwards; }
.success-checkmark { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawCheck 0.5s ease-out 0.8s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* Responsive */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: block; cursor: pointer; }
    .hamburger .bar { display: block; width: 25px; height: 3px; background: var(--primary); margin: 5px auto; }
    .contact-wrapper { grid-template-columns: 1fr; }
    #hero h1 { font-size: 2rem; }
    .section-title { font-size: 2rem; }
    .grid-3 { grid-template-columns: 1fr; }
}

@keyframes blink { 50% { opacity: 0; } }