/* --- CSS RESET & VARIABLES --- */
:root {
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --bg-dark: #0f172a;
    --card-bg: #1e293b;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #06b6d4;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVBAR --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 8%;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo {
    color: var(--text-light);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 2.2rem;
}

.nav-links a {
    position: relative;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-light);
}

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

.menu-btn {
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-light);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
}

.menu-btn:hover {
    color: var(--accent);
    border-color: rgba(6, 182, 212, 0.35);
    background: rgba(6, 182, 212, 0.08);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5rem;
    padding: 120px 8% 60px;
}

.hero-text {
    max-width: 680px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.hero-label i {
    font-size: 0.45rem;
}

.hero-text h3 {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 1.3rem;
}

.hero-text h1 span {
    display: block;
    color: var(--accent);
    font-size: 2rem;
    margin-top: 0.4rem;
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 620px;
    margin-bottom: 1.5rem;
}

.hero-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
}

.hero-tech span {
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 20px;
    color: var(--text-muted);
    background: rgba(6, 182, 212, 0.05);
    font-size: 0.78rem;
}

.btn-group {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

.btn-secondary {
    border: 1px solid var(--primary);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.18);
}

.hero-img {
    position: relative;
    flex-shrink: 0;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--accent)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 50px rgba(79, 70, 229, 0.35);
}

.hero-img::before {
    content: '';
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: 50%;
    animation: heroPulse 3s ease-in-out infinite;
}

.hero-img img {
    position: relative;
    z-index: 1;
    width: 93%;
    height: 93%;
    object-fit: cover;
    border-radius: 50%;
}

/* --- SECTION GLOBAL --- */
section {
    padding: 6rem 8%;
    scroll-margin-top: 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* --- ABOUT SECTION --- */
.about {
    padding-top: 5rem;
}

.about-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.about-text h3 {
    font-size: 1.7rem;
    margin-bottom: 1.2rem;
}

.about-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-info {
    display: grid;
    gap: 1rem;
}

.about-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background-color: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition);
}

.about-item:hover {
    transform: translateX(6px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
.about-item > i {
    width: 45px;
    height: 45px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent);
    font-size: 1.25rem;
}

.about-item h4 {
font-size: 1rem;
margin-bottom: 0.2rem;
}

.about-item p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 0;
    line-height: 1.5;
    }

/* --- SKILLS SECTION --- */

.skills-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1.5rem;
max-width: 1000px;
margin: 0 auto;
}

.skill-card {
    position: relative;
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 14px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.skill-card::before {
content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.skill-card:hover i {
    transform: scale(1.08);
    box-shadow: 0 0 18px rgba(6, 182, 212, 0.15);
}

.skill-card:hover::before {
transform: scaleY(1);
}

.skill-card i {
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent);
    font-size: 1.35rem;
    border: 1px solid rgba(6, 182, 212, 0.12);
}

.skill-card h3 {
    font-size: 1.18rem;
    margin-bottom: 0.6rem;
    letter-spacing: -0.2px;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
}


/* --- PORTFOLIO SECTION --- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-card {
    position: relative;
    background-color: var(--card-bg);
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 210px;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(15, 23, 42, 0.35)
    );
    pointer-events: none;
    z-index: 1;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover .tag {
    border-color: rgba(6, 182, 212, 0.45);
    background: rgba(6, 182, 212, 0.1);
    transform: translateY(-1px);
}

.portfolio-img {
    position: relative;
    z-index: 0;
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.04);
}

.portfolio-info {
    padding: 1.5rem;
}

.portfolio-info h3 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
    letter-spacing: -0.2px;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
    margin-bottom: 1.2rem;
}

.portfolio-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 20px;
    background: rgba(6, 182, 212, 0.06);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 500;
    transition: var(--transition);
}

/* --- CONTACT SECTION --- */

.contact-container {
    max-width: 650px;
    margin: 0 auto;
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 1.3rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.form-group textarea {
    resize: vertical;
    min-height: 130px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    background: rgba(6, 182, 212, 0.02);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.08);
}

.submit-btn {
    width: 100%;
    padding: 0.9rem;
    background-color: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.25);
}

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

    /* --- SCROLL REVEAL --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* --- RESPONSIVE DESIGN (HP) --- */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        height: calc(100vh - 72px);
        background: rgba(15, 23, 42, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 2rem;
        padding-top: 4rem;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1rem;
    }

    .nav-links a::after {
        bottom: -6px;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-text {
        text-align: center;
    }

    .about-text h3 {
        font-size: 1.4rem;
    }

    .about-item {
        text-align: left;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.5rem;
    }

    .portfolio-grid {
    grid-template-columns: 1fr;
    }

    .portfolio-img {
        height: 200px;
    }

    .contact-container {
    padding: 1.5rem;
    }

    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
        gap: 2.5rem;
        padding-top: 120px;
    }

    .hero-text h1 {
        font-size: 2.4rem;
    }

    .hero-text h1 span {
        font-size: 1.45rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-tech {
        justify-content: center;
    }

    .btn-group {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-img {
        width: 230px;
        height: 230px;
    }
}

@keyframes heroPulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.04);
        opacity: 1;
    }
}