body {
    background: linear-gradient(to right, #000000 50%, #15001a, #00332a);
    background-attachment: fixed;
    min-height: 100vh;
    color: #f0f0f0;
    font-family: 'Poppins', sans-serif;
}

::selection {
    background: #555555;
    color: #ffffff;
}

.home-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    padding-top: 100px;
    box-sizing: border-box;
}

.left-section {
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.hero-text {
    position: absolute;
    z-index: 10;
    text-align: left;
    margin-right: 80px; /* Align with the shifted image */
    top: 0%;
}

.greeting {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
    animation: slideUp 1s ease-out both;
    animation-delay: 0.5s;
}

.name {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin: 0;
    color: #00ffd5; /* Blue-greenish */
    text-shadow: 0 0 10px rgba(0, 255, 213, 0.6), 0 0 20px rgba(0, 255, 213, 0.4);
    animation: slideUp 1s ease-out both;
    animation-delay: 1s;
}

.right-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align content to the left */
    padding: 20px;
    padding-left: 20px; /* Adjust spacing from center */
}

.typing-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.line-container {
    width: fit-content;
}

.typing-text {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem; /* Increased slightly */
    color: #e0e0e0;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 1px;
    width: 0;
    border-right: 3px solid #00ffd5;
}

.line1 {
    animation: 
        typing 1.5s steps(32, end) forwards,
        blink-caret 0.5s step-end 3 forwards;
}

.line2 {
    border-right-color: transparent; /* Hidden initially */
    animation: 
        typing 2s steps(21, end) forwards,
        blink-caret 0.75s step-end infinite;
    animation-delay: 1.6s; /* Starts after line 1 finishes */
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

.description-text {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem; /* Increased slightly */
    color: #b3b3b3;
    margin-top: 15px;
    line-height: 1.6;
    max-width: 600px;
    animation: slideUp 1s ease-out both;
    animation-delay: 1.5s;
    text-align: justify;
}

.resume-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
    animation: slideUp 1s ease-out both;
    animation-delay: 2s;
}

.resume-buttons {
    margin-top: 0;
    display: flex;
    gap: 20px;
    animation: slideUp 1s ease-out both;
    animation-delay: 2.2s;
}

.btn {
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-view {
    background-color: transparent;
    border-color: #00ffd5;
    color: #00ffd5;
}

.btn-view:hover {
    background-color: #00ffd5;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.4);
}

.btn-download {
    background-color: #d500f9;
    color: #fff;
    border-color: #d500f9;
}

.btn-download:hover {
    background-color: transparent;
    color: #d500f9;
    box-shadow: 0 0 15px rgba(213, 0, 249, 0.4);
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ffd5; }
}

.profile-photo {
    width: 100%;
    max-width: 400px; /* Increased size */
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
    margin-right: 80px; /* Shift to left */
    animation: slideUp 1s ease-out both, floatImage 4s ease-in-out infinite 1s;
}

.profile-photo:hover {
    transform: scale(1.02);
}

.hobbies-section {
    margin-top: 20px;
    width: 100%;
    animation: slideUp 1s ease-out both;
    animation-delay: 1.8s;
}

.hobbies-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: #e0e0e0;
    margin-bottom: 15px;
    font-weight: 600;
}

.hobbies-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hobby {
    background-color: transparent;
    border: 2px solid #00ffd5;
    color: #e0e0e0;
    padding: 8px 20px;
    border-radius: 25px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    cursor: default;
    transition: all 0.3s ease;
}

.btn-hobby:hover {
    background-color: #00ffd5;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 213, 0.6);
    cursor: text;
}

/* Responsive Design */
@media screen and (max-width: 1050px) {
    .home-container {
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
    }

    .hobbies-section {
        align-items: center;
        text-align: center;
        display: flex;
        flex-direction: column;
    }

    .hobbies-buttons {
        justify-content: center;
    }

    .left-section {
        width: 100%;
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        margin-bottom: 30px;
        padding-left: 40px;
    }

    .hero-text {
        position: relative;
        margin-right: 0;
        text-align: left;
        margin-bottom: 30px;
        top: auto;
    }

    .greeting {
        font-size: 2rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .right-section {
        width: 100%;
        align-items: center;
        padding: 20px 40px;
        text-align: center;
    }
    
    .profile-photo {
        max-width: 280px;
        margin-right: 0;
        align-self: center;
    }

    .typing-wrapper {
        align-items: center;
    }

    .typing-text {
        font-size: 1.2rem; /* Smaller font for mobile */
    }

    .description-text {
        text-align: justify;
        font-size: 0.9rem;
    }

    .resume-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media screen and (max-width: 480px) {
    .typing-text {
        font-size: 0.85rem;
    }
    
    .right-section {
        padding: 20px;
    }
    
    .left-section {
        padding-left: 20px;
    }
    
    .name {
        font-size: 2rem;
    }
}

@keyframes slideUp {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}