:root {
    --primary: #000000;
    --secondary: #ffffff;
    --gray: #292828;
    --light-gray:#303030;
    --theme:#37afd4;
    --yellow: #FFD700;
}

html{
    scroll-behavior: smooth;


}

body {
    font-family: 'Arial', sans-serif;
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;



}


/* h1, h2{
    font-family: 'arial', serif;
    font-weight: 700;
}  */



/*----------------------------------------------------------------- narbar starting---------------------------------------- */

.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    padding: .8rem;
}

.navbar-brand {
    color: var(--light-gray);
    font-weight: bold;
    letter-spacing: 1px;
}

.navbar-brand:hover {
    color: var(--theme);
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-link {
    color: var(--secondary);
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--theme);
    transition: all 0.3s ease;
}

/*----------------------------------------------------------------- home/hero starting---------------------------------------- */


#home {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('./photos/Home\ cover.jpg');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

/*----------------------------------------------------------------- portfolio starting---------------------------------------- */

#portfolio {
    padding: 2rem 0;
    background: #f8f9fa;
}

.portfolio-grid {
    column-count: 4;
    column-gap: 20px;
    padding: 20px;
}

.portfolio-item {
    break-inside: avoid;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}


.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

/*----------------------------------------------------------------- about starting---------------------------------------- */

#about {
    padding: 5rem 0;
    margin-top: 5rem;

}

/*----------------------------------------------------------------- auto typing starting---------------------------------------- */

#typing{
    height: 150vh;
    background:linear-gradient(rgba(0, 0, 0, 0), rgba(0,0,0,0)), url('./photos/silhouette-right.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--theme);

}

#typing h1{
    mix-blend-mode: difference;
    background-color: rgba(22, 63, 100, 0.432);
    padding: .1rem 0rem;
    font-weight: bolder;
    font-size: 3rem;
}

/*----------------------------------------------------------------- Empty for carousel starting---------------------------------------- */

#emptysection{
    height: 10vh;
    margin-bottom: 5rem;
}

/*----------------------------------------------------------------- contact starting---------------------------------------- */


#contact {
    background: var(--secondary);
    color: var(--gray);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.about-container{
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem;
}

.contact-info {
    padding: 2rem;
    background: var(--secondary);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-info h1 {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    color: var(--gray);
    position: relative;
}

.contact-info h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 150px;
    height: 4px;
    background: var(--yellow);
    border-radius: 2px;
}

.info-item {
    margin-bottom: 2rem;
    transition: transform 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item h3 {
    color: var(--gray);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.info-item p {
    color: #666;
    line-height: 1.6;
}

.contact-form {
    background: var(--secondary);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contactform{
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid #ddd;
    color: var(--gray);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 0;
    color: #999;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--gray);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom: 2px solid var(--yellow);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--gray);
    border: none;
    border-radius: 8px;
    color: var(--secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover {
    background: var(--yellow);
    color: var(--gray);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.social-links {
    margin-top: 5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--theme);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}




/*----------------------------------------------------------------- footer starting---------------------------------------- */


footer {
    background: #000;
    color: #919191;
    padding: 2rem 0;
}

footer span{
    color: var(--secondary);
}

.social-icons {
    margin-bottom: 1rem;
}

.social-icons a {
    color: #fff;
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--yellow);
}


/*----------------------------------------------------------------- media starting---------------------------------------- */


@media (max-width: 992px) {
    .portfolio-grid {
        column-count: 3;
    }

}


@media (max-width: 768px) {

    .portfolio-grid {
        column-count: 2;
    }
    
    .navbar-collapse {
        background: var(--light-gray);
        padding: 1rem;
        border-radius: 10px;
    }

    #typing{
        background-position-x: 44%;
    }
    html,
    body{
    width:100%;
    overflow-x:hidden;
    scroll-padding-top: 4rem;
    
    }

    #about{
        padding: 0rem 1rem;
    }


}


@media (max-width: 475px){

    .portfolio-grid {
        column-count: 2;
    }

    .portfolio-item img {
        width: 100%;
    
    }
    
    html,
    body{
    width:100%;
    overflow-x:hidden;
    scroll-padding-top: 4rem;
    }

    .nav-link:hover{
        color: var(--theme);
    }

 
}


@media (min-width: 768px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-info h1 {
        font-size: 3rem;
    }
}

@media (max-width: 767px) {
    .container {
        padding: 1rem;
    }
    
    .contact-info,
    .contact-form {
        padding: 1.5rem;
    }
}