/* Root Variables for Cyber Theme */
:root {
    --bg-color: #050505;
    --text-color: #a9b7c6;
    --primary-color: #00ffcc;
    --secondary-color: #00ff00;
    --accent-color: #ff003c;
    --dark-surface: #121212;
    --border-color: #333;
    
    --font-mono: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Canvas */
#matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.15;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-weight: 600;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 600;
    text-shadow: 0 0 5px var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links li a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 8px var(--primary-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: rgba(0, 255, 204, 0.1);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
}

.btn-secondary {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    background: rgba(0, 255, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #000;
    box-shadow: 0 0 15px var(--secondary-color);
}

/* Sections */
.section {
    padding: 100px 10%;
    min-height: 100vh;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section-title span {
    color: var(--accent-color);
    font-size: 1.5rem;
    margin-right: 10px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
}

.profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%) contrast(120%);
    transition: var(--transition);
}

.profile-pic:hover img {
    filter: grayscale(0%) contrast(100%);
}

.scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(0, 255, 204, 0.5);
    opacity: 0.5;
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: -10%; }
    100% { top: 110%; }
}

.glitch {
    font-size: 4rem;
    position: relative;
    display: inline-block;
    color: #fff;
    margin-bottom: 10px;
}

.typing-container {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 40px;
    height: 1.5em;
}

.cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-family: var(--font-mono);
    color: var(--text-color);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links a:hover {
    color: var(--primary-color);
}

/* About Section */
.about-container {
    background: var(--dark-surface);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    position: relative;
}

.about-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    border-top: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    width: 20px; height: 20px;
}

.about-container::after {
    content: '';
    position: absolute;
    bottom: 0; right: 0;
    border-bottom: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
    width: 20px; height: 20px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.contact-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.contact-list strong {
    color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: var(--dark-surface);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.1);
}

.skill-category h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

.skill-category h3::before {
    content: '>';
    margin-right: 8px;
    color: var(--accent-color);
}

.skill-category ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
}

.skill-category ul li::before {
    content: '■';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 0.8rem;
    top: 2px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 5px 12px;
    background: rgba(0, 255, 204, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(0, 255, 204, 0.3);
    border-radius: 4px;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--dark-surface);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-desc {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-bullets {
    margin-bottom: 25px;
    font-size: 0.9rem;
    color: #8892b0;
}

.project-bullets li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 20px;
}

.project-bullets li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-top: auto;
}

/* Timeline (Experience) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: 14px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 2px solid var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background: var(--dark-surface);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--primary-color);
}

.timeline-content .date {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 5px;
}

.timeline-content h4 {
    font-size: 1rem;
    color: #8892b0;
    margin-bottom: 15px;
    font-weight: 400;
}

.timeline-content ul li {
    margin-bottom: 8px;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.timeline-content ul li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Certifications Section */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.certs-column h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.certs-column h3 i {
    color: var(--primary-color);
}

.achievement-list li {
    background: var(--dark-surface);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 4px;
    border-left: 3px solid var(--border-color);
    transition: var(--transition);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.achievement-list li:hover {
    border-left-color: var(--secondary-color);
    background: rgba(0, 255, 0, 0.05);
    transform: translateX(5px);
}

.achievement-list .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

/* Footer */
footer {
    padding: 30px;
    text-align: center;
    background: #0a0a0a;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.terminal-footer {
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 0.9rem;
}
.terminal-footer::after {
    content: '█';
    animation: blink 1s infinite step-end;
    margin-left: 5px;
}

/* Animations */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-up {
    animation: slideUp 0.8s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(5, 5, 5, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.5);
        padding: 20px 0;
    }

    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .section { padding: 80px 5%; }
    .hero-actions { flex-direction: column; }
    .glitch { font-size: 2.5rem; }
    .typing-container { font-size: 1rem; }
    
    .timeline::before { left: 10px; }
    .timeline-dot { left: 4px; }
    .timeline-item { padding-left: 40px; }
}
