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

:root {
    --primary-color: #2563eb;
    --text-color: #1f2937;
    --background-color: #ffffff;
    --secondary-background: #f3f4f6;
    --accent-color: #3b82f6;
}

a {
    color: #cc00cc;
    text-decoration: none;
}

a:hover {
    color: #ffffff;
}

a i {
    text-decoration: none;
}

body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    color: #ffffff;
    background-color: #030308;  /* Darker background for better particle contrast */
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

/* Homepage specific styles */
body.homepage {
    height: 100vh;
    overflow: hidden;
    background-color: #c8d5e5;  
}

/* Backdrop filter overlay for subpages */
body:not(.homepage)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(7px);
    pointer-events: none;
    z-index: 1;
}

/* Background canvas container */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    background-color: #030308;
}

#background-canvas canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Content styles */
main {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 2rem;
}

/* Section styling - different for homepage and subpages */
section {
    margin: 2rem auto;
    padding: 3rem;
    max-width: 1400px;
}

/* Enhanced text contrast for subpages */
body:not(.homepage) h1,
body:not(.homepage) h2,
body:not(.homepage) h3 {
    text-shadow: 
        0 0 20px rgba(0, 102, 255, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.5);
}

body:not(.homepage) p,
body:not(.homepage) .section-intro {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.6;
}

/* Slideshow */
.slideshow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

/* Content Overlay */
.content {
    position: relative;
    z-index: 100;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    margin-top: calc(-20vh);
}
.homepage .content {
    margin-top: calc(-30vh);
}

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

h1 {
    font-size: 6.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    text-transform: lowercase;
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    opacity: 0;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    animation: fadeInUp 1s ease forwards 0.5s;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
    margin-left: 0.7rem;
}

.social-link {
    color: white;
    font-size: 1.8rem;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 0.5s ease forwards;
}

/* Stagger the social links animation */
.social-link:nth-child(1) { animation-delay: 1s; }
.social-link:nth-child(2) { animation-delay: 1.15s; }
.social-link:nth-child(3) { animation-delay: 1.3s; }
.social-link:nth-child(4) { animation-delay: 1.45s; }
.social-link:nth-child(5) { animation-delay: 1.6s; }
.social-link:nth-child(6) { animation-delay: 1.75s; }
.social-link:nth-child(7) { animation-delay: 1.9s; }
.social-link:nth-child(8) { animation-delay: 2.05s; }

.social-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

/* Header and Navigation */
.header {
    width: 100%;
    padding: 1rem 0;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1000;
}

/* Homepage specific header styles */
.homepage .header {
    margin-bottom: 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Homepage specific logo styles */
.homepage .logo a {
    display: none;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: all 0.3s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    bottom: -8px;
}

/* Hamburger Animation */
.menu-toggle.active .hamburger {
    background-color: transparent;
}

.menu-toggle.active .hamburger::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-toggle.active .hamburger::after {
    bottom: 0;
    transform: rotate(-45deg);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a, 
.logo a {
    text-decoration: none;
    text-transform: lowercase;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.logo a:hover {
    color: rgba(255, 255, 255, 0.5);
}

/* Sections */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
}

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

/* Contact Section */
.contact {
    background-color: var(--secondary-background);
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

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

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
    z-index: 3;
    background: none;
}

.homepage .footer {
    display: none;
}

.footer p {
    font-size: 0.875rem;
    color: #9ca3af;
    margin-top: 1rem;
}

/* Footer Social Links */
.footer-social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-social-links .social-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-social-links .social-link:hover {
    transform: translateY(-2px);
}

/* Platform-specific hover colors for footer */
.footer-social-links .social-link:hover i.fa-github { color: #ffffff; }
.footer-social-links .social-link:hover i.fa-instagram { color: #E4405F; }
.footer-social-links .social-link:hover i.fa-x-twitter { color: #ffffff; }
.footer-social-links .social-link:hover i.fa-linkedin { color: #0A66C2; }
.footer-social-links .social-link:hover i.fa-blog { color: #ffffff; }
.footer-social-links .social-link:hover i.fa-bluesky { color: #0085ff; }
.footer-social-links .social-link:hover i.fa-spotify { color: #1DB954; }
.footer-social-links .social-link:hover i.fa-bandcamp { color: #629aa9; }

/* Hide footer social links on homepage */
.homepage .footer-social-links {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .content {
        padding: 2rem;
    }

    h1 {
        font-size: 4.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .social-link {
        font-size: 1.4rem;
    }

    .header {
        padding: 0.75rem 0;
        margin-bottom: 1.5rem;
    }

    .nav {
        padding: 0 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.95);
        transition: right 0.3s ease;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for nav links */
    .nav-links li:nth-child(1) a { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) a { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) a { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) a { transition-delay: 0.4s; }
}

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

    .subtitle {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .social-links {
        gap: 1rem;
    }

    .social-link {
        font-size: 1.2rem;
    }

    .header {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
    }

    .nav {
        padding: 0 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .logo {
        font-size: 1.25rem;
    }

    /* Background position adjustments for mobile */
    .slide[style*="_DSC2825.jpg"] {
        background-position: -500px center !important;
    }

    .slide[style*="_Z628912.jpg"] {
        background-position: -500px center !important;
    }

    .slide[style*="_Z628601.jpg"] {
        background-position: -650px center !important;
    }
}

/* Main content container */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Music intro section */
.music-intro {
    text-align: center;
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem 0;
}

/* Music Project Sections */
.music-project {
    padding: 4rem 2rem;
    border-radius: 24px;
    max-width: 1400px;
}

.project-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.project-intro h2 {
    margin-bottom: 1.5rem;
}

/* Music Links */
.music-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
    max-width: 1000px;
}

/* Player Container */
.player-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    justify-content: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.player-container iframe {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    display: block;
    transition: transform 0.3s ease;
}

/* Video Grid Styles */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 2rem auto;
}

.video-grid iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.video-grid iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Video Container */
.video-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    main {
        padding: 0 1.5rem;
    }
    
    .music-project {
        margin: 5rem 1.5rem;
    }

    .video-container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    main {
        padding: 0 1rem;
    }

    .music-project {
        margin: 3rem 1rem;
        padding: 2rem 1rem;
    }
    
    .music-intro {
        margin: 3rem auto;
        padding: 1rem 0;
    }
    
    .project-intro {
        margin-bottom: 2rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-container {
        padding: 0 1rem;
    }
}

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

    .music-project {
        margin: 2rem 0.75rem;
        padding: 1.5rem 1rem;
    }
    
    .music-intro {
        margin: 2rem auto;
    }

    .project-intro {
        margin-bottom: 1.5rem;
    }
    
    .music-links {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }

    .music-platform-link {
        text-align: center;
        justify-content: center;
    }

    .video-container h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Music Platform Links */
.music-platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
}

.music-platform-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.music-platform-link i {
    font-size: 1.2rem;
}

/* Platform-specific colors on hover */
.music-platform-link:hover i.fa-bandcamp {
    color: #629aa9;
}

.music-platform-link:hover i.fa-spotify {
    color: #1DB954;
}

.music-platform-link:hover i.fa-apple {
    color: #fc3c44;
}

.music-platform-link:hover i.fa-amazon {
    color: #FF9900;
}

.music-platform-link:hover i.fa-youtube {
    color: #FF0000;
}

.music-platform-link:hover i.fa-soundcloud {
    color: #ff7700;
}

/* Music Players Grid */
.music-players {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.player-container h3 {
    grid-column: 1 / -1;
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.player-container iframe {
    width: 100%;
    height: 588px;
    border: 0;
    margin: 0 auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .player-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .music-players {
        padding: 1rem;
    }

    .player-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .player-container h3 {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .music-links {
        flex-direction: column;
        align-items: stretch;
    }

    .music-platform-link {
        text-align: center;
        justify-content: center;
    }
    
    .player-container h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Mobile social links - hidden by default */
.mobile-social-links {
    display: none;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background-color: rgba(0, 0, 0, 0.95);
        transition: right 0.3s ease;
        gap: 2rem;
        padding: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for nav links */
    .nav-links li:nth-child(1) a { transition-delay: 0.1s; }
    .nav-links li:nth-child(2) a { transition-delay: 0.2s; }
    .nav-links li:nth-child(3) a { transition-delay: 0.3s; }
    .nav-links li:nth-child(4) a { transition-delay: 0.4s; }
}

/* Photography Section Styles */
.photography-section {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
}

.section-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 800px;
    color: #f3f4f6;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 100px auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: #1a1a1a;
    cursor: pointer;
    aspect-ratio: 3/2;  /* Standard landscape photo ratio */
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.3s ease;
    object-fit: cover;  /* This will maintain aspect ratio while filling the container */
}

.photo-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.photo-item:hover .photo-info {
    opacity: 1;
}

.photo-title {
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
}

/* Modal States */
body:has(.modal.active) .footer,
body:has(.modal.active) .header,
body.modal-open .footer,
body.modal-open .header {
    display: none;
}

/* Photography Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding-top: 30px;  /* Reduced from 60px since header is now hidden */
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-image {
    max-width: 90%;
    max-height: calc(90vh - 30px);  /* Adjusted to account for new padding */
    object-fit: contain;
    border-radius: 4px;
    margin-bottom: 60px;
    position: relative;
    z-index: 10000;
}

.modal-close {
    position: absolute;
    top: 20px;  /* Adjusted from 80px since header is now hidden */
    right: 30px;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    cursor: pointer;
    z-index: 10002;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.modal-close:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.modal-close i {
    font-size: 20px;
    pointer-events: none;
}

.modal-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    z-index: 10001;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.4;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10001;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav i {
    font-size: 24px;
}

.modal-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

/* Photography Loading States */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    grid-column: 1 / -1;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #ffffff3d;
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Photography Responsive Styles */
@media (max-width: 1200px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 1.25rem;
        margin: 60px auto;
    }
}

@media (max-width: 768px) {
    .photography-section {
        padding: 4rem 1rem 1rem;
    }

    .section-intro {
        font-size: 1.1rem;
        margin: 0 auto 2rem;
        padding: 0 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        margin: 40px auto;
        padding: 0 0.5rem;
    }

    .platform-links {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 0 1rem;
    }

    .platform-link {
        padding: 0.6rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Modal adjustments for mobile */
    .modal {
        padding-top: 40px;
    }

    .modal-image {
        max-width: 95%;
        max-height: calc(90vh - 40px);
        margin-bottom: 40px;
    }

    .modal-close {
        top: 50px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    .modal-nav {
        width: 40px;
        height: 40px;
    }

    .modal-nav i {
        font-size: 20px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-info {
        padding: 15px;
    }

    .modal-description {
        font-size: 1rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .photography-section {
        padding: 3rem 0.5rem 1rem;
    }

    .section-intro {
        font-size: 1rem;
        margin: 0 auto 1.5rem;
    }

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 30px auto;
    }

    .platform-links {
        flex-direction: column;
        gap: 0.75rem;
    }

    .platform-link {
        width: 100%;
        justify-content: center;
    }

    .photo-item {
        border-radius: 6px;
    }

    .photo-info {
        padding: 0.75rem;
    }

    .photo-title {
        font-size: 1rem;
    }

    /* Loading spinner adjustments */
    .loading-spinner {
        min-height: 150px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 2px;
    }

    /* Modal adjustments for small screens */
    .modal {
        padding-top: 30px;
    }

    .modal-image {
        max-width: 100%;
        max-height: calc(95vh - 30px);
        margin-bottom: 30px;
        border-radius: 0;
    }

    .modal-close {
        top: 40px;
        right: 10px;
        width: 32px;
        height: 32px;
    }

    .modal-close i {
        font-size: 16px;
    }

    .modal-nav {
        width: 35px;
        height: 35px;
        background: rgba(0, 0, 0, 0.7);
    }

    .modal-nav i {
        font-size: 18px;
    }

    .modal-info {
        padding: 12px;
    }

    .modal-description {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* Section Styles */
.ai-section,
.music-section,
.photography-section,
.digital-art-section,
.technology-section {
    padding: 6rem 2rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    max-width: 1400px;
    margin: 0 auto;
}

/* Platform Links */
.platform-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem auto;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.platform-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

.platform-link i {
    font-size: 1.2rem;
}

/* Platform-specific hover effects */
.platform-link:hover i.fa-instagram { color: #E4405F; }
.platform-link:hover i.fa-bluesky { color: #0085ff; }
.platform-link:hover i.fa-cube { color: #00cccc; }

.feed-info {
    margin-top: 3rem;
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Art Grid Styles */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
    max-width: 1400px;
    margin: 100px auto;
}

.art-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
    background-color: #1a1a1a;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    aspect-ratio: 3/2;  /* Standard landscape photo ratio */
}

.art-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.art-item img {
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.5s ease;
    object-fit: cover;  /* This will maintain aspect ratio while filling the container */
}

.art-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.art-item:hover .art-info {
    opacity: 1;
    transform: translateY(0);
}

.art-title {
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.4;
}

/* Music Project Styles */
.music-project {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Responsive adjustments for sections */
@media (max-width: 1200px) {
    .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .ai-section,
    .music-section,
    .photography-section,
    .digital-art-section {
        padding: 4rem 1rem 2rem;
    }

    .art-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
        margin: 50px auto;
    }

    .art-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .ai-section,
    .music-section,
    .photography-section,
    .digital-art-section {
        padding: 3rem 0.5rem 1rem;
    }

    .art-grid {
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
    }
}

/* Technology Project Grid Styles */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

.project-card {
    background: rgba(15, 23, 42, 0.7);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: 100%;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

/* Stagger project card animations */
.project-card:nth-child(1) { animation-delay: 0.6s; }
.project-card:nth-child(2) { animation-delay: 0.7s; }
.project-card:nth-child(3) { animation-delay: 0.8s; }
.project-card:nth-child(4) { animation-delay: 0.9s; }
.project-card:nth-child(5) { animation-delay: 1.0s; }
.project-card:nth-child(6) { animation-delay: 1.1s; }
.project-card:nth-child(7) { animation-delay: 1.2s; }
.project-card:nth-child(8) { animation-delay: 1.3s; }

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

.project-thumbnail {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumbnail img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.project-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.25rem;
    flex-grow: 1;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.project-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: #ffffff;
}

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

/* Platform-specific hover effects for project links */
.project-link:hover i.fa-github { color: #ffffff; }
.project-link:hover i.fa-external-link-alt { color: #00cccc; }

/* Responsive adjustments for project grid */
@media (max-width: 1200px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        padding: 1.5rem 0.5rem;
    }

    .project-thumbnail {
        aspect-ratio: 1 / 1;
    }

    .project-content {
        padding: 1.25rem;
    }

    .project-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
    }

    .project-card {
        border-radius: 12px;
    }

    .project-thumbnail {
        aspect-ratio: 1 / 1;
    }

    .project-content {
        padding: 1rem;
    }

    .project-title {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .project-description {
        font-size: 0.95rem;
        margin-bottom: 1.25rem;
    }

    .project-links {
        flex-wrap: wrap;
    }

    .project-link {
        width: 100%;
        justify-content: center;
    }
}

footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(3, 3, 8, 0.8);
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards 1.5s;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #cc00cc;
}

/* Remove animation-ready classes for technology section to match photography page loading */
.animations-ready .technology-section h1 {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.animations-ready .section-intro {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.animations-ready .project-card {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.animations-ready .project-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.animations-ready .project-title,
.animations-ready .project-description,
.animations-ready .project-links {
    opacity: 1;
    transform: translateY(0);
    transition: none;
}

.animations-ready .project-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.animations-ready .project-description.animate {
    opacity: 1;
    transform: translateY(0);
}

.animations-ready .project-links.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Ensure animations don't conflict with existing styles */
.section-intro {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 800px;
    color: #f3f4f6;
}

/* Remove redundant animation properties from these elements */
.technology-section .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

