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

body {
    font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
}

/* Header */
.header {
    background-color: #fff;
    color: #000;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-brand a {
    color: #000;
    text-decoration: none;
    font-size: 2rem;
    font-weight: bold;
}

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

.nav-link {
    color: #000;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #ff0000;
}

/* Theme Toggle */
.theme-toggle {
    margin-left: 2rem;
}

.theme-toggle-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.theme-toggle-btn:hover {
    background-color: #e0e0e0;
    color: #000;
}

.light-icon, .dark-icon {
    font-size: 1.2rem;
    transition: opacity 0.3s ease;
}

.dark-icon {
    opacity: 0;
    position: absolute;
}

/* Dark mode styles */
body.dark-mode {
    background-color: #1a1a1a;
    color: #fff;
}

body.dark-mode .header {
    background-color: #1a1a1a;
    color: #fff;
}

body.dark-mode .nav-brand a {
    color: #fff;
}

body.dark-mode .nav-link {
    color: #fff;
}

body.dark-mode .nav-link:hover,
body.dark-mode .nav-link.active {
    color: #ff0000;
}

body.dark-mode .hero-title {
    color: #fff;
}

body.dark-mode .hero-description {
    color: #ccc;
}

body.dark-mode .section-title {
    color: #fff;
}

body.dark-mode .project-title {
    color: #fff;
}

body.dark-mode .project-description {
    color: #ccc;
}
/* Project pages: ensure subtitle and body text have proper contrast in dark mode */
body.dark-mode .project-subtitle {
    color: #ccc;
}

body.dark-mode .project-intro {
    color: #ddd;
}

body.dark-mode .project-body {
    color: #ccc;
}

/* Dark mode: keep project inline links cyan */
body.dark-mode .project-intro a,
body.dark-mode .project-body a {
    color: #00bcd4;
}

body.dark-mode .footer {
    background-color: #1a1a1a;
    color: #fff;
    border-top: 1px solid #333;
}

body.dark-mode .footer-name {
    color: #fff;
}

body.dark-mode .footer-bio {
    color: #ccc;
}

body.dark-mode .skills-list li {
    color: #ccc;
}

body.dark-mode .skills-sublist li {
    color: #aaa;
}

body.dark-mode .contact-item h3 {
    color: #fff;
}

body.dark-mode .contact-item p {
    color: #ccc;
}

body.dark-mode .social-link {
    background-color: rgba(255, 0, 0, 0.2);
}

body.dark-mode .social-link:hover {
    background-color: rgba(255, 0, 0, 0.3);
}

body.dark-mode .theme-toggle-btn {
    background-color: #333;
    color: #fff;
}

body.dark-mode .theme-toggle-btn:hover {
    background-color: #444;
    color: #fff;
}

body.dark-mode .light-icon {
    opacity: 0;
}

body.dark-mode .dark-icon {
    opacity: 1;
}

/* Main content */
.main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 40vh;
    padding: 3rem 0;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 500px;
    height: 500px;
    background-color: #a1a1a1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #666;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: #000;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.3rem;
    color: #333;
    line-height: 1.8;
}

/* Ensure About/Contact hero content stacks with fixed spacing */
.about-hero .hero-content,
.contact-hero .hero-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Ensure About/Contact hero sections are single-column and top-aligned */
.about-hero,
.contact-hero {
    grid-template-columns: 1fr;
    align-content: start;
}

/* Indentation for lists inside hero sections (About/Contact) */
.hero-section ul {
    list-style: disc;
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.hero-section ul li {
    margin-bottom: 0.4rem;
}

.hero-section ul ul {
    list-style: circle;
    margin-top: 0.25rem;
    padding-left: 1.25rem;
}

.skills-list {
    list-style: none;
    margin-top: 1rem;
}

.skills-list li {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.skills-list li::before {
    content: '•';
    color: #ff0000;
    font-weight: bold;
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.skills-sublist {
    list-style: none;
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.skills-sublist li {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 0.4rem;
    padding-left: 1.5rem;
    position: relative;
}

.skills-sublist li::before {
    content: '◦';
    color: #ff0000;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -0.1rem;
}

.about-content {
    margin: 0rem;
}

.banner-image {
    margin: 0rem;
}

.contact-info {
    margin-top: 3rem;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
}

.contact-item p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

.contact-link {
    color: #ff0000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #ff3333;
}

/* Social Links */
.social-links {
    margin-top: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #ff0000;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background-color: rgba(255, 0, 0, 0.1);
}

.social-link:hover {
    color: #ff3333;
    background-color: rgba(255, 0, 0, 0.2);
}

.social-icon {
    width: 20px;
    height: 20px;
}

/* Projects Section */
.projects-section {
    padding: 3rem 0;
}

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

.project-subtitle {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: -2rem;
    margin-bottom: 2rem;
    color: #333;
}

/* Project detail layouts */
.project-detail {
    max-width: 900px;
    margin: 0 auto;
}

.project-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e9e9e9;
    border: 2px dashed #bbb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    margin: 1rem 0 1.5rem 0;
}

.video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    margin: 1rem 0 1.5rem 0;
}

.video-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

.project-body {
    font-size: 1rem;
    color: #333;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Project page inline links (e.g., credits) */
.project-intro a,
.project-body a {
    color: #00bcd4;
    text-decoration: none;
}

.project-intro a:hover,
.project-body a:hover {
    text-decoration: underline;
}

.project-gif {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 1rem 0 1.5rem 0;
}

.project-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.project-images img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

.project-responsibilities h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.project-responsibilities ul {
    list-style: none;
    padding-left: 0;
    display: block;
}

.project-responsibilities li {
    position: relative;
    padding-left: 1.2rem;
}

.project-responsibilities li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: #ff0000;
}

/* Next Project button */
.next-project {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
}

.next-project a {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background-color: transparent;
    color: #ff0000;
    text-decoration: none;
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    border: 2px solid #ff0000;
    transition: background-color 0.2s ease, transform 0.1s ease, border-color 0.2s ease, color 0.2s ease;
}

.next-project a:hover {
    background-color: rgba(255, 0, 0, 0.06);
}

.next-project a:active {
    transform: translateY(1px);
}

.next-project a img.next-thumb {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
    background: #00000020;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.project-card {
    text-align: center;
}

.project-image {
    width: 100%;
    aspect-ratio: 1.2;
    background-color: #a1a1a1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #666;
}

.project-image a {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.project-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #000;
    position: relative;
    display: inline-block;
    padding: 0.2rem 0;
}

.project-title::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #ff0000;
    transition: width 0.3s ease;
    z-index: -1;
}

.project-card:hover .project-title::after {
    width: 100%;
}

.project-description {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #fff;
    color: #000;
    padding: 4rem 0;
    border-top: 1px solid #e5e5e5;
}

/* Extra spacing above footer only on project pages */
.project-page .footer {
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
}

.footer-photo {
    flex-shrink: 0;
}

.photo-placeholder {
    width: 200px;
    height: 200px;
    background-color: #a1a1a1;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-info {
    flex: 1;
}

.footer-name {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #000;
}

.footer-bio {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.footer-email {
    color: #ff0000;
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.footer-email:hover {
    color: #ff3333;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .image-placeholder {
        width: 350px;
        height: 350px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
} 