/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --primary-color-rgb: 0, 123, 255;
    --secondary-color: #6c757d;
    --background-color: #1a1a1a;
    --text-color: #ffffff;
    --card-bg: #2d2d2d;
    --header-height: 70px;
    --border-color: rgba(255, 255, 255, 0.1);
    --header-bg: rgba(26, 26, 26, 0.8);
}

body.light-theme {
    --background-color: #ffffff;
    --text-color: #333333;
    --card-bg: #f8f9fa;
    --border-color: rgba(0, 0, 0, 0.1);
    --header-bg: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    transition: background-color 0.3s, color 0.3s;
    position: relative;
    overflow-x: hidden;
}

/* Modern Gradient Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 0% 0%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 0%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
}

/* Animated Gradient Lines */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        45deg,
        transparent 0,
        transparent 10px,
        rgba(0, 123, 255, 0.03) 10px,
        rgba(0, 123, 255, 0.03) 11px
    );
    z-index: -1;
    pointer-events: none;
}

/* Section Background Enhancement */
.hero::before,
.experience::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at top right, rgba(0, 123, 255, 0.1), transparent 70%),
        radial-gradient(circle at bottom left, rgba(0, 123, 255, 0.05), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

/* Ensure section content stays above background */
.hero-content,
.experience-grid,
.contact-grid {
    position: relative;
    z-index: 1;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.navbar {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 2rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
    font-weight: bold;
}

/* Theme Toggle Styles */
.theme-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    cursor: pointer;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle i {
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Show sun icon in light theme */
body.light-theme .theme-toggle i.fa-moon {
    display: none;
}

body.light-theme .theme-toggle::before {
    content: '\f185';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #ffd43b;
    font-size: 18px;
}

/* Show moon icon in dark theme */
.theme-toggle i.fa-moon {
    color: #ffffff;
}

/* Remove old styles */
.toggle-icons,
.light-icon,
.dark-icon,
.theme-toggle::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 2px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: calc(var(--header-height) + 2rem) 5% 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.profession {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.summary {
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0.9;
}

.key-points {
    margin: 2rem 0;
}

.point {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.point i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.highlight {
    color: var(--primary-color);
}

.cta-buttons {
    margin-top: 2rem;
}

/* Enhanced Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

/* Primary Button */
.btn.primary {
    background: var(--primary-color);
    color: white;
}

/* Secondary Button */
.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

/* Button Icon Styles */
.btn i {
    font-size: 1.1rem;
}

.btn:hover i {
    transform: none;
}

/* Button Loading State */
.btn.loading {
    cursor: wait;
    opacity: 0.8;
}

.btn.loading i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

.profile-container {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.profile-container:hover {
    transform: scale(1.05);
}

.profile-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* Add decorative background elements */
.stats::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 120%;
    height: 200%;
    background: 
        radial-gradient(circle at 0% 50%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 100% 50%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 250px;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(0, 123, 255, 0.03) 50%,
        transparent 100%
    );
    z-index: 0;
}

.stat-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.05;
    top: -75px;
    right: -75px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card:hover::after {
    transform: scale(1.2);
}

.stat-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    display: inline-block;
}

.stat-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.stat-card:hover h3::after {
    transform: scaleX(1);
}

.stat-card p {
    margin: 0.8rem 0;
    color: var(--text-color);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-card:hover p {
    transform: translateX(5px);
}

/* Add icons to stat cards */
.stat-card h3::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.stat-card:hover h3::before {
    transform: scale(1.1);
}

/* Specific icons for each card */
.stat-card:nth-child(1) h3::before {
    content: '\f121'; /* code icon */
    color: #007bff;
}

.stat-card:nth-child(2) h3::before {
    content: '\f0b1'; /* briefcase icon */
    color: #28a745;
}

.stat-card:nth-child(3) h3::before {
    content: '\f0eb'; /* lightbulb icon */
    color: #ffc107;
}

@media (max-width: 768px) {
    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat-card {
        width: 100%;
        max-width: 300px;
    }
}

/* Projects Section */
.projects {
    padding: 5rem 5%;
    position: relative;
    background-color: var(--background-color);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.1);
}

.project-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-card .card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-card:hover .card-icon {
    background: var(--primary-color);
}

.project-card:hover .card-icon i {
    color: white;
}

.project-card h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.project-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.project-content p {
    color: var(--text-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags .tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.project-tags .tag:hover {
    transform: translateY(-2px);
}

/* Projects Navigation */
.projects .scroll-nav {
    display: none;
}

/* Enhanced Skills Section Styles */
.skills {
    padding: 5rem 5%;
    background: var(--background-color);
    position: relative;
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.skill-category h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

.skill-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
}

.skill-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.skill-icon span {
    color: var(--text-color);
    font-size: 0.9rem;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .skills {
        padding: 3rem 1rem;
    }

    .skills-container {
        padding: 1rem 0;
    }

    .skill-category {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .skill-icons {
        gap: 1.5rem;
    }

    .skill-icon {
        width: 70px;
    }

    .skill-icon img {
        width: 35px;
        height: 35px;
    }

    .skill-icon span {
        font-size: 0.8rem;
    }
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.skill-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.skill-card .card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.skill-card:hover .card-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.skill-card:hover .card-icon i {
    color: white;
}

.skill-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.tech-item img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease;
}

.tech-item:hover img {
    transform: translateY(-5px);
}

.tech-item span {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.9;
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        gap: 1rem;
    }

    .tech-item img {
        width: 35px;
        height: 35px;
    }
}

/* Unified Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.popup.active {
    opacity: 1;
}

.popup .popup-content {
    position: absolute;
    background: var(--card-bg);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.popup.active .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup .popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.1), transparent);
    border-radius: 20px 20px 0 0;
}

.popup .popup-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup .platform-icon {
    font-size: 24px;
    color: var(--primary-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.popup .popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.popup .close-icon {
    background: none;
    border: none;
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.popup .close-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.popup .popup-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.popup .popup-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
    opacity: 0.9;
}

.popup .tech-stack {
    margin-top: 20px;
    background: rgba(var(--primary-color-rgb), 0.05);
    padding: 20px;
    border-radius: 12px;
}

.popup .tech-stack h4 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.popup .tech-stack h4::before {
    content: '\f085';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9em;
}

.popup .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.popup .tag {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup .tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .popup .popup-content {
        width: 95%;
        max-height: 80vh;
        margin: 10px;
    }

    .popup .popup-header {
        padding: 16px;
    }

    .popup .popup-body {
        padding: 16px;
    }

    .popup .popup-description {
        font-size: 1rem;
        line-height: 1.5;
    }

    .popup .tech-stack {
        padding: 16px;
        margin-top: 16px;
    }

    .popup .tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }

    .popup .platform-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .popup .popup-header h3 {
        font-size: 1.2rem;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    .popup .popup-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }

    .popup .popup-header {
        border-radius: 0;
    }

    .popup .tech-stack {
        padding: 12px;
    }

    .popup .tags {
        gap: 6px;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .popup .popup-content {
        max-height: 95vh;
    }

    .popup .popup-body {
        padding: 12px;
    }

    .popup .popup-description {
        margin-bottom: 16px;
    }
}

/* Contact Section */
.contact {
    padding: 5rem 5% 4rem;
    position: relative;
    overflow: hidden;
    background: var(--background-color);
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-intro {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-color);
    opacity: 0.9;
}

.contact-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.5rem auto;
    gap: 1rem;
    max-width: 300px;
}

.contact-divider span {
    height: 1px;
    width: 100px;
    background: var(--primary-color);
    opacity: 0.3;
}

.contact-divider i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem 1.5rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border-color);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-icon {
    width: 50px;
    height: 50px;
    background: var(--background-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon {
    transform: scale(1.1);
    background: var(--primary-color);
}

.card-icon i {
    font-size: 20px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.contact-card:hover .card-icon i {
    color: white;
}

.contact-card h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-color);
}

.contact-card p {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

.hover-text {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-card:hover .hover-text {
    opacity: 1;
}

.contact-card.profile-card {
    background: linear-gradient(145deg, var(--card-bg), var(--background-color));
}

.contact-card .profile-pic {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.social-icon:hover {
    transform: translateY(-3px);
    background: var(--primary-color);
    color: white;
}

@media (max-width: 1200px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }

    .contact-card {
        min-height: 180px;
        padding: 1.5rem;
    }

    .card-icon {
        width: 45px;
        height: 45px;
    }

    .card-icon i {
        font-size: 18px;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .social-icon {
        width: 32px;
        height: 32px;
    }
}

/* Popup Footer Button Styles */
.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 12px 12px;
}

.popup-footer .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.popup-footer .btn.primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.popup-footer .btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.popup-footer .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-footer .btn.primary:hover {
    background: #0056b3;
}

.popup-footer .btn.secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        padding: 0 1rem;
    }

    .contact-card {
        padding: 1.5rem 1rem;
    }

    .contact-card i {
        font-size: 1.75rem;
    }

    .contact-card h3 {
        font-size: 1.1rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .contact-card .profile-pic {
        width: 70px;
        height: 70px;
    }
}

/* Email Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-overlay.active {
    display: flex;
}

.popup-content {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.popup-header h3 {
    color: var(--text-color);
    margin: 0;
}

.close-popup {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s;
}

.close-popup:hover {
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: var(--background-color);
    color: var(--text-color);
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
.footer {
    background-color: var(--card-bg);
    padding: 2rem 5%;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info p {
    color: var(--text-color);
    opacity: 0.8;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: color 0.3s, opacity 0.3s;
}

.footer-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Update media queries for footer responsiveness */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .contact {
        padding: 2rem 5% 3rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background-color: var(--background-color);
        padding: 1rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
    }

    .nav-links a {
        margin: 0.5rem 0;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        margin: 0;
    }

    .stats {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .summary {
        font-size: 0.95rem;
    }

    .key-points {
        margin: 1.5rem 0;
    }

    .point {
        font-size: 0.9rem;
    }

    .popup-content {
        width: 95%;
        margin: 1rem;
        padding: 1.5rem;
    }
}

/* Popup Styles */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup.active {
    opacity: 1;
}

.popup-content {
    position: absolute;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 450px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.popup.active .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.1), transparent);
    border-radius: 20px 20px 0 0;
}

.popup-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.popup-logo .platform-icon {
    font-size: 24px;
    color: var(--primary-color);
}

.popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

.close-icon {
    background: none;
    border: none;
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

.close-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.popup-body {
    padding: 16px;
}

.popup-description {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 0.9;
}

.tech-stack {
    margin-top: 16px;
}

.tech-stack h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--primary-color);
    color: white;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 16px;
}

.icon-item {
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.icon-item:hover {
    background: rgba(var(--primary-color-rgb), 0.1);
    transform: translateY(-2px);
}

.icon-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.icon-item span {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-body {
        padding: 1.5rem;
    }

    .popup-header {
        padding: 1rem 1.5rem;
    }

    .popup-footer {
        padding: 1rem 1.5rem;
    }

    .popup-body {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .popup-image {
        margin: 0 auto;
    }
}

/* Experience Section */
.experience {
    padding: 5rem 5%;
    background-color: var(--card-bg);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.experience-card {
    background: var(--background-color);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.experience-header i {
    font-size: 2rem;
    color: var(--primary-color);
}

.experience-title h3 {
    margin: 0;
    font-size: 1.3rem;
    color: var(--text-color);
}

.experience-title .company {
    color: var(--primary-color);
    font-weight: 500;
    margin: 0.3rem 0;
}

.experience-title .duration {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
    margin: 0;
}

.experience-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.experience-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    opacity: 0.9;
}

.experience-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Update existing media queries */
@media (max-width: 768px) {
    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience {
        padding: 3rem 5%;
    }
}

@media (max-width: 768px) {
    .project-card {
        flex: 0 0 300px;
    }

    .project-image {
        height: 180px;
    }

    .project-content h3 {
        font-size: 1.3rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }

    .project-tags {
        flex-direction: column;
    }
}

/* Download Popup Specific Styles */
.popup .file-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 20px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0 0 20px 20px;
}

.popup-footer .btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.popup-footer .btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

/* Remove decoration styles */
.contact-decoration,
.decoration-item {
    display: none;
}

/* Mobile Responsive Improvements */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        padding: calc(var(--header-height) + 1rem) 1rem 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .profession {
        font-size: 1.1rem;
    }

    .profile-container {
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }

    .key-points {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .point {
        justify-content: flex-start;
        font-size: 0.95rem;
    }

    /* Stats Cards Mobile */
    .stats {
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        margin-top: 2rem;
    }

    .stat-card {
        width: 100%;
        min-width: unset;
        padding: 1.5rem;
    }

    .stat-card h3 {
        font-size: 1.4rem;
    }

    /* Projects Section Mobile */
    .projects {
        padding: 3rem 1rem;
    }

    .project-grid {
        gap: 1rem;
        padding: 0.5rem 0;
        margin-top: 1rem;
    }

    .project-card {
        flex: 0 0 280px;
    }

    .project-image {
        height: 160px;
    }

    /* Skills Section Mobile */
    .skills {
        padding: 3rem 1rem;
    }

    .skills-grid {
        gap: 1rem;
        padding: 0.5rem 0;
    }

    .skill-card {
        flex: 0 0 260px;
        padding: 1.5rem;
    }

    /* Experience Section Mobile */
    .experience {
        padding: 3rem 1rem;
    }

    .experience-card {
        padding: 1.5rem;
    }

    /* Contact Section Mobile */
    .contact {
        padding: 3rem 1rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0;
    }

    .contact-card {
        min-height: 160px;
        padding: 1.5rem 1rem;
    }

    /* Navigation Mobile */
    .nav-links {
        background-color: var(--card-bg);
        backdrop-filter: blur(10px);
        padding: 1rem;
    }

    .nav-links a {
        padding: 0.8rem 1.5rem;
        margin: 0;
        width: 100%;
        text-align: center;
        border-radius: 8px;
    }

    .nav-links a:hover {
        background-color: var(--background-color);
    }

    /* Popup Mobile Adjustments */
    .popup-content {
        width: 90%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    .popup-body {
        padding: 1.5rem;
    }

    .popup-header {
        padding: 1rem 1.5rem;
    }

    .popup-footer {
        padding: 1rem 1.5rem;
    }

    /* Button Adjustments */
    .btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .cta-buttons {
        gap: 1rem;
        padding: 0 1rem;
    }

    /* Scroll Buttons */
    .scroll-button {
        width: 35px;
        height: 35px;
    }

    .scroll-button.prev {
        left: 0.5rem;
    }

    .scroll-button.next {
        right: 0.5rem;
    }
}

/* Small Mobile Devices */
@media (max-width: 380px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .profile-container {
        width: 180px;
        height: 180px;
    }

    .stat-card h3::before {
        font-size: 2rem;
    }

    .project-card {
        flex: 0 0 260px;
    }

    .project-image {
        height: 140px;
    }
}

/* Section Title Styles */
.projects h2,
.experience h2,
.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1.5rem;
    color: var(--text-color);
}

.projects h2::before,
.experience h2::before,
.skills h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.projects h2::after,
.experience h2::after,
.skills h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: slideWidth 3s ease-in-out infinite;
}

@keyframes slideWidth {
    0%, 100% {
        width: 40px;
        opacity: 0.5;
    }
    50% {
        width: 80px;
        opacity: 1;
    }
}

.section-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: -2.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* Section Title Decorations */
.title-decoration {
    position: relative;
    display: inline-block;
    padding: 0 3rem;
}

.title-decoration::before,
.title-decoration::after {
    content: '{ }';
    position: absolute;
    font-family: monospace;
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.title-decoration::before {
    left: 0;
}

.title-decoration::after {
    right: 0;
}

.projects h2:hover .title-decoration::before,
.experience h2:hover .title-decoration::before,
.skills h2:hover .title-decoration::before {
    transform: translateY(-50%) rotate(-10deg);
    opacity: 0.8;
}

.projects h2:hover .title-decoration::after,
.experience h2:hover .title-decoration::after,
.skills h2:hover .title-decoration::after {
    transform: translateY(-50%) rotate(10deg);
    opacity: 0.8;
}

@media (max-width: 768px) {
    .projects h2,
    .experience h2,
    .skills h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-top: -1.5rem;
        margin-bottom: 1.5rem;
    }

    .title-decoration {
        padding: 0 2rem;
    }

    .title-decoration::before,
    .title-decoration::after {
        font-size: 1.5rem;
    }
}

/* Projects Title Style */
.projects h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.projects .title-decoration::before,
.projects .title-decoration::after {
    content: '</>'; /* Code brackets for Projects */
    font-family: monospace;
    position: absolute;
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 1.8rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.projects .title-decoration::before {
    left: -3rem;
}

.projects .title-decoration::after {
    right: -3rem;
}

.projects h2:hover .title-decoration::before {
    transform: translateX(10px) translateY(-50%);
    opacity: 0.8;
}

.projects h2:hover .title-decoration::after {
    transform: translateX(-10px) translateY(-50%);
    opacity: 0.8;
}

/* Experience Title Style */
.experience h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.experience .title-decoration {
    position: relative;
    display: inline-block;
    padding: 0 1rem;
}

.experience .title-decoration::before,
.experience .title-decoration::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.experience .title-decoration::before {
    left: -50px;
    transform: translateY(-50%) rotate(45deg);
}

.experience .title-decoration::after {
    right: -50px;
    transform: translateY(-50%) rotate(-45deg);
}

.experience h2:hover .title-decoration::before {
    transform: translateY(-50%) rotate(90deg);
    width: 50px;
    opacity: 1;
}

.experience h2:hover .title-decoration::after {
    transform: translateY(-50%) rotate(-90deg);
    width: 50px;
    opacity: 1;
}

/* Skills Title Style */
.skills h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--text-color);
}

.skills .title-decoration::before,
.skills .title-decoration::after {
    content: '⚡'; /* Lightning bolt for Skills */
    position: absolute;
    color: var(--primary-color);
    opacity: 0.3;
    font-size: 2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.skills .title-decoration::before {
    left: -3rem;
}

.skills .title-decoration::after {
    right: -3rem;
}

.skills h2:hover .title-decoration::before {
    transform: translateY(-50%) rotate(-20deg);
    opacity: 1;
}

.skills h2:hover .title-decoration::after {
    transform: translateY(-50%) rotate(20deg);
    opacity: 1;
}

/* Section Subtitles */
.section-subtitle {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .projects h2,
    .experience h2,
    .skills h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .projects .title-decoration::before,
    .projects .title-decoration::after {
        font-size: 1.5rem;
        left: -2rem;
        right: -2rem;
    }

    .experience .title-decoration::before {
        left: -40px;
    }

    .experience .title-decoration::after {
        right: -40px;
    }

    .skills .title-decoration::before,
    .skills .title-decoration::after {
        font-size: 1.5rem;
        left: -2rem;
        right: -2rem;
    }
}

/* Projects Section Background */
.projects {
    position: relative;
    overflow: hidden;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    opacity: 0.7;
    z-index: 0;
}

/* Floating Code Icons for Projects */
.projects::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d6efd' opacity='0.1'%3E%3Cpath d='M8.293 6.293L2.586 12l5.707 5.707 1.414-1.414L5.414 12l4.293-4.293zm7.414 11.414L21.414 12l-5.707-5.707-1.414 1.414L18.586 12l-4.293 4.293z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d6efd' opacity='0.1'%3E%3Cpath d='M12 18.178l-4.62-1.256-.328-3.544h2.27l.158 1.844 2.52.667 2.52-.667.26-2.866H6.96l-.635-6.678h11.35l-.227 2.21H8.822l.204 2.256h8.217l-.624 6.778z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 80px, 60px;
    opacity: 0.1;
    animation: floatIcons 60s linear infinite;
    pointer-events: none;
}

/* Experience Section Background */
.experience {
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, var(--card-bg) 25%, transparent 25%) -50px 0,
        linear-gradient(-45deg, var(--card-bg) 25%, transparent 25%) -50px 0,
        linear-gradient(45deg, transparent 75%, var(--card-bg) 75%),
        linear-gradient(-45deg, transparent 75%, var(--card-bg) 75%);
    background-size: 100px 100px;
    opacity: 0.05;
    z-index: 0;
}

/* Floating Work Icons for Experience */
.experience::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d6efd' opacity='0.1'%3E%3Cpath d='M20 6h-4V4c0-1.11-.89-2-2-2h-4c-1.11 0-2 .89-2 2v2H4c-1.11 0-1.99.89-1.99 2L2 19c0 1.11.89 2 2 2h16c1.11 0 2-.89 2-2V8c0-1.11-.89-2-2-2zm-6 0h-4V4h4v2z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d6efd' opacity='0.1'%3E%3Cpath d='M19 3h-4.18C14.4 1.84 13.3 1 12 1c-1.3 0-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2-2h14c1.1 0 2 .9 2 2v14c0 1.1-.9 2-2 2h-14c-1.1 0-2-.9-2-2-2zm-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1zm2 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 70px, 50px;
    opacity: 0.1;
    animation: floatIcons 50s linear infinite;
    pointer-events: none;
}

/* Skills Section Background */
.skills {
    position: relative;
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 90% 10%, rgba(0, 123, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 10% 90%, rgba(0, 123, 255, 0.05) 0%, transparent 50%);
    opacity: 0.7;
    z-index: 0;
}

/* Floating Tech Icons for Skills */
.skills::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d6efd' opacity='0.1'%3E%3Cpath d='M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230d6efd' opacity='0.1'%3E%3Cpath d='M12 16.5l4-4h-3v-9h-2v9H8l4 4zm9-13v13h-2V3.5H5v13H3v-13c0-1.1.9-2 2-2h14c1.1 0 2 .9 2 2z'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 60px, 40px;
    opacity: 0.1;
    animation: floatIcons 40s linear infinite;
    pointer-events: none;
}

/* Animation for floating icons */
@keyframes floatIcons {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

/* Ensure content stays above backgrounds */
.project-grid,
.experience-grid,
.skills-grid,
.section-subtitle,
.projects h2,
.experience h2,
.skills h2 {
    position: relative;
    z-index: 1;
}

/* Add hover effect to cards */
.project-card,
.experience-card,
.skill-card {
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-color-rgb), 0.1);
}

.project-card::before,
.experience-card::before,
.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(var(--primary-color-rgb), 0.03),
        transparent
    );
    background-size: 200% 200%;
    animation: shimmer 3s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Add these new styles for project cards with no hover effects */
.project-card.no-hover {
    cursor: pointer;
    transition: none;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.project-card.no-hover:hover {
    transform: none;
    box-shadow: none;
    border-color: var(--border-color);
}

/* Keep icon hover effects */
.project-card.no-hover .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(var(--primary-color-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.project-card.no-hover:hover .card-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.project-card.no-hover .card-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.project-card.no-hover:hover .card-icon i {
    color: white;
}

/* Remove other animations */
.project-card.no-hover::before {
    display: none;
}

.project-card.no-hover::after {
    display: none;
}

/* Add specific styles for Project/Skill popup */
#projectSkillPopup.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity 0.3s ease;
}

#projectSkillPopup.popup.active {
    opacity: 1;
}

#projectSkillPopup .popup-content {
    position: absolute;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
    width: 90%;
    max-width: 600px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

#projectSkillPopup.popup.active .popup-content {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

#projectSkillPopup .popup-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgba(0, 123, 255, 0.1), transparent);
    border-radius: 20px 20px 0 0;
}

#projectSkillPopup .popup-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

#projectSkillPopup .popup-logo .platform-icon {
    font-size: 24px;
    color: var(--primary-color);
}

#projectSkillPopup .popup-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 600;
}

#projectSkillPopup .close-icon {
    background: none;
    border: none;
    color: var(--text-color);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
}

#projectSkillPopup .close-icon:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

#projectSkillPopup .popup-body {
    padding: 24px;
}

#projectSkillPopup .popup-description {
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 24px;
}

#projectSkillPopup .tech-stack {
    margin-top: 20px;
}

#projectSkillPopup .tech-stack h4 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

#projectSkillPopup .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#projectSkillPopup .tag {
    background: rgba(var(--primary-color-rgb), 0.1);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

#projectSkillPopup .tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #projectSkillPopup .popup-content {
        width: 95%;
        margin: 0;
        max-height: 90vh;
        overflow-y: auto;
    }

    #projectSkillPopup .popup-header {
        padding: 16px 20px;
    }

    #projectSkillPopup .popup-body {
        padding: 20px;
    }

    #projectSkillPopup .popup-description {
        font-size: 1rem;
    }
} 