/* HOME.CSS - Home Page Specific Styles */


/* Unique animations and styles for index.html */


/* ===================================
   HERO SECTION ANIMATION
   =================================== */

#profile {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ===================================
   STAGGERED CONTENT ANIMATION
   =================================== */

.section__text__p1 {
    animation: fadeIn 0.6s ease-out 0.2s both;
}

.title {
    animation: fadeIn 0.6s ease-out 0.4s both;
}

.section__text__p2 {
    animation: fadeIn 0.6s ease-out 0.6s both;
}

#socials-container {
    animation: fadeIn 0.6s ease-out 0.8s both;
}

.about-me-box {
    animation: fadeIn 0.8s ease-out 1s both;
}

.about-containers {
    animation: fadeIn 0.8s ease-out 1.2s both;
}


/* ===================================
   TYPING EFFECT FOR TITLE
   =================================== */

.title.typing-effect {
    overflow: hidden;
    border-right: 0.15em solid var(--color-primary);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.05em;
    animation: typing 2s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    50% {
        border-color: var(--color-primary);
    }
}


/* ===================================
   SOCIAL ICONS HOVER EFFECT
   =================================== */

#socials-container .icon {
    transition: all 0.3s ease;
}

#socials-container .icon:hover {
    transform: translateY(-5px) scale(1.2);
    filter: brightness(0.8);
}


/* ===================================
   RESEARCH INTERESTS HOVER
   =================================== */

.details-container {
    transition: all 0.3s ease;
}

.details-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

article {
    transition: all 0.3s ease;
}

article:hover {
    transform: scale(1.05);
}

article:hover h3 {
    color: var(--color-primary);
    font-weight: 600;
}


/* ===================================
   ABOUT ME BOX HOVER
   =================================== */

.box-container {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.box-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.box-container:hover::before {
    left: 100%;
}

.box-container:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}


/* ===================================
   NEWS SECTION ENHANCEMENTS
   =================================== */

#news {
    animation: fadeIn 0.6s ease-out 1.4s both;
}

.news-item {
    transition: all 0.3s ease;
    padding-left: var(--space-sm);
}

.news-item:hover {
    background-color: rgba(245, 245, 245, 0.5);
    padding-left: var(--space-md);
    border-radius: var(--radius-xs);
}

.news-date {
    transition: all 0.3s ease;
}

.news-item:hover .news-date {
    color: var(--color-primary);
    font-weight: 700;
}


/* ===================================
   PARALLAX EFFECT (Optional)
   =================================== */

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}


/* ===================================
   SMOOTH SCROLL REVEAL
   =================================== */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}


/* ===================================
   ARROW ANIMATION
   =================================== */

.arrow {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}


/* ===================================
   CONTACT SECTION ANIMATION
   =================================== */

#contact {
    animation: fadeIn 0.6s ease-out 1.6s both;
}

.contact-info-container {
    transition: all 0.3s ease;
}

.contact-info-container:hover {
    background-color: rgba(245, 245, 245, 0.8);
    transform: translateX(5px);
    box-shadow: var(--shadow-sm);
}


/* ===================================
   EMAIL ICON SIZE AND ALIGNMENT IN PROFILE
   =================================== */

#profile #socials-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#profile #socials-container .email-icon {
    height: 2.5rem !important;
    width: 2.5rem !important;
    vertical-align: middle;
}


/* ===================================
   DOWNLOAD CV BUTTON
   =================================== */

.download-cv-button {
    position: relative;
    border-width: 0;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    z-index: 1;
    font-family: var(--font-family);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.download-cv-button .docs {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: var(--radius-sm);
    z-index: 1;
    background-color: #000000;
    border: solid 2px #2a2a2a;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    position: relative;
}

.download-cv-button:hover .docs {
    background-color: #000000;
    border-color: #3a3a3a;
    padding-right: 50px;
}

.download-cv-button .download {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%) scale(0);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    z-index: 2;
    border-radius: var(--radius-xs);
    background-color: var(--color-award-2-solid);
    border: solid 2px var(--color-award-2);
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    opacity: 0;
}

.download-cv-button:hover .download {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}

.download-cv-button .download svg {
    width: 18px;
    height: 18px;
}

.download-cv-button .download svg polyline,
.download-cv-button .download svg line {
    animation: docs 1s infinite;
}

@keyframes docs {
    0% {
        transform: translateY(0%);
    }
    50% {
        transform: translateY(-15%);
    }
    100% {
        transform: translateY(0%);
    }
}


/* Make icons and button align nicely */

#socials-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--space-md);
    gap: var(--space-md);
    flex-wrap: wrap;
}