/* ========================================================================
   GLOBAL VARIABLES & RESET
========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

:root {
    --bg-light: #f6f7fb;
    --bg-white: #ffffff;

    --text-dark: #1a1a1a;
    --text-gray: #555;

    --primary: #6a11cb;
    --secondary: #2575fc;

    --gradient: linear-gradient(45deg, #6a11cb, #2575fc);

    --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    --hover-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);

    --glass: rgba(255, 255, 255, 0.4);
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    scroll-behavior: smooth;
}


/* ========================================================================
   COMMON SECTIONS
========================================================================= */
.section {
    padding: 50px 10%;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards;
}

.section-title {
    font-size: 38px;
    margin-bottom: 40px;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Gradient text */
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ========================================================================
   BUTTONS
========================================================================= */
.btn {
    display: inline-block;
    padding: 10px 26px;
    color: #fff;
    border-radius: 25px;
    text-decoration: none;
    background: var(--gradient);
    transition: 0.3s ease;
    max-width: fit-content;
}

.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--hover-shadow);
}


/* ========================================================================
   CARD BOX
========================================================================= */
.card-box {
    background: var(--bg-white);
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #eee;
    box-shadow: var(--card-shadow);
    transition: 0.3s ease;
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.card-box:hover {
    transform: translateY(7px) scale(1.02);
    box-shadow: var(--hover-shadow);
}

/* ========================================================================
   NAVBAR
========================================================================= */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 10%;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.logo img{
    height: 40px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu li a {
    text-decoration: none;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    transition: 0.3s;
    border: 2px solid transparent;
}

.menu li a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobile nav */
.menu-btn {
    display: none;
    font-size: 30px;
}

@media (max-width: 900px) {
    .menu-btn {
        display: block;
    }

    .menu {
        position: absolute;
        display: none;
        flex-direction: column;
        width: 100%;
        top: 70px;
        right: 0;
        background: var(--bg-white);
        padding: 20px 0;
    }

    .menu.active {
        display: flex;
    }
}

/* ========================================================================
   HERO SECTION
========================================================================= */
.hero {
    height: 100vh;
    padding-top: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    animation: fadeIn 1.2s ease forwards;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    animation: zoomIn 1s ease forwards;
}

.hero .name {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero p {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-gray);
    animation: zoomIn 1s ease forwards;
}

/* ========================================================================
   ABOUT SECTION
========================================================================= */
.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img img {
    width: 260px;
    height: 260px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: var(--gradient);
    padding: 4px;
    box-shadow: var(--hover-shadow);
    transition: 0.3s ease;
}

.about-img img:hover {
    transform: scale(1.05);
}

.about-text p {
    font-size: 18px;
    color: var(--text-gray);
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        text-align: center;
    }
}

/* ========================================================================
   SKILLS SECTION
========================================================================= */
.skill-bar {
    margin-bottom: 20px;
}

.bar {
    width: 100%;
    height: 8px;
    background: #e4e4e4;
    border-radius: 20px;
    overflow: hidden;
}

/* Infinite fill-up & fill-out animation */
@keyframes skillLoop {
    0%   { width: 20%; }
    50%  { width: var(--skill-level); }
    100% { width: 20%; }
}

.bar span {
    height: 100%;
    display: block;
    background: var(--gradient);
    border-radius: 20px;
    animation: skillLoop 5s ease-in-out infinite;
}

/* ========================================================================
   PROJECTS
========================================================================= */
.projects .project-cards {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.image-box img {
    width: 100%;
    height: 200px;
    border-radius: 14px;
    object-fit: cover;
    transition: 0.3s ease;
}

.image-box img:hover {
    transform: scale(1.05);
    box-shadow: var(--hover-shadow);
}

/* ========================================================================
   EXPERIENCE / EDUCATION / CERTIFICATES
========================================================================= */
.exp-container,
.edu-container,
.certificate-container {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ========================================================================
   CONTACT SECTION
========================================================================= */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.contact-form,
.contact-social {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    border-radius: 10px;
    border: 1px solid #ddd;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(106,17,203,0.15);
    outline: none;
}

.social-btn {
    width: 200px;
    padding: 12px 18px;
    border-radius: 30px;
    background: var(--gradient);
    color: #fff;
    text-align: center;
    text-decoration: none;
    transition: 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
}

/* ========================================================================
   FOOTER
========================================================================= */
.footer {
    text-align: center;
    padding: 30px 10%;
    background: var(--bg-white);
}

.footer p {
    color: var(--text-gray);
}

/* ========================================================================
   ANIMATIONS
========================================================================= */
@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

/* NEW Glow Animation */
@keyframes glow {
    0% { box-shadow: 0 0 10px rgba(76, 0, 255, 0.2); }
    50% { box-shadow: 0 0 20px rgba(37,117,252,0.4); }
    100% { box-shadow: 0 0 10px rgba(118, 2, 241, 0.2); }
}

.glow-animation {
    animation: glow 3s infinite ease-in-out;
}
