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

body {
    background-color: black;
    font-family: 'Poppins', sans-serif;
    color: white;
    line-height: 1.5;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #FF5F15;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease;
    z-index: 9999;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #111;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #FF5F15;
    border-radius: 10px;
    border: 2px solid #111;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #ff4d4d;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #FF5F15 #111;
}

/* Header & Navbar */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: rgba(0, 0, 0, 0.7);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    animation: slideDown 1s ease forwards;
}

@keyframes slideDown {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

h1 {
    font-family: 'Dancing Script', cursive;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: white;
    transition: transform 0.5s ease;
}

/* h1 span {
    color: #FF5F15;
    animation: glow 1.5s infinite alternate;
} */

@keyframes glow {
    from {
        text-shadow: 0 0 10px #FF5F15, 0 0 20px #FF5F15;
    }

    to {
        text-shadow: 0 0 20px #FF5F15, 0 0 40px #FF5F15;
    }
}



/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
}

/* Hide nav for mobile */
nav ul {
    display: flex;
    list-style: none;
    gap: 50px;
    transition: max-height 0.5s ease;
}

/* Active link */
.nav-link.active {
    color: #FF5F15;
}

.nav-link.active::after {
    width: 100%;
}



/* Hamburger animation (optional) */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

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


nav ul li a {
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    color: white;
    position: relative;
    padding: 5px 0;
    transition: 0.4s ease;
}

nav ul li a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background: #FF5F15;
    transition: all 0.4s ease;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: #FF5F15;
    transform: translateY(-3px);
}

nav ul li a:hover::after {
    width: 100%;
}

/* CV Button */
/* .cv {
    display: flex;
    width: 150px;
    min-height: 45px;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    background: linear-gradient(135deg, #FF5F15, #FF9966);
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 0 10px #FF5F15, 0 0 20px #FF5F15 inset;
}

.cv:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px #FF5F15, 0 0 40px #FF5F15 inset;
}

.cv a {
    text-decoration: none;
    color: white;
    font-weight: bold;
} */

/* Home Section */
.section-one {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 140px 6vw 60px;
    width: 100%;
    min-height: 100vh;
    /* background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('assets/taimoor.png'); */
    background-size: min(42vw, 520px);
    background-position: top center;
    background-repeat: no-repeat;
    animation: fadeIn 2s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.detail-section {
    margin-top: 40px;
    width: min(650px, 100%);
}

.detail-section h2 {
    font-size: clamp(2.4rem, 7vw, 5.6rem);
    width: auto;
    color: white;
    line-height: 1;
    animation: floatText 3s ease-in-out infinite;
}

.detail-section p {
    margin-top: 15px;
    width: 100%;
    max-width: 620px;
    text-align: justify;
    letter-spacing: 1px;
    line-height: 1.9;
}

@keyframes floatText {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.tag-list {
    width: min(420px, 100%);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-start;
}

.tag-list span::before {
    content: '•';
    color: #FF5F15;
    margin-right: 8px;
}

.tag-list span {
    padding: 8px 18px;
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    letter-spacing: 1px;
    border: 2px solid #FF5F15;
    border-radius: 20px 0;

    /* animation start state */
    opacity: 0;
    transform: translateY(20px);
    cursor: pointer;
    transition: 0.1s ease-in-out;
    animation: showTag 0.6s ease forwards, glow 1.5s infinite alternate;
}

.tag-list a {
    opacity: 0;
    cursor: pointer;
    transform: translateY(20px);
    transition: 0.1s ease-in-out;
    animation: showTag 0.6s ease forwards, glow 1.5s infinite alternate;
}

.tag-list span:hover {
    background-color: #FF5F15;
    transition: 0.1s ease-in-out;
}

.tag-list span:hover::before {
    color: white;
}

.tag-list a {
    text-decoration: none;
    color: white;
    margin-top: 4px;
}



/* 6 tags animation delay */
.tag-list span:nth-child(1) {
    animation-delay: 0.2s;
}

.tag-list span:nth-child(2) {
    animation-delay: 0.4s;
}

.tag-list span:nth-child(3) {
    animation-delay: 0.6s;
}

.tag-list span:nth-child(4) {
    animation-delay: 0.8s;
}

.tag-list span:nth-child(5) {
    animation-delay: 1s;
}

.tag-list span:nth-child(6) {
    animation-delay: 1.2s;
}

.tag-list a:nth-child(7) {
    animation-delay: 1.7s;
}


/* animation */
@keyframes showTag {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-two {
    padding: 100px 6vw;
    background: black;
}

.services-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3.2rem);
    margin-bottom: 60px;
}

.services-title span {
    color: #FF5F15;
}

/* Grid */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

/* Card */

.service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 30px;
    min-height: 300px;
    height: auto;
    border: 2px solid #FF5F15;
    border-radius: 15px;
    background: rgba(255, 0, 0, 0.05);
    text-align: center;
    transition: 0.4s ease;
    cursor: pointer;
    z-index: 1;
}

.shape {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 0;
    right: 0;
    border-radius: 0 10px 0 10px;
    background-color: #FF5F15;
    transition: 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 0 20px #FF5F15;
}

.service-card:hover .shape {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    transition: 0.3s ease-in-out;
    z-index: -1;
}



/* Title */
.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

/* Text */
.service-card p {
    font-size: 16px;
    line-height: 25px;
    color: #ccc;
}

.project-section {
    padding: 100px 6vw 120px;
    background: linear-gradient(180deg, #000 0%, #090909 100%);
}

.project-header {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}

.project-kicker {
    margin-bottom: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #FF5F15;
    font-size: 0.85rem;
}

.project-header h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 14px;
}

.project-header h1 span {
    color: #FF5F15;
}

.project-copy {
    color: #cfcfcf;
    max-width: 620px;
    margin: 0 auto;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    border: 3px solid rgba(255, 95, 21, 0.25);
    background: #0d0d0d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    min-height: 320px;
    cursor: pointer;
}

.project-card img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.project-overlay {
    position: absolute;
    inset: auto 0 0 0;
    text-align: center;
    padding: 20px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.86) 100%);

    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;

}

.project-overlay.is-active {
 transform: translateY(0);
}

.project-overlay h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.project-overlay p {
    color: #d5d5d5;
    font-size: 0.95rem;
}

.project-card:hover img {
    transform: scale(1.06);
}

.blur-box {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    transition: opacity 0.3s ease;
}


@media screen and (max-width: 900px) {
    header {
        padding: 16px 20px;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    nav ul {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        width: 200px;
        overflow: hidden;
        max-height: 0;
        border-radius: 8px;
    }

    nav ul.show {
        max-height: 500px;
    }

    nav ul li {
        padding: 15px 20px;
        text-align: right;
    }

    nav ul li a {
        font-size: 18px;
    }

    .cv {
        margin: 10px 0;
        justify-content: flex-end;
    }

    .section-one {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 130px 20px 50px;
        background-size: min(75vw, 420px);
        background-position: top center;
        text-align: center;
    }

    .detail-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .detail-section p {
        width: 100%;
    }

    .tag-list {
        width: 100%;
        justify-content: center;
    }

    .services-container {
        gap: 20px;
    }
}



@media screen and (max-width: 600px) {
    header {
        gap: 12px;
        flex-wrap: wrap;
    }

    nav ul {
        width: min(220px, 90vw);
    }

    .cv {
        width: 140px;
    }

    .section-one {
        padding-top: 120px;
        background-size: min(90vw, 360px);
    }

    .detail-section h3 {
        letter-spacing: 2px;
    }

    .service-card {
        padding: 28px 20px;
        height: auto;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
        line-height: 1.7;
    }

    .project-section {
        padding: 80px 20px 100px;
    }

    .project-grid {
        gap: 18px;
    }

    .project-card,
    .project-card img {
        min-height: 260px;
    }

    .shape {
        width: 50px;
        height: 50px;
        border-radius: 0 10px 0 10px;
    }

    .service-card:hover .shape {
        width: 100%;
        height: 100%;
        border-radius: 10px;
    }

    .contact-right,
    .contact-card {
        padding: 24px;
    }

    .contact-container {
        gap: 30px;
    }
}

@media (pointer: coarse) {
    .cursor {
        display: none;
    }

    .service-card:hover,
    .contact-card:hover,
    .cv:hover,
    .send-btn:hover,
    nav ul li a:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Footer */
footer {
    background: #070707;
    border-top: 1px solid rgba(255,95,21,0.08);
    color: #ddd;
    padding: 40px 6vw 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 200px;
    gap: 24px;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand h3 {
    font-family: 'Dancing Script', cursive;
    color: white;
    margin-bottom: 8px;
}

.footer-brand p {
    color: #bfbfbf;
    max-width: 420px;
}

.footer-links h4,
.footer-social h4 {
    font-family: "Dancing Script";
    color: #fff;
    margin-bottom: 8px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #FF5F15;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255,95,21,0.08);
    color: #fff;
    font-size: 20px;
    transition: transform 0.15s ease, background 0.15s ease;
}

.social-link:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #FF5F15, #FF9966);
}

.footer-bottom {
    text-align: center;
    color: #9a9a9a;
    font-size: 0.9rem;
    margin-top: 22px;
}

@media screen and (max-width: 800px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }
}