@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root{
    --transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --dark-color: #332e29;
    --light-color: #fff;
}

*{
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    outline: 0;
}
html{
    font-size: 10px;
    scroll-behavior: smooth;
    scroll-padding-top: 2rem;
}
body{
    font-size: 1.6rem;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 0.6s ease-in forwards;
}
button, .btn{
    cursor: pointer;
    border: none;
    background: transparent;
}
ul{
    list-style: none;
}
a{
    text-decoration: none;
    color: var(--dark-color);
}
img{
    width: 100%;
    display: block;
}
.container{
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.vh-100{
    min-height: 100vh;
}
h1, h2, h3{
    margin-top: 0;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--dark-color);
}
.flex{
    display: flex;
    align-items: center;
    justify-content: center;
}
.py-7{
    padding: 7rem 0;
}
.grid{
    display: grid;
    grid-template-columns: repear(1, 1fr);
    gap: 1rem;
}
.lead{
    opacity: 0.8;
    padding: 1rem 0;
    font-size: 1.7rem;
    font-weight: 300;
    line-height: 1.8;
}

#header{
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.5)),
    url('../images/header-banner.jpg') center/cover no-repeat fixed;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding-top: 0;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

#header .container {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 0;
}

.header-content{
    padding-bottom: .2rem;
    padding-left: 4rem;
    padding-top: -10rem;
    margin-top: -10rem;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

.header-content h1{
    font-size: 4.5rem;
    margin-bottom: 0;
    margin-top: 2rem;
    text-transform: uppercase;
    color: var(--light-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.3s;
}

.header-content h3{
    color: var(--light-color);
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.6s;
}

/* Header social links specific styling */
.header-content .social-links {
    position: absolute;
    right: 4rem;
    top: 25%;
    transform: translateY(-50%);
    opacity: 0;
    display: flex;
    justify-content: flex-end;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: 0.8s;
}

.header-content .social-links li a {
    width: 90px;
    height: 90px;
    background-color: var(--light-color);
    border-radius: 50%;
    box-shadow: 0 0 6px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.header-content .social-links li a i {
    font-size: 3.4rem;
}

.header-content .social-links li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.header-content .lead {
    color: var(--light-color);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-top: 1rem;
}

.social-links li a{
    width: 40px;
    height: 40px;
    background-color: var(--light-color);
    margin-right: 1rem;
    border-radius: .3rem;
    box-shadow: 0 0 6px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.social-links li a:hover{
    opacity: 0.8;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Smooth Section Transitions */
.about-content, .work-content, .portfolio-content, .contact-content {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.about-content.visible, .work-content.visible, .portfolio-content.visible, .contact-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-left{
    margin-bottom: 4rem;
    height: 480px;
    overflow: hidden;
}

.btn-down{
    font-size: 3rem;
    display: inline-block;
    margin-top: 1rem;
    transition: var(--transition);
}
.btn-down:hover{
    opacity: .7;
    transform: var(--transition);
}
.btn-down-white{
    color: var(--light-color);
}
.title{
    margin-bottom: 5rem;
}
.title h2{
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
}
.title h2::after{
    position: absolute;
    content: "";
    top: 120%;
    left: 0;
    width: 70px;
    height: 4px;
    background-color: var(--dark-color);
}

#work{
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3)),
    url('../images/work-pic.jpg') center/cover no-repeat fixed;
    color: var(--light-color);
}
#work .title h2, #work h3{
    color: var(--light-color);
}
#work .title h2::after{
    background: var(--light-color);
}
.work-bottom{
    margin-top: 4rem;
    text-align: center;
}
.work-bottom > div .icon img{
    width: 50px;
    margin: 0 auto 1.7rem auto;
}

.portfolio-content {
    padding: 2rem 0;
}

.portfolio-content h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    color: var(--dark-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.portfolio-item {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #f5f5f5;
    z-index: 1;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover::after {
    opacity: 1;
}

@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 576px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .portfolio-item {
        height: 250px;
    }
}

@media(min-width: 450px){
    .work-bottom{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 3rem;
        row-gap: 0;
    }
}

@media(min-width: 576px){
    .title h2{
        font-size: 4rem;
    }
    .work-bottom{
        grid-template-columns: repeat(4, 1fr);
    }
    .portfolio-grid{
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    .portfolio-grid > div{
        height: 350px;
        overflow: hidden;
    }
    .portfolio-grid > div img{
        height: 100%;
        object-fit: cover;
    }
    .contact-left form .form-control{
        max-width: 500px;
    }
}

@media(min-width: 768px){
    .header-content h1{
        font-size: 7rem;
    }
    .about-content{
        grid-template-columns: repeat(2, 1fr);
        column-gap: 6rem;
        row-gap: 0;
    }
    .about-left{
        margin-bottom: 0;
    }
    .contact-content{
        flex-direction: row;
    }
    .contact-right{
        padding-left: 3rem;
        width: 50%;
    }
    .contact-left{
        width: 50%;
    }
}

@media (min-width: 1200px) {
    .portfolio-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  
    /* Span columns 2→4 for items 2 and 10 */
    .portfolio-grid > div:nth-child(2),
    .portfolio-grid > div:nth-child(9) {
      grid-column: 2 / 4;
    }
  
    /* Span columns 1→3 for items 6 and 14 */
    .portfolio-grid > div:nth-child(6){
      grid-column: 1 / 3;
    }
  }
  
/* Contact Section Styles */
#contact {
    background-color: #2c2722;
    background-image: linear-gradient(135deg, #2c2722 0%, #3a332c 100%);
    position: relative;
    overflow: hidden;
    color: var(--light-color);
    padding: 8rem 0;
}

.container-content {
    gap: 4rem;
    align-items: center;
}

.contact-left {
    flex: 1;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-left:hover {
    transform: translateY(-5px);
}

.contact-left .title h2 {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    position: relative;
    margin-bottom: 4rem;
    color: var(--light-color);
    text-align: center;
}

.contact-left .title h2::after {
    position: absolute;
    content: "";
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--light-color);
}

.contact-left .form-control {
    display: block;
    width: 100%;
    padding: 1.6rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(255,255,255,0.1);
    background-color: rgba(255,255,255,0.05);
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--light-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.contact-left .form-control::placeholder {
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    font-size: 1.6rem;
    color: rgba(255,255,255,0.6);
}

.contact-left .form-control:focus {
    background-color: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.contact-left textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.contact-left .btn-submit {
    width: 100%;
    background-color: var(--light-color);
    color: var(--dark-color);
    padding: 1.6rem 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.6rem;
    font-weight: 500;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.contact-left .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    background-color: #f8f9fa;
}

.contact-right {
    flex: 1;
    padding: 2rem;
}

.contact-right img {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-right img:hover {
    transform: scale(1.02) translateY(-5px);
}

/* Instagram Link Styles */
.social-links {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    margin: 0;
    padding: 0;
}

.social-links li {
    margin: 0;
    padding: 0;
}

.social-links li a {
    width: 60px;
    height: 60px;
    background-color: var(--light-color);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.social-links li a i {
    font-size: 2.4rem;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.social-links li a:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.social-links li a:hover i {
    transform: scale(1.1);
}

/* Update header overlay z-index */
#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    z-index: 1;
}

#header .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

@media (max-width: 768px) {
    .container-content {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-left,
    .contact-right {
        width: 100%;
    }

    .social-links {
        bottom: 20px;
        right: 20px;
    }

    .social-links li a {
        width: 50px;
        height: 50px;
    }

    .social-links li a i {
        font-size: 2rem;
    }
}

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

/* Enlarged Image View */
.enlarged-view {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    padding: 40px;
}

.enlarged-view.active {
    display: block;
}

.enlarged-view img {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
}

.close-enlarged {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    transition: transform 0.3s ease;
    background: none;
    border: none;
    padding: 10px;
}

.close-enlarged:hover {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .enlarged-view {
        padding: 20px;
    }
    
    .close-enlarged {
        top: 15px;
        right: 20px;
        font-size: 30px;
    }
}
  