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

/* --- Global Reset & Variables --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'poppins', sans-serif;
}

:root{
    --bg-color: #1f242d;
    --second-bg-color: #323946;
    --text-color:#fff;
    --main-color:#0ef;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

body{
    background: var(--bg-color);
    color: var(--text-color);
}

/* --- NEW: Dynamic Tech Background --- */
body::before {
    content: '';
    position: fixed; /* Fixes it to the viewport */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    
    /* --- Your background image path --- */
    background-image: url('../image/tech.jpg'); 
    background-repeat: repeat; /* Tiles the image */
    
    opacity: 0.1; /* Adjust 0.05 (5%) to 0.2 (20%) as needed */
    z-index: -1; /* Puts it behind all other content */

    /* Animation: 90s, linear (constant speed), infinite loop */
    animation: scrollBackground 90s linear infinite;
}

span {
    color: var(--main-color);
}

/* --- Base Header & Footer --- */
.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 9%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}
.header.sticky{
    border-bottom: .1rem solid rgba(0,0,0,.2);
}
.logo{
    font-size: 2.5rem;
    color: var(--text-color);
    font-weight: 600;
    cursor: default;
}
.logo span {
    color: var(--main-color);
    display: inline-block;
    animation: logoWiggle 1s ease-in-out infinite alternate;
}
.navbar a{
    font-size: 1.7rem;
    color: var(--text-color);
    margin: 4rem;
    transition: .3s;
}
.navbar a:hover,
.navbar a.active{
    color: var(--main-color);
}
#menu-icon{
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    background: var(--second-bg-color);
}
.footer-text p{
    font-size: 1.6rem;
}
.footer-iconTop a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem;
    background: var(--main-color);
    border-radius: .8rem;
    transition: .5s ease;
}
.footer-iconTop a:hover{
    box-shadow: 0 0 1rem var(--main-color);
}
.footer-iconTop a i {
    font-size: 2.4rem;
    color: var(--second-bg-color);
}

/* --- Reusable Button Style --- */
.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    background: var(--main-color);
    border-radius: 4rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1.6rem;
    color: var(--second-bg-color);
    letter-spacing: .1rem;
    font-weight: 600;
    transition: .5s ease;
    margin-top: 2rem; 
}
.btn:hover{
    box-shadow: none;
}


/* =======================================
   PROJECT PAGE STYLES - MODERN REDESIGN
   ======================================= */

.project-page {
    padding: 12rem 9% 7rem;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(50px);
    animation: sectionFadeIn 1s ease 0.1s forwards;
}

.heading {
    text-align: center;
    font-size: 4.5rem;
    margin-bottom: 5rem;
}

.project-container {
    max-width: 110rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --- Project Hero Section --- */
.project-hero {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #6366f1, var(--main-color));
}

/* --- Project Visual (Image/Video) --- */
.project-visual {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.project-visual img {
    width: 100%;
    height: auto;
    max-height: 50rem;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-visual:hover img {
    transform: scale(1.02);
}

/* Image overlay gradient */
.project-visual::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--second-bg-color), transparent);
    pointer-events: none;
}

/* --- Project Info Bar --- */
.project-info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 2.5rem 3rem;
    background: rgba(0, 0, 0, 0.2);
}

.project-meta {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.75);
}

.meta-item i {
    font-size: 1.8rem;
    color: var(--main-color);
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.project-status.completed {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.project-status.in-progress {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.project-status.coming-soon {
    background: rgba(99, 102, 241, 0.15);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.project-status i {
    font-size: 1.4rem;
}

/* --- Project Content Grid --- */
.project-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

/* --- Project Details Card --- */
.project-details-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 2rem;
    padding: 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.project-details-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--main-color), #6366f1, var(--main-color));
    border-radius: 2rem 2rem 0 0;
}

.project-text h3 {
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.project-text h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--main-color);
    border-radius: 3px;
}

.project-text p {
    font-size: 1.5rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
}

/* Features List */
.project-text h3.features-title {
    margin-top: 2rem;
}

.project-text ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.project-text ul li {
    font-size: 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    padding-left: 2.5rem;
    position: relative;
}

.project-text ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--main-color), #6366f1);
    border-radius: 50%;
}

/* --- Project Sidebar --- */
.project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* --- Project Links Card --- */
.project-links-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-links-card h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-links-card h4 i {
    color: var(--main-color);
    font-size: 2rem;
}

.project-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.2rem 1.8rem;
    background: rgba(0, 238, 255, 0.1);
    border: 1px solid rgba(0, 238, 255, 0.2);
    border-radius: 1rem;
    color: var(--main-color);
    font-size: 1.4rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link i {
    font-size: 2rem;
    color: var(--main-color);
}

.project-link:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(0, 238, 255, 0.3);
}

.project-link:hover i {
    color: var(--bg-color);
}

/* --- Technology Stack Card --- */
.project-tech-card {
    background: linear-gradient(135deg, var(--second-bg-color), rgba(50, 57, 70, 0.9));
    border-radius: 2rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-tech-card h4 {
    font-size: 1.8rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-tech-card h4 i {
    color: var(--main-color);
    font-size: 2rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tech-tags span {
    background: rgba(0, 238, 255, 0.1);
    color: var(--main-color);
    padding: 0.8rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
}

.tech-tags span:hover {
    background: var(--main-color);
    color: var(--bg-color);
    transform: translateY(-2px);
}

/* --- Coming Soon Overlay --- */
.coming-soon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(31, 36, 45, 0.85);
    backdrop-filter: blur(5px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 10;
    border-radius: 2rem;
}

.coming-soon-overlay i {
    font-size: 6rem;
    color: var(--main-color);
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-overlay h3 {
    font-size: 3rem;
    color: var(--text-color);
}

.coming-soon-overlay p {
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    max-width: 40rem;
}

/* Legacy support for old structure */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.skill-item {
    background: rgba(0, 238, 255, 0.1);
    padding: 0.8rem 1.4rem;
    border-radius: 3rem;
    font-size: 1.3rem;
    font-weight: 500;
    border: 1px solid rgba(0, 238, 255, 0.2);
    transition: all 0.3s ease;
    color: var(--main-color);
}
.skill-item:hover {
    background: var(--main-color);
    color: var(--bg-color);
    border-color: var(--main-color);
}
.skill-item span {
    color: inherit;
}

/* =======================================
   KEYFRAMES
   ======================================= */

@keyframes sectionFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes logoWiggle {
    0% { color: var(--text-color); transform: translateY(0px); }
    100% { color: var(--main-color); transform: translateY(-2px); }
}

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

/* --- NEW: Background Scroll Animation --- */
@keyframes scrollBackground {
    from {
        background-position-y: 0;
    }
    to {
        background-position-y: 100vh;
    }
}

/* =======================================
   MEDIA QUERIES
   ======================================= */

@media(max-width:1200px){
    html { font-size: 55%; }
}

@media(max-width:991px){
    .header { padding: 2rem 3%; }
    .footer { padding: 2rem 3%; }
    .project-page { padding: 12rem 3% 7rem; }

    .project-content {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .project-links-card,
    .project-tech-card {
        flex: 1;
        min-width: 280px;
    }
}

@media(max-width:768px){
    #menu-icon{ display: block; }
    .navbar{
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0,0,0,.2);
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
        display: none;
    }
    .navbar.active{ display: block; }
    .navbar a {
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    .project-page { padding-top: 10rem; }

    .project-info-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 2rem;
    }

    .project-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .project-details-card {
        padding: 2.5rem;
    }

    .project-text h3 {
        font-size: 2.2rem;
    }

    .project-sidebar {
        flex-direction: column;
    }

    .project-links-card,
    .project-tech-card {
        min-width: auto;
    }

    .coming-soon-overlay i {
        font-size: 5rem;
    }

    .coming-soon-overlay h3 {
        font-size: 2.4rem;
    }

    .coming-soon-overlay p {
        font-size: 1.4rem;
        padding: 0 2rem;
    }
}

/* Extra small devices (phones, 480px and down) */
@media(max-width:480px){
    html {
        font-size: 50%;
    }

    .project-page {
        padding-top: 8rem;
        padding-left: 2%;
        padding-right: 2%;
    }

    .heading {
        font-size: 3rem;
    }

    .project-visual img {
        max-height: 25rem;
    }

    .project-info-bar {
        padding: 1.5rem;
    }

    .meta-item {
        font-size: 1.2rem;
    }

    .project-details-card {
        padding: 2rem;
    }

    .project-text h3 {
        font-size: 1.8rem;
    }

    .project-text p {
        font-size: 1.3rem;
    }

    .project-text ul li {
        font-size: 1.3rem;
    }

    .project-links-card,
    .project-tech-card {
        padding: 2rem;
    }

    .project-links-card h4,
    .project-tech-card h4 {
        font-size: 1.6rem;
    }

    .project-link {
        padding: 1rem 1.4rem;
        font-size: 1.3rem;
    }

    .tech-tags span {
        padding: 0.6rem 1rem;
        font-size: 1.1rem;
    }

    .footer-text p {
        font-size: 1.3rem;
    }
}