/* 
    meksec.net - Professional Cyber Security Portfolio Style

*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Plus+Jakarta+Sans:wght@300;400;600;800&display=swap');

:root {
    --bg: #050505;
    --card-bg: #0d0d0d;
    --accent: #6366f1;
    --text-main: #ffffff;
    --text-dim: #94a3b8;
    --border: #1e1e1e;
    --neon-blue: #6366f1;
    --neon-pink: #ec4899;
    --neon-cyan: #06b6d4;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

nav {
    backdrop-filter: blur(10px);
    z-index: 100;
}

.mono { 
    font-family: 'JetBrains Mono', monospace; 
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes terminalSlideIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(-10deg) translateX(50px);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(-3deg) translateX(0);
    }
}

.reveal-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.reveal-terminal {
    opacity: 0;
    animation: terminalSlideIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.3s;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.4s; }

.intro-text {
    border-left: 3px solid var(--accent);
    padding-left: 20px;
}

.hero-title {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem); 
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin: 1rem 0;
}

.terminal-window {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: perspective(1000px) rotateY(-3deg);
    transition: transform 0.5s ease;
}

.terminal-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.cert-slider {
    background: linear-gradient(90deg, #050505 0%, #0a0a0a 50%, #050505 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    overflow: hidden;
    white-space: nowrap;
}

.cert-track {
    display: inline-block;
    animation: scroll 40s linear infinite;
}

.cert-item {
    display: inline-flex;
    align-items: center;
    margin: 0 30px;
    padding: 12px 24px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #fff;
    transition: all 0.3s ease;
}

.cert-item:nth-child(3n+1) { border-left: 4px solid var(--neon-blue); box-shadow: -10px 0 20px -10px rgba(99, 102, 241, 0.2); }
.cert-item:nth-child(3n+2) { border-left: 4px solid var(--neon-pink); box-shadow: -10px 0 20px -10px rgba(236, 72, 153, 0.2); }
.cert-item:nth-child(3n+3) { border-left: 4px solid var(--neon-cyan); box-shadow: -10px 0 20px -10px rgba(6, 182, 212, 0.2); }

.cert-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.service-card {
    cursor: pointer;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.service-card i {
    display: block;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 2.2rem;
    text-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.service-card p {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

.service-card:hover {
    border-color: var(--accent);
    transform: translateY(-8px);
    background: #111;
}

footer {
    background-color: #080808;
}

footer a i {
    transition: transform 0.3s ease, color 0.3s ease;
}

footer a:hover i {
    transform: scale(1.2);
    color: var(--accent);
}

@media (max-width: 1024px) {
    .hero-title { font-size: 2.2rem; }
    .nav-links { display: none; }
}

@media (max-width: 768px) {
    .intro-text { border-left: none; padding-left: 0; text-align: center; }
    .hero-title { text-align: center; }
    .flex.flex-wrap { justify-content: center; }
    .cert-item { margin: 0 15px; padding: 8px 16px; font-size: 0.75rem; }
}