:root {
    --text-light: #ffffff;
    --text-dark: #1a1a1a;
    --bg-dark: #1A0F33;
    --star-color: rgba(255, 255, 255, 0.8);
    --star-color-dim: rgba(255, 255, 255, 0.4);
}

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

/* Global background styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Stars positioning */
.stars-container,
.shooting-stars {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

/* Main content wrapper for all pages */
.page-content {
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 160px);
    padding: 2rem;
}

/* Content container with glass effect */
.content-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

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

header {
    padding: 1rem 2rem;
    position: relative;
    z-index: 10;
}

.main-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.8rem 2rem;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin: 1rem auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: fit-content;
    min-width: 200px;
}

.main-nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    opacity: 0.8;
}

.main-nav a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.main-nav a.active {
    opacity: 1;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 600px) {
    header {
        padding: 1rem;
    }

    .main-nav {
        gap: 0.5rem;
        padding: 0.75rem;
        flex-wrap: wrap;
    }

    .main-nav a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* Sections */
.section {
    padding: 6rem 2rem;
    position: relative;
}

/* Grid and Cards */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--star-color) 0%, transparent 400%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card:hover::before {
    opacity: 0.1;
}

.card * {
    position: relative;
    z-index: 1;
}

/* Links and Buttons */
.card a {
    color: var(--star-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
}

.card a::after {
    content: '→';
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
}

.card a:hover::after {
    transform: translateX(4px);
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    color: var(--text-light);
}

/* Decorative Elements */
.star {
    position: absolute;
    background: var(--star-color);
    border-radius: 50%;
    animation: twinkle var(--twinkle-duration, 4s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
    opacity: 0;
    box-shadow: 0 0 3px var(--star-color);
}

@keyframes twinkle {
    0%, 100% { 
        opacity: 0;
        transform: scale(0.5);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .section { padding: 4rem 1.5rem; }
    nav { gap: 1rem; }
}

/* Star field styles */
.stars-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.star {
    position: absolute;
    background: var(--star-color);
    border-radius: 50%;
    opacity: 0;
    animation: twinkle var(--twinkle-duration, 4s) ease-in-out infinite;
    animation-delay: var(--twinkle-delay, 0s);
}

.star.bright {
    background: var(--star-color);
    box-shadow: 0 0 2px var(--star-color);
}

.star.medium {
    background: rgba(255, 255, 255, 0.8);
}

.star.dim {
    background: rgba(255, 255, 255, 0.6);
}

@keyframes twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Shooting stars */
.shooting-stars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shooting-star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--star-color);
    opacity: 0;
    transform-origin: right;
    animation: shoot var(--shoot-duration, 1s) linear forwards;
}

.shooting-star::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 1px;
    background: linear-gradient(to left, var(--star-color), transparent);
    transform: translateX(20px);
}

@keyframes shoot {
    0% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(var(--angle));
    }
    100% {
        opacity: 0;
        transform: translateX(calc(var(--distance) * -1)) translateY(calc(var(--distance) * 0.2)) rotate(var(--angle));
    }
}

/* About page styles */
.about-page {
    min-height: calc(100vh - 160px);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.about-section {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: rgba(20, 20, 30, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.about-content {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: 4rem;
    align-items: start;
}

.profile-image {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: block;
    object-fit: cover;
    aspect-ratio: 1;
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.about-text {
    color: var(--text-light);
}

.about-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.social-links .github:hover {
    background: rgba(36, 41, 46, 0.2);
}

.social-links .linkedin:hover {
    background: rgba(0, 119, 181, 0.2);
}

.social-links .twitter:hover {
    background: rgba(29, 161, 242, 0.2);
}

.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 2rem 0;
}

.interest-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.interest-tag:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Responsive design */
@media (max-width: 900px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .profile-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .about-text h1 {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .interests {
        justify-content: center;
    }
    
    .interest-tag {
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .about-section {
        padding: 2rem;
    }

    .about-text h1 {
        font-size: 2.5rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
    
    .social-links a {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .social-links a svg {
        width: 16px;
        height: 16px;
    }
}

/* Contact page styles */
.contact-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.contact-intro {
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
    max-width: 800px;
}

.contact-link {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .contact-intro {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .contact-links {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .contact-link {
        max-width: none;
    }
}

/* Home page specific styles */
.home {
    overflow: hidden;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
    text-align: center;
    line-height: 1.2;
}

.hero .tagline {
    font-size: 1.2rem;
    color: var(--text-light);
    opacity: 0.9;
    margin-bottom: 2rem;
    font-family: 'Space Grotesk', sans-serif;
}

/* Responsive adjustments for home page */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero .tagline {
        font-size: 1.1rem;
    }
}

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

    .hero .tagline {
        font-size: 1rem;
    }
}

/* Project grid layout */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.project-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.project-card p {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-card a {
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-card a:hover {
    opacity: 0.8;
    transform: translateX(5px);
}

.project-card:has(.project-embed) {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.project-embed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow: hidden;
}

.project-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.youtube-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

/* Podcast styles */
.podcast-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.podcast-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.podcast-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.podcast-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.podcast-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.podcast-card a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.podcast-card a:hover {
    color: var(--accent-color-hover);
}

.podcast-embed {
    margin: 1.5rem 0;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
}

.podcast-embed iframe {
    display: block;
    margin: 0 auto;
}

.podcast-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.podcast-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.podcast-links a:hover {
    color: var(--accent-color-hover);
}

.podcast-links .icon {
    font-size: 1.1em;
    line-height: 1;
}

/* Article styles */
.articles-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.article-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

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

.article-card.featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
}

.article-content {
    padding: 2rem;
}

.article-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.article-tag {
    background: var(--accent-color);
    color: var(--bg-color);
    padding: 0.2rem 0.8rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
}

.article-card h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    line-height: 1.3;
}

.article-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.3s ease;
}

.article-link:hover {
    gap: 0.8rem;
}

.article-link .icon {
    font-size: 1.1em;
    line-height: 1;
}

@media (min-width: 768px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .article-card.featured {
        grid-column: span 2;
    }
}

@media (min-width: 1024px) {
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .article-card.featured {
        grid-column: span 3;
    }
}
