﻿:root {
    --accent1: #0d6efd;
    --accent2: #6610f2;
    --accent3: #20c997;
    --glass: rgba(255,255,255,0.06);
    --card-bg: #ffffff;
    --muted: #6c757d;
}

/* basic */
* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: "Segoe UI", Roboto, system-ui, -apple-system, "Helvetica Neue", Arial;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1140px;
}

/* NAV LINKS KO MODERN BOLD & ATTRACTIVE STYLE */
.navbar-nav .nav-link {
    font-weight: 600; /* thoda mota */
    font-size: 1.1rem; /* halka bara */
    letter-spacing: 0.6px; /* spacing se modern look */
    color: #f8faff !important; /* halka white shade */
    transition: all 0.3s ease;
    text-transform: uppercase; /* uppercase se strong look */
    position: relative; /* underline effect ke liye */
}

    /* hover effect */
    .navbar-nav .nav-link:hover {
        color: #ffd54a !important; /* golden hover */
        transform: scale(1.05); /* halka zoom */
        font-weight: 700; /* aur bold hover pe */
    }

    /* underline hover effect */
    .navbar-nav .nav-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0%;
        height: 2px;
        background: #ffd54a;
        transition: width 0.3s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 100%;
    }


/* NAV */
.nav-glass {
    background: linear-gradient(90deg, rgba(13,110,253,0.95), rgba(102,16,242,0.92));
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(10,10,10,0.12);
    padding: .55rem 0;
}

.navbar .nav-link {
    color: #e9eefb !important;
    transition: color .25s;
}

    .navbar .nav-link:hover {
        color: #ffd54a !important;
    }

.navbar-brand {
    color: #fff;
    font-weight: 700;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding: 6rem 1rem 4rem;
    position: relative;
    color: #fff;
    overflow: hidden;
    display: block;
    background: linear-gradient(135deg, var(--accent1), var(--accent2) 50%, var(--accent3));
}

/* animated gradient blobs */
.grad-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .65;
    transform: translateZ(0);
    animation: float 8s ease-in-out infinite;
}

.grad-blob-1 {
    width: 360px;
    height: 360px;
    right: -80px;
    top: 10%;
    background: linear-gradient(45deg,#ffd54a,#ff6b6b);
    animation-duration: 10s;
}

.grad-blob-2 {
    width: 300px;
    height: 300px;
    left: -80px;
    bottom: 5%;
    background: linear-gradient(45deg,#7afcff,#6a82fb);
    animation-duration: 12s;
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-25px);
    }

    100% {
        transform: translateY(0);
    }
}

/* hero text */
.hero-title {
    font-size: 2.6rem;
    line-height: 1.02;
}

.hero-sub {
    font-size: 1.1rem; /* size same */
    color: rgba(255, 255, 255, 0.75); /* thoda light gray */
    font-weight: 500; /* halka mota */
}


.accent {
    background: linear-gradient(90deg,#fff,rgba(255,255,255,0.9));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* profile image */
.profile-wrap {
    width: 220px;
    height: 220px;
    margin: 0 auto;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    padding: 12px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* sections */
.section {
    padding: 4rem 0;
}

    .section h2 {
        font-weight: 700;
    }

    .section .text-muted {
        color: var(--muted);
    }

/* skill grid */
.skill-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
}

.skill {
    background: linear-gradient(180deg,#fff,#f8f9fa);
    padding: 14px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(16,24,40,0.06);
}

/* projects */
.bg-light {
    background: #f8f9fb;
}

.project-card {
    border-radius: 12px;
    overflow: hidden;
    transition: transform .35s ease, box-shadow .35s ease;
    flex: 0 0 auto;
    width: 320px; /* fixed width */
    margin: 0 12px; /* spacing between cards */
    background: #fff;
}

    .project-card img,
    .project-card video {
        height: 200px;
        object-fit: cover;
        display: block;
        width: 100%;
    }

@media (max-width: 992px) {
    .project-card {
        width: 280px;
    }

        .project-card img, .project-card video {
            height: 180px;
        }
}

@media (max-width: 576px) {
    .project-card {
        width: 240px;
    }

        .project-card img, .project-card video {
            height: 160px;
        }
}

.project-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    margin: 2rem 0;
    padding: 0 50px;
}

.project-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    width: 100%;
}

    .project-carousel::-webkit-scrollbar {
        display: none;
    }


/* left & right buttons (✅ fixed selectors) */
.carousel-btn {
    background: var(--accent1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

    .carousel-btn:hover {
        background: var(--accent2);
        transform: translateY(-50%) scale(1.05);
    }

    .carousel-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

.left-btn {
    left: -30px;
}

.right-btn {
    right: -30px;
}

@media (max-width: 992px) {
    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    .left-btn {
        left: -15px;
    }

    .right-btn {
        right: -15px;
    }
}

@media (max-width: 576px) {
    .carousel-btn {
        width: 35px;
        height: 35px;
    }

    .left-btn {
        left: 5px;
    }

    .right-btn {
        right: 5px;
    }
}

/* buttons */
.btn-primary {
    background: linear-gradient(90deg,var(--accent1), var(--accent2));
    border: 0;
    box-shadow: 0 8px 16px rgba(13,110,253,0.18);
}

.btn-outline-light {
    border-color: rgba(255,255,255,0.18);
    color: #fff;
}

/* helpers */
.text-muted {
    color: var(--muted) !important;
}

.shadow-sm {
    box-shadow: 0 6px 18px rgba(18,38,63,0.06);
}

/* contact form */
#contactForm .form-control {
    border-radius: 8px;
}

#formAlert {
    padding: .65rem;
    border-radius: 8px;
}

/* footer */
.footer {
    background: linear-gradient(180deg,#0a0f1a,#071122);
    color: #9aa7b2;
}
