@import url(./hero.css);
@import url(./text-animation.css);
@import url(./about.css);
@import url(./how-i-create.css);
@import url(./selected-works.css);
@import url(./footer.css);
@import url(./header.css);



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

html {
    scroll-behavior: smooth ;
    font-size: 16px;
    overflow-x: hidden;

}

body {
    background: var(--section-bg);
}

ul,ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    outline: none;
    cursor: pointer;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}


@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Oswald:wght@200..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Potta+One&display=swap');


:root {

    --accent-color: #FFF3C3;
    --white-75: rgba(255, 255, 255, 0.75);
    --foreground: #FFFFFF;
    --gray: #666666;
    --section-bg: #1D1D1D;
    --black: #000000;
    

    --primary-gradient: linear-gradient(134deg, #000000 0%, #666666 100%);
    

    --font-primary: 'Inter', sans-serif;
    --font-secondary: 'Oswald', sans-serif;
    --font-third: 'Potta One', system-ui;
}


.container {
    padding-inline: 4rem; 
}


.marquee {
    width: 100vw;
    max-width: 100vw;
    margin-block: 15rem;
    margin-left: -4rem;
    padding: 2rem;
    display: block;
    background-color: rgba(59, 59, 59, 0.68);
    overflow: hidden;
}

.marquee-container:hover {
    animation-play-state: paused;
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    animation: move-rtl 12s linear infinite;

}

.marquee h3 {
    font-family: var(--font-secondary);
    display: inline-block;
    font-weight: 100;
    flex-shrink: 0;
    font-size: 2rem;
    color: var(--foreground);
    padding-inline: 6rem;
}

@keyframes move-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


@media (max-width: 768px) {
    .marquee-container {
    display: flex;
    white-space: nowrap;
    align-items: center;
    justify-content: space-between;
    animation: move-rtl 6s linear infinite;

    }
    .marquee h3 {
        font-size: 1.5rem;
    }

}

@media (max-width: 480px) {
    .marquee-container {
        animation: move-rtl 3s linear infinite;
    }
}


/* MY TECH STACK */

.my-tech-stack-container {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    text-align: center;
}

.my-tech-stack-container .title {
    font-size: 4rem;
    color: var(--foreground);
    font-family: var(--font-secondary);
    font-weight: 900;
}

.rows-container {
    display: flex;
    flex-direction: column;
    width: 100vw;
    margin-left: -4rem;
}

.row {
    border: .5px solid #666666;
    padding: 2rem 4rem;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    margin-left: -1px;
    transition: .6s ease;
    color: var(--foreground);
    overflow: hidden;
    position: relative;
}

.row::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: #FFF3C3;
    transform: translateX(-100%); 
    transition: transform .6s ease-in-out;
    z-index: -1;
}

.row:hover::before {
    transform: translateX(0); 
}

.row .fa-brands {
    font-size: 4rem;
    color:#FFF3C3 ;
}



.row h1 {
    font-size: 4rem;
    font-family: var(--font-secondary);
    font-weight: 700;
}

.row:hover {
    background-color:#FFF3C3;
    color: var(--black);
    
}

.row:hover .fa-brands {
    color: var(--black);
}


@media (max-width: 768px) {
    .my-tech-stack-container {
        justify-content: center;
        text-align: center;
    }

    .row{
        justify-content: center;
    }

    .row .fa-brands {
    font-size: 3rem;
    color:#FFF3C3 ;
    }

    .row h1 {
        font-size: 3rem !important;
        font-family: var(--font-secondary);
        font-weight: 700;
    }

    .row:hover {
        background-color:#FFF3C3;
        color: var(--black);
        
    }

    .row:hover .fa-brands {
        color: var(--black);
    }
        
}

@media (max-width: 468px) {
    .row .fa-brands {
    font-size: 1.5rem;
    color:#FFF3C3 ;
    }

    .row h1 {
        font-size: 2.5rem !important;
        font-family: var(--font-secondary);
        font-weight: 700;
    }
}

.loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--primary-gradient);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    text-align: center;
    color: white;
}
.greeting-text {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0;
    font-family: var(--font-secondary);
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}




.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }
.dot:nth-child(3) { animation-delay: 0s; }

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

@keyframes pulse {
    0%, 80%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

.fade-out {
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.5s ease-out;
}


.animate-on-scroll {
  opacity: 0;
  will-change: opacity, transform;
}

/* Ensure animated elements become visible (animate.css applies animation but not always opacity) */
.animate__animated {
  opacity: 1 !important;
}