/* Optimized Home Section Layout */

/* Ensure hero section maintains proper dimensions */
#home.hero-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Main content container with better positioning */
#home .hero-content {
    width: 100%;
    height: 100vh;
    max-width: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 25vh; /* Move content up for better initial view */
    text-align: center;
    position: relative;
}

/* Hero title with better spacing */
#home .hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
    margin-bottom: 5px; /* Even closer spacing */
    letter-spacing: 0.08em;
    font-weight: 900;
    line-height: 1;
}

/* Subtitle positioning */
#home .hero-subtitle {
    margin-bottom: 0;
}

#home .subtitle-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.02em;
    display: inline-block;
    padding: 12px 30px;
}

/* Position text info at bottom right - styled text, no frame */
#home .hero-info {
    position: absolute;
    bottom: 80px;
    right: 60px;
    max-width: 320px;
    text-align: left;
}

#home .info-block {
    background: transparent; /* No background */
    backdrop-filter: none; /* No blur */
    padding: 0; /* No padding */
    border-radius: 0; /* No border radius */
    border: none; /* No border */
    box-shadow: none; /* No shadow */
}

#home .info-text {
    font-size: 0.85rem; /* Slightly bigger for readability */
    line-height: 1.6;
    margin: 0;
    color: rgba(255, 255, 255, 0.7); /* Brighter but still subtle */
    font-weight: 300;
    letter-spacing: 0.02em; /* Better spacing */
    font-family: 'Inter', sans-serif; /* Clean font */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
}

/* Ensure visibility */
#home.hero-section.active {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

/* Container settings */
.main-container {
    width: 100%;
    overflow-x: hidden;
}

#professionalPortfolio {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

/* Scroll indicator with better positioning */
#home .scroll-indicator {
    position: absolute;
    bottom: 80px; /* Moved up even more */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

#home .scroll-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.7;
}

#home .scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(0, 255, 204, 0.8), transparent);
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #home .hero-content {
        padding-top: 30vh;
    }

    #home .hero-info {
        right: 40px;
        bottom: 60px;
        max-width: 340px;
    }
}

@media (max-width: 768px) {
    #home .hero-content {
        padding: 20px;
        padding-top: 20vh;
        justify-content: center;
    }

    #home .hero-title {
        font-size: clamp(3rem, 10vw, 5rem);
        margin-bottom: 5px; /* Keep very close spacing */
    }

    #home .subtitle-text {
        font-size: clamp(0.9rem, 3vw, 1.2rem);
        padding: 10px 20px;
    }

    #home .hero-info {
        position: static;
        margin-top: 40px;
        max-width: 100%;
        right: auto;
        bottom: auto;
    }

    #home .info-block {
        padding: 0; /* No padding on mobile either */
    }

    #home .info-text {
        font-size: 0.8rem; /* Adjusted for mobile */
    }

    #home .scroll-indicator {
        bottom: 20px;
    }
}

/* Large screens optimization */
@media (min-width: 1440px) {
    #home .hero-content {
        padding-top: 22vh;
    }

    #home .hero-title {
        font-size: 7rem;
    }

    #home .subtitle-text {
        font-size: 1.5rem;
    }

    #home .hero-info {
        right: 80px;
        bottom: 100px;
        max-width: 420px;
    }

    #home .info-text {
        font-size: 1.05rem;
    }
}