/* CSS Reset and Variables */
:root {
    --primary: #ea580c;
    --primary-dark: #c2410c;
    --bg-dark: #1e1e1e;
    --bg-darker: #121212;
    --bg-card: #252525;
    --bg-card-light: #2d2d2d;
    --text-light: #f0f0f0;
    --text-gray: #b0b0b0;
    --text-dark: #808080;
    --border: #404040;
    --border-light: #505050;
    --terminal-green: #00ff00;
    --terminal-cyan: #00ffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto Mono', 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Mono', monospace;
    background: var(--bg-darker);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Roboto Mono', monospace;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

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

.nav-link::after {
    content: '>';
    position: absolute;
    bottom: -2px;
    left: -15px;
    color: var(--primary);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::after {
    opacity: 1;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.25rem;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section.bg-dark {
    background: var(--bg-darker);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 4rem;
    background: var(--bg-darker);
    position: relative;
}

.hero::before {
    content: '>';
    position: absolute;
    top: 50%;
    left: 2rem;
    color: var(--primary);
    font-size: 1.5rem;
    opacity: 0.5;
    animation: blink 1s infinite;
}

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

.hero-content {
    max-width: 800px;
    padding: 0 1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: 'Roboto Mono', monospace;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
    font-family: 'Roboto Mono', monospace;
}

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

/* Buttons */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-size: 1rem;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.4);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-weight: 600;
    padding: 0;
    margin-top: 1rem;
    font-family: 'Roboto Mono', monospace;
    font-size: inherit;
    position: relative;
}

.btn-link::after {
    content: ' →';
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-link:hover::after {
    opacity: 1;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    color: var(--text-gray);
    line-height: 1.7;
    font-family: 'Roboto Mono', monospace;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 0.25rem;
    background: var(--bg-card);
    display: inline-block;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.social-link:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
    background: var(--bg-card-light);
    transform: translateY(-2px);
}

.about-facts {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-family: 'Roboto Mono', monospace;
}

.about-facts h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.about-facts ul {
    list-style: none;
}

.about-facts li {
    padding: 0.75rem 0;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto Mono', monospace;
}

.about-facts li:last-child {
    border-bottom: none;
}

.about-facts li::before {
    content: '$';
    color: var(--primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Education & Experience */
.education-card,
.experience-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    position: relative;
}

.education-card::before,
.experience-card::before {
    content: '>';
    position: absolute;
    left: 1rem;
    top: 2rem;
    color: var(--primary);
    font-weight: bold;
}

.education-card:hover,
.experience-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.education-card h3,
.experience-card h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    margin-left: 1.5rem;
}

.education-degree {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
    margin-left: 1.5rem;
}

.education-details,
.company {
    color: var(--text-gray);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Roboto Mono', monospace;
    margin-left: 1.5rem;
}

.experience-grid {
    display: grid;
    gap: 2rem;
}

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

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    font-family: 'Roboto Mono', monospace;
}

.project-card::before {
    content: '~/projects';
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--primary);
    font-size: 0.8rem;
    opacity: 0.7;
}

.project-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.project-card h3 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
}

.project-card p {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    font-family: 'Roboto Mono', monospace;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: rgba(234, 88, 12, 0.1);
    color: var(--primary);
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(234, 88, 12, 0.3);
    font-family: 'Roboto Mono', monospace;
}

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

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.skill-category:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.skill-category h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
    font-family: 'Roboto Mono', monospace;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.skill-list span {
    color: var(--text-light);
    padding-left: 1rem;
    position: relative;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: 'Roboto Mono', monospace;
}

.skill-list span:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.skill-list span::before {
    content: '▸';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    transition: color 0.3s ease;
}

/* Contact */
.contact-description {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
    font-family: 'Roboto Mono', monospace;
}

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

/* Footer */
.footer {
    background: var(--bg-dark);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-gray);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
}

.footer::before {
    content: '// ';
    color: var(--primary);
}

/* Card Consistency */
.card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
}

.card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 4rem;
        flex-direction: column;
        background: var(--bg-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        gap: 0;
        border-top: 1px solid var(--border);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-link {
        padding: 1rem;
        display: block;
        border-bottom: 1px solid var(--border);
    }

    .nav-link:last-child {
        border-bottom: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons,
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-link {
        text-align: center;
        width: 200px;
    }

    .hero::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 1.5rem;
    }
}

/* 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);
}

/* Focus states for accessibility */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Selection color */
::selection {
    background: rgba(234, 88, 12, 0.3);
    color: var(--text-light);
}

/* Terminal-like scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* About Photo Styles */
.about-photo {
    width: 280px;
    height: 280px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 8px 32px rgba(234, 88, 12, 0.2);
    transition: all 0.3s ease;
    position: relative;
}

.about-photo:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.3);
    border-color: var(--primary-dark);
}

.about-photo-container {
    position: relative;
    display: inline-block;
}

.about-photo-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid var(--primary);
    border-radius: 12px;
    opacity: 0.3;
    transition: all 0.3s ease;
    z-index: -1;
}

.about-photo-container:hover::before {
    top: -15px;
    left: -15px;
    right: 15px;
    bottom: 15px;
    opacity: 0.5;
}

/* Terminal frame version */
.about-photo-terminal {
    width: 280px;
    height: 280px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid var(--border);
    position: relative;
    background: var(--bg-card);
    padding: 4px;
}

.about-photo-terminal::before {
    content: 'photo.jpg';
    position: absolute;
    top: -25px;
    left: 0;
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 2px 2px 0 0;
    font-family: 'Roboto Mono', monospace;
}

.about-photo-terminal:hover {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(234, 88, 12, 0.3);
}

/* Circular photo version */
.about-photo-circle {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    padding: 4px;
    background: var(--bg-card);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.about-photo-circle:hover {
    transform: scale(1.05);
    border-color: var(--primary-dark);
    box-shadow: 0 12px 40px rgba(234, 88, 12, 0.4);
}

/* Grid layout with photo */
.about-grid-with-photo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-content-with-photo {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-photo-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Responsive for about photo */
@media (max-width: 768px) {
    .about-grid-with-photo {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-photo-section {
        order: -1;
    }
    
    .about-photo,
    .about-photo-terminal,
    .about-photo-circle {
        width: 200px;
        height: 200px;
    }
}

/* API Widgets Grid */
.api-widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Spotify Widget Styles */
.spotify-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: 'Roboto Mono', monospace;
    position: relative;
}

.spotify-widget h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spotify-widget h4::before {
    content: '▶';
    color: var(--primary);
    font-size: 0.8rem;
}

.spotify-track {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.track-info {
    flex: 1;
}

.track-name {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    color: var(--text-gray);
    font-size: 0.75rem;
}

.spotify-logo {
    flex-shrink: 0;
}

.progress-bar {
    width: 100%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 1rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
}

.spotify-track.playing .track-name {
    color: #1DB954;
}

.spotify-widget.playing {
    border-color: #1DB954;
}

/* GitHub Widget Styles */
.github-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    font-family: 'Roboto Mono', monospace;
}

.github-widget h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.github-widget h4::before {
    content: '{}';
    color: var(--primary);
    font-size: 0.8rem;
}

.github-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.github-stat {
    text-align: center;
}

.stat-number {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.github-recent {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
}

.recent-label {
    color: var(--text-gray);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.recent-item {
    color: var(--text-light);
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive Design for API Widgets */
@media (max-width: 768px) {
    .api-widgets-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spotify-widget,
    .github-widget {
        padding: 1rem;
    }
    
    .github-stats {
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .stat-label {
        font-size: 0.65rem;
    }
}

/* About Photo Section Layout */
.about-photo-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.about-facts {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    font-family: 'Roboto Mono', monospace;
    width: 100%;
    max-width: 300px;
}