/* Global Variables */
:root {
    --bg-color: #0a192f;
    --bg-light: #112240;
    --text-primary: #ccd6f6;
    --text-secondary: #8892b0;
    --accent: #64ffda;
    --accent-tint: rgba(100, 255, 218, 0.1);
    --font-main: 'Inter', sans-serif;
    --font-mono: 'Fira Code', monospace;
    --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
}

.section {
    padding: 100px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: #233554;
    margin-left: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: var(--accent-tint);
}

.btn-outline {
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    margin-left: 15px;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.logo .dot {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-primary);
}

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

.nav-icon {
    font-size: 1.2rem;
}

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

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

.hero-content {
    max-width: 600px;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 16px;
}

.name {
    font-size: 4rem;
    font-weight: 700;
    color: #e6f1ff;
    margin-bottom: 10px;
}

.role {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.bio {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: 40px;
}

.highlight {
    color: var(--accent);
}

.code-block {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--text-secondary);
    box-shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    border: 1px solid #233554;
}

.code-block pre {
    white-space: pre-wrap;
}

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

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #233554;
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 100%;
    margin-bottom: 30px;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    left: 15px;
    background-color: var(--bg-color);
    border: 2px solid var(--accent);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: #e6f1ff;
}

.timeline-content h4 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 10px;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.project-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 30px -15px rgba(2, 12, 27, 0.7);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.card-header .fa-folder {
    font-size: 40px;
    color: var(--accent);
}

.card-links a {
    color: var(--text-secondary);
    font-size: 20px;
}

.card-links a:hover {
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.4rem;
    color: #e6f1ff;
    margin-bottom: 10px;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

.more-projects {
    text-align: center;
    margin-top: 50px;
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    color: #e6f1ff;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tags span {
    background-color: var(--bg-light);
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: var(--transition);
}

.skill-tags span:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Contact */
.contact-container {
    text-align: center;
    max-width: 600px;
}

.big-btn {
    margin-top: 30px;
    padding: 18px 30px;
    font-size: 16px;
}

.social-links {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    font-size: 24px;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-3px);
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .hero-visual {
        display: none;
    }
    
    .nav-links {
        display: none; /* Add JS toggle for mobile menu */
    }
    
    .name {
        font-size: 3rem;
    }
    
    .role {
        font-size: 2rem;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
