/* Import fonts only once */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

@font-face {
    font-family: 'Geist';
    src: url('https://fonts.gstatic.com/s/geist/v1/gyByhwUxId8gMEwcGFU.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Root Variables */
:root {
    /* Color Variables */
    --primary-color: rgb(59, 130, 246);
    --pink-glow: rgb(236, 72, 153);
    --blue-glow: rgb(59, 130, 246);
    --purple-glow: rgb(63, 58, 68);
    --background-dark: rgb(3, 7, 18);
    --text-light: rgb(255, 255, 255);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-subtle: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-hover-bg: rgba(255, 255, 255, 0.06);
    --tag-bg: rgba(255, 255, 255, 0.1);
    --shadow-primary: 0 4px 20px -4px rgba(236, 72, 153, 0.2);
    --shadow-hover: 0 8px 40px -8px rgba(95, 54, 170, 0.4);
}


/* Base Reset and Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-light);
    line-height: 1.5;
    background-color: var(--background-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Layout */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow-x: hidden;
}

/* Background Effects */
.background-effects {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: -1;
    width: 100vw;
    height: 100vh;
}

.radial-blue,
.radial-pink,
.radial-purple {
    position: absolute;
    width: 100%;
    opacity: 0.6;
}

.radial-blue {
    top: -10%;
    left: -20%;
    height: 120%;
    background: radial-gradient(
        circle at 30% 50%,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(28, 109, 175, 0) 70%
    );
    transform: rotate(-15deg);
}

.radial-pink {
    top: -20%;
    right: -30%;
    height: 140%;
    background: radial-gradient(
        circle at 50% 50%,
        rgba(49, 37, 42, 0.35) 50%,
        rgba(104, 68, 82, 0.35) 0%,
        rgba(236, 72, 153, 0) 70%
    );
    transform: rotate(15deg);
}

.radial-purple {
    top: 0;
    left: 0;
    height: 100%;
    background: radial-gradient(
        80% 150% at 50% 0%,
        rgba(51, 28, 135, 0.4) 0%,
        rgba(3, 7, 18, 0) 100%
    );
    opacity: 0.7;
}

.dark-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        80% 100% at 50% 0%,
        rgba(0, 0, 0, 1) 0%,
        rgba(0, 0, 0, 0.98) 35%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TRSkVQTtIcchQnSyIijhKFYtgobQVWnUwufQLmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi5Oik6CIl/i8ptIjx4Lgf7+497t4BQqPCVLNrAlA1y0jFY2I2tyoGXhFAGH0YRkxipp7MLGbhOr7u4ePrXZRneZ/7c/QpeZMBPpF4jumGRbxBPLNp6Zz3iUOsJCnE58RjBl2Q+JHrsstvnAsOCzwzZKST88QhYrHQxnIbs6KhEk8RRxRVo3wh67LCeYuzWqmx1j35C4N5bSXNdZpjiGMJCSQhQkYNZVRgIUqrRoqJFO3HPfxDjj9FLplcZTByLKAKFZLjB/+D392ahckJNykYA7pfbPtjFAjsAs26bX8f23bzBPA/A1day1+pAzOfpNdaWvQI6N0GLq5bmrIHXO4AQ0+GbMqu5Kcp5PPA+xl9UxbovwV61tzeWvs4fQDS1FXyBjg4BEYLlL3u8e6u9t7+PdPs7weZxnKl+yWxeQAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+UMCxUEFWpuEz0AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAADElEQVQAAAABAAAAAWhY1GcAAAAPSURBVGje7cEBDQAAAMKg908tJFgBAAAAAAAAAAAAAAAAAACAfwM56QABgYejawAAAABJRU5ErkJggg==");
    opacity: 0.06;
    mix-blend-mode: overlay;
}

/* Sidebar Styles */
.sidebar {
    width: 260px;
    padding: 2rem;
    border-right: 1px solid var(--border-subtle);
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.menu, 
.categories {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.categories {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
}

.sidebar a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-light);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 12px;
    opacity: 0.75;
    transition: all 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
    background: rgba(255, 255, 255, 0.08);
    opacity: 1;
    font-weight: 500;
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--tag-bg);
    border-radius: 6px;
}

.menu-item i, 
.category-item i {
    margin-right: 10px;
}

/* Content Section */
.content {
    flex: 1;
    padding: 2rem;
}

/* Section Header */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    width: 100%;
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-right: 1rem;
}

.section-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
}

/* Hero Section */
.hero {
    position: relative;
    padding: 4rem 0;
    text-align: center;
}

.hero h1, 
.hero #roleTitle {
    text-align: left;
    margin-left: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    word-wrap: break-word;
    margin-top: -50px;
    margin-bottom: 5px;
}

.hero-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Button Styles */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-light);
}

/* Resource Cards */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.resource-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.1),
        var(--shadow-primary);
    transition: all 0.3s ease;
    min-height: 200px;
}

.resource-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        inset 0 0 0 1px rgba(255, 255, 255, 0.2),
        var(--shadow-hover);
}

.resource-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.resource-card:hover::after {
    opacity: 1;
}

.resource-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.resource-content {
    padding: 1.5rem;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(3, 7, 18, 0.95) 0%,
        rgba(3, 7, 18, 0.7) 100%
    );
    position: relative;
    z-index: 1;
    height: 100%;
    color: white;
}

.resource-title {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 1.3rem;
    color: white;
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.resource-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.resource-image-container {
    position: relative;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
}

.resource-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.resource-card:hover .resource-image-container img {
    transform: scale(1.05);
}

.resource-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(3, 7, 18, 0.8) 0%,
        rgba(3, 7, 18, 0) 100%
    );
    z-index: 1;
}

/* Shared Tag Components */
.tech-tags,
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.tech-tag,
.tech-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: var(--tag-bg);
    border-radius: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.hover-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.resource-card:hover .hover-button {
    opacity: 1;
    transform: translateY(0);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    background: var(--card-hover-bg);
}

.project-title {
    font-size: 1.25rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 0.5rem;
    flex-wrap: nowrap;
    cursor: pointer;
}

.project-title .icon-container {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

.project-title .expand-icon {
    margin-left: auto;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.project-title .expand-icon.active {
    transform: rotate(180deg);
}

.project-date {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

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

.project-details {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    margin-left: 1.5rem;
    display: block;
}

.project-details.active {
    height: auto;
    opacity: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    padding-top: 1rem;
}

.project-details img {
    max-width: 100%;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

/* Lists */
.bullet-list {
    padding-left: 1.2rem;
    margin-top: 0.5rem;
}

.bullet-list li {
    margin-bottom: 0.4rem;
    color: #555;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* External Links/Icons */
.github-link, 
.certificate-link {
    margin-left: 25px;
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-icon, 
.certificate-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: white;
    padding: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.github-link:hover .github-icon,
.certificate-link:hover .certificate-icon {
    transform: scale(1.15);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Tooltip styling */
.tooltip {
    position: relative;
}

.tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 20;
    margin-bottom: 5px;
}

/* Category and Gallery Styles */
.category-header {
    text-align: center;
    margin-bottom: 3rem;
}

.category-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-header p {
    color: var(--text-muted);
}

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

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

/* Bio Section */
.bio-text {
    background: linear-gradient(135deg, rgba(41, 50, 65, 0.1) 0%, rgba(27, 35, 58, 0.4) 100%);
    border-left: 1px solid #5e72e4;
    border-radius: 8px;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 15px auto 25px auto;
    color: #eef2ff;
    font-size: 1.05rem;
    line-height: 1.6;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(5px);
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

.bio-text strong,
.bio-text .highlight,
.highlight {
    color: #5e72e4;
    font-weight: 500;
}

/* Profile Photo */
.profile-photo {
    position: absolute;
    top: 30px;
    right: 80px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 120, 255, 0.3);
    transition: all 0.3s ease;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
}

.profile-photo:hover {
    transform: scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 25px rgba(0, 120, 255, 0.5);
}

.about-content {
    text-align: left !important;
    padding-left: 20px;
    padding-right: 320px; /* Add space for the profile image */
    max-width: 100% !important;
    margin: 0 !important;
}

/* Media Queries - Consolidated for better performance */
@media (max-width: 1200px) {
    html {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
        padding: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .section-header {
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .github-icon,
    .certificate-icon {
        width: 30px;
        height: 30px;
    }
    
    .github-link,
    .certificate-link {
        margin-left: 15px;
    }
    
    .sidebar a {
        padding: 8px 12px;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .profile-photo {
        position: relative;
        top: 0;
        right: 0;
        margin: 20px auto;
        width: 180px;
        height: 180px;
    }
    
    .about-content {
        padding-right: 20px; /* Reset padding on mobile */
    }
}

@media (max-width: 480px) {
    .resource-title {
        font-size: 1.2rem;
    }
}

/* Improve hover effects for touch devices */
@media (hover: none) {
    .resource-card:hover {
        transform: none;
    }
    
    .hover-button {
        opacity: 1;
        transform: translateY(0);
    }
}


