/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #050505;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background effects */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        #050505,
        #0d1021,
        #1a0f1f,
        #0d0d1a
    );
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    opacity: 0.98;
}

.gradient-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at top right,
        rgba(255, 51, 102, 0.05),
        transparent 60%
    ),
    radial-gradient(
        circle at bottom left,
        rgba(123, 47, 247, 0.05),
        transparent 60%
    );
    mix-blend-mode: overlay;
}

.noise-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyBAMAAADsEZWCAAAAGFBMVEUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVfJ/YAAAACHRSTlMzMzMzMzMzM85JBgUAAAABYktHRAH/Ai3eAAAASElEQVQ4y2NgQAP8DAwMjFgEBYCAkYGBgRGLICMDAwMTFkF0vTgMQdeLw5D/eAzBrRenIfj04jEEv17shpDQi82Qweba4QUAWscpuZcUCXAAAAAASUVORK5CYII=');
    mix-blend-mode: color-burn;
}

/* Content wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Greeting section */
.greeting-container {
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.greeting-box {
    position: relative;
    height: 200px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.greeting {
    position: absolute;
    font-size: 6rem;
    font-weight: 700;
    opacity: 0;
    text-align: center;
    width: 100%;
    left: 50%;
    transform: translate(-50%, 20px);
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--primary-light),
        var(--gradient-3),
        var(--primary-light),
        var(--primary)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 191, 166, 0.2));
    animation: gradientShift 4s ease infinite;
    will-change: transform, opacity, filter;
}

/* Premium gradient animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg) brightness(1.2);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg) brightness(1);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    display: block;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: 0 auto;
    animation: scrollArrow 2s infinite;
}

/* Name section */
.name-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.name-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.name-box {
    display: flex;
    align-items: center;
    gap: 50px;
    padding: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.name-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.025)
    );
    transform: translateY(-50%);
    transition: transform 0.5s ease;
}

.name-box:hover::before {
    transform: translateY(0);
}

.name-container {
    position: relative;
    height: 120px;
    min-width: 450px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.name {
    position: absolute;
    font-size: 4.5rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(100%);
    width: 100%;
    white-space: nowrap;
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--primary-light),
        var(--gradient-3),
        var(--primary-light),
        var(--primary)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameGradient 4s ease infinite;
    will-change: transform, opacity;
    left: 0;
    top: 0;
}

.constant-text {
    font-size: 4.5rem;
    font-weight: 600;
    white-space: nowrap;
    background: linear-gradient(
        45deg,
        var(--primary),
        var(--primary-light),
        var(--gradient-3),
        var(--primary-light),
        var(--primary)
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 191, 166, 0.2));
    animation: iamGradient 4s ease infinite;
    position: relative;
    z-index: 1;
    will-change: transform, font-family;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Remove the pencil texture effect */
.constant-text::after {
    display: none;
}

/* Add new gradient animation for I AM */
@keyframes iamGradient {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg) brightness(1.2);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg) brightness(1);
    }
}

/* Add hover effect for I AM */
.constant-text:hover {
    filter: brightness(1.2) drop-shadow(0 0 20px rgba(0, 191, 166, 0.3));
    transform: scale(1.02);
}

/* Optimize font sizes for different fonts */
.constant-text.font-1 {
    font-family: 'Great Vibes', cursive;
    font-size: 5.5rem;
}

.constant-text.font-2 {
    font-family: 'Dancing Script', cursive;
    font-size: 5.2rem;
}

.constant-text.font-3 {
    font-family: 'Pacifico', cursive;
    font-size: 4.8rem;
}

.constant-text.font-4 {
    font-family: 'Satisfy', cursive;
    font-size: 5rem;
}

.constant-text.font-5 {
    font-family: 'Abril Fatface', cursive;
    font-size: 4.8rem;
}

.constant-text.font-6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 4.8rem;
}

/* Smoother font change animation */
@keyframes fontScale {
    0% {
        transform: scale(0.95) rotate(-1deg);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02) rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.constant-text.font-changing {
    animation: fontScale 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Animations */
@keyframes scrollArrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-20px, -20px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(0, 0); }
}

/* Existing animations */
.name.roll-in {
    animation: 
        rollIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        nameGradient 4s ease infinite;
}

.name.roll-out {
    animation: 
        rollOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards,
        nameGradient 4s ease infinite;
}

.fade-in {
    animation: 
        fadeIn 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards,
        gradientShift 4s ease infinite !important;
    opacity: 1 !important;
}

.fade-out {
    animation: fadeOut 0.8s cubic-bezier(0.215, 0.61, 0.355, 1) forwards !important;
}

/* Enhanced fade animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, 40px) scale(0.9);
        filter: blur(15px) brightness(0.8);
    }
    20% {
        opacity: 0.4;
        transform: translate(-50%, 20px) scale(0.95);
        filter: blur(10px) brightness(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, 5px) scale(1.02);
        filter: blur(5px) brightness(1.1);
    }
    80% {
        opacity: 0.9;
        transform: translate(-50%, -2px) scale(1.01);
        filter: blur(2px) brightness(1.05);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        filter: blur(0) brightness(1);
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
        filter: blur(0) brightness(1);
    }
    20% {
        opacity: 0.9;
        transform: translate(-50%, -2px) scale(1.01);
        filter: blur(2px) brightness(1.05);
    }
    50% {
        opacity: 0.5;
        transform: translate(-50%, -5px) scale(1.02);
        filter: blur(5px) brightness(0.9);
    }
    80% {
        opacity: 0.2;
        transform: translate(-50%, -20px) scale(0.95);
        filter: blur(10px) brightness(0.8);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -40px) scale(0.9);
        filter: blur(15px) brightness(0.7);
    }
}

@keyframes rollIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    20% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes rollOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    80% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* Add a subtle glow effect */
.name-box::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.05) 0%,
        transparent 70%
    );
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        opacity: 0.5;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .greeting {
        font-size: 4rem;
    }
    
    .name-container {
        min-width: 300px;
        height: 100px;
    }
    
    .constant-text,
    .name {
        font-size: 3.5rem;
    }
    
    .name-box {
        padding: 40px;
        gap: 30px;
    }

    .constant-text.font-1 { font-size: 4.2rem; }
    .constant-text.font-2 { font-size: 4rem; }
    .constant-text.font-3 { font-size: 3.8rem; }
    .constant-text.font-4 { font-size: 3.8rem; }
    .constant-text.font-5 { font-size: 3.6rem; }
    .constant-text.font-6 { font-size: 3.6rem; }
}

@media (max-width: 480px) {
    .greeting {
        font-size: 3rem;
    }
    
    .name-container {
        min-width: 250px;
        height: 80px;
    }
    
    .constant-text,
    .name {
        font-size: 2.8rem;
    }
    
    .name-box {
        padding: 30px;
        gap: 20px;
    }

    .constant-text.font-1 { font-size: 3.4rem; }
    .constant-text.font-2 { font-size: 3.2rem; }
    .constant-text.font-3 { font-size: 3rem; }
    .constant-text.font-4 { font-size: 3rem; }
    .constant-text.font-5 { font-size: 2.8rem; }
    .constant-text.font-6 { font-size: 2.8rem; }
}

/* Add these styles for the About section */
.about-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    background: linear-gradient(45deg, #FFFFFF, #A0A0A0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-image {
    flex-shrink: 0;
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.image-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
}

/* Add hover effects */
.about-image:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.about-image:hover img {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.tagline {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 191, 166, 0.2);
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
}

.description p {
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.description p:hover {
    color: rgba(255, 255, 255, 1);
    transform: translateX(5px);
}

.intro-text {
    font-size: 1.2rem;
    font-weight: 500;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 191, 166, 0.2);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    list-style: none;
    margin-top: 20px;
}

.skills-list li {
    position: relative;
    padding-left: 25px;
    color: rgba(255, 255, 255, 0.9);
}

.skills-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Add responsive styles */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    .about-image {
        width: 300px;  /* Reduced width for mobile */
        height: 400px; /* Maintain aspect ratio */
        margin: 0 auto;
    }

    .about-text {
        width: 100%;
        padding: 0;
    }

    .tagline {
        font-size: 1.4rem;
        text-align: center;
    }

    .description {
        text-align: left;  /* Changed from center to left for better readability */
        font-size: 1rem;
    }

    .about-box {
        padding: 30px 20px;  /* Reduced padding */
    }
}

@media (max-width: 480px) {
    .about-image {
        width: 260px;  /* Further reduced width */
        height: 350px;
    }

    .about-box {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }

    .tagline {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }

    .description {
        font-size: 0.95rem;
    }
}

/* Add styles for very small devices */
@media (max-width: 320px) {
    .about-image {
        width: 220px;
        height: 300px;
    }

    .about-box {
        padding: 15px 10px;
    }
}

/* Fix for tablets */
@media (min-width: 768px) and (max-width: 1024px) {
    .about-content {
        flex-direction: column;
        align-items: center;
    }

    .about-image {
        width: 350px;
        height: 450px;
    }

    .about-text {
        width: 100%;
    }
}

/* Ensure the section is visible */
.about-section {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: auto !important;  /* Changed from 100vh */
    padding: 60px 0;
}

.about-section.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* Update theme styles */
body.dark-mode {
    background-color: #0a0a0a;
    color: #ffffff;
}

body.dark-mode .gradient-overlay {
    opacity: 0.8;
}

body.dark-mode .theme-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .theme-button svg {
    stroke: white;
}

body.dark-mode .moon-icon {
    display: none;
}

body.dark-mode .sun-icon {
    display: block;
}

body.dark-mode .name-box,
body.dark-mode .about-box {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

body.dark-mode .greeting,
body.dark-mode .name,
body.dark-mode .constant-text {
    color: white;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

body.dark-mode .description p {
    color: rgba(255, 255, 255, 0.9);
}

/* Ensure dark mode styles are applied by default */
.gradient-overlay {
    opacity: 0.8;
}

.theme-button {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-button svg {
    stroke: white;
}

.moon-icon {
    display: none;
}

.sun-icon {
    display: block;
}

/* Add flag animation styles */
.flag-emoji {
    display: inline-block;
    animation: waveFlag 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes waveFlag {
    0% {
        transform: rotate(0deg);
    }
    10% {
        transform: rotate(14deg);
    }
    20% {
        transform: rotate(-8deg);
    }
    30% {
        transform: rotate(14deg);
    }
    40% {
        transform: rotate(-4deg);
    }
    50% {
        transform: rotate(10deg);
    }
    60% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Emoji animations */
.wave-emoji {
    display: inline-block;
    animation: waveHand 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

.tool-emoji {
    display: inline-block;
    animation: toolBounce 1s ease-in-out infinite;
}

.rocket-emoji {
    display: inline-block;
    animation: rocketFly 1.5s ease-in-out infinite;
}

.sparkle-emoji {
    display: inline-block;
    animation: sparkle 1s ease-in-out infinite;
}

.heart-emoji {
    display: inline-block;
    animation: heartBeat 1s ease-in-out infinite;
}

.book-emoji {
    display: inline-block;
    animation: bookFlip 1.5s ease-in-out infinite;
}

.food-emoji {
    display: inline-block;
    animation: foodWiggle 1.5s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes waveHand {
    0% { transform: rotate(0deg); }
    10% { transform: rotate(14deg); }
    20% { transform: rotate(-8deg); }
    30% { transform: rotate(14deg); }
    40% { transform: rotate(-4deg); }
    50% { transform: rotate(10deg); }
    60% { transform: rotate(0deg); }
    100% { transform: rotate(0deg); }
}

@keyframes toolBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px) rotate(-5deg); }
}

@keyframes rocketFly {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes sparkle {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
}

@keyframes bookFlip {
    0% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

@keyframes foodWiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
}

/* Journey Section and Timeline Styles */
.journey-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    position: relative;
    z-index: 1;
    opacity: 1;
    transform: none;
}

.journey-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    position: relative;
    overflow: visible;
    width: 100%;
}

.timeline {
    position: relative;
    padding: 40px 0;
    margin: 0 auto;
    max-width: 1200px;
    overflow: visible;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 191, 166, 0.2),
        rgba(77, 208, 225, 0.2),
        rgba(100, 255, 218, 0.2)
    );
    filter: drop-shadow(0 0 8px rgba(0, 191, 166, 0.3));
}

.timeline-item {
    position: relative;
    margin-bottom: 100px;
    width: calc(50% - 30px);
    visibility: visible;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    transform: translateX(50px);
}

.timeline-item:nth-child(even).visible {
    transform: translateX(0);
}

.timeline-dot {
    position: absolute;
    right: -46px;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    box-shadow: 
        0 0 20px rgba(0, 191, 166, 0.4),
        0 0 40px rgba(0, 191, 166, 0.2);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-item:nth-child(even) .timeline-dot {
    right: auto;
    left: -46px;
}

.timeline-content {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15);
}

.timeline-content h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.timeline-content p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 1.1rem;
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 
        0 0 30px rgba(0, 191, 166, 0.6),
        0 0 60px rgba(0, 191, 166, 0.3);
}

/* Special styles for the last item */
.timeline-end .timeline-dot {
    background: linear-gradient(45deg, var(--primary), var(--gradient-3));
    animation: endDotGlow 2s ease-in-out infinite;
}

.timeline-end .timeline-content {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.02)
    );
}

@keyframes endDotGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 191, 166, 0.4);
    }
    50% {
        transform: scale(1.3);
        box-shadow: 
            0 0 30px rgba(0, 191, 166, 0.6),
            0 0 60px rgba(0, 191, 166, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        opacity: 0;
        transform: translateX(-30px);
    }

    .timeline-item.visible {
        opacity: 1;
        transform: translateX(0);
    }

    .timeline-dot {
        left: -46px !important;
        right: auto !important;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .timeline-content p {
        font-size: 1rem;
    }
}

/* Interests section styles */
.interests-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.interests-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.interest-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.interest-item:hover {
    transform: translateY(-10px);
}

.interest-emoji {
    font-size: 3rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.interest-item h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.interest-item p {
    color: rgba(255, 255, 255, 0.9);
}

/* Tech section styles */
.tech-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.05);
}

.tech-emoji {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

.tech-item h3 {
    font-size: 1.3rem;
    color: var(--primary);
}

/* New animations */
@keyframes floatEmoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add new gradient animation */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg);
    }
}

/* Add hover effect */
@keyframes pulseScale {
    0%, 100% {
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        transform: translate(-50%, 0) scale(1.05);
    }
}

/* Add hover effect */
.greeting:hover {
    animation: 
        gradientShift 4s ease infinite,
        pulseGlow 2s ease-in-out infinite !important;
}

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 15px rgba(0, 191, 166, 0.2)) brightness(1);
        transform: translate(-50%, 0) scale(1);
    }
    50% {
        filter: drop-shadow(0 0 25px rgba(0, 191, 166, 0.3)) brightness(1.2);
        transform: translate(-50%, 0) scale(1.03);
    }
}

/* Update name styles with gradient animation */
@keyframes nameGradient {
    0% {
        background-position: 0% 50%;
        filter: hue-rotate(0deg) brightness(1);
    }
    50% {
        background-position: 100% 50%;
        filter: hue-rotate(180deg) brightness(1.2);
    }
    100% {
        background-position: 0% 50%;
        filter: hue-rotate(360deg) brightness(1);
    }
}

/* Add hover effect for names */
.name:hover {
    filter: brightness(1.2);
    text-shadow: 0 0 20px rgba(0, 191, 166, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Special ending styles for timeline */
.timeline-end .timeline-dot.glow {
    background: linear-gradient(45deg, var(--primary), var(--gradient-3));
    animation: dotGlow 2s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 191, 166, 0.4),
        0 0 40px rgba(0, 191, 166, 0.2);
}

.timeline-content.special {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: specialGlow 3s ease-in-out infinite;
}

.timeline-content.special h3 {
    background: linear-gradient(45deg, var(--primary), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.6rem;
}

.timeline-content.special p {
    color: rgba(255, 255, 255, 0.95);
    font-style: italic;
}

@keyframes dotGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 20px rgba(0, 191, 166, 0.4);
    }
    50% {
        transform: scale(1.2);
        box-shadow: 0 0 30px rgba(0, 191, 166, 0.6);
    }
}

@keyframes specialGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(0, 191, 166, 0.2),
            inset 0 0 20px rgba(0, 191, 166, 0.1);
        transform: translateY(0);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(0, 191, 166, 0.3),
            inset 0 0 30px rgba(0, 191, 166, 0.15);
        transform: translateY(-5px);
    }
}

/* Update responsive styles */
@media (max-width: 768px) {
    .timeline-content.special {
        margin-left: -10px;
    }
    
    .timeline-content.special h3 {
        font-size: 1.4rem;
    }
}

/* Add these CSS variables at the very top of the file, right after the reset styles */
:root {
    --primary: #00BFA6;
    --primary-light: #4DD0E1;
    --primary-dark: #00897B;
    --accent: #64FFDA;
    --gradient-1: #00BFA6;
    --gradient-2: #4DD0E1;
    --gradient-3: #64FFDA;
}

/* Farewell section styles */
.farewell-section {
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 100px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.farewell-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.farewell-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px;
    position: relative;
    overflow: visible;
    text-align: center;
}

.farewell-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 30px;
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: floatBubble 3s ease-in-out infinite;
}

.farewell-text {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.farewell-text:last-child {
    margin-bottom: 0;
}

@keyframes floatBubble {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Add hover effect */
.message-bubble:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: scale(1.02);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .farewell-title {
        font-size: 2rem;
    }
    
    .farewell-text {
        font-size: 1.1rem;
    }
    
    .message-bubble {
        padding: 30px;
    }
}

@media (max-width: 480px) {
    .farewell-title {
        font-size: 1.8rem;
    }
    
    .farewell-text {
        font-size: 1rem;
    }
    
    .message-bubble {
        padding: 25px;
    }
}

/* Timeline emoji base styles */
.timeline-emoji {
    display: inline-block;
    font-size: 1.4rem;
    margin-left: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.timeline-emoji:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* Specific emoji animations */
.sprout-emoji {
    animation: sproutGrow 2s ease-in-out infinite;
}

.book-timeline-emoji {
    animation: bookBounce 2s ease-in-out infinite;
}

.rocket-timeline-emoji {
    animation: rocketFloat 2s ease-in-out infinite;
}

.bulb-emoji {
    animation: bulbGlow 2s ease-in-out infinite;
}

.cloud-emoji {
    animation: cloudFloat 3s ease-in-out infinite;
}

.star-emoji {
    animation: starTwinkle 2s ease-in-out infinite;
}

.sparkle-timeline-emoji {
    animation: sparkleShine 1.5s ease-in-out infinite;
}

/* Animation keyframes */
@keyframes sproutGrow {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(5deg); }
}

@keyframes bookBounce {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-5px) rotate(-10deg); }
}

@keyframes rocketFloat {
    0%, 100% { transform: translateY(0) rotate(0); }
    50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes bulbGlow {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

@keyframes cloudFloat {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

@keyframes starTwinkle {
    0%, 100% { 
        transform: scale(1);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.2);
        filter: brightness(1.4);
    }
}

@keyframes sparkleShine {
    0%, 100% { 
        transform: scale(1) rotate(0);
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.2) rotate(15deg);
        filter: brightness(1.3);
    }
}

/* General responsive adjustments */
@media (max-width: 1200px) {
    .content-wrapper {
        padding: 0 40px;
    }

    .greeting {
        font-size: 5rem;
    }

    .name, .constant-text {
        font-size: 4rem;
    }

    .name-container {
        min-width: 400px;
    }
}

@media (max-width: 992px) {
    .greeting {
        font-size: 4.5rem;
    }

    .name-box {
        padding: 40px;
        gap: 30px;
    }

    .name-container {
        min-width: 350px;
        height: 100px;
    }

    .timeline-content h3 {
        font-size: 1.4rem;
    }

    .tech-grid, .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        padding: 0 20px;
    }

    .greeting {
        font-size: 3.5rem;
    }

    .name, .constant-text {
        font-size: 3rem;
    }

    .name-container {
        min-width: 280px;
        height: 80px;
    }

    .name-box {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
        text-align: center;
    }

    .about-content {
        flex-direction: column;
        gap: 30px;
    }

    .about-image {
        width: 300px;  /* Reduced width for mobile */
        height: 400px; /* Maintain aspect ratio */
        margin: 0 auto;
    }

    .section-title {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.6rem;
        text-align: center;
    }

    .description {
        text-align: left;  /* Changed from center to left for better readability */
    }

    .description p:hover {
        transform: none;
    }

    /* Timeline mobile adjustments */
    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        width: calc(100% - 60px);
        margin-left: 60px !important;
    }

    .timeline-dot {
        left: -46px !important;
        right: auto !important;
    }

    .timeline-content {
        padding: 20px;
    }

    /* Interests and Tech sections */
    .interests-grid, .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .interest-item, .tech-item {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .greeting {
        font-size: 2.8rem;
    }

    .name, .constant-text {
        font-size: 2.5rem;
    }

    .name-container {
        min-width: 220px;
        height: 70px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 1.4rem;
    }

    .description {
        font-size: 0.95rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
    }

    .timeline-content p {
        font-size: 0.95rem;
    }

    /* Farewell section */
    .farewell-title {
        font-size: 1.6rem;
    }

    .message-bubble {
        padding: 20px;
    }

    .farewell-text {
        font-size: 0.95rem;
    }
}

/* For very small devices */
@media (max-width: 360px) {
    .greeting {
        font-size: 2.4rem;
    }

    .name, .constant-text {
        font-size: 2.2rem;
    }

    .name-container {
        min-width: 200px;
    }

    .name-box {
        padding: 20px;
    }
}

/* For tablets in portrait mode */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    .name-box {
        padding: 40px;
    }

    .name-container {
        min-width: 320px;
    }

    .interests-grid, .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* For landscape mode on mobile devices */
@media (max-height: 600px) and (orientation: landscape) {
    .greeting-container {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .name-section, 
    .about-section, 
    .journey-section,
    .interests-section,
    .tech-section,
    .farewell-section {
        padding: 60px 0;
    }
}

/* Ensure animations work smoothly on mobile */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Enhanced Footer styles */
.footer {
    padding: 30px 0;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-text {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.crafted-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    background: linear-gradient(45deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 2s ease-in-out infinite;
}

.by-text {
    font-family: 'Dancing Script', cursive;
    font-size: 1.4rem;
    opacity: 0.9;
}

.footer-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    background: linear-gradient(45deg, var(--primary), var(--gradient-3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    animation: glow 2s ease-in-out infinite;
    transition: all 0.3s ease;
}

.footer-name:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.heart-beat {
    display: inline-block;
    font-size: 1.3rem;
    animation: heartPulse 1.2s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 0, 0, 0.3));
}

@keyframes heartPulse {
    0%, 100% { 
        transform: scale(1); 
        filter: brightness(1);
    }
    50% { 
        transform: scale(1.2); 
        filter: brightness(1.3) drop-shadow(0 0 15px rgba(255, 0, 0, 0.4));
    }
}

@keyframes shimmer {
    0%, 100% {
        filter: brightness(1) drop-shadow(0 0 10px rgba(0, 191, 166, 0.2));
    }
    50% {
        filter: brightness(1.2) drop-shadow(0 0 15px rgba(0, 191, 166, 0.3));
    }
}

@keyframes glow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(0, 191, 166, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(0, 191, 166, 0.4));
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-text {
        font-size: 1rem;
    }
    .crafted-text, .by-text {
        font-size: 1.2rem;
    }
    .footer-name {
        font-size: 1.1rem;
    }
    .heart-beat {
        font-size: 1.1rem;
    }
}

/* Add these image protection styles */
.protected-image {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-touch-callout: none;
}

.image-container {
    position: relative;
}

.image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background: transparent;
    pointer-events: none;
}

/* Optional: Add a subtle overlay on hover to indicate the image is protected */
.image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.02);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-container:hover::after {
    opacity: 1;
}

/* Add watermark styles */
.watermark {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 3;
    opacity: 0.7;
}

/* Make the watermark more visible on hover */
.image-container:hover .watermark {
    opacity: 1;
} 