@import url('https://fonts.googleapis.com/css2?family=Silkscreen:wght@400;700&family=Press+Start+2P&family=VT323&family=Pixelify+Sans&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --gunmetal: #213240;
    --persian-red: #b34d3b;
    --old-rose: #c5806f;
    --lapis-lazuli: #285f91;
    --black: #000205;
    --red-violet: #ca0a9c;
    --text-primary: #ffffff;
    --text-secondary: #c5806f;
}

body {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
}

/* Fix background handling for all devices */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../../assets/Captivating_Pixel_Art_Scenes.gif') center/cover no-repeat fixed;
    z-index: -1;
}

/* Hero Section - No background since it uses the GIF */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
}

/* Content Sections */
section:not(#hero) {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: transparent;
    backdrop-filter: none;
}

/* Typography updates */
h1 {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 4rem;
    margin-bottom: 1.5rem;
    color: var(--old-rose);
}

h2 {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h3 {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8rem;
    color: var(--lapis-lazuli);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Content text size increase */
p, li, .duration {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.4rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.skill-category p {
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Contact and social links */
.contact-item span {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.3rem;
    margin-top: 1rem;
}

.social-links a {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
}

/* Project descriptions */
.project-item p {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Experience section */
.experience-item li {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.experience-item h4 {
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Restore original layout with sections */
section {
    padding: 100px 0;
}

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

/* Keep original grid layouts */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

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

.experience-grid {
    display: grid;
    gap: 2rem;
}

/* Style cards with pixel art theme */
.skill-category, .project-item, .experience-item {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-category:hover, .project-item:hover, .experience-item:hover {
    transform: translateY(-5px);
    border-color: var(--red-violet);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: transparent !important;
}

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

/* Style individual nav items */
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
}

.nav-links a:hover {
    background: rgba(0, 0, 0, 0.9);
    color: var(--accent-color);
}

/* Update links and buttons */
a {
    color: var(--old-rose);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--red-violet);
}

.contact-item {
    background: rgba(33, 50, 64, 0.8);
    border: 2px solid var(--lapis-lazuli);
}

.contact-item:hover {
    border-color: var(--red-violet);
    background: rgba(40, 95, 145, 0.3);
}

.contact-item i {
    color: var(--old-rose);
}

/* Add scanline effect */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        rgba(33, 50, 64, 0) 50%,
        rgba(0, 0, 0, 0.25) 50%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
    opacity: 0.15;
}

/* Add CRT screen effect */
main {
    animation: textShadow 1.6s infinite;
}

@keyframes textShadow {
    0% { text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    5% { text-shadow: 2.7928974010788217px 0 1px rgba(0,30,255,0.5), -2.7928974010788217px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
    /* Add more keyframes as needed */
    100% { text-shadow: 0.4389924193300864px 0 1px rgba(0,30,255,0.5), -0.4389924193300864px 0 1px rgba(255,0,80,0.3), 0 0 3px; }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

/* Animation for content sections */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Update container width for better readability */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* Add background to About section text */
#about p {
    background: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

/* Make cards less transparent */
.skill-category, .project-item, .experience-item, .contact-item {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Rest of your styles remain the same... */

/* Keep the switch button fixed and with dark background */
.portfolio-switch {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.switch-button {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 20px;
    border: 2px solid #555;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: "Jersey 10", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.2rem;
}

.switch-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    text-decoration: none;
}

/* Adjust padding for content cards */
.skill-category, .project-item, .experience-item {
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Restore hover effects */
.skill-category:hover, .project-item:hover, .experience-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Increase font sizes for content */
.skill-category p, 
.project-item p, 
.experience-item p,
.experience-item li,
.duration {
    font-size: 1.3rem;
    line-height: 1.8;
}

/* Adjust spacing for lists */
.experience-item ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.experience-item li {
    margin-bottom: 1rem;
}

/* Make contact items larger */
.contact-item span {
    font-size: 1.3rem;
    margin-top: 1rem;
}

/* Adjust social links size */
.social-links {
    font-size: 1.3rem;
}

/* Increase size of contact icons */
.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); /* Reduced from 150px */
    gap: 1rem;
    max-width: 600px; /* Limit maximum width */
    margin: 2rem auto;
}

.contact-item {
    background: rgba(0, 0, 0, 0.7);
    padding: 0.8rem; /* Reduced padding */
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 1.8rem; /* Adjusted icon size */
    margin-bottom: 0.5rem;
}

.contact-item span {
    font-size: 1rem; /* Adjusted text size */
}

/* Update contact item text size */
.contact-item {
    /* ... existing styles ... */
}

.contact-item i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-item span {
    font-size: 1.5rem; /* Increased from previous size */
    display: block;
    margin-top: 0.5rem;
}

/* Add responsive design improvements */
@media screen and (max-width: 768px) {
    /* Adjust hero section */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    /* Stack grid items */
    .skills-grid, .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Adjust contact grid for mobile */
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        padding: 0 1rem;
    }

    /* Adjust section padding */
    section {
        padding: 60px 1rem;
    }

    /* Make container full width on mobile */
    .container {
        padding: 0 1rem;
    }

    /* Adjust nav links for mobile */
    .nav-links {
        display: none; /* Hide nav links */
    }

    /* Add hamburger menu styles if needed */
}

@media screen and (max-width: 480px) {
    /* Further adjustments for smaller screens */
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Adjust content font sizes */
    p, li {
        font-size: 1.1rem;
    }
}

/* Ensure switch button stays visible but doesn't overlap */
@media screen and (max-height: 600px) {
    .portfolio-switch {
        position: absolute;
        bottom: 1rem;
    }
}

/* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
    body::before {
        background-size: auto 100vh; /* This will ensure full height coverage without zooming */
        background-position: center center;
    }
    
    /* Adjust other mobile styles */
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    section {
        min-height: auto;
        padding: 60px 0;
    }
}

/* Style for "Check out more projects" text */
.github-link {
    display: inline-block;
    background: rgba(0, 0, 0, 0.7);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-top: 2rem;
}

.github-link a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.github-link a:hover {
    color: var(--accent-color);
}

.github-link i {
    margin-left: 0.5rem;
}
 