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

.poppins-regular {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    overflow-x: hidden;
}

/* Animated background particles */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(64, 224, 208, 0.8);
    border-radius: 50%;
    animation: float 15s infinite linear;
    opacity: 0.3;
    box-shadow: 0 0 10px rgba(64, 224, 208, 0.5);
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translateY(0) rotate(180deg);
        opacity: 1;
    }
    70% {
        transform: translateY(50vh) rotate(180deg);
        opacity: 0.5;
    }
    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Comet/falling star effect */
.comet {
    position: absolute;
    animation: cometFall 7s ease-out infinite;
    box-shadow: 
        0 0 20px rgba(64, 224, 208, 0.8),
        0 0 40px rgba(64, 224, 208, 0.6),
        0 0 60px rgba(64, 224, 208, 0.4); 
}

/* Comet tail */
.comet::before {
    content: '';
    position: absolute;
    top: 25%;
    left: 25%;
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(64, 224, 208, 0.7), transparent);
    transform: translate(-100%, -50%) rotate(160deg);
    border-radius: 2px;
    opacity: 0.8;
    box-shadow: 0 0 15px rgba(64, 224, 208, 0.5);
}

@keyframes cometFall {
    0% {
        transform: translate(-100px, -100px) rotate(45deg) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: translate(-50px, -50px) rotate(45deg) scale(1);
    }
    90% {
        opacity: 1;
        transform: translate(calc(100vw + 50px), calc(100vh + 50px)) rotate(45deg) scale(1);
    }
    100% {
        transform: translate(calc(100vw + 100px), calc(100vh + 100px)) rotate(45deg) scale(0.5);
        opacity: 0;
    }
}

/* Creative floating navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 15, 35, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(64, 224, 208, 0.3);
    border-radius: 50px;
    z-index: 1000;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    padding: 0.5rem 2rem;
    /* animation: navFloat 6s ease-in-out infinite; */
}

@keyframes navFloat {
    0%,
    25% {
        transform: translateX(-50%) translateY(0px);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
    75% {
        transform: translateX(-50%) translateY(5px);
    }
    100% {
        transform: translateX(-50%) translateY(0px);
    }
}

nav.scrolled {
    background: rgba(15, 15, 35, 0.95);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(64, 224, 208, 0.5);
}

.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #40e0d0, #48cae4, #ffffff, #40e0d0);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    animation: colorWave 4s ease-in-out infinite;
    position: relative;
}

@keyframes waveText {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-5px) rotate(1deg);
    }

    50% {
        transform: translateY(-8px) rotate(0deg);
    }

    75% {
        transform: translateY(-3px) rotate(-1deg);
    }
}

@keyframes colorWave {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.logo::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 0.8rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5) rotate(0deg);
    }

    50% {
        opacity: 1;
        transform: scale(1) rotate(180deg);
    }
}

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

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.nav-links a:hover {
    background: rgba(64, 224, 208, 0.1);
    border-color: rgba(64, 224, 208, 0.3);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px rgba(64, 224, 208, 0.2);
}

/* Sections */
section {
    min-height: 100vh;
    padding: 6rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}


@keyframes waveHero {
    0% { transform: translateY(0px) rotate(0deg); }
    10% { transform: translateY(-4px) rotate(0.4deg); }
    20% { transform: translateY(-7px) rotate(0.7deg); }
    30% { transform: translateY(-10px) rotate(1deg); }
    40% { transform: translateY(-13px) rotate(0.7deg); }
    50% { transform: translateY(-16px) rotate(0deg); }
    60% { transform: translateY(-13px) rotate(-0.7deg); }
    70% { transform: translateY(-10px) rotate(-1deg); }
    80% { transform: translateY(-6px) rotate(-0.7deg); }
    90% { transform: translateY(-2px) rotate(-0.3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}


.hero-content h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #a4fff6, #2edcff, #71e4d8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* animation: glow 2s ease-in-out infinite alternate; */
    /* animation: waveHero 2s infinite; */
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(64, 224, 208, 0.3));
    }

    to {
        filter: drop-shadow(0 0 30px rgba(64, 224, 208, 0.6));
    }
}

.hero-content h3{
    font-family: fira-code-custom;
    color:#b8c5d6;
    font-size: 1.6rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #b8c5d6;
}

.cta-button {
    display: inline-block;
    margin-top: 100pxx;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #40e0d0, #48cae4);
    color: #0f0f23;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.4);
}

/* Cards */
.card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem 0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    line-height: 2; /* Increased space between lines */
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.1), transparent);
    transition: left 0.8s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(64, 224, 208, 0.3);
}


.columns{
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.columns .card{
    flex:1;
}


/* Grid layouts */
.grid {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    width: 100%;
    overflow: hidden;
}

/* Experience timeline */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background: linear-gradient(to bottom, #40e0d0, #48cae4);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    background: #40e0d0;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
}

/* Photo gallery */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* Creates 1:1 aspect ratio */
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(45deg, #40e0d0, #48cae4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.photo-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.photo-placeholder img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
}

/* Poetry section */
.poem {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(64, 224, 208, 0.3);
    border-radius: 15px;
    padding: 2rem;
    margin: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.poem:hover {
    border-color: rgba(64, 224, 208, 0.6);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(64, 224, 208, 0.2);
}

.poem-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #40e0d0;
    text-align: center;
    font-style: normal;
}

/* Poem grid layout */
.poems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* Poem modal */
.poem-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    overflow-y: auto;
}

.poem-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.poem-content {
    background: rgba(15, 15, 35, 0.95);
    border: 2px solid rgba(64, 224, 208, 0.5);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

.poem-content p{
    text-align: center;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.poem-content .poem-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #40e0d0;
    text-align: center;
}

.poem-content p {
    color: #b8c5d6;
    line-height: 1.8;
    font-style: italic;
    font-size: 1.1rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    font-weight: bold;
}

.modal-close:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
    transform: scale(1.1);
}

/* Contact form */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #40e0d0;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #40e0d0;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #40e0d0;
    transition: all 0.3s ease;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

.social-link:hover {
    background: #40e0d0;
    color: #0f0f23;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(64, 224, 208, 0.4);
}

/* Skills tags */
.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.skill-tag {
    background: rgba(64, 224, 208, 0.2);
    color: #40e0d0;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

/* Mobile responsiveness for new elements */
@media (max-width: 800px) {
    nav {
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        padding: 0.5rem 1rem;
    }

    .nav-container {
        gap: 1rem;
    }

    .nav-links {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    .reveal-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .reveal-btn {
        width: 80%;
        justify-content: center;
    }
    body{
        font-size: 14px;
    }
    .columns{
        flex-direction: column;
        gap: 1rem;
    }
    .timeline-item{
    .grid-3 .card {
        overflow: hidden;
        width: 100%;
        word-wrap: break-word;
    }
        overflow-x: hidden;
    }
}

/* Section titles */
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #40e0d0, #48cae4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    color: #40e0d0;
    margin-bottom: 1rem;
}

/* Hidden sections */
.hidden-section {
    display: none;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hidden-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Creative reveal buttons */
.reveal-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin: 4rem 0;
    flex-wrap: wrap;
}

.reveal-btn {
    position: relative;
    padding: 1.5rem 3rem;
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.1), rgba(72, 202, 228, 0.1));
    border: 2px solid rgba(64, 224, 208, 0.3);
    border-radius: 60px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    backdrop-filter: blur(20px);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.reveal-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(64, 224, 208, 0.3), transparent);
    transition: left 0.6s ease;
}

.reveal-btn:hover::before {
    left: 100%;
}

.reveal-btn:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 40px rgba(64, 224, 208, 0.3);
    border-color: rgba(64, 224, 208, 0.8);
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.2), rgba(72, 202, 228, 0.2));
}

.reveal-btn .icon {
    font-size: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.reveal-btn.active {
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.3), rgba(72, 202, 228, 0.3));
    border-color: #40e0d0;
    box-shadow: 0 0 30px rgba(64, 224, 208, 0.4);
}

.reveal-btn.active .icon {
    animation: spin 1s ease-in-out;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Close button for hidden sections */
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.close-btn:hover {
    background: rgba(255, 100, 100, 0.3);
    border-color: rgba(255, 100, 100, 0.5);
    transform: scale(1.1);
}

/* Enhanced sections with relative positioning for close button */
#photography.hidden-section,
#poetry.hidden-section {
    position: relative;
}