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

/* Dark mode (default) */
:root {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --nav-bg: #0d0d0d;
    --accent-color: #4a9eff;
    --link-hover: #6bb3ff;
    --section-bg: #252525;
    --border-color: #333;
    --news-date-color: #888;
    --subtitle-color: #aaa;
}

/* Light mode */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #1a1a1a;
    --nav-bg: #f5f5f5;
    --accent-color: #2563eb;
    --link-hover: #1d4ed8;
    --section-bg: #f9fafb;
    --border-color: #e5e7eb;
    --news-date-color: #6b7280;
    --subtitle-color: #6b7280;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
    padding: 0;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.theme-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

.theme-toggle svg {
    display: block;
}

/* Navigation */
nav {
    background-color: var(--nav-bg);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.nav-left {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-left a {
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.nav-left a:hover {
    opacity: 1;
}

.nav-right {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-right a {
    color: var(--text-color);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s;
}

.nav-right a:hover,
.nav-right a.active {
    color: var(--accent-color);
    opacity: 1;
}

.name-link {
    font-weight: 600;
    font-size: 1.1rem;
}

.theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.theme-toggle:hover {
    opacity: 1;
    transform: scale(1.1);
}

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

h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    font-weight: 300;
}

h3 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    font-weight: 400;
}

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

a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* About Page */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.hero-text p {
    margin-bottom: 1.2rem;
}

.hero-text ul {
    margin-left: 2rem;
    margin-bottom: 1.2rem;
}

.hero-text li {
    margin-bottom: 0.5rem;
}

.hero-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    border: 3px solid var(--border-color);
}

/* News Section */
.news {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.news-item {
    display: flex;
    gap: 2rem;
    margin-bottom: 1rem;
    align-items: baseline;
}

.news-item .date {
    color: var(--news-date-color);
    min-width: 120px;
    font-size: 0.9rem;
}

/* Resume Page */
.resume-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.pdf-link {
    color: var(--accent-color);
}

.resume-section {
    margin-bottom: 3rem;
}

.resume-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--section-bg);
    border-radius: 8px;
    border-left: 3px solid var(--accent-color);
    transition: background-color 0.3s ease;
}

.date-badge {
    background-color: #4a9eff;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
    height: fit-content;
}

.date-badge.green {
    background-color: #4ade80;
}

.date-badge.blue {
    background-color: #60a5fa;
}

.resume-content h3 {
    margin-top: 0;
    color: var(--text-color);
}

.subtitle {
    color: var(--subtitle-color);
    margin-bottom: 1rem;
}

.details ul,
.experience-list {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
}

.details li,
.experience-list li {
    margin-bottom: 0.5rem;
}

/* Coursework Page */
.semester {
    margin-bottom: 2.5rem;
}

.semester ul {
    margin-left: 1.5rem;
}

.semester li {
    margin-bottom: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        order: -1;
        text-align: center;
    }
    
    .resume-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    nav {
        flex-direction: column;
        gap: 1rem;
    }
    
    .news-item {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.resume-content.full-width {
    grid-column: 1 / -1;
}

/* Marketing Page Styles */
.marketing-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.marketing-intro {
    margin-bottom: 3rem;
}

.marketing-intro p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--section-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
}

.stat h3 a {
    color: var(--accent-color);
    text-decoration: none;
}

.stat h3 a:hover {
    text-decoration: underline;
}

.stat p {
    margin: 0;
    color: var(--subtitle-color);
    font-size: 0.9rem;
}

/* Brands Section */
/* Brands Section */
.brands-section {
    margin: 4rem 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.brand-card {
    display: block;
    padding: 2rem;
    background: linear-gradient(135deg, var(--section-bg) 0%, var(--bg-color) 100%);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
}

.brand-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #6bb3ff, #4a9eff);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.brand-card:hover::before {
    transform: translateX(0);
}

.brand-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(74, 158, 255, 0.3);
}

.brand-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    border-radius: 12px;
    padding: 1rem;
    transition: transform 0.3s ease;
}

.brand-card:hover .brand-logo {
    transform: scale(1.05);
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-color);
}

.brand-card p {
    margin: 0;
    color: var(--subtitle-color);
    font-size: 0.9rem;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    font-weight: 400;
}

/* Light mode adjustments for brand logos */
[data-theme="light"] .brand-logo {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
}

/* Content Showcase - Slideshow */
.content-showcase {
    margin: 4rem 0;
}

.slideshow-container {
    position: relative;
    max-width: 350px;  /* Changed from 600px */
    margin: 2rem auto;
    background-color: var(--section-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.slide {
    display: none;
    animation: fadeIn 0.5s;
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    padding: 1rem;
    text-align: center;
    color: var(--text-color);
    background-color: var(--section-bg);
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -22px;
    padding: 12px;  /* Reduced from 16px */
    color: white;
    font-weight: bold;
    font-size: 16px;  /* Reduced from 18px */
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Dots */
.dots-container {
    text-align: center;
    padding: 1rem 0;
}

.dot {
    cursor: pointer;
    height: 10px;  /* Reduced from 12px */
    width: 10px;   /* Reduced from 12px */
    margin: 0 4px;
    background-color: var(--subtitle-color);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.dot.active, .dot:hover {
    background-color: var(--accent-color);
}

/* Collaboration CTA */
.collaboration-cta {
    text-align: center;
    margin: 4rem 0;
    padding: 3rem 2rem;
    background-color: var(--section-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.collaboration-cta h2 {
    margin-top: 0;
}

.collaboration-cta p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
    text-decoration: none;
}