@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #3b82f6;
    --primary-dark: #1d4ed8;
    --terminal-bg: #0f172a;
    --text-main: #f1f5f9;
    --text-dim: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Fira Code', monospace;
}

body {
    background-color: #0f172a;
    color: var(--text-main);
    overflow-x: hidden;
    cursor: none;
}

#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation Styles */
nav {
    position: sticky;
    top: 0;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.nav-brand span {
    color: white;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

.mobile-menu-button {
    display: none;
    color: #cbd5e1;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    background-color: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(10px);
}

.mobile-menu .container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.mobile-menu a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: var(--primary);
}

/* Terminal Styles */
.terminal {
    background-color: var(--terminal-bg);
    border-radius: 8px;
    border: 1px solid var(--primary);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    overflow: hidden;
}

.terminal-header {
    background-color: #1e293b;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--primary);
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.red {
    background-color: #ef4444;
}

.terminal-button.yellow {
    background-color: #eab308;
}

.terminal-button.green {
    background-color: #22c55e;
}

.terminal-title {
    color: var(--text-dim);
    font-size: 14px;
    margin-left: 8px;
}

.terminal-content {
    padding: 16px;
    line-height: 1.6;
}

.terminal-prompt {
    color: #22c55e;
    margin-right: 8px;
}

.terminal-command {
    color: var(--primary);
}

.terminal-output {
    margin-top: 8px;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.typing-cursor {
    color: var(--primary);
    animation: blink 1s infinite;
}

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

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, transform 0.1s;
}

.custom-cursor::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    border-color: white;
}

/* Section Styles */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background-color: rgba(30, 41, 59, 0.5);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--primary);
}

.subsection-title {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-content {
    grid-template-columns: 1fr;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-subtitle {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-subtitle span:first-child {
    font-size: 1.25rem;
    color: #94a3b8;
}

.hero-subtitle span:last-child {
    font-size: 1.25rem;
    color: var(--primary);
    margin-left: 0.5rem;
}

.hero-description {
    color: #cbd5e1;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

/* Skill Styles */
.skill-badge {
    background-color: #1e293b;
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 14px;
    margin-right: 8px;
    margin-bottom: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.skill-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background-color: #1e293b;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary);
    border-radius: 4px;
    transition: width 1s ease;
}

/* Experience Styles */
.experience-item {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.experience-date {
    background-color: #1e293b;
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.experience-date p {
    color: var(--primary);
    font-weight: 700;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.experience-company {
    color: var(--primary);
    margin-bottom: 1rem;
}

.experience-description {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.experience-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #cbd5e1;
}

.experience-list li {
    margin-bottom: 0.5rem;
}

/* Project Styles */
.projects-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    color: var(--primary);
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #93c5fd;
}

/* Contact Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    background-color: #1e293b;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    padding: 0.75rem;
    color: white;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Footer Styles */
footer {
    padding: 3rem 0;
    background-color: #0f172a;
    border-top: 1px solid rgba(59, 130, 246, 0.3);
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.footer-brand {
    margin-bottom: 1.5rem;
}

.footer-description {
    color: #94a3b8;
    margin-top: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: #94a3b8;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

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

.fade-in-group > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.5s forwards;
}

.fade-in-group > *:nth-child(1) { animation-delay: 0.1s; }
.fade-in-group > *:nth-child(2) { animation-delay: 0.2s; }
.fade-in-group > *:nth-child(3) { animation-delay: 0.3s; }
.fade-in-group > *:nth-child(4) { animation-delay: 0.4s; }
.fade-in-group > *:nth-child(5) { animation-delay: 0.5s; }
.fade-in-group > *:nth-child(6) { animation-delay: 0.6s; }
.fade-in-group > *:nth-child(7) { animation-delay: 0.7s; }
.fade-in-group > *:nth-child(8) { animation-delay: 0.8s; }
.fade-in-group > *:nth-child(9) { animation-delay: 0.9s; }
.fade-in-group > *:nth-child(10) { animation-delay: 1s; }

/* Responsive Styles */
@media (min-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .experience-item {
        grid-template-columns: 1fr 4fr;
    }
    
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        flex-direction: row;
    }
    
    .footer-brand {
        margin-bottom: 0;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle span {
        font-size: 1.5rem;
    }
    
    .mobile-menu-button {
        display: none;
    }
    
    .nav-links {
        display: flex;
    }
}

@media (max-width: 767px) {
    .mobile-menu-button {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
}