/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Wrapper for navbar and main content */
.page-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Blog specific container for wider content */
.blog-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background-color: #111111;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo a {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-logo a:hover {
    color: #64b5f6;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #b0b0b0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: #e0e0e0;
    background-color: rgba(100, 181, 246, 0.1);
    text-decoration: none;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Main content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Hero section */
.hero {
    padding: 4rem 0;
    text-align: center;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.highlight {
    color: #64b5f6;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto 2rem;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: #64b5f6;
    color: #000000;
}

.btn-primary:hover {
    background-color: #42a5f5;
}

.btn-secondary {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background-color: #222;
    border-color: #555;
}

.btn-outline {
    background-color: transparent;
    color: #e0e0e0;
    border: 1px solid #444;
}

.btn-outline:hover {
    background-color: #222;
    border-color: #555;
}

/* Section titles */
.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: #ffffff;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.page-subtitle {
    font-size: 1.1rem;
    color: #a0a0a0;
    margin-bottom: 2rem;
}

/* Page header */
.page-header {
    padding: 3rem 0 2rem;
    text-align: center;
}

/* Blog posts list */
.blog-posts {
    padding: 2rem 0;
}

.posts-list {
    max-width: 600px;
    margin: 0 auto;
}

.post-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #333;
}

.post-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Links */
a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #90caf9;
    text-decoration: underline;
}

/* Post content links */
.post-content a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-content a:hover {
    color: #90caf9;
    text-decoration: underline;
}

/* Post link (blog list) */
.post-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.post-link:hover {
    color: #64b5f6;
}

/* Projects page */
.projects-content {
    padding: 2rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
    color: inherit;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
    border-color: #64b5f6;
    text-decoration: none;
    color: inherit;
}

.project-card h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.project-card p {
    color: #a0a0a0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* About page */
.about-content {
    padding: 3rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    max-width: 1000px;
    margin: 0 auto;
}

.about-photo {
    text-align: center;
}

.profile-img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border: 3px solid #333;
}

.about-text h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
}

.about-text h2:first-child {
    margin-top: 0;
}

.about-text p {
    color: #a0a0a0;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-text strong {
    color: #e0e0e0;
}

.about-text a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-text a:hover {
    color: #90caf9;
    text-decoration: underline;
}

.about-text strong a {
    color: #64b5f6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-text strong a:hover {
    color: #90caf9;
    text-decoration: underline;
}

.cv-button {
    margin-top: 1.5rem;
}

.cv-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #64b5f6;
    color: #000000;
    border: 2px solid #64b5f6;
}

.cv-button .btn:hover {
    background-color: #90caf9;
    border-color: #90caf9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(100, 181, 246, 0.3);
}

.cv-button .btn i {
    font-size: 1.1rem;
}

/* Blog post page */
.blog-post {
    padding: 3rem 0;
}

.post-header {
    margin-bottom: 3rem;
    text-align: center;
}

.post-header .post-meta {
    justify-content: center;
    margin-bottom: 1rem;
}

.post-header .post-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.post-header .post-excerpt {
    font-size: 1.1rem;
    color: #a0a0a0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.post-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.7;
}

.post-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem 0;
}

.post-content h2:first-child {
    margin-top: 0;
}

.post-content p {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
}

.post-content ul {
    color: #a0a0a0;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}

.post-content strong {
    color: #e0e0e0;
}

.post-content pre {
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content code {
    background-color: #111111;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 0.2rem 0.4rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: #e0e0e0;
}

.post-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #e0e0e0;
}

.post-footer {
    margin-top: 3rem;
    text-align: center;
}

/* Footer */
.footer {
    background-color: #111111;
    border-top: 1px solid #333;
    padding: 2rem 0;
    text-align: center;
    color: #888;
    margin-top: auto;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 6px;
    color: #b0b0b0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: #64b5f6;
    color: #000000;
    border-color: #64b5f6;
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: #111111;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 1rem 2rem;
        display: block;
        width: 100%;
    }
    
    /* Hamburger Animation */
    .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);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .blog-container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .social-links {
        gap: 2rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem 1.5rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-img {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .nav-menu {
        top: 60px;
        padding: 1rem 0;
    }
    
    .nav-menu li {
        margin: 0.5rem 0;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .social-links {
        gap: 1.5rem;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .profile-img {
        width: 200px;
        height: 200px;
    }
}

/* 404 Error Page Styles */
.error-section {
    padding: 4rem 0;
    text-align: center;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.error-content {
    max-width: 600px;
    margin: 0 auto;
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    color: #64b5f6;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

.error-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.error-description {
    font-size: 1.1rem;
    color: #b0b0b0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.error-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.error-actions .btn i {
    font-size: 1.1rem;
}

.error-help {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
}

.error-help p {
    color: #a0a0a0;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.error-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.error-links li a {
    color: #64b5f6;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.error-links li a:hover {
    color: #90caf9;
    text-decoration: underline;
}

/* Responsive design for 404 page */
@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-actions .btn {
        width: 200px;
        justify-content: center;
    }
    
    .error-links {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
    
    .error-description {
        font-size: 1rem;
    }
    
    .error-links {
        flex-direction: column;
        gap: 0.5rem;
    }
} 