/* =================== GLASMORPHIC HOME STYLES =================== */
.glass-home {
    display: flex;
    align-items: center;
    gap: 56px;
    background: rgba(30, 30, 38, 0.65);
    border-radius: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 7px 38px 0 rgba(109, 68, 255, 0.12), 0 1.5px 14px 0 rgba(72, 61, 139, 0.23);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding: 48px 54px;
    max-width: 900px;
    /* Top margin as needed (adjust for navbar spacing) */
    margin-top: 50px;
    /* 90px top, 40px bottom */
    min-height: 320px;
    z-index: 1;
}

/* =================== SECTION CARDS =================== */
.glass-section {
    background: rgba(30, 30, 38, 0.65);
    border-radius: 28px;
    border: 1.2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 7px 38px 0 rgba(109, 68, 255, 0.08);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px 36px;
    max-width: 900px;
    min-width: 320px;
    box-sizing: border-bo
}

/* Remove bottom margins on all main sections to avoid double gaps */
.glass-home,
.glass-section,
.portfolio-section,
.contact-container,
.skills-section {
    margin-bottom: 0;
    /* No gap here */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Divider styles with equal margin above and below */
.section-divider {
    width: 100%;
    max-width: 900px;
    height: 2px;
    margin: 60px auto;
    /* 60px top and bottom margin centers it in the gap */
    background: linear-gradient(90deg,
            rgba(130, 105, 255, 0) 0%,
            rgba(170, 170, 255, 0.23) 18%,
            rgba(255, 255, 255, 0.30) 45%,
            rgba(170, 170, 255, 0.23) 82%,
            rgba(130, 105, 255, 0) 100%);
    border-radius: 8px;
    filter: blur(0.8px);
    opacity: 0.85;
    box-shadow: 0 0 18px 0 rgba(160, 120, 255, 0.12);
    pointer-events: none;
}

/* =================== PROFILE PHOTO, HEADINGS, META =================== */
@keyframes glow-blink {

    0%,
    100% {
        box-shadow:
            0 0 18px 5px rgba(170, 120, 255, 0.32),
            0 0 32px 12px #c1a9ff33;
    }

    60% {
        box-shadow:
            0 0 28px 9px rgba(200, 150, 255, 0.5),
            0 0 60px 23px #d8bbff55;
    }
}

.home-photo img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 7px solid #a484f5;
    background: #27283a;
    box-shadow: 0 0 18px 5px rgba(255, 255, 255, 0.215), 0 0 32px 12px #c1a9ff2b;
    animation: glow-blink 2.4s ease-in-out infinite;
}


.home-desc h1,
.gradient-name {
    font-size: 2.7rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.gradient-name {
    background: linear-gradient(90deg, #7f8cff 35%, #e088ff 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.home-desc p {
    font-size: 1.18rem;
    color: #eee;
    line-height: 1.5;
}

.home-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 1.09rem;
    color: #c3c3c3;
    font-weight: 500;
}

.home-meta .meta-icon {
    color: #7a7a7a9c;
    font-size: 1.23rem;
    margin-right: 3px;
    display: inline-flex;
    align-items: center;
}

.home-meta .meta-location {
    color: #f0f0f0;
}

.home-meta .meta-dot {
    color: #525251;
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0 2px;
    position: relative;
    top: -1px;
}

.home-meta .meta-institute {
    color: #b5b5ff;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.09px;
}

/* =================== TIMELINE (RESUME/EDUCATION SECTION) =================== */

.resume-timeline {
    padding: 32px 24px;
    background: rgba(30, 30, 38, 0.65);
    border-radius: 20px;
    border: 1.2px solid rgba(255, 255, 255, 0.16);
    max-width: 900px;
    margin: 32px auto;
}

.timeline-heading {
    padding-left: 32px;
    /* Match .timeline-bullets left padding */
}

/* BULLET POINTS FOR EDUCATION LIST */
.timeline-bullets {
    list-style-type: disc;
    padding-left: 32px;
    margin: 0;
}

.timeline-bullets li {
    margin-bottom: 28px;
    color: #fff;
}

.timeline-bullets li::marker {
    color: #FFD47C;
    font-size: 1.35em;
}

.resume-timeline h3 {
    margin: 0 0 8px 0;
    font-size: 1.18rem;
    font-weight: bold;
    color: #fff;
}

.timeline-range {
    color: #FFD47C;
    font-size: 1.07rem;
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.resume-timeline p {
    margin: 0;
    color: #e0e0e0;
    font-size: 1.04rem;
    line-height: 1.45;
}


/* Horizontal line separator between entries */
.timeline-separator {
    border: none;
    border-top: 2px solid #fff;
    margin: 28px 0 20px 0;
    opacity: 0.17;
}

/* SKILL*/
.skills-section {
    padding: 34px 32px;
}

.skills-section h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: 1px;
}

.skill-bar-row {
    margin-bottom: 28px;
    font-size: 1.22rem;
    font-weight: 700;
    color: #fff;
}

.skill-bar-row strong {
    font-weight: 700;
    color: #fff;
    margin-right: 12px;
}

.skill-bar-percent,
.skill-percent {
    font-weight: 500;
    font-size: 1.1rem;
    color: #ccc;
}

.skill-bar-bg {
    margin-top: 10px;
    width: 100%;
    height: 12px;
    background: #323232;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #7f8cff 35%, #e088ff 90%);
    transition: width 0.9s cubic-bezier(.63, -0.01, .24, 1.13);
}


/* =================== PORTFOLIO =================== */
.portfolio-section {
    padding: 0;
    margin: 0;
    max-width: 100%;
}

.portfolio-section h2 {
    font-size: 2.1rem;
    color: #fff;
    margin-bottom: 34px;
    font-weight: 800;
    letter-spacing: 1px;
}

.portfolio-cards {
    display: flex;
    gap: 38px;
    justify-content: center;
    /* <-- change from flex-start to center */
    flex-wrap: wrap;
    width: 100%;
}


.portfolio-card {
    background: rgba(20, 20, 20, 0.94);
    border-radius: 24px;
    border: 1.2px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.13);
    padding: 36px 32px 28px 32px;
    min-width: 320px;
    max-width: 410px;
    flex: 1 1 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.portfolio-card h3 {
    color: #fff;
    font-size: 1.29rem;
    font-weight: 700;
    margin: 0 0 9px 0;
}

.portfolio-card p {
    color: #bdbdbd;
    font-size: 1.07rem;
    font-style: italic;
    margin: 0 0 15px 0;
}

.portfolio-time {
    color: #bdbdbd;
    font-size: 1.01rem;
    margin-top: auto;
}

.contact-container {
    background: rgba(30, 30, 38, 0.65);
    border-radius: 15px;
    padding: 32px;
    color: #fff;
    max-width: 900px;
    margin: 40px auto;
}

.contact-container h2 {
    font-size: 2.2rem;
    font-weight: bold;
}

.contact-container p {
    margin-bottom: 24px;
    color: #ccc;
}

.contact-form .form-row {
    display: flex;
    gap: 24px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    border: none;
    border-radius: 8px;
    padding: 12px;
    background: #232342;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 8px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

button[type="submit"] {
    background: #757578;
    color: #181828;
    padding: 12px 36px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
}

button[type="submit"]:hover {
    background: #5780d8;
}


@media (max-width: 900px) {
    .portfolio-cards {
        flex-direction: column;
        gap: 22px;
    }

    .portfolio-card {
        min-width: 0;
        max-width: 100%;
    }
}

/* =================== TOGGLED SECTION VISIBILITY =================== */
.page-content.hidden {
    display: none;
}

.page-content.current {
    display: block;
}

/* =================== GLASS NAVBAR AT THE VERY TOP =================== */
.glass-navbar {
    position: fixed;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    width: fit-content;
    padding: 0 32px;
    height: 70px;
    background: rgba(55, 55, 55, 0.272);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 7px 38px 0 rgba(109, 68, 255, 0.12), 0 1.5px 14px 0 rgba(72, 61, 139, 0.23);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999;
    overflow: visible;
}

.glass-navbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 18px;
    pointer-events: none;
    z-index: -1;
    background: linear-gradient(90deg,
            rgba(130, 105, 255, 0.25) 0%,
            rgba(72, 61, 139, 0.27) 60%,
            rgba(30, 30, 30, 0.18) 100%);
    border-radius: 0 0 18px 18px;
    filter: blur(9px);
    opacity: 0.85;
}

.glass-navbar .nav-link {
    color: #eaeaea;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1.28rem;
    font-weight: 500;
    padding: 10px 28px;
    border-radius: 15px;
    transition: background 0.21s, color 0.15s;
    background: transparent;
    margin: 0 2px;
}

.glass-navbar .nav-link.active,
.glass-navbar .nav-link:hover {
    background: rgba(114, 112, 112, 0.19);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(109, 68, 255, 0.08);
    cursor: pointer;
}

/* Body padding for navbar space */
body {
    background-color: #121212;
    color: #f0f0f0;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
    background-image: url('bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-color: rgba(0, 0, 0, 0.7);
    background-blend-mode: overlay;
    padding-top: 100px !important;
}




.site-footer {
    background: #0f0f0f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 48px 20px 32px;
    color: #fff;
    position: relative;
}

.footer-left {
    font-size: 0.7rem;
    color: #ccc;
}

.footer-right a {
    margin-left: 24px;
    transition: color 0.3s ease, opacity 0.2s ease;
    text-decoration: none;
    color: #ccc;
    /* Default icon color */
    display: inline-flex;
    align-items: center;
    font-size: 1.5rem;
    /* Adjust size as needed */
}

.footer-right a:hover {
    color: #7ea6fd;
    /* Highlight color on hover, matching your site accent */
    opacity: 1;
    cursor: pointer;
}

.footer-right svg {
    vertical-align: middle;
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: fill 0.3s ease;
}

.footer-right a:focus {
    outline: 2px solid #7ea6fd;
    outline-offset: 2px;
}

.footer-up {
    position: fixed;
    right: 38px;
    bottom: 88px;
    /* or as needed for your layout */
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(44, 44, 55, 0.24);
    border: 1.2px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 32px rgba(30, 30, 38, 0.30);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    cursor: pointer;
    transition: background 0.25s, box-shadow 0.25s;
}

.footer-up:hover {
    background: rgba(130, 105, 255, 0.15);
    box-shadow: 0 12px 32px rgba(109, 68, 255, 0.24);
}

.footer-up svg {
    width: 28px;
    height: 28px;
    display: block;
    stroke: #fff;
}


/* ----------- Footer (Always keep at bottom) ----------- */
@media (max-width:600px) {
    .site-footer {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 24px 12px 16px 12px;
    }

    .footer-right {
        margin-top: 10px;
    }

    .footer-up {
        right: 18px;
        bottom: 20px;
    }
}


/* ----------- Main navigation adjustments ----------- */
@media (max-width: 700px) {
    .glass-navbar {
        padding: 0 4vw;
        height: 54px;
        border-radius: 16px;
    }

    .glass-navbar .nav-link {
        font-size: 1.03rem;
        padding: 7px 13px;
        border-radius: 11px;
    }

    body {
        padding-top: 67px !important;
    }
}

/* ----------- Small mobile: main cards and sections ----------- */
@media (max-width: 650px) {
  .glass-home,
  .glass-section {
    flex-direction: column;   /* stack content vertically */
    padding: 20px 16px;       /* vertical padding + horizontal padding */
    max-width: 94vw;          /* make container width less than full viewport */
    width: 94vw;              /* same as max-width for consistency */
    border-radius: 16px;      /* border rounding */
    gap: 20px;
    margin-left: auto;        /* center container horizontally */
    margin-right: auto;
    min-width: 0;
    box-sizing: border-box;
  }
}


@media (max-width: 650px) {
  .contact-container {
    width: 92vw !important;            /* Slightly less than 100vw for side space */
    max-width: 420px !important;       /* Limits overall width for best fit */
    margin-left: auto !important;      /* Always center horizontally */
    margin-right: auto !important;
    border-radius: 14px !important;
    padding: 20px 4vw !important;      /* room inside container */
    box-sizing: border-box !important;
    position: relative !important;
    display: block !important;
  }
  .contact-form, .contact-form .form-row {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  .form-group,
  .form-group input,
  .form-group textarea,
  button[type="submit"] {
    width: 100% !important;
    box-sizing: border-box !important;
  }
}



html {
    scroll-behavior: smooth;
}
