/* --- Variables & Reset --- */
:root {
    --bg-dark: #0b0c10;
    --bg-darker: #1f2833;
    --text-grey: #c5c6c7;
    --neon-cyan: #66fcf1;
    --neon-dark: #45a29e;
    --white: #ffffff;
    --font-main: 'Inter', sans-serif;
    --font-code: 'Fira Code', monospace;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-grey);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    color: var(--white);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

ul {
    list-style: none;
}

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

.highlight {
    color: var(--neon-cyan);
}

.text-center {
    text-align: center;
}

.section {
    padding: 80px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    font-family: var(--font-code);
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--neon-cyan);
    color: var(--bg-dark);
    padding: 10px 5px;
    border-radius: 10px;
}

.btn-primary:hover {
    background-color: var(--neon-dark);
}

.btn-glow {
    background-color: transparent;
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(102, 252, 241, 0.2);
}

.btn-glow:hover {
    background-color: var(--neon-cyan);
    color: var(--bg-dark);
    box-shadow: 0 0 20px rgba(102, 252, 241, 0.6);
}

.btn-outline {
    border-color: var(--text-grey);
    color: var(--text-grey);
}

.btn-outline:hover {
    border-color: var(--white);
    color: var(--white);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(11, 12, 16, 0.95);
    height: 70px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--bg-darker);
}

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

.logo {
    font-family: var(--font-code);
    font-size: 1.5rem;
    color: var(--white);
    font-weight: bold;
}

.console-prefix {
    color: var(--neon-dark);
    margin-right: 5px;
}

.cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: var(--text-grey);
    font-weight: 500;
}

.nav-link:hover {
    color: var(--neon-cyan);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

/* --- Hero --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px; /* offset for fixed nav */
    background: radial-gradient(circle at center, #1f2833 0%, #0b0c10 70%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 40px;
    z-index: 2;
    position: relative;
}

.badge {
    display: inline-block;
    background: rgba(102, 252, 241, 0.1);
    color: var(--neon-cyan);
    padding: 5px 10px;
    border-radius: 4px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    margin-bottom: 20px;
    border: 1px solid var(--neon-dark);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-visual {
    display: flex;
    justify-content: center;
    animation: float 4s ease-in-out infinite;
    color: var(--bg-darker);
    filter: drop-shadow(0 0 15px rgba(102, 252, 241, 0.3));
}

.hero-visual i {
    color: var(--neon-dark);
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* --- Ticker --- */
.tech-stack-ticker {
    background: var(--neon-cyan);
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    position: relative;
}

.ticker-track {
    display: inline-block;
    animation: ticker 20s linear infinite;
}

.slide {
    display: inline-block;
    padding: 0 40px;
    font-family: var(--font-code);
    font-weight: 700;
    color: var(--bg-dark);
    text-transform: uppercase;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Services Grid --- */
.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-darker);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--neon-dark);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--neon-cyan);
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

/* --- Certifications --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.tech-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.tech-list i {
    color: var(--neon-cyan);
}

.cert-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cert-item {
    background: var(--bg-dark);
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    border: 1px solid var(--neon-dark);
}

.cert-item i {
    font-size: 3rem;
    color: var(--text-grey);
    margin-bottom: 10px;
    display: block;
}

.cert-item span {
    font-family: var(--font-code);
    font-weight: bold;
    color: var(--neon-cyan);
}

/* --- Contact Form --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: var(--bg-darker);
    padding: 50px;
    border-radius: 12px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--neon-cyan);
}

.terminal-box {
    background: #000;
    padding: 15px;
    border-radius: 4px;
    margin-top: 40px;
    font-family: var(--font-code);
    color: #0f0;
    border-left: 3px solid #0f0;
}

.tech-form .form-group {
    margin-bottom: 20px;
}

.tech-form label {
    display: block;
    margin-bottom: 8px;
    font-family: var(--font-code);
    font-size: 0.9rem;
}

.tech-form input, 
.tech-form select, 
.tech-form textarea {
    width: 100%;
    padding: 12px;
    background: var(--bg-dark);
    border: 1px solid #333;
    color: var(--white);
    border-radius: 4px;
    font-family: var(--font-main);
}

.tech-form input:focus, 
.tech-form select:focus, 
.tech-form textarea:focus {
    outline: none;
    border-color: var(--neon-cyan);
}

/* --- Footer --- */
.footer {
    background: #050608;
    padding: 60px 0 20px;
    border-top: 1px solid var(--bg-darker);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-grey);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    margin-right: 15px;
}

.social-links a:hover {
    color: var(--neon-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--bg-darker);
    font-size: 0.9rem;
    color: #666;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--bg-darker);
        width: 100%;
        height: calc(100vh - 70px);
        padding-top: 40px;
        transition: 0.3s;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 5px auto;
        background-color: var(--white);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-visual {
        display: none; /* Hide big icon on mobile for space */
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .split-layout, .contact-wrapper, .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Deep Dive Article Sections --- */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
}

.article-terminal {
    background: #000;
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-family: var(--font-code);
    color: var(--neon-cyan);
    border-left: 3px solid var(--neon-cyan);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.article-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: var(--white);
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
}

.article-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 20px;
}

.article-text strong {
    color: var(--white);
    font-weight: 600;
}