:root {
    /* Color Palette */
    --bg-primary: #0a0e14;
    --bg-secondary: #121822;
    --bg-glass: rgba(18, 24, 34, 0.7);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    
    /* Neon Accents */
    --neon-blue: #0ea5e9;
    --neon-blue-glow: rgba(14, 165, 233, 0.5);
    --neon-green: #10b981;
    --neon-green-glow: rgba(16, 185, 129, 0.4);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-green));
    --border-glass: rgba(255, 255, 255, 0.05);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing & Transitions */
    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* Padding */
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
    color: #fff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--neon-blue);
}

.text-center {
    text-align: center;
}

.section {
    padding: var(--section-padding);
}

.bg-darker {
    background-color: var(--bg-secondary);
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* --- Typography Utilities --- */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    font-family: var(--font-heading);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px var(--neon-blue-glow);
}
.btn-primary:hover {
    box-shadow: 0 6px 20px var(--neon-blue-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
}
.btn-secondary:hover {
    background: rgba(16, 185, 129, 0.1);
    transform: translateY(-2px);
}

.sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.w-100 {
    width: 100%;
}

/* --- Navbar --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-glass);
    transition: transform 0.3s ease;
}

nav.hidden {
    transform: translateY(-100%);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}
.nav-links a:hover {
    color: var(--neon-blue);
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: var(--neon-blue);
    filter: blur(150px);
    opacity: 0.15;
    z-index: 0;
    border-radius: 50%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    z-index: 1;
}

.greeting {
    color: var(--neon-green);
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.name {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 10px;
}

.title {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 25px;
    height: 2.5rem; /* For typing effect */
}

.title .cursor {
    animation: blink 1s infinite;
    color: var(--neon-blue);
}

.tagline {
    font-size: 1.15rem;
    max-width: 500px;
    margin-bottom: 40px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 2px solid var(--border-glass);
}
.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.5s ease;
}
.image-wrapper:hover img {
    filter: grayscale(0%) contrast(1.1);
}
.glow-effect::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-shadow: inset 0 0 50px rgba(10, 14, 20, 0.8);
    border-radius: 20px;
}

.floating-badge {
    position: absolute;
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    animation: float 6s infinite ease-in-out;
}
.floating-badge i {
    color: var(--neon-blue);
}
.badge-1 {
    top: 50px;
    left: -30px;
}
.badge-2 {
    bottom: 50px;
    right: -20px;
    animation-delay: 3s;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* --- About Section --- */
.about p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}
.about p strong {
    color: var(--neon-blue);
}
.about-focus-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}
.about-focus-list li {
    font-family: var(--font-heading);
    font-size: 0.95rem;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    border: 1px solid var(--border-glass);
}
.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }
.terminal-title {
    margin-left: auto;
    margin-right: auto;
    color: #999;
    font-size: 0.85rem;
    font-family: monospace;
}
.terminal-body {
    padding: 20px;
    font-family: monospace;
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.8;
}
.prompt {
    color: var(--neon-green);
    margin-right: 10px;
}
.output {
    color: #ccc;
    margin-left: 20px;
    margin-bottom: 10px;
}

/* --- Skills Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
.skill-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}
.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-blue);
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.1);
}
.skill-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--neon-blue);
    transition: var(--transition-smooth);
}
.skill-card:hover .icon {
    transform: scale(1.1);
    color: var(--neon-green);
}
.skill-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.skill-level {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    width: 0;
    transition: width 1.5s ease-out;
}
.skill-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Projects Section --- */
.projects-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}
.project-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}
.project-image {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-links-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 20, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition-fast);
}
.project-card:hover .project-links-overlay {
    opacity: 1;
}
.project-links-overlay a {
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.project-links-overlay a:hover {
    background: var(--neon-blue);
    border-color: var(--neon-blue);
    transform: scale(1.1);
}
.project-info {
    padding: 25px;
}
.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}
.project-info h4 {
    font-size: 0.9rem;
    color: var(--neon-green);
    margin-bottom: 15px;
    font-weight: 500;
}
.project-desc {
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: var(--text-muted);
}
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.project-tech span {
    font-size: 0.8rem;
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 5px 12px;
    border-radius: 20px;
    color: var(--neon-blue);
}

/* --- Cybersecurity Section --- */
.cybersecurity {
    position: relative;
    overflow: hidden;
}
.cyber-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}
.glow-icon {
    font-size: 4rem;
    color: var(--neon-green);
    filter: drop-shadow(0 0 15px var(--neon-green-glow));
    margin-bottom: 20px;
}
.cyber-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}
.cyber-card {
    background: rgba(10, 14, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--neon-green);
    transition: var(--transition-fast);
}
.cyber-card:hover {
    background: rgba(10, 14, 20, 0.9);
    transform: translateX(5px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.1);
}
.cyber-icon {
    font-size: 2rem;
    color: var(--neon-green);
    margin-bottom: 20px;
}
.cyber-card h3 {
    margin-bottom: 15px;
}
.cyber-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.cyber-bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
}
.cyber-line {
    position: absolute;
    background: linear-gradient(to bottom, transparent, var(--neon-green), transparent);
    width: 1px;
    height: 100px;
    top: -100px;
    animation: scan code 3s linear infinite;
}
.cyber-line:nth-child(1) { left: 20%; animation-duration: 4s; }
.cyber-line:nth-child(2) { left: 50%; animation-duration: 6s; }
.cyber-line:nth-child(3) { left: 80%; animation-duration: 5s; }

/* --- Experience Section --- */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    height: 100%;
    width: 2px;
    background: var(--border-glass);
}
.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 40px;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-dot {
    position: absolute;
    left: 12px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue-glow);
}
.timeline-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    padding: 30px;
    border-radius: 12px;
    transition: var(--transition-fast);
}
.timeline-item:hover .timeline-content {
    border-color: rgba(14, 165, 233, 0.4);
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.timeline-header h3 {
    font-size: 1.3rem;
}
.timeline-date {
    font-family: monospace;
    color: var(--neon-blue);
    font-size: 0.9rem;
    background: rgba(14, 165, 233, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}
.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}
.timeline-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}
.experience-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.experience-tags span {
    font-size: 0.85rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}
.experience-tags span::before {
    content: '→';
    margin-right: 5px;
    color: var(--neon-green);
}

/* --- Contact Section --- */
.contact-wrapper {
    margin-top: 50px;
}
.contact-subtitle {
    max-width: 600px;
    margin: 0 auto;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}
.info-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--neon-blue);
    transition: var(--transition-fast);
}
.info-item:hover .info-icon {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
}
.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.info-item p a {
    color: var(--text-muted);
}
.info-item p a:hover {
    color: var(--neon-blue);
}
.contact-form {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-glass);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(14, 165, 233, 0.2);
}

/* --- Footer --- */
footer {
    background: var(--bg-secondary);
    padding: 40px 0;
    border-top: 1px solid var(--border-glass);
}
.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}
.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition-fast);
}
.footer-socials a:hover {
    background: var(--neon-blue);
    color: #fff;
    transform: translateY(-3px);
}
.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-20px) translateX(-50%); }
    60% { transform: translateY(-10px) translateX(-50%); }
}
@keyframes code {
    0% { top: -100px; }
    100% { top: 100%; }
}

/* Initial hidden state for scroll animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    .hero-stats {
        justify-content: center;
    }
    .hero-cta {
        justify-content: center;
    }
    .tagline {
        margin: 0 auto 40px;
    }
    .about-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid var(--border-glass);
    }
    .nav-links.active {
        display: flex;
    }
    .hamburger {
        display: block;
    }
    .name {
        font-size: 3rem;
    }
    .title {
        font-size: 1.4rem;
        height: 4rem;
    }
    .image-wrapper {
        width: 280px;
        height: 280px;
    }
    .timeline::before {
        left: 0;
    }
    .timeline-dot {
        left: -8px;
    }
    .timeline-item {
        padding-left: 30px;
    }
}
