@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}

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

html, body {
  overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    container-type: scroll-state;
    container-name: scroller;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    width: 100%;
    background-color: black;
    color: #ccc;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
}

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    /* background: #000; */
    /* border-bottom: 1px solid #111; */
    z-index: 1000;
}

.site-header{
    display: flex;
    justify-content: flex-end; /* aligns nav to the right */
    align-items: center;
    padding: 10px 2rem;

    z-index: 1000;
}

.brand{
    position: fixed;
    top: 1.7rem;
    left: 30px;
    display: flex;
    mix-blend-mode: difference;
    background-color: #31303180;
    backdrop-filter: blur(10px);
    border-radius: 12px;
    z-index: 100000;
}

.logo{
    width: 5rem;
    z-index: 10000;
    max-width: 100%;
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    padding: 0.25em 0.5em;
    border-radius: 4px;
    mix-blend-mode: difference;
}

.nav-links {
    position: fixed;
    list-style: none;
    display: flex;
    gap: 15px;
    backdrop-filter: blur(10px);
    padding: 10px;
    top: 2.5rem;
    right: 4%;
    z-index: 10000;
    background-color: #31303180;
    border-radius: 12px;
}

.nav-links li {
    font-size: 1rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.3s;
}

.nav-links li a {
    display: inline-block;
    padding: 10px;
    box-sizing: border-box;
    transition: opacity 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    border-radius: 6px;
}

.nav-links li a:hover,
.nav-links li a.active {
    background-color: rgb(18, 18, 18);
    color: #ffffff;
}

/* .nav-links li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0%;
    background-color: #522121;
    transition: width 0.3s ease;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 90%;
} */

/* 🔥 Dim non-hovered links on hover */
.nav-links:hover li a {
     opacity: 0.4;
}

.nav-links li a:hover {
    opacity: 1 !important;    
}

/* Hamburger button (hidden on desktop) */
.menu-toggle {
    font-size: 2rem;
    background: none;
    border: none;
    color: white;
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
    cursor: pointer;
    display: none;
}

#home-hero {
    min-height: 75vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 5rem;
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1rem;
    margin-top: 10rem;
}

.heading-hero-large {
    font-size: 50px;
    font-weight: 700;
}

.hero-paragraph {
    font-size: 1.6rem;
    color: #aaa;
    margin-top: 1.2rem;
    font-weight: 300;
}

#hero-links{
    /* margin-top: 50px; */
    display: flex;
    gap: 20px;
}

.btn-link {
    margin-top: 2rem;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    border: 1px solid #fff;
    border-radius: 16px;
    transition: 0.3s;
}

.btn-link-alt {
    margin-top: 2rem;
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    background: #e6e1e1;
    color: #1f1f1f;
    border-radius: 16px;
    border: 1px solid #fff;
    transition: 0.3s;
}

.btn-link:hover {
    background: #fff;
    color: #000;
    box-shadow: 0px 0px 25px 5px #bcbcbc
}

.btn-link-alt:hover {
    background: #1f1f1f;
    color: #e6e1e1;
    box-shadow: 0px 0px 25px 5px #bcbcbc
}

#hero-action {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#hero-action.animate-out {
    opacity: 0;
    transform: translateY(-20px);
}

#hero-action.animate-in {
    opacity: 1;
    transform: translateY(0);
}


.filter-nav {
    text-align: center;
    margin-top: 2rem;
    z-index: 100;
  
}

.icon{
    width: 3rem;
    z-index: 10000;
    max-width: 100%;
}

.filter-nav-icons {
    display: none;
}

.filter-nav ul {
    background: rgba(255, 255, 255, 0.071);
    border-top: 1.3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    margin-top: 50px;
    padding: 1rem;
    list-style: none;
}

.filter-nav-items ul {
    display: inline-flex;
    gap: 20px;
}

.filter-btn {
    cursor: pointer;
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(117, 105, 105, 0.76);
    transform: scale(1.05);
}

.filter-nav :hover li {
    opacity: 0.4;
    color: #ffffff;

}

.filter-nav li:hover {
    opacity: 1 !important;    
}

.content-card.fade-in {
  animation: fadeIn 0.4s ease forwards;
  display: block;
}

.content-card.fade-out {
    animation: fadeOut 0.3s ease forwards;
    pointer-events: none;

}




/* Featured Work */
#home-featured {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
    gap: 1.5rem;
    padding: 3rem 2rem;
    background: rgba(15, 15, 15, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(52px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 30px 10px;
}

.content-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    min-width: 80%;
    background: #222;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    transition: transform 0.3s ease;

    /* 🔲 Transparent/glass-like border effect */
    border: 2.5px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(1.5px);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.06);
}

/* Distortion/glow rim */
.content-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: linear-gradient(120deg, rgba(255,255,255,0.15), rgba(255,255,255,0.05));
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 2;
}

.content-card:hover {
    transform: scale(1.02);
}

.content-card::before {
    content: '';
    background: url('https://via.placeholder.com/600x400') no-repeat center center/cover;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    opacity: 0.35;
    z-index: 0;
}

.content-desc {
    position: absolute;
    z-index: 1;
    background: rgba(0, 0, 0, 0.6);
    left: 0; right: 0; bottom: 0;
    margin: 0;
    padding: 15px;
    border-radius: 0 0 16px 16px;
    backdrop-filter: blur(10px);
    background-color: #1c1b1c80;
}

.content-title {
    font-size: 1.2rem;
    font-weight: 700;
}

.content-type {
    font-size: 0.9rem;
    color: #bbb;
    text-transform: uppercase;
}

.back-to-top {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    line-height: 64px;
    position: fixed;
    bottom: 40px;
    right: 40px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-to-top:hover {
    transform: scale(1.02);
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}



/* CTA */
.cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* height: 100vh; */
    padding: 30px;
    gap: 50px;
    text-align: center;
}

.cta h2 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.5;
}

.cta span {
    font-weight: 700;
    font-size: 2.5rem;
    background: radial-gradient(circle at 50% 50%, #f0c, #fc0);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    margin-top: 0.5rem;
}


#contact-form {
    text-align: left;
    width: 90%;
    max-width: 500px;
    padding: 1.4rem 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

#contact-form h2 {
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 1px;
}

#contact-form input,
#contact-form textarea {
    width: 100%;
    margin: 0.5rem 0;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 2px rgba(0, 136, 255, 0.6);
}

#contact-form button {
    width: 100%;
    padding: 14px;
    margin-top: 1rem;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

#contact-form button:hover {
    background: linear-gradient(135deg, #0083b0, #00b4db);
}

#status {
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
    font-size: 1.3rem;
    color: #90ee90;
}


/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    font-size: 1rem;
    color: #ffffff;
}

.footer-links{
    display: flex;
    flex-direction: row;
    justify-content: center;
    height: 100%;
    gap: 20px;
    margin-bottom: 30px;
}

.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgb(202, 39, 104), rgb(211, 181, 8));
    pointer-events: none;
    border-radius: 50%;
    filter: blur(10px);
    transform: translate(-20%, -20%);
    z-index: 0;
    transition: transform 0.08s ease-out;
    mix-blend-mode: difference;
}

.background-glow {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 500px;
    background: linear-gradient(135deg, rgb(111, 1, 237), rgb(185, 0, 0), transparent 85%);
    pointer-events: none;
    border-radius: 50%;
    filter: blur(40px);
    transform: translate(-50%, -75%);
    z-index: -1;
    transition: transform 0.5s ease, opacity 0.5s ease;
    mix-blend-mode: screen;
}
    

/* Responsive */
@media (max-width: 768px) {
    .heading-hero-large {
        font-size: 2.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .content-card {
        border-radius: 16px;
        aspect-ratio: 16 / 10;
        min-width: unset;
        background-size: contain;
        background-position: top;
        background-repeat: no-repeat;
        /* 🔲 Transparent/glass-like border effect */
        border: 2px solid rgba(255, 255, 255, 0.08);
    }

    .content-desc{
        position: absolute;          
        left: 0; right: 0; bottom: 0;
        /* width: auto; */
        z-index: 1;
        width: 100%;
        margin: 0px;
        padding: 15px;
        border-radius: 0px 0px 16px 16px;
        backdrop-filter: blur(10px);
        background-color: #4d031738;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .cta span {
        font-size: 2rem;
    }

    .menu-toggle {
        display: block;
        background-color: #31303180;
        border-radius: 12px;
        padding: 19px;
        backdrop-filter: blur(10px);
        top: 1.8rem;

    }

    .nav-links {
        flex-direction: column;
        gap: 5px;
        position: fixed;
        top: 7.4rem;
        right: 1.6rem;
        background-color: rgba(49, 48, 49, 0.9);
        border-radius: 12px;
        padding: 0.7rem;
        /* margin-top: 45px; */
        display: none;

    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 1rem;
        text-align: right;
    }

    .cursor-glow {
        display: none;
    }

    #home-featured {
        display: grid;
        grid-template-columns: 1fr;

    }
    .brand-name {
        display: none;
        
    }

    .background-glow {
        position: fixed;
        top: 50%;
        left: 50%;
        width: 450px;
        height: 450px;

        pointer-events: none;
        border-radius: 50%;
        filter: blur(40px);
        transform: translate(-50%, -74%);
    }

    #contact-form {
        width: 100%;
    }

    .filter-nav-items {
        display: none;
    }

    .filter-nav-icons {
        display: block;
        width: 100%;
        margin-top: 3rem;
    }

    .filter-nav-icons ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
        list-style: none;
        padding: 10px;
        border-radius: 22px;
        margin: 0;
        background: rgba(255, 255, 255, 0.068);
       
    }

    .filter-nav-icons li {
        background-color: rgba(255, 255, 255, 0.05);
        padding: 10px;
        border-radius: 12px;
        transition: background-color 0.3s ease;
    }

    .filter-nav-icons li:hover,
    .filter-nav-icons li.active {
        background-color: rgba(255, 255, 255, 0.15);
    }

    .filter-nav-icons img.icon {
        width: 48px;
        height: 48px;
    }
}


