/* 
 * Philip Lima - Hybrid Portfolio (Tech & Security)
 * Theme: Dark Mode (GitHub inspired) + Neon Green + Corporate Blue
 */

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --text-main: #c9d1d9;
    --text-muted: #8b949e;
    --neon-green: #3fb950;
    /* GitHub Green-ish Neon */
    --tech-blue: #58a6ff;
    --border-color: #30363d;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    /* For that terminal feel */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
    text-decoration: none;
    color: var(--tech-blue);
    transition: var(--transition);
}

a:hover {
    color: var(--neon-green);
    text-shadow: 0 0 10px rgba(63, 185, 80, 0.4);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: #ffffff;
    font-weight: 700;
}

/* Animations */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(63, 185, 80, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(63, 185, 80, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(63, 185, 80, 0);
    }
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--neon-green)
    }
}

.cursor-blink {
    border-right: 3px solid var(--neon-green);
    animation: blink-caret 0.75s step-end infinite;
}

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

.text-green {
    color: var(--neon-green);
}

.text-blue {
    color: var(--tech-blue);
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 36px;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green);
}

.btn-cta {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    animation: pulse-green 2s infinite;
}

.btn-cta:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green);
}

/* Header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 a {
    font-family: var(--font-mono);
    color: #fff;
    font-size: 24px;
}

.logo h1 a span {
    color: var(--neon-green);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu a {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-menu a.active,
.nav-menu a:hover {
    color: var(--neon-green);
}

.mobile-nav-toggle {
    display: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center, #1b222c 0%, var(--bg-dark) 70%);
    padding-top: 80px;
}

#hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 20px;
}

#hero h2 {
    font-family: var(--font-mono);
    font-size: 24px;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 40px;
}

#hero h2 span {
    color: var(--tech-blue);
    font-weight: 700;
}

.hero-sub {
    color: var(--neon-green) !important;
}

/* Projects Section ("Vitrine Web") */
#projects {
    padding: 100px 0;
    background: var(--bg-dark);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--tech-blue);
    box-shadow: 0 10px 30px rgba(88, 166, 255, 0.2);
}

.card-img-holder {
    height: 200px;
    background: #21262d;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.card-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-img-holder img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #fff;
}

.project-info p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.project-links a {
    font-size: 14px;
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Experience (Security) */
#experience {
    padding: 100px 0;
    background: #11151c;
    /* Slightly better contrast */
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-item {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--tech-blue);
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: var(--bg-dark);
    border: 4px solid var(--tech-blue);
    border-radius: 50%;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--neon-green);
    margin-bottom: 10px;
    display: block;
}

.timeline-item h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.timeline-item h4 {
    font-size: 16px;
    color: #fff;
    font-weight: 400;
    margin-bottom: 15px;
    opacity: 0.8;
}

.timeline-item ul {
    list-style: none;
}

.timeline-item ul li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
}

.timeline-item ul li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--tech-blue);
    font-family: var(--font-mono);
}

/* Skills */
#skills {
    padding: 100px 0;
}

.skills-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.skill-tag {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 15px 25px;
    border-radius: 50px;
    font-family: var(--font-mono);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.skill-tag i {
    font-size: 20px;
}

.skill-tag.dev i {
    color: var(--neon-green);
}

.skill-tag.sec i {
    color: var(--tech-blue);
}

.skill-tag:hover {
    border-color: var(--neon-green);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(63, 185, 80, 0.2);
}

/* GitHub Snake Section */
#github-fun {
    padding: 80px 0;
    background: var(--bg-card);
    text-align: center;
}

.snake-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.snake-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Contact */
#contact {
    padding: 100px 0;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    padding: 40px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

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

.form-control {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 15px;
    color: #fff;
    border-radius: 5px;
    font-family: var(--font-mono);
}

.form-control:focus {
    outline: none;
    border-color: var(--neon-green);
    box-shadow: 0 0 10px rgba(63, 185, 80, 0.2);
}

/* Button Styles */
.btn-primary,
.btn-submit {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 2px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    width: 100%;
    /* For form buttons */
}

.btn-primary:hover,
.btn-submit:hover {
    background: var(--neon-green);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--neon-green);
    transform: translateY(-3px);
}

/* Specific override if btn-primary is not full width in other contexts, 
   but for contact form it's usually block. */

/* Footer */
footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-muted);
}

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    #hero h1 {
        font-size: 42px;
    }
}