/* Minimalist CSS for Alexis DiNardo's Portfolio */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Prata&family=Open+Sans:wght@300;400;500;600&display=swap');


/* ===== Base Styles ===== */
:root {
    --text-color: #4A5D4C; /* Dark sage green */
    --background-color: #F7F7F2;
    --accent-color: #9CAF88; /* Sage */
    --accent-light: #D4E0D0; /* Light sage */
    --accent-hover: #B8A6D9; /* Lavender */
    --light-gray: #9CAF8880;
    --medium-gray: #B8B8B8;
    --dark-gray: #6B7280;
    --transition: all 0.3s ease;
    --font-heading: 'Prata', serif;
    --font-body: 'Open Sans', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover, button:hover, .project-link:hover, .video-link:hover, .close-video:hover,
button, .project-link, .video-link, .close-video,
input, textarea, select, [role="button"] {
    cursor: pointer;
}

ul {
    list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
}

.arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

a:hover .arrow {
    transform: translateX(5px);
}

a:hover .arrow[class*="down"],
a:hover .arrow[class*="↓"] {
    transform: translateY(5px);
}

a:hover .arrow[class*="up"],
a:hover .arrow[class*="↑"] {
    transform: translateY(-5px);
}

/* ===== Header ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: rgba(247, 247, 242, 0.95); /* Updated to match --background-color */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    gap: 2.5rem;
}

nav a {
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;
}

nav a sup {
    font-size: 0.6rem;
    vertical-align: super;
    margin-left: 2px;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.decorative-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background-image: url('../images/flower.svg');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    filter: hue-rotate(340deg) saturate(1.2);
}

.decorative-element.top-right {
    top: 2.5rem;
    right: 2.5rem;
}

.decorative-element.bottom-left {
    bottom: 2.5rem;
    left: 2.5rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
}

/* Hero text styles */
.hero h1 {
    font-size: clamp(5.5rem, 14vw, 11rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.03rem;
    margin-bottom: 2rem;
    margin-top: 10rem;
    width: 100%;
    text-align: center;
    position: relative;
}

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

/* Initial state and animations */
.hero h1 {
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero .intro-text {
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.4s;
}

.hero .scroll-text {
    opacity: 0;
    animation: heroFadeIn 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Ensure header logo is always visible */
header .logo {
    opacity: 1;
}

.three-d-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    z-index: 1;
    opacity: 0.7;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.three-d-element img {
    width: 100%;
    height: auto;
    object-fit: contain;
    animation: rotate3D 20s linear infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) rotateX(0) rotateY(0);
    }
    25% {
        transform: translate(-50%, -50%) translateY(-10px) rotateX(5deg) rotateY(5deg);
    }
    50% {
        transform: translate(-50%, -50%) translateY(0) rotateX(0) rotateY(0);
    }
    75% {
        transform: translate(-50%, -50%) translateY(10px) rotateX(-5deg) rotateY(-5deg);
    }
}

@keyframes rotate3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.intro-text {
    max-width: 600px;
    margin: 0 auto 2rem;
    margin-top: 0rem;
    opacity: 1;
}

.intro-text p {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.7;
}

.scroll-text {
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: var(--text-color);
    text-decoration: none;
    margin-top: 2rem;
    transition: var(--transition);
}

.scroll-text:hover {
    color: var(--accent-hover);
}

/* ===== Projects Section ===== */
.projects {
    padding: 8rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.projects h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
}

.project-card {
    display: block;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-image {
    width: 100%;
    height: 0;
    padding-top: 56.25%; /* Changed from 66.67% to 16:9 aspect ratio */
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    border-radius: 10px;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 10px;
}

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

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-area {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-info h3 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--dark-gray);
    margin-bottom: 0.75rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tech-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    background-color: var(--accent-light);
    color: var(--text-color);
    border-radius: 100px;
    font-weight: 500;
}

.view-project {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
}

.project-card:hover .view-project {
    opacity: 1;
    transform: translateX(0);
}

/* ===== About Section ===== */
.about {
    padding: 8rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.about-image {
    position: sticky;
    top: 120px;
    max-width: 500px;
    margin: 0 auto;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    max-width: 600px;
}

.education, .experience, .skills, .interests {
    margin-bottom: 4rem;
}

.education h3, .experience h3, .skills h3, .interests h3 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
    padding-bottom: 0.5rem;
}

/* Add pink accents to section headers */
.education h3::after, .experience h3::after, .skills h3::after, .interests h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.8;
}

.edu-item, .exp-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.edu-item::before, .exp-item::before {
    content: none; /* Remove the SVG background */
}

.edu-item img, .exp-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 0;
    margin-top: 0.25rem;
}

.year {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 500;
    margin-top: 0.5rem;
    display: block;
    text-align: center;
}

.degree h4, .position h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.degree p, .position p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skills-list span {
    padding: 0.4rem 1rem;
    background-color: var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
}

.skills-list span:hover {
    background-color: var(--accent-hover);
    color: var(--background-color);
    transform: translateY(-2px);
}

.interest-item {
    margin-bottom: 1.5rem;
}

.interest-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    /* Add pink hover effect to interest items */
    position: relative;
}

.interest-item h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.interest-item:hover h4::after {
    width: 100%;
}

.interest-item p {
    margin-bottom: 0;
}

/* ===== Contact Section ===== */
.contact {
    padding: 8rem 2.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 2.5rem;
    text-align: center;
}

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

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--medium-gray);
}

.contact-link:hover {
    border-color: var(--accent-color);
}

.label {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ===== Footer ===== */
footer {
    padding: 2.5rem;
    border-top: 1px solid var(--medium-gray);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    /* Add pink accent to footer */
    position: relative;
}

.footer-content::before {
    content: '';
    position: absolute;
    top: -2.5rem;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--accent-color);
    opacity: 0.3;
}

.location, .time {
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    font-size: 0.9rem;
    /* Add pink hover effect to social links */
    position: relative;
}

.social-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

.back-to-top {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--medium-gray);
    border-radius: 50%;
    transition: var(--transition);
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
    border-color: var(--accent-color);
}

/* ===== Modals ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: 1000;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.modal:target {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.close-modal {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.close-modal:hover {
    transform: rotate(90deg);
    /* Add pink accent to modal close button */
    color: var(--accent-color);
}

.modal-body h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.project-description {
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 3rem;
}

.project-image-full {
    width: 100%;
    margin-bottom: 4rem;
}

.project-image-full img {
    width: 100%;
    height: auto;
}

.project-details {
    max-width: 1000px;
    margin: 0 auto;
}

.details-section {
    margin-bottom: 3rem;
}

.details-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.details-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    padding: 0.4rem 1rem;
    background-color: var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
}

.details-section ul {
    padding-left: 1.5rem;
}

.details-section li {
    position: relative;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
}

.details-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 5px;
    height: 5px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.project-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--accent-color);
    color: white;
}

/* ===== Video Modal ===== */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.video-modal.open {
    opacity: 1;
    visibility: visible;
    display: flex;
}

.video-container {
    position: relative;
    width: 60%;
    max-width: 800px;
    aspect-ratio: 16/9;
    background: #000;
}

.close-video {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .hero h1 {
        font-size: clamp(6rem, 15vw, 12rem);
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .about-image {
        position: relative;
        top: 0;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .details-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 1.2rem;
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .logo {
        font-size: 0.8rem;
        order: 1;
    }
    
    nav ul {
        gap: 1.2rem;
        order: 2;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav a {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    .hero {
        padding: 0 1.2rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .edu-item, .exp-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .year {
        margin-bottom: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }
    
    .location {
        order: 1;
        font-size: 0.8rem;
    }
    
    .social-links {
        order: 2;
        gap: 1.5rem;
    }
    
    .social-links a {
        font-size: 0.8rem;
        padding: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 1rem;
        gap: 0.8rem;
    }
    
    .logo {
        font-size: 0.75rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    .hero h1 {
        font-size: clamp(4rem, 15vw, 8rem);
    }
    
    .intro-text p {
        font-size: 0.8rem;
    }
    
    .scroll-text {
        margin-top: 1rem;
    }
    
    .projects, .about, .contact {
        padding: 6rem 1.2rem;
    }
    
    .modal-content {
        padding: 1.2rem;
    }
    
    .modal-body h2 {
        font-size: 2.5rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .project-link {
        width: 100%;
        justify-content: center;
    }
    
    .footer-content {
        gap: 1.2rem;
        padding: 1.5rem 1rem;
    }
    
    .location {
        font-size: 0.75rem;
    }
    
    .social-links {
        gap: 1.2rem;
    }
    
    .social-links a {
        font-size: 0.75rem;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to elements */
.about-content h2,
.about-text p,
.education h3,
.experience h3,
.skills h3,
.interests h3 {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.about-content h2 { animation-delay: 0.2s; }
.about-text p { animation-delay: 0.4s; }
.education h3 { animation-delay: 0.6s; }
.experience h3 { animation-delay: 0.8s; }
.skills h3 { animation-delay: 1s; }
.interests h3 { animation-delay: 1.2s; }

.edu-item, .exp-item {
    opacity: 0;
    animation: fadeInLeft 0.8s ease forwards;
}

.edu-item:nth-child(1) { animation-delay: 0.7s; }
.edu-item:nth-child(2) { animation-delay: 0.9s; }
.exp-item:nth-child(1) { animation-delay: 1.1s; }
.exp-item:nth-child(2) { animation-delay: 1.3s; }

.skills-list span {
    opacity: 0;
    animation: scaleIn 0.5s ease forwards;
}

.skills-list span:nth-child(1) { animation-delay: 1.1s; }
.skills-list span:nth-child(2) { animation-delay: 1.2s; }
.skills-list span:nth-child(3) { animation-delay: 1.3s; }
.skills-list span:nth-child(4) { animation-delay: 1.4s; }
.skills-list span:nth-child(5) { animation-delay: 1.5s; }
.skills-list span:nth-child(6) { animation-delay: 1.6s; }

.interest-item {
    opacity: 0;
    animation: fadeInRight 0.8s ease forwards;
}

.interest-item:nth-child(1) { animation-delay: 1.3s; }
.interest-item:nth-child(2) { animation-delay: 1.5s; }
.interest-item:nth-child(3) { animation-delay: 1.7s; }

/* Enhanced hover animations */
.project-card {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.project-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.skills-list span {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skills-list span:hover {
    transform: translateY(-4px) scale(1.05);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Back to top button animation */
.back-to-top {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* Hero Section Animations */
@keyframes heroTitleIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroTextIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroButtonIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroImageIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

.hero h1 {
    animation: heroTitleIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.intro-text {
    animation: heroTextIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

.scroll-text {
    animation: heroButtonIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

.three-d-element {
    animation: heroImageIn 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.5s;
    opacity: 0;
}

/* Remove old animation classes */
.hero h1.animate-in,
.intro-text.animate-in,
.scroll-text.animate-in {
    animation: none;
}

/* Add pink accent to decorative elements */
.decorative-element {
    opacity: 0.6;
    filter: hue-rotate(340deg) saturate(1.2);
}

/* Add pink hover effect to project cards */
.project-card:hover .project-info h3 {
    color: var(--accent-hover);
}

/* Fun Facts Section */
.fun-facts {
    max-width: 1400px;
    margin: 8rem auto 0;
    padding: 0 2.5rem;
    text-align: left;
}

.fun-facts h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.fun-facts-intro {
    max-width: 600px;
    margin-bottom: 3rem;
    font-size: 1rem;
    color: var(--dark-gray);
}

.fun-facts-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.interests-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.interest-item {
    text-align: left;
    padding: 0;
    background: none;
    margin-bottom: 1.5rem;
}

.interest-item:last-child {
    margin-bottom: 0;
}

.interest-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.interest-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--dark-gray);
}

.fun-facts-image {
    position: sticky;
    top: 120px;
    margin-top: -150px;
    margin-left:80px;
}

.fun-facts-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.fun-facts-image img:hover {
    transform: translateY(-3px);
}

.image-stack {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.image-stack img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.image-1 {
    position: relative;
    z-index: 2;
    margin-bottom: 20px;
}

.image-2 {
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

.image-stack:hover .image-1 {
    transform: translateY(-3px);
}

.image-stack:hover .image-2 {
    transform: translateY(3px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .fun-facts-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .fun-facts-image {
        position: relative;
        top: 0;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .fun-facts {
        margin-top: 6rem;
        padding: 0 1.2rem;
    }
    
    .fun-facts h2 {
        font-size: 1.8rem;
    }
}

/* ===== Project Detail Pages ===== */
.project-detail {
    padding: 8rem 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.project-header {
    margin-bottom: 4rem;
}

.project-header h1 {
    font-size: 3.5rem;
    margin: 1rem 0;
}

.project-subtitle {
    font-size: 1.2rem;
    color: var(--dark-gray);
    max-width: 800px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.project-gallery {
    position: sticky;
    top: 120px;
}

.main-image {
    margin-bottom: 2rem;
}

.main-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.info-section p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tags span {
    padding: 0.4rem 1rem;
    background-color: var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.tech-tags span:hover {
    background-color: var(--accent-hover);
    color: var(--background-color);
}

.info-section ul {
    list-style: none;
    padding: 0;
}

.info-section li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.info-section li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background-color: var(--light-gray);
    border-radius: 100px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .project-gallery {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .project-detail {
        padding: 6rem 1.2rem;
    }
    
    .project-header h1 {
        font-size: 2.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        width: 100%;
        justify-content: center;
    }
}

#three-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

#three-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.logo-year {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px; /* Match the image width */
}

h2 {
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
}

h3 {
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

h4 {
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

/* ===== Image Modal Slideshow ===== */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.image-modal .modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.slide.active {
    display: flex;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
}

/* Navigation arrows */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: var(--transition);
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.next {
    right: 20px;
}

.prev {
    left: 20px;
}

.prev:hover, .next:hover {
    background-color: var(--accent-color);
    color: var(--background-color);
}

/* Dots/circles */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: var(--transition);
}

.dot.active, .dot:hover {
    background-color: var(--accent-color);
}

/* Make images clickable */
.main-image img, .gallery-grid img {
    cursor: pointer;
    transition: var(--transition);
}

.main-image img:hover, .gallery-grid img:hover {
    transform: scale(1.02);
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .prev, .next {
        padding: 12px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
    
    .close-modal {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
    
    .slide img {
        width: 100%;
        height: 100%;
    }
    
    .dots-container {
        bottom: 15px;
    }
    
    .dot {
        height: 10px;
        width: 10px;
    }
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.feature-column h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    margin-top: 1.5rem;
    color: var(--text-color);
}

.feature-column h4:first-child {
    margin-top: 0;
}

.feature-column ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.feature-column li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.feature-column li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.feature-column li strong {
    color: var(--accent-color);
    font-weight: 600;
}

/* Responsive adjustments for features grid */
@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-column h4 {
        font-size: 1.1rem;
        margin-top: 1.2rem;
    }
}

/* ===== Horizontal Gallery ===== */
.horizontal-gallery {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.horizontal-gallery img {
    flex: 1;
    max-width: 50%;
    height: 300px;
    object-fit: contain;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.horizontal-gallery img:hover {
    transform: scale(1.02);
}

/* Responsive adjustments for horizontal gallery */
@media (max-width: 768px) {
    .horizontal-gallery {
        flex-direction: column;
        gap: 1rem;
    }
    
    .horizontal-gallery img {
        max-width: 100%;
        height: 250px;
    }
}

/* ===== Additional Mobile Optimizations ===== */
@media (max-width: 768px) {
    /* Force mobile header layout */
    header {
        padding: 1rem 1.2rem !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    
    .logo {
        font-size: 0.8rem !important;
        order: 1 !important;
    }
    
    nav ul {
        gap: 1.2rem !important;
        order: 2 !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    
    nav a {
        font-size: 0.8rem !important;
        padding: 0.5rem 0.8rem !important;
    }
    
    /* Force mobile footer layout */
    .footer-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .location {
        order: 1 !important;
        font-size: 0.8rem !important;
    }
    
    .social-links {
        order: 2 !important;
        gap: 1.5rem !important;
    }
    
    .social-links a {
        font-size: 0.8rem !important;
        padding: 0.5rem 0 !important;
    }
}

@media (max-width: 480px) {
    /* Force very small screen optimizations */
    header {
        padding: 0.8rem 1rem !important;
        gap: 0.8rem !important;
    }
    
    .logo {
        font-size: 0.75rem !important;
    }
    
    nav ul {
        gap: 1rem !important;
    }
    
    nav a {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.6rem !important;
    }
    
    .footer-content {
        gap: 1.2rem !important;
        padding: 1.5rem 1rem !important;
    }
    
    .location {
        font-size: 0.75rem !important;
    }
    
    .social-links {
        gap: 1.2rem !important;
    }
    
    .social-links a {
        font-size: 0.75rem !important;
    }
}