@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;500;600;700&family=JetBrains+Mono:wght@300;400;500&display=swap');

:root{
    --transition: all 300ms ease-in-out;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --accent-color: #6366f1;
    --secondary-color: #f8fafc;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

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

html{
    font-size: 10px;
    scroll-behavior: smooth;
}

body{
    font-size: 1.6rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--dark-color);
    background-color: var(--light-color);
}

button, .btn{
    cursor: pointer;
    border: none;
    background: transparent;
    font-family: inherit;
}

ul{
    list-style-type: none;
}

a{
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img{
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.container{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
}

.vh-100{
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6{
    margin-top: 0;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: var(--dark-color);
    font-weight: 600;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
}

h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
}

h3 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.flex{
    display: flex;
    align-items: center;
    justify-content: center;
}

.py-7{
    padding: 8rem 0;
}

@media (max-width: 768px) {
    .py-7 {
        padding: 6rem 0;
    }
}

@media (max-width: 480px) {
    .py-7 {
        padding: 4rem 0;
    }
}

.grid{
    display: grid;
    gap: 2rem;
}

.lead{
    opacity: 0.8;
    padding: 1rem 0;
    font-size: clamp(1.6rem, 2.5vw, 1.8rem);
    font-weight: 400;
    line-height: 1.8;
    color: var(--text-muted);
}

/* header */
#header{
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)), url('../images/header-banner-gif.gif') center/cover no-repeat fixed;
    justify-content: flex-start;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding-top: 80px;
}

@media (max-width: 768px) {
    #header {
        background-attachment: scroll;
        align-items: center;
        justify-content: center;
        padding-top: 70px;
    }
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 1;
}

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

.header-content{
    padding-bottom: 8rem;
    text-align: left;
}

@media (max-width: 768px) {
    .header-content {
        text-align: center;
        padding-bottom: 6rem;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding-bottom: 4rem;
    }
}

.header-content h1{
    color: var(--light-color);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    line-height: 1.1;
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
}

.header-content h3{
    color: var(--light-color);
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.3s both;
}

@media (max-width: 480px) {
    .header-content h3 {
        letter-spacing: 1px;
        font-size: clamp(0.9rem, 3vw, 1.4rem);
    }
}

.social-links{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 4rem;
    animation: fadeInUp 1s ease-out 0.6s both;
}

@media (max-width: 768px) {
    .social-links {
        justify-content: center;
        margin-top: 3rem;
        gap: 1.2rem;
    }
}

@media (max-width: 480px) {
    .social-links {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2.5rem;
    }
}

.social-links li a{
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--light-color);
    font-size: 2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 480px) {
    .social-links li a {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
}

.social-links li a:hover{
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    min-width: 150px;
    text-align: center;
}

@media (max-width: 480px) {
    .custom-button {
        padding: 0.8rem 1.5rem;
        font-size: 1.2rem;
        min-width: 130px;
        width: 100%;
        max-width: 200px;
    }
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}

/* about */
#about {
    background: var(--secondary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: 1fr 1.3fr;
        gap: 6rem;
    }
}

@media (min-width: 1200px) {
    .about-content {
        gap: 8rem;
    }
}

.about-left{
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .about-left {
        margin: 0;
    }
}

.about-left:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-left img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

@media (min-width: 576px) {
    .about-left img {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .about-left img {
        height: 450px;
    }
}

@media (min-width: 992px) {
    .about-left img {
        height: 500px;
    }
}

.about-left:hover img {
    transform: scale(1.05);
}

.about-right {
    padding: 2rem 0;
}

@media (max-width: 767px) {
    .about-right {
        text-align: center;
        padding: 1rem 0;
    }
}

.about-right .lead {
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

@media (max-width: 480px) {
    .about-right .lead {
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }
}

/* button down and title -reusable */
.btn-down{
    font-size: 2.5rem;
    display: inline-block;
    margin-top: 3rem;
    transition: var(--transition);
    color: var(--accent-color);
    padding: 1rem;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
}

@media (max-width: 768px) {
    .btn-down {
        margin-top: 2.5rem;
        font-size: 2.2rem;
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .btn-down {
        margin-top: 2rem;
        font-size: 2rem;
        padding: 0.7rem;
    }
}

.btn-down:hover{
    background: var(--accent-color);
    color: var(--light-color);
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.btn-down-white{
    color: var(--light-color);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-down-white:hover {
    background: var(--light-color);
    color: var(--dark-color);
    border-color: var(--light-color);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.title{
    margin-bottom: 4rem;
    position: relative;
    text-align: center;
}

@media (min-width: 768px) {
    .title {
        text-align: left;
    }
    
    #work .title,
    #insta .title,
    .portfolio-content .title,
    .tech-content .title {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .title {
        margin-bottom: 3rem;
    }
}

.title h2{
    text-transform: capitalize;
    letter-spacing: 1px;
    font-weight: 600;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.title h2::after{
    position: absolute;
    content: "";
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

@media (min-width: 768px) {
    .title h2::after {
        left: 0;
        transform: none;
    }
    
    #work .title h2::after,
    #insta .title h2::after,
    .portfolio-content .title h2::after,
    .tech-content .title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* work */
#work{
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../images/work-pic.jpg') center/cover no-repeat fixed;
    color: var(--light-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

@media (max-width: 768px) {
    #work {
        background-attachment: scroll;
        min-height: auto;
    }
}

#work::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    z-index: 1;
}

#work .container {
    position: relative;
    z-index: 2;
}

#work .title h2, #work h3{
    color: var(--light-color);
}

#work .title h2::after{
    background: var(--light-color);
}

.work-content {
    text-align: center;
}

.work-top {
    display: grid;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .work-top {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .work-top {
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
}

.work-top li {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: var(--transition);
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    text-align: left;
}

@media (max-width: 480px) {
    .work-top li {
        padding: 1.5rem;
        text-align: center;
    }
}

.work-top li:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.work-top li i {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.2em;
}

.work-bottom{
    display: grid;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 480px) {
    .work-bottom {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 768px) {
    .work-bottom {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .work-bottom {
        gap: 1.5rem;
    }
}

.work-bottom > div {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
    transition: var(--transition);
}

@media (max-width: 480px) {
    .work-bottom > div {
        padding: 2rem 1rem;
    }
}

.work-bottom > div:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.work-bottom > div .icon {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.work-bottom > div .icon svg {
    width: 35px;
    height: 35px;
    transition: var(--transition);
}

@media (min-width: 768px) {
    .work-bottom > div .icon svg {
        width: 40px;
        height: 40px;
    }
}

.work-bottom > div:hover .icon svg {
    transform: scale(1.1);
}

.work-bottom h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: 500;
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.3;
}
/* portfolio */
#portfolio {
    background: var(--light-color);
    min-height: auto;
}

.portfolio-content {
    text-align: center;
}

.portfolio-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 576px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

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

@media (min-width: 1200px) {
    .portfolio-grid > div:nth-child(2) {
        grid-column: span 2;
    }
    .portfolio-grid > div:nth-child(6) {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .portfolio-grid {
        gap: 1.5rem;
        margin-top: 3rem;
    }
}

.portfolio-grid > div {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 4/3;
    cursor: pointer;
}

@media (max-width: 480px) {
    .portfolio-grid > div {
        border-radius: 15px;
        aspect-ratio: 1;
    }
}

.portfolio-grid > div:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-grid > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-grid > div:hover img {
    transform: scale(1.1);
}

.portfolio-grid > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.8), rgba(139, 92, 246, 0.8));
    opacity: 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-grid > div:hover::after {
    opacity: 1;
}

/* Add a zoom icon on hover */
.portfolio-grid > div::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    color: var(--light-color);
    opacity: 0;
    transition: var(--transition);
    z-index: 3;
}

.portfolio-grid > div:hover::before {
    opacity: 1;
}

/* tech section */
#tech {
    background: var(--secondary-color);
    text-align: center;
    min-height: auto;
}

.tech-content {
    max-width: 1200px;
    margin: 0 auto;
}

.tech-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 576px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .tech-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 480px) {
    .tech-grid {
        gap: 1.5rem;
        margin-top: 3rem;
    }
}

.tech-item {
    background: var(--light-color);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

@media (max-width: 480px) {
    .tech-item {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.tech-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

@media (max-width: 480px) {
    .tech-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
}

.tech-item h4 {
    font-size: clamp(1.3rem, 2vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
    line-height: 1.3;
}

@media (max-width: 480px) {
    .tech-item h4 {
        margin-bottom: 0.8rem;
    }
}

.tech-item p {
    font-size: clamp(1.2rem, 1.8vw, 1.4rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 480px) {
    .tech-item p {
        line-height: 1.5;
    }
}

/* contact */
#contact{
    background: var(--light-color);
}

.contact-content{
    display: grid;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 6rem;
    }
}

@media (max-width: 480px) {
    .contact-content {
        gap: 3rem;
    }
}

.contact-left {
    order: 1;
}

@media (min-width: 768px) {
    .contact-left {
        order: 0;
    }
}

.contact-left .lead{
    padding: 1.5rem 0;
    display: flex;
    align-items: center;
    font-size: clamp(1.4rem, 2.2vw, 1.7rem);
    color: var(--dark-color);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .contact-left .lead {
        justify-content: center;
        padding: 1.2rem 0;
    }
}

@media (max-width: 480px) {
    .contact-left .lead {
        flex-direction: column;
        text-align: center;
        padding: 1rem 0;
    }
}

.contact-left .lead:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .contact-left .lead:hover {
        transform: translateY(-2px);
    }
}

.contact-left .lead i {
    margin-right: 1.5rem;
    color: var(--accent-color);
    font-size: 2rem;
    width: 30px;
    text-align: center;
}

@media (max-width: 480px) {
    .contact-left .lead i {
        margin-right: 0;
        margin-bottom: 0.5rem;
        font-size: 1.8rem;
    }
}

.contact-right {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    order: 0;
    max-width: 400px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-right {
        order: 1;
        margin: 0;
        max-width: none;
    }
}

.contact-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-right img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: var(--transition);
}

@media (min-width: 576px) {
    .contact-right img {
        height: 400px;
    }
}

@media (min-width: 768px) {
    .contact-right img {
        height: 450px;
    }
}

.contact-right:hover img {
    transform: scale(1.05);
}

#insta{
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.6)), url('../images/insta-pic.jpg') center/cover no-repeat fixed;
    min-height: 70vh;
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    #insta {
        background-attachment: scroll;
        min-height: auto;
    }
}

#insta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.1));
    z-index: 1;
}

#insta .container {
    position: relative;
    z-index: 2;
}

#insta .title h2{
    color: var(--light-color);
}

#insta .title h2::after{
    background: var(--light-color);
}

.insta-grid {
    display: grid;
    gap: 2rem;
    margin-top: 4rem;
}

@media (min-width: 576px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (min-width: 992px) {
    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 480px) {
    .insta-grid {
        gap: 1.5rem;
        margin-top: 3rem;
    }
}

.insta-grid > div {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.insta-grid > div:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.insta-grid > div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.insta-grid > div:hover img {
    transform: scale(1.1);
}

/* footer */
#footer{
    background: var(--dark-color);
    color: var(--light-color);
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h3{
    color: var(--light-color);
    font-size: clamp(2rem, 4vw, 2.5rem);
    letter-spacing: 1px;
    margin-bottom: 2rem;
    font-family: 'Playfair Display', serif;
}

.footer-content > div:first-child{
    margin-bottom: 3rem;
}

.footer-content > div:first-child div{
    width: 120px;
    height: 120px;
    overflow: hidden;
    margin: 3rem auto;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

@media (max-width: 480px) {
    .footer-content > div:first-child div {
        width: 100px;
        height: 100px;
        margin: 2rem auto;
    }
}

.footer-content > div:first-child div:hover {
    transform: scale(1.05);
}

.footer-content > div:first-child div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.footer-content h1 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    margin-bottom: 1rem;
    color: var(--light-color);
}

#timeSinceBirthday {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 1rem 2rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 1rem;
    border: 1px solid rgba(99, 102, 241, 0.3);
    transition: var(--transition);
}

@media (max-width: 480px) {
    #timeSinceBirthday {
        padding: 0.8rem 1.5rem;
        margin-top: 0.8rem;
    }
}

#timeSinceBirthday:hover {
    background: rgba(99, 102, 241, 0.2);
    transform: translateY(-2px);
}


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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Typewriter effect */
.typewrite .txt {
    border-right: 2px solid var(--accent-color);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { border-color: var(--accent-color); }
    51%, 100% { border-color: transparent; }
}

/* Scroll animations */
.portfolio-grid > div,
.work-bottom > div,
.tech-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
    animation-play-state: paused;
}

/* Staggered animation delays */
.portfolio-grid > div:nth-child(1) { animation-delay: 0.1s; }
.portfolio-grid > div:nth-child(2) { animation-delay: 0.2s; }
.portfolio-grid > div:nth-child(3) { animation-delay: 0.3s; }
.portfolio-grid > div:nth-child(4) { animation-delay: 0.4s; }
.portfolio-grid > div:nth-child(5) { animation-delay: 0.5s; }
.portfolio-grid > div:nth-child(6) { animation-delay: 0.6s; }
.portfolio-grid > div:nth-child(7) { animation-delay: 0.7s; }

.work-bottom > div:nth-child(1) { animation-delay: 0.1s; }
.work-bottom > div:nth-child(2) { animation-delay: 0.2s; }
.work-bottom > div:nth-child(3) { animation-delay: 0.3s; }
.work-bottom > div:nth-child(4) { animation-delay: 0.4s; }

.tech-item:nth-child(1) { animation-delay: 0.1s; }
.tech-item:nth-child(2) { animation-delay: 0.2s; }
.tech-item:nth-child(3) { animation-delay: 0.3s; }
.tech-item:nth-child(4) { animation-delay: 0.4s; }
.tech-item:nth-child(5) { animation-delay: 0.5s; }
.tech-item:nth-child(6) { animation-delay: 0.6s; }
.tech-item:nth-child(7) { animation-delay: 0.7s; }
.tech-item:nth-child(8) { animation-delay: 0.8s; }

/* Loading animation for images */
img {
    animation: fadeInUp 0.5s ease-out;
}

/* Hover animations */
.social-links li a,
.custom-button,
.btn-down {
    position: relative;
    overflow: hidden;
}

.social-links li a::before,
.custom-button::before,
.btn-down::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.social-links li a:hover::before,
.custom-button:hover::before,
.btn-down:hover::before {
    width: 100%;
    height: 100%;
}

/* Utility classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

/* Improved responsive design */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 992px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 768px;
    }
    
    .py-7 {
        padding: 6rem 0;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 576px;
        padding: 0 1.5rem;
    }
    
    .py-7 {
        padding: 5rem 0;
    }
    
    .work-bottom {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .title {
        margin-bottom: 3rem;
    }
    
    .title h2 {
        text-align: center;
    }
    
    .btn-down {
        margin-top: 3rem;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .py-7 {
        padding: 4rem 0;
    }
    
    .work-bottom {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .social-links li {
        margin: 0;
    }
    
    .custom-button {
        margin: 1rem 0 0 0;
    }
    
    .title {
        margin-bottom: 2.5rem;
    }
    
    .title h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 9px;
    }
    
    .py-7 {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .btn-down {
        font-size: 2rem;
        padding: 0.8rem;
    }
}

/* Extra small devices */
@media (max-width: 375px) {
    html {
        font-size: 8.5px;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .work-top li {
        padding: 1.2rem;
    }
    
    .work-bottom > div {
        padding: 1.5rem 1rem;
    }
    
    .tech-item {
        padding: 1.8rem 1.2rem;
    }
}

/* Large screens optimization */
@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
    
    .py-7 {
        padding: 10rem 0;
    }
    
    .header-content {
        padding-bottom: 10rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn-down,
    .hamburger-menu {
        display: none;
    }
    
    * {
        color: #000 !important;
        background: #fff !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --dark-color: #000000;
        --light-color: #ffffff;
        --accent-color: #0066cc;
        --text-muted: #333333;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(26, 26, 26, 0.98);
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: space-between;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 3rem 2rem;
        gap: 2.5rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    position: relative;
    transition: var(--transition);
    padding: 0.5rem 0;
}

@media (max-width: 768px) {
    .nav-menu a {
        font-size: 1.8rem;
        font-weight: 600;
    }
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--accent-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger-menu {
    display: none;
    z-index: 1001;
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: block;
    }
}

.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--light-color);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.hamburger.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

.custom-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    color: var(--light-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.4rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.custom-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1);
}
  
  