:root {
    --primary-color: #1E2444;
    --text-color: #1E2444;
    --bg-color: #E6DFD3;
    --secondary-bg: #f5f5f5;
    --header-bg: rgba(255, 255, 255, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --transition-standard: 0.3s ease;
    --transform-up: translateY(-5px);
    --initial-hidden: translateY(30px);
}

.dark-mode {
    --primary-color: #E6DFD3;
    --text-color: #E6DFD3;
    --bg-color: #1E2444;
    --secondary-bg: #2d2d2d;
    --header-bg: rgba(26, 26, 26, 0.95);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: var(--transition);
    cursor: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 1000;
    transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.header-hidden {
    transform: translateY(-100%);
}

/* Optional: Add a gradient to make it even more subtle */
.header.scrolled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Update nav-links color for better visibility when transparent */
.header.scrolled .nav-links a {
    color: var(--text-color);
}


.header.scrolled .logo-svg {
    color: var(--text-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.pixel-logo {
    height: 30px;
}

.pixel-logo img {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 1px;
    display: flex;
    gap: 0.2rem;
}

.nav-links a span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.nav-links a:hover span {
    transform: translateY(-5px);
}

/* Add delay to each letter for a wave effect */
.nav-links a span:nth-child(1) { transition-delay: 0s; }
.nav-links a span:nth-child(2) { transition-delay: 0.05s; }
.nav-links a span:nth-child(3) { transition-delay: 0.1s; }
.nav-links a span:nth-child(4) { transition-delay: 0.15s; }
.nav-links a span:nth-child(5) { transition-delay: 0.2s; }
.nav-links a span:nth-child(6) { transition-delay: 0.25s; }
.nav-links a span:nth-child(7) { transition-delay: 0.3s; }
.nav-links a span:nth-child(8) { transition-delay: 0.35s; }

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links img {
    height: 20px;
}

/* Update social links styles */
.social-links svg {
    height: 20px;
    width: 20px;
    color: var(--text-color);
    transition: color 0.3s ease;
}



.header.scrolled .social-links svg {
    color: var(--text-color);
}

/* Optional hover effect */
.social-links a:hover svg {
    color: var(--primary-color);
}

/* Hero Styles */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #E6DFD3;
    padding: 2rem;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.mega-text {
    font-size: clamp(6rem, 20vw, 16rem);
    line-height: 0.85;
    font-weight: 800;
    color: #1E2444;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease-out;
    will-change: transform;
}

.mega-text span {
    display: block;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: heroTextReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.mega-text span:first-child {
    animation-delay: 0.3s;
}

.mega-text span:last-child {
    animation-delay: 0.5s;
}

.scrolling-text {
    overflow: hidden;
    padding: 1.5rem 0;
    margin-top: 2rem;
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.text-track {
    display: flex;
    gap: 2rem;
    color: #1E2444;
    font-size: 1.2rem;
    font-weight: 500;
    white-space: nowrap;
    animation: scroll 30s linear infinite;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.text-track span {
    display: inline-block;
}

.separator {
    opacity: 0.3;
    font-weight: 300;
    margin: 0 0.5rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Custom Cursor */
.custom-cursor {
    width: 20px;
    height: 20px;
    background: var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background-color 0.3s;
    mix-blend-mode: difference;
}

/* Add hover state class */
.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--secondary-bg);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Section Spacing and Common Styles */
section {
    padding: 120px 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
}

/* Hero Section Specific */
.hero {
    background: linear-gradient(135deg, rgba(0,200,255,0.1) 0%, rgba(0,0,0,0) 100%);
    min-height: 100vh;
    padding-top: 150px;
}

/* About Section Specific */
.about {
    background-color: #000;
    color: #fff;
    padding: 6rem 2rem;
    height: 100vh;
    min-height: 1200px;
    display: flex;
    align-items: center;
}

.about-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 4rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    letter-spacing: 0.5rem;
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: start;
    opacity: 0;
    transform: translateY(30px);
}

.about-content.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.about-image-container {
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
}

.about-image-container.visible {
    animation: fadeInLeft 0.5s ease 0.2s forwards;
}

.location-tag {
    position: absolute;
    top: -2rem;
    left: 0;
    font-size: 0.8rem;
    opacity: 0.7;
    letter-spacing: 0.1em;
    opacity: 0;
}

.location-tag.visible {
    animation: fadeIn 0.5s ease 0.3s forwards;
}

.about-image {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    background: #E6DFD3;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.name-tag {
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 1.2rem;
    letter-spacing: 0.5em;
    opacity: 0.7;
    opacity: 0;
}

.name-tag.visible {
    animation: fadeIn 0.5s ease 0.3s forwards;
}

.about-text {
    color: #fff;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0;
    transform: translateX(50px);
}

.about-text.visible {
    animation: fadeInRight 0.5s ease 0.2s forwards;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: 2px;
    margin-top: 2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-button:hover {
    background: #E6DFD3;
}

/* Media Queries */
@media (max-width: 1024px) {
    .about { min-height: 1400px; }
    .tab-content { height: 1100px; }
    .skills-text,
    .hobbies-text {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    /* Other 1024px rules */
}

@media (max-width: 768px) {
    .about-title {
        font-size: clamp(2rem, 6vw, 4rem);
    }

    .about-text h2 {
        font-size: 2rem;
    }

    .name-tag {
        display: none;
    }
}

/* Projects Section Specific */
.projects {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    margin-bottom: -2rem;
}

.projects-title {
    font-size: clamp(5rem, 12vw, 10rem);
    margin-bottom: 6rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    letter-spacing: 0.8rem;
    flex-wrap: wrap;
    position: relative;
}

.projects-title span {
    display: inline-block;
    position: relative;
    color: var(--text-color);
}

/* Ripple effect styles */
.projects-title span::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(30, 36, 68, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

/* Add 3D effect on hover */
.projects-title span {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

.projects-title span:hover {
    animation: letterPop 0.5s ease forwards;
}

@keyframes letterPop {
    0% {
        transform: translateY(0) scale(1) rotate(0);
    }
    50% {
        transform: translateY(-15px) scale(1.2) rotate(5deg);
    }
    100% {
        transform: translateY(-10px) scale(1.1) rotate(0);
    }
}

/* Add text shadow for depth */
.projects-title {
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1),
                 4px 4px 0 rgba(0, 0, 0, 0.05);
}

.projects-carousel {
    width: 100%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0;
}

.projects-container {
    position: relative;
    width: 100%;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-slide {
    position: absolute;
    width: 80%;
    height: 90%;
    transition: all 0.5s ease;
    opacity: 0;
    pointer-events: none;
}

.project-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
    padding: 2rem;
    border-radius: 4px;
    transition: transform 0.2s ease-out;
    will-change: transform;
}

.project-slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.project-slide.prev {
    transform: translateX(-100%) scale(0.7);
    opacity: 0.5;
    z-index: 1;
}
.project-slide.current {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.project-slide.next {
    transform: translateX(100%) scale(0.7);
    opacity: 0.5;
    z-index: 1;
}

.carousel-btn {
    background: none;
    border: none;
    color: var(--text-color);
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 3;
}

.carousel-btn:hover {
    transform: scale(1.2);
}

.project-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: white;
    z-index: 10;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.project-slide.current .project-info {
    opacity: 1;
    transform: translateY(0);
}

.info-title {
    padding: 1.5rem 2.5rem;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(8px);
}

.info-title h3 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 600;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-slide.current .info-title h3 {
    transform: translateY(0);
    opacity: 1;
}

.info-content {
    background: rgba(0, 0, 0, 0.85);
    padding: 2.5rem;
    position: absolute;
    bottom: 100%;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.info-title:hover + .info-content,
.info-content:hover {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.project-info p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-title:hover + .info-content p,
.info-content:hover p {
    transform: translateY(0);
    opacity: 0.95;
    transition-delay: 0.2s;
}

.tech-stack {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-stack span {
    background: rgba(255, 255, 255, 0.15);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    font-size: 1.1rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(4px);
}

/* Update tech stack animations */
.info-title:hover + .info-content .tech-stack span,
.info-content:hover .tech-stack span {
    transform: translateY(0);
    opacity: 1;
}

/* Stagger the tech stack items */
.info-title:hover + .info-content .tech-stack span:nth-child(1),
.info-content:hover .tech-stack span:nth-child(1) {
    transition-delay: 0.3s;
}

.info-title:hover + .info-content .tech-stack span:nth-child(2),
.info-content:hover .tech-stack span:nth-child(2) {
    transition-delay: 0.4s;
}

.info-title:hover + .info-content .tech-stack span:nth-child(3),
.info-content:hover .tech-stack span:nth-child(3) {
    transition-delay: 0.5s;
}

/* Media queries for responsive design */
@media (max-width: 768px) {
    .info-title h3 {
        font-size: 2rem;
    }
    
    .project-info p {
        font-size: 1.1rem;
    }
    
    .tech-stack span {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

.project-slide.current:hover .project-info {
    transform: translateY(0);
}

/* Contact Section Styles */
.contact {
    padding: 2rem 2rem 6rem;
    position: relative;
}

.contact-header {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: clamp(4rem, 15vw, 10rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.touch-title {
    margin-top: 0;
}

.contact-title span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-title span:hover {
    transform: translateY(-5px);
}

.contact-description {
    font-size: 1.8rem;
    line-height: 1.4;
    margin-bottom: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-email {
    margin-top: 2rem;
}

.contact-email a {
    display: inline-block;
    color: var(--bg-color);
    background-color: var(--text-color);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--text-color);
}

.contact-email a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: transparent;
    color: var(--text-color);
}

.contact-email a::before {
    content: '→';
    position: absolute;
    right: -30px;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-email a:hover::before {
    right: 1rem;
    opacity: 1;
}

.contact-email a:hover {
    padding-right: 3.5rem;
}

.social-links-contact {
    margin-top: 6rem;
}

.social-links-contact h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
}

.social-links-contact .links {
    display: flex;
    gap: 2rem;
}

.social-links-contact a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.social-links-contact a:hover {
    color: var(--primary-color);
}

/* Add eye icon */
.contact-title::before {
    
    font-size: 2rem;
    position: absolute;
    top: 2rem;
    left: 2rem;
}

/* Media Queries */
@media (max-width: 768px) {
    .contact-title {
        font-size: clamp(3rem, 12vw, 6rem);
    }

    .social-links-contact .links {
        flex-direction: column;
        gap: 1rem;
    }

    .contact-title::before {
        display: none;
    }

    .contact-description {
        font-size: 1.4rem;
    }

    .contact-email a {
        font-size: 1.4rem;
        padding: 1rem 2.5rem;
    }
}

/* Footer Styles */
.footer {
    background-color: #000;
    color: #fff;
    position: relative;
    padding: 80px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    gap: 4rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: #fff;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #fff;
}

.footer-social-links {
    display: flex;
    gap: 1.5rem;
}

.footer-social-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-social-links a:hover {
    color: #fff;
}

.footer-social-links svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Keep your existing section divider styles */
.section-divider {
    position: absolute;
    top: -40px; /* Adjust this value to match your design */
    left: 0;
    width: 100%;
    height: 40px;
    background: linear-gradient(to bottom right, transparent 49.5%, #000 50%);
    z-index: 1;
}

/* Media Queries */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-section {
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }
}

/* Responsive Spacing */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
} 

/* Optional: Add a subtle gradient overlay to the hero section */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(30, 36, 68, 0.03) 0%, transparent 100%);
    pointer-events: none;
} 

/* Alternate the divider direction for even sections */
section:nth-child(even) .section-divider {
    background: linear-gradient(to bottom left, transparent 49.5%, var(--primary-color) 50%);
} 

/* Update logo styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-svg {
    height: 30px;
    width: auto;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.logo-svg:hover {
    color: var(--primary-color);
} 

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
    opacity: 0.8;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

/* Dark Mode Scrollbar */
.dark-mode ::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: var(--primary-color);
} 

/* Remove default cursor styles */
a, button, .project-slide, input[type="submit"], 
.nav-links a, .social-links a, .footer-links a,
.contact-email a, .carousel-btn {
    cursor: none !important;
}

/* For Firefox compatibility */
* {
    cursor: none;
}

*:hover {
    cursor: none;
} 

/* Update Hero Text Animation */
.mega-text .name-line {
    display: flex;
    gap: 0.5rem;
}

.mega-text span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.mega-text span:hover {
    transform: translateY(-10px);
}

/* Add delay to each letter for wave effect */
.mega-text .name-line span:nth-child(1) { transition-delay: 0s; }
.mega-text .name-line span:nth-child(2) { transition-delay: 0.05s; }
.mega-text .name-line span:nth-child(3) { transition-delay: 0.1s; }
.mega-text .name-line span:nth-child(4) { transition-delay: 0.15s; }
.mega-text .name-line span:nth-child(5) { transition-delay: 0.2s; }

/* Update Projects Title Animation */
.projects-title span {
    display: inline-block;
    transition: transform 0.3s ease;
}

.projects-title span:hover {
    transform: translateY(-5px);
}

/* Add delay to each letter for wave effect */
.projects-title span:nth-child(1) { transition-delay: 0s; }
.projects-title span:nth-child(2) { transition-delay: 0.05s; }
.projects-title span:nth-child(3) { transition-delay: 0.1s; }
.projects-title span:nth-child(4) { transition-delay: 0.15s; }
.projects-title span:nth-child(5) { transition-delay: 0.2s; }
.projects-title span:nth-child(6) { transition-delay: 0.25s; }
.projects-title span:nth-child(7) { transition-delay: 0.3s; }
.projects-title span:nth-child(8) { transition-delay: 0.35s; } 

/* About Section Animations */
.about-content {
    opacity: 0;
    transform: translateY(30px);
}

.about-content.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.about-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.about-title.visible span {
    animation: fadeInStagger 0.3s ease forwards;
}

.about-image-container {
    opacity: 0;
    transform: translateX(-50px);
}

.about-image-container.visible {
    animation: fadeInLeft 0.5s ease 0.2s forwards;
}

.about-text {
    opacity: 0;
    transform: translateX(50px);
}

.about-text.visible {
    animation: fadeInRight 0.5s ease 0.2s forwards;
}

.location-tag {
    opacity: 0;
}

.location-tag.visible {
    animation: fadeIn 0.5s ease 0.3s forwards;
}

.name-tag {
    opacity: 0;
}

.name-tag.visible {
    animation: fadeIn 0.5s ease 0.3s forwards;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInStagger {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
} 

/* Update animation styles to prevent initial animation */
.about-content,
.about-image-container,
.about-text,
.location-tag,
.name-tag,
.about-title span {
    opacity: 0;
    will-change: transform, opacity;
}

/* Only apply animations when visible class is added */
.about-content.visible {
    animation: fadeInUp 0.5s ease forwards;
}

.about-image-container.visible {
    animation: fadeInLeft 0.5s ease forwards;
}

.about-text.visible {
    animation: fadeInRight 0.5s ease forwards;
}

.location-tag.visible {
    animation: fadeIn 0.5s ease forwards;
}

.name-tag.visible {
    animation: fadeIn 0.5s ease forwards;
}

.about-title.visible span {
    animation: fadeInStagger 0.3s ease forwards;
} 

/* Project Section Animations */
.projects-title {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
}

.projects-carousel {
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
}

.projects-title.visible {
    animation: projectFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.projects-carousel.visible {
    animation: projectFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

@keyframes projectFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Project Slides Animation */
.project-slide {
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-carousel.visible .project-slide.prev {
    opacity: 0.5;
    transform: translateX(-100%) scale(0.7);
}

.projects-carousel.visible .project-slide.current {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.projects-carousel.visible .project-slide.next {
    opacity: 0.5;
    transform: translateX(100%) scale(0.7);
} 

/* Hero Section Animations */
.hero-content {
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.mega-text span {
    display: block;
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    animation: heroTextReveal 1.2s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

.mega-text span:first-child {
    animation-delay: 0.3s;
}

.mega-text span:last-child {
    animation-delay: 0.5s;
}

.scrolling-text {
    opacity: 0;
    animation: heroFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 1s forwards;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
} 

/* Tab Buttons */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: none;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: #fff;
    opacity: 0.5;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s ease;
}

.tab-btn.active {
    opacity: 1;
}

.tab-btn.active::after {
    width: 100%;
}

/* Tab Content */
.tab-content {
    position: relative;
    height: 1000px;
    width: 100%;
    margin-top: 120px;
}

.tab-pane {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.3s ease;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 icons per row */
    gap: 2rem;
    padding: 2rem;
    align-content: start;
}

.skills-title {
    font-size: clamp(3rem, 8vw, 6rem);
    margin-bottom: 4rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    letter-spacing: 0.5rem;
    color: #fff;
}

.skills-title span {
    color: #fff;
    opacity: 1;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: skillFadeIn 0.5s ease forwards;
}

.skill-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-item:hover .skill-logo {
    transform: translateY(-5px);
}

.skill-name {
    font-size: 1rem;
    font-weight: 500;
    color:white;
}

/* Skills animation */
@keyframes skillFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add animation delay for each skill item */
.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }
.skill-item:nth-child(5) { animation-delay: 0.5s; }
.skill-item:nth-child(6) { animation-delay: 0.6s; } 

/* Media query for smaller screens */
@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 icons per row on mobile */
        gap: 1.5rem;
    }
} 

/* Update Skills Section Styles */
.skills-text {
    max-width: 600px;
    margin-right: 4rem;
}

.skills-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #fff;
}

.skills-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
    opacity: 0.9;
}

.skills-container {
    flex: 1;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    padding: 2rem;
}

/* Update media query */
@media (max-width: 1024px) {
    .skills-text {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
} 

/* Add these styles for the header when over dark sections */
.header.over-dark-section .nav-links a,
.header.over-dark-section .social-links svg,
.header.over-dark-section .logo-svg {
    color: #fff;
    transition: color 0.3s ease;
}

.header.over-dark-section .nav-links a:hover,
.header.over-dark-section .social-links a:hover svg {
    color: #E6DFD3;
} 

/* Update header link and icon styles */
.header .nav-links a,
.header .social-links svg,
.header .logo-svg {
    transition: color 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--text-color);
}

/* Styles for when header is over dark section */
.header.over-dark-section .nav-links a,
.header.over-dark-section .social-links svg,
.header.over-dark-section .logo-svg {
    color: #fff;
}

.header.over-dark-section .nav-links a:hover,
.header.over-dark-section .social-links a:hover svg {
    color: #E6DFD3;
} 

/* Add Hobbies Section Styles */
.hobbies-text {
    max-width: 600px;
    margin-right: 4rem;
    color: #fff;
}

.hobbies-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    color: #fff;
}

.hobbies-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #fff;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hobbies-image-container {
    width: 100%;
    height: 500px;
    overflow: hidden;
    border-radius: 4px;
    opacity: 0;
    transform: translateX(30px);
}

.hobbies-image-container.visible {
    animation: fadeInRight 1s ease forwards;
}

.hobbies-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hobbies-image:hover {
    transform: scale(1.05);
}

/* Update Tab Buttons for three items */
.tab-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    margin-left: 2rem;
}

/* Media query for smaller screens */
@media (max-width: 1024px) {
    .hobbies-text {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hobbies-image-container {
        height: 400px;
    }
} 

/* Media Queries */
@media (max-width: 768px) {
    .tab-content {
        margin-top: 80px;
    }
} 

@media (max-width: 1024px) {
    .about {
        min-height: 1400px;
    }
    
    .tab-content {
        height: 1100px;
    }
    
    .skills-text {
        margin-right: 0;
        margin-bottom: 3rem;
    }
    
    .hobbies-text {
        margin-right: 0;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .about {
        min-height: 1600px;
    }
    
    .tab-content {
        height: 1300px;
        margin-top: 80px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Update Skills and Hobbies animations */
.skills-text, .hobbies-text {
    opacity: 0;
    transform: translateX(30px);
}

.skills-text.visible, .hobbies-text.visible {
    animation: fadeInRight 1s ease 0.5s forwards;
}

.skills-grid {
    opacity: 0;
    transform: translateX(-30px);
}

.skills-grid.visible {
    animation: fadeInLeft 1s ease 0.5s forwards;
}

.hobbies-image-container {
    opacity: 0;
    transform: translateX(-30px);
}

.hobbies-image-container.visible {
    animation: fadeInLeft 1s ease 0.5s forwards;
}

/* Update tab pane animations */
.tab-pane {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
    position: relative;
}

/* Update title animations for all sections */
.about-title span,
.skills-title span,
.hobbies-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

.about-title.visible span,
.skills-title.visible span,
.hobbies-title.visible span {
    animation: fadeInStagger 0.3s ease forwards;
}

/* Add animation delays for staggered effect */
.about-title span:nth-child(1),
.skills-title span:nth-child(1),
.hobbies-title span:nth-child(1) { animation-delay: 0.1s; }
.about-title span:nth-child(2),
.skills-title span:nth-child(2),
.hobbies-title span:nth-child(2) { animation-delay: 0.2s; }
/* Continue for remaining spans */

/* Add specific styling for hobbies section image */
#hobbies-content .about-image-container {
    width: 80%;  /* Make the container smaller */
    margin-left: 10rem;  /* This will push it to the right */
}
#hobbies-content .about-image {
    width: 100%;  /* Keep full width within the smaller container */
    aspect-ratio: 3/4;
    background: #E6DFD3;
    overflow: hidden;
}

/* Adjust media queries for smaller screens */
@media (max-width: 1024px) {
    #hobbies-content .about-image-container {
        width: 90%;
    }
}

@media (max-width: 768px) {
    #hobbies-content .about-image-container {
        width: 100%;
    }
}

/* Add specific animation classes for hobbies section */
#hobbies-content .about-text {
    opacity: 0;
    transform: translateX(-50px);
}

#hobbies-content .about-image-container {
    opacity: 0;
    transform: translateX(50px);
}

#hobbies-content .about-text.visible {
    animation: fadeInLeft 0.5s ease forwards;
}

#hobbies-content .about-image-container.visible {
    animation: fadeInRight 0.5s ease forwards;
}

/* Keep existing animation keyframes */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Add styles for the horizontal scrollable gallery */
.hobbies-gallery {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--text-color) transparent;
    padding: 1rem 0;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.hobbies-gallery::-webkit-scrollbar {
    height: 6px;
}

.hobbies-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.hobbies-gallery::-webkit-scrollbar-thumb {
    background-color: var(--text-color);
    border-radius: 6px;
}

.gallery-container {
    display: flex;
    gap: 2rem;
    padding: 0 1rem;
    min-width: min-content;
}

.gallery-item {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 3/4;
    background: #E6DFD3;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Update hobbies image container styles */
#hobbies-content .about-image-container {
    width: 80%;
    margin-left: 10rem;
}

/* Adjust for smaller screens */
@media (max-width: 1024px) {
    #hobbies-content .about-image-container {
        width: 90%;
        margin-left: 5rem;
    }
    
    .gallery-item {
        width: 80vw;
    }
}

@media (max-width: 768px) {
    #hobbies-content .about-image-container {
        width: 100%;
        margin-left: 2rem;
    }
    
    .gallery-item {
        width: 70vw;
    }
}

/* Contact Section Animation Updates */
.contact-title {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.contact-title.visible {
    animation: titleFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.touch-title {
    margin-top: 0;
    opacity: 0;
    transform: translateY(30px);
}

.touch-title.visible {
    animation: titleFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.contact-description {
    opacity: 0;
    transform: translateY(30px);
}

.contact-description.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
}

.contact-email {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    display: inline-block;
}

.contact-email.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

/* Keep the original hover effect for the email button */
.contact-email a {
    display: inline-block;
    color: var(--bg-color);
    background-color: var(--text-color);
    text-decoration: none;
    font-size: 1.6rem;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid var(--text-color);
}

.contact-email a:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background-color: transparent;
    color: var(--text-color);
}

.contact-email a::before {
    content: '→';
    position: absolute;
    right: -30px;
    opacity: 0;
    transition: all 0.3s ease;
}

.contact-email a:hover::before {
    right: 1rem;
    opacity: 1;
}

.contact-email a:hover {
    padding-right: 3.5rem;
}

.contact-title span, .touch-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotate(10deg);
    animation: letterFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Add animation delays for each letter */
.contact-title span:nth-child(1) { animation-delay: 0.1s; }
.contact-title span:nth-child(2) { animation-delay: 0.15s; }
.contact-title span:nth-child(3) { animation-delay: 0.2s; }
.contact-title span:nth-child(4) { animation-delay: 0.25s; }
.contact-title span:nth-child(5) { animation-delay: 0.3s; }

.touch-title span:nth-child(1) { animation-delay: 0.35s; }
.touch-title span:nth-child(2) { animation-delay: 0.4s; }
.touch-title span:nth-child(3) { animation-delay: 0.45s; }
.touch-title span:nth-child(4) { animation-delay: 0.5s; }
.touch-title span:nth-child(5) { animation-delay: 0.55s; }

@keyframes letterFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) rotate(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg);
    }
}

@keyframes titleFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Add hover animation for description text */
.contact-description p {
    position: relative;
    display: inline-block;
    transition: transform 0.3s ease;
}

.contact-description p:hover {
    transform: translateY(-5px);
}

/* Add floating animation to the entire contact section */
.contact .container {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hidden {
    opacity: 0;
    transform: var(--initial-hidden);
}

.hover-up:hover {
    transform: var(--transform-up);
}

.transition-standard {
    transition: all var(--transition-standard);
}

.stagger-delay-1 { animation-delay: 0.1s; }
.stagger-delay-2 { animation-delay: 0.15s; }
.stagger-delay-3 { animation-delay: 0.2s; }
/* etc */

/* Mobile Device Message */
.mobile-message {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #f5eee0;
    color: #181f36;
    z-index: 99999;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    padding: 60px 0 0 40px;
    font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

.mobile-message p {
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    line-height: 1.2;
    text-transform: lowercase;
    margin: 0;
    padding: 0;
    color: #181f36;
    background: none;
    border: none;
    box-shadow: none;
    max-width: 90vw;
    word-break: break-word;
}

@media screen and (max-width: 768px) {
    body {
        margin: 0;
        padding: 0;
        overflow: hidden;
    }
    
    body > *:not(.mobile-message) {
        display: none !important;
    }

    .mobile-message {
        display: flex !important;
    }
}

