:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --text: #1e293b;
    --text-light: #64748b;
    --background: #f8fafc;
    --card-bg: #ffffff;
    --accent: #f97316;
    --border: #e2e8f0;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --text: #e2e8f0;
    --text-light: #94a3b8;
    --background: #0f172a;
    --card-bg: #1e293b;
    --accent: #f97316;
    --border: #334155;
}

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

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--background);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.tagline {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.intro {
    font-size: 1.1rem;
    max-width: 700px;
    color: var(--text-light);
    margin-bottom: 2rem;
}

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

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text);
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

/* Activity Feed */
.activity-feed {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: 1.5rem;
}

.activity-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

/* Spotify Widget */
.spotify-widget {
    background-color: #1DB954;
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.album-art {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.track-info {
    flex: 1;
}

.track-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.artist-name {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.spotify-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.spotify-link:hover {
    text-decoration: underline;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.skills {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.skills h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-category h4 {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

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

.project-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-light);
}

/* Contact Section */
.contact-links {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.contact-link:hover {
    background-color: var(--primary-dark);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem 0;
    background-color: var(--card-bg);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Loader */
.loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: var(--text-light);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.theme-toggle:hover {
    background-color: var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        display: none;
    }
}

/* GitHub Activity Styles */
#github-activity {
    margin-top: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#github-activity:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.activity-item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s ease;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .activity-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.activity-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.activity-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.activity-date {
    font-size: 0.875rem;
    color: var(--text-light);
}

.activity-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text);
}

.activity-message a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.activity-message a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading and Error States */
#github-activity .loader {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
    font-style: italic;
}

#github-activity .error {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.1);
    padding: 1rem;
    border-radius: 6px;
    margin: 0.5rem 0;
}

.refresh-button {
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.refresh-button:hover {
    background-color: var(--primary-dark);
}

/* Animation for loading state */
@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

#github-activity.loading .activity-item {
    animation: pulse 1.5s ease-in-out infinite;
}