:root {
    /* Core colors */
    --primary-color: #2563eb;
    --secondary-color: #6366f1;
    --accent-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    
    /* Text colors */
    --text-color: #1f2937;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    
    /* Background colors */
    --background: #ffffff;
    --background-alt: #f3f4f6;
    --background-dark: #111827;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    
    /* Z-index */
    --z-header: 1000;
    --z-modal: 1100;
    --z-tooltip: 1200;
    
    /* Container */
    --container-max: 1400px;
    --container-padding: 2rem;

    --primary-color-rgb: 37, 99, 235;
    --secondary-color-rgb: 99, 102, 241;
    --accent-color-rgb: 139, 92, 246;
}

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

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

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

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
    transition: var(--transition);
}

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

.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
    margin-left: auto;
}

.mobile-menu-button:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-color), #6366f1);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

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

@media (min-width: 769px) {
    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-header {
        width: auto;
    }
}

@media (max-width: 768px) {
    .mobile-menu-button {
        display: block;
    }

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px) saturate(180%);
        -webkit-backdrop-filter: blur(10px) saturate(180%);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    }

    .nav-links.nav-open {
        display: flex;
    }

    .nav-links a {
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
    }

    .nav-links a:hover {
        background: rgba(99, 102, 241, 0.1);
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        width: calc(100% - 48px);
        margin-left: 48px !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -36px !important;
        right: auto !important;
        transform: translateY(-50%) !important;
    }

    .timeline-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    .timeline {
        padding: 1rem 0;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        width: calc(100% - 48px);
        margin-left: 48px !important;
    }

    .timeline-item .timeline-icon {
        width: 2rem;
        height: 2rem;
        left: -36px;
    }

    .timeline-icon i {
        font-size: 0.875rem;
    }

    .timeline-content {
        padding: 1rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 6rem 0 4rem;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1), rgba(var(--secondary-color-rgb), 0.1));
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

#earth-container {
    position: relative;
    width: 90%;
    max-width: 600px;
    height: 600px;
    margin-top: 3rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

#earth-container canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(var(--accent-color-rgb), 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
    text-align: center;
    pointer-events: none;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.hero-text {
    flex: 1;
    width: 100%;
    pointer-events: auto;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeIn 1s ease-out;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 0.6s backwards;
    justify-content: center;
    pointer-events: auto;
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.about-image-wrapper {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

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

.profile-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    text-align: left;
}

.about-text p {
    margin-bottom: 2rem;
    line-height: 1.8;
}

@media (max-width: 1024px) {
    .hero-content {
        gap: 2rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        order: 1;
    }

    .about-content {
        order: 2;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }

    .about-image-wrapper {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 6rem 0 3rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .about-image-wrapper {
        max-width: 200px;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
}

section:nth-child(even) {
    background-color: var(--background-alt);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    margin-bottom: 2rem;
    color: var(--text-color);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Contact Section */
.contact-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transition);
    margin-top: 2rem;
}

.contact-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section > div,
section > div {
    animation: fadeIn 1s ease-out;
}

/* About Section */
.about-section {
    padding: clamp(3rem, 8vh, 6rem) 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
}

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

.profile-image {
    width: 100%;
    height: auto;
}

.about-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
}

.about-text p {
    margin-bottom: 1.5rem;
}

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

.highlight {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--background-alt);
    border-radius: 0.5rem;
    transition: var(--transition-normal);
}

.highlight:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    font-size: 1.25rem;
    color: var(--primary-color);
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.highlight-icon i {
    font-size: 1.25rem;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.highlight:hover .highlight-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

.highlight-text {
    font-weight: 500;
}

/* Updates Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    width: calc(50% - 2rem);
}

.timeline-item:nth-child(odd) {
    margin-left: auto;
}

.timeline-icon {
    position: absolute;
    top: 50%;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--background);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: calc(100% + 2rem);
    transform: translate(50%, -50%);
}

.timeline-item:nth-child(even) .timeline-icon {
    left: calc(100% + 2rem);
    transform: translate(-50%, -50%);
}

.timeline-icon i {
    color: var(--primary-color);
    font-size: 1rem;
    width: auto;
    height: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    background: var(--background);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
}

/* Projects Grid */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-card:hover::before {
    transform: scaleX(1);
}

.project-icon {
    font-size: 2.5rem;
    width: 4rem;
    height: 4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.1));
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    position: relative;
}

.project-icon i {
    background: linear-gradient(135deg, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-color), #4b5563);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-description {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.tag {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-normal);
}

.tag:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-normal);
}

.project-link:hover {
    transform: translateX(5px);
}

.project-link i {
    font-size: 1.25rem;
}

/* Status Badges */
.development-badge,
.stealth-badge {
    position: absolute;
    top: 2rem;
    right: -4rem;
    padding: 0.5rem 4rem;
    transform: rotate(45deg);
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.development-badge {
    background: linear-gradient(135deg, var(--success-color), #34d399);
    color: white;
}

.development-badge i {
    margin-right: 0.5rem;
    animation: spin 2s linear infinite;
}

.stealth {
    background: linear-gradient(135deg, 
        rgba(23, 23, 23, 0.95), 
        rgba(32, 32, 32, 0.95)
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.stealth::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(99, 102, 241, 0.03) 10px,
            rgba(99, 102, 241, 0.03) 20px
        );
    pointer-events: none;
}

.stealth::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(
        circle at center,
        rgba(99, 102, 241, 0.1) 0%,
        transparent 70%
    );
    opacity: 0.5;
    animation: pulse 4s infinite ease-in-out;
    pointer-events: none;
}

.stealth .project-title {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.stealth .project-description {
    color: #94a3b8;
}

.stealth .project-icon {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.stealth .tag {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.stealth-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stealth-badge i {
    margin-right: 0.5rem;
    animation: lockPulse 2s infinite ease-in-out;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes lockPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); filter: brightness(1.2); }
    100% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.5; }
}

.stealth:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.stealth:hover::before {
    animation: scanline 2s linear infinite;
}

.stealth:hover .stealth-badge {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

@keyframes scanline {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 200%;
    }
}

/* Thoughts Section */
.thoughts-grid {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.thought-card {
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.thought-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.thought-header:hover {
    background: var(--background-alt);
}

.thought-icon {
    font-size: 1.5rem;
}

.thought-meta {
    flex: 1;
}

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

.expand-icon {
    transition: var(--transition-normal);
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.thought-content {
    padding: 1.5rem;
    border-top: 1px solid var(--background-alt);
}

/* Social Section */
.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.social-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-color);
    transition: var(--transition-normal);
}

.social-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.social-icon {
    font-size: 1.5rem;
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-color-rgb, var(--primary-color-rgb)), 0.1);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.social-card:hover .social-icon {
    transform: scale(1.1);
}

.social-info {
    flex: 1;
}

.social-platform {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.social-arrow {
    color: var(--accent-color, var(--primary-color));
}

/* Global Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: clamp(3rem, 6vh, 5rem) 0;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-image {
        max-width: 250px;
    }

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

    .about-highlights {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 2rem auto 0;
    }

    .highlight {
        justify-content: center;
    }

    /* Global mobile optimizations */
    .container {
        padding: 0 1rem;
    }

    .projects-grid,
    .social-grid,
    .thoughts-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        width: calc(100% - 48px);
        margin-left: 48px !important;
        margin-right: 0 !important;
    }

    .timeline-item:nth-child(odd) .timeline-icon,
    .timeline-item:nth-child(even) .timeline-icon {
        left: -36px !important;
        right: auto !important;
        transform: translateY(-50%) !important;
    }

    .timeline-content {
        margin-left: 0;
    }
}

@media (max-width: 480px) {
    section {
        padding: 2.5rem 0;
    }

    .about-image {
        max-width: 200px;
    }

    .highlight {
        padding: 0.75rem;
    }

    .highlight-icon {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }

    .timeline {
        padding: 1rem 0;
    }

    .timeline::before {
        left: 24px;
    }

    .timeline-item {
        width: calc(100% - 48px);
        margin-left: 48px !important;
    }

    .timeline-item .timeline-icon {
        width: 2rem;
        height: 2rem;
        left: -36px;
    }

    .timeline-icon i {
        font-size: 0.875rem;
    }

    .timeline-content {
        padding: 1rem;
    }
}

/* Add smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .nav-links a,
    .social-links a,
    .project-card,
    .thought-header,
    .social-card {
        padding: 0.75rem;
        min-height: 44px;
    }

    .highlight {
        min-height: 44px;
    }
}

/* Markdown Content Styles */
.markdown-content {
    line-height: 1.7;
    color: var(--text-color);
    margin-top: 1.5rem;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    margin: 1.5rem 0 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.markdown-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.markdown-content h3 {
    font-size: 1.25rem;
}

.markdown-content p {
    margin: 1rem 0;
}

.markdown-content ul,
.markdown-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.markdown-content li {
    margin: 0.5rem 0;
}

.markdown-content code {
    background: var(--background-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
    font-family: monospace;
}

.markdown-content pre {
    background: var(--background-alt);
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.markdown-content pre code {
    background: none;
    padding: 0;
}

.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1rem;
    margin: 1rem 0;
    color: var(--text-light);
}

.markdown-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
}

.markdown-content a:hover {
    text-decoration: underline;
}

/* LinkedIn Section */
.linkedin-section {
    padding: 4rem 0;
    background-color: var(--background-alt);
}

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

.linkedin-card {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.linkedin-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.linkedin-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.linkedin-embed-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.linkedin-embed-container iframe {
    width: 100%;
    border: none;
    transition: var(--transition-normal);
    background: var(--background);
}

@media (max-width: 768px) {
    .linkedin-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 2rem auto 0;
    }
    
    .linkedin-card {
        padding: 1rem;
    }
}

/* Icon Styles */
.fa,
.fas,
.far,
.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    vertical-align: middle;
    font-style: normal;
}

/* Mobile Menu Icon */
.mobile-menu-button i {
    font-size: 1.5rem;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Floating elements (keep them in the background) */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Responsive adjustments for wider screens */
@media (min-width: 992px) {
    .hero-section {
        flex-direction: row;
        justify-content: space-between;
        padding: 8rem 0 4rem;
    }

    .hero-section .container {
        flex-basis: 55%;
        max-width: none;
        margin: 0;
        padding-left: 5%;
        padding-right: 2%;
        z-index: 1;
        text-align: left;
    }

    .hero-content {
        /* Adjust if needed based on .container changes */
    }

    .hero-text {
        /* Adjust if needed based on .container changes */
    }

    .social-links {
        justify-content: flex-start;
    }

    #earth-container {
        position: relative;
        flex-basis: 45%;
        width: 45%;
        height: 85vh;
        min-height: 600px;
        max-height: 1000px;
        margin-top: 0;
        max-width: none;
        z-index: 2;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #earth-container canvas {
        max-width: none;
        max-height: none;
        width: 100% !important;
        height: 100% !important;
    }

    .hero-section .container {
        pointer-events: auto;
        z-index: 1;
    }
}

/* Remove the specific max-width media query as defaults handle mobile now */
/* @media (max-width: 991.98px) { ... } */

.cta-button {
    margin-top: 2rem;
    animation: fadeIn 1s ease-out 0.9s backwards;
    pointer-events: auto;
}

.cta-button .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(var(--primary-color-rgb), 0.2),
                0 2px 4px -1px rgba(var(--primary-color-rgb), 0.1);
    position: relative;
    overflow: hidden;
}

.cta-button .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    transform: translateX(-100%) rotate(45deg);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px -3px rgba(var(--primary-color-rgb), 0.2),
                0 4px 6px -2px rgba(var(--primary-color-rgb), 0.1);
}

.cta-button .btn:hover::before {
    transform: translateX(100%) rotate(45deg);
}

.cta-button .btn:active {
    transform: translateY(0);
}

.cta-button .btn i {
    font-size: 1.25rem;
}

@media (max-width: 768px) {
    .cta-button .btn {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }
}

/* Filter Panel Styles */
.filter-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(23, 23, 23, 0.85);
    padding: 0;
    border-radius: 12px;
    color: white;
    z-index: 1000;
    max-width: 300px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, width 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.filter-panel.collapsed {
    transform: translateX(-280px);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-header h3 {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #fff;
}

.toggle-filters-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.filter-panel.collapsed .toggle-filters-btn i {
    transform: rotate(180deg);
}

.filter-content {
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-size: 0.9em;
    font-weight: 500;
}

.filter-group select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    outline: none;
    font-size: 0.9em;
    transition: all 0.2s ease;
}

.filter-group select:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-group select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(var(--primary-color-rgb), 0.2);
}

.filter-group select option {
    background: #1a1a1a;
    color: white;
    padding: 8px;
}

.filter-group select[multiple] {
    min-height: 100px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.filter-button {
    flex: 1;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:first-child {
    background: var(--primary-color);
    color: white;
}

.filter-button:last-child {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.filter-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.filter-button:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .filter-panel {
        top: 10px;
        left: 10px;
        max-width: calc(100% - 20px);
    }

    .filter-panel.collapsed {
        transform: translateX(calc(-100% + 40px));
    }
} 