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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: #0a0a0a;
    min-height: 100vh;
    transition: all 0.3s ease;
}

body.light-mode {
    color: #333;
    background: #ffffff;
}

/* Prevent flash by applying theme immediately */
html[data-theme="light"] body,
html[data-theme="light"] .navbar,
html[data-theme="light"] .about-section,
html[data-theme="light"] .contact-section,
html[data-theme="light"] .projects-section-new,
html[data-theme="light"] .chipotle-section,
html[data-theme="light"] .hero-section,
html[data-theme="light"] .about-item,
html[data-theme="light"] .contact-item,
html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
    background: #ffffff !important;
}

html[data-theme="light"] .navbar {
    border-bottom-color: #e5e7eb !important;
}

html[data-theme="light"] body {
    color: #333 !important;
}

html[data-theme="light"] .section-title,
html[data-theme="light"] .about-text,
html[data-theme="light"] .about-item h3,
html[data-theme="light"] .gallery-section h3,
html[data-theme="light"] .project-title,
html[data-theme="light"] .contact-section .section-title,
html[data-theme="light"] .form-title,
html[data-theme="light"] .chipotle-text,
html[data-theme="light"] .chipotle-details h3,
html[data-theme="light"] .hero-title,
html[data-theme="light"] .hero-subtitle {
    color: #1f2937 !important;
}

html[data-theme="light"] .about-item p,
html[data-theme="light"] .project-description,
html[data-theme="light"] .project-description-new,
html[data-theme="light"] .project-details,
html[data-theme="light"] .contact-subtitle,
html[data-theme="light"] .form-group label,
html[data-theme="light"] .chipotle-list li,
html[data-theme="light"] .nav-link {
    color: #6b7280 !important;
}

html[data-theme="light"] .nav-icon-link {
    color: #6b7280 !important;
}

html[data-theme="light"] .theme-toggle {
    color: #6b7280 !important;
}

html[data-theme="light"] .form-group input,
html[data-theme="light"] .form-group textarea {
    background: #ffffff !important;
    color: #333 !important;
    border-color: #d1d5db !important;
}

html[data-theme="light"] .contact-item {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

html[data-theme="light"] .about-item {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

html[data-theme="light"] .contact-form-container {
    border-top-color: #e5e7eb !important;
}

html[data-theme="light"] .project-divider {
    background: #e5e7eb !important;
}

/* Button borders for light mode */
html[data-theme="light"] .btn-secondary {
    color: #333 !important;
    border-color: #333 !important;
}

html[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Hover states for light mode */
html[data-theme="light"] .contact-item:hover {
    background: #f3f4f6 !important;
}

html[data-theme="light"] .about-item:hover {
    background: #f9fafb !important;
}

html[data-theme="light"] .nav-link:hover {
    color: #1f2937 !important;
}

html[data-theme="light"] .nav-icon-link:hover {
    color: #1f2937 !important;
}

html[data-theme="light"] .theme-toggle:hover {
    color: #1f2937 !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0a0a0a;
    border-bottom: 1px solid #333;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

body.light-mode .navbar {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

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

.theme-toggle {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

body.light-mode .theme-toggle {
    color: #6b7280;
}

body.light-mode .theme-toggle:hover {
    color: #1f2937;
    background: rgba(0, 0, 0, 0.1);
}

.nav-icons {
    display: flex;
    gap: 1rem;
}

.nav-icon-link {
    color: #9ca3af;
    font-size: 1.5rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.nav-icon-link:hover {
    color: #ffffff;
}

body.light-mode .nav-icon-link {
    color: #6b7280;
}

body.light-mode .nav-icon-link:hover {
    color: #1f2937;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    text-decoration: none;
    color: #d1d5db;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
}

.nav-link.active {
    color: #667eea;
    font-weight: 600;
}

body.light-mode .nav-link {
    color: #374151;
}

body.light-mode .nav-link:hover {
    color: #1f2937;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: white;
    text-align: center;
    padding: 2rem;
}

body.light-mode .hero-section {
    background: #ffffff;
    color: #333;
}

.hero-container {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    opacity: 0.9;
}

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

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #667eea;
    color: #ffffff;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

body.light-mode .btn-secondary {
    color: #333;
    border: 2px solid #333;
}

body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Section Styles */
section {
    padding: 5rem 2rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: #ffffff;
}

body.light-mode .section-title {
    color: #1f2937;
}

/* About Section */
.about-section {
    background: #0a0a0a;
    padding-top: 100px;
}

body.light-mode .about-section {
    background: #ffffff;
}

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

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.about-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.about-item {
    background: #0a0a0a;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #333;
}

body.light-mode .about-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.about-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: #ffffff;
}

.about-item p {
    color: #d1d5db;
    line-height: 1.4;
    font-size: 0.9rem;
}

body.light-mode .about-item h3 {
    color: #1f2937;
}

body.light-mode .about-item p {
    color: #6b7280;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
}

body.light-mode .about-text {
    color: #374151;
}

.about-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: #4f46e5;
}

.gallery-section {
    margin-top: 4rem;
}

.gallery-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    color: #ffffff;
}

body.light-mode .gallery-section h3 {
    color: #1f2937;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-item {
    aspect-ratio: 1;
    background: #e5e7eb;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

/* Projects Section */
.projects-section {
    background: white;
}

.projects-container {
    max-width: 800px;
    margin: 0 auto;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-item {
    background: #f9fafb;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s ease;
}

.project-item:hover {
    transform: translateY(-4px);
}

.project-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

body.light-mode .project-item h3 {
    color: #1f2937;
}

.project-description {
    color: #d1d5db;
    line-height: 1.6;
}

body.light-mode .project-description {
    color: #6b7280;
}

/* New Projects Section */
.projects-section-new {
    background: #0a0a0a;
    min-height: 100vh;
    padding-top: 100px;
}

body.light-mode .projects-section-new {
    background: linear-gradient(135deg, #ffffff 0%, #f3f4f6 50%, #e5e7eb 100%);
}

.projects-container-new {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.projects-list-new {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item-new {
    background: transparent;
    padding: 2rem 0;
    transition: transform 0.2s ease;
}

.project-item-new:hover {
    transform: translateY(-2px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

body.light-mode .project-title {
    color: #1f2937;
}

.project-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.project-link {
    color: #9ca3af;
    font-size: 1.2rem;
    transition: color 0.2s ease;
    text-decoration: none;
}

.project-link:hover {
    color: #ffffff;
}

body.light-mode .project-link {
    color: #6b7280;
}

body.light-mode .project-link:hover {
    color: #1f2937;
}

.yc-badge {
    width: 24px;
    height: 24px;
    background: #6b7280;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.875rem;
}

.project-details {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

body.light-mode .project-details {
    color: #6b7280;
}

.project-description-new {
    color: #d1d5db;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

body.light-mode .project-description-new {
    color: #374151;
}

.project-description-new a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.project-description-new a:hover {
    color: #4f46e5;
}

.project-divider {
    border: none;
    height: 1px;
    background: #333;
    margin: 2rem 0;
}

body.light-mode .project-divider {
    background: #e5e7eb;
}

/* Contact Section */
.contact-section {
    background: #0a0a0a;
    color: #ffffff;
    padding-top: 100px;
}

body.light-mode .contact-section {
    background: #ffffff;
    color: #1f2937;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-section .section-title {
    color: #ffffff;
}

body.light-mode .contact-section .section-title {
    color: #1f2937;
}

.contact-subtitle {
    text-align: center;
    color: #d1d5db;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

body.light-mode .contact-subtitle {
    color: #6b7280;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #0a0a0a;
    border-radius: 8px;
    transition: background 0.2s ease;
    border: 1px solid #333;
}

.contact-item:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
}

body.light-mode .contact-item {
    background: white;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

body.light-mode .contact-item:hover {
    background: #f3f4f6;
}

.contact-label {
    font-weight: 600;
    min-width: 80px;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: #4f46e5;
}

/* Contact Form */
.contact-form-container {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
}

body.light-mode .contact-form-container {
    border-top: 1px solid #e5e7eb;
}

.form-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
    text-align: center;
}

body.light-mode .form-title {
    color: #1f2937;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #d1d5db;
}

body.light-mode .form-group label {
    color: #374151;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    background: #1a1a1a;
    color: #ffffff;
    border-color: #333;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.light-mode .form-group input,
body.light-mode .form-group textarea {
    background: #ffffff;
    color: #333;
    border-color: #d1d5db;
}

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

.contact-form .btn {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Chipotle Section */
.chipotle-section {
    background: #0a0a0a;
    min-height: 100vh;
    padding-top: 100px;
}

body.light-mode .chipotle-section {
    background: #ffffff;
}

.chipotle-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.chipotle-content {
    margin-top: 2rem;
}

.chipotle-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 2rem;
}

body.light-mode .chipotle-text {
    color: #374151;
}

.chipotle-details {
    background: #0a0a0a;
    padding: 2rem;
    border-radius: 12px;
    margin: 2rem 0;
    border: 1px solid #333;
}

body.light-mode .chipotle-details {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.chipotle-details h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

body.light-mode .chipotle-details h3 {
    color: #1f2937;
}

.chipotle-list {
    list-style: none;
    padding: 0;
}

.chipotle-list li {
    padding: 0.5rem 0;
    color: #d1d5db;
    position: relative;
    padding-left: 1.5rem;
}

body.light-mode .chipotle-list li {
    color: #6b7280;
}

.chipotle-list li:before {
    content: "🌯";
    position: absolute;
    left: 0;
    top: 0.5rem;
}

/* Chipotle Gallery */
.chipotle-gallery {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    justify-items: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.chipotle-gallery-item {
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.2s ease;
    width: 200px;
    height: 250px;
}

.chipotle-gallery-item:hover {
    transform: scale(1.05);
}

.chipotle-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive design for chipotle gallery */
@media (max-width: 1200px) {
    .chipotle-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .chipotle-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .chipotle-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 90vw;
    max-height: 90vh;
    padding-top: 10vh;
}

.modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #ffffff;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #cccccc;
}

.image-date {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #000000;
    font-family: 'Lato', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    z-index: 2002;
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
}

/* Dark mode modal styling */
body.light-mode .image-modal {
    background-color: rgba(0, 0, 0, 0.8);
}

body.light-mode .image-date {
    color: #ffffff !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9) !important;
    background: rgba(0, 0, 0, 0.4) !important;
}

/* Navigation hints */
.modal-content::before {
    content: "Use ← → arrow keys to navigate";
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    opacity: 0.7;
    z-index: 2003;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
} 