/*
 * Custom Styling for the Career Profile - MODERN GLASSMORPHISM
 */

/* === Color Variables === */
:root {
    --glass-base: rgba(242, 242, 248, 0.078); 
    --primary-color: #f3f3f8; /* Teal for accents */
    --secondary-color: #0a75e0; /* Dark background color */
    --font-family: 'Lato', sans-serif;
    --glass-border: rgba(63, 31, 248, 0.1); 
    
}

/* === General Styles === */
body {
    font-family: var(--font-family);
    color: #f5f5f5; 
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #110116 0%, #080158 100%);
    background-attachment: fixed;
    filter: blur(10px);
    z-index: -1;
}

/* === Navigation Bar === */
#mainNav {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background-color: rgb(50, 68, 232);
    color: white;
    
}


#mainNav .nav-link {
    color: rgb(255, 255, 255) !important;
}

/* === Hero/Masthead Section === */
#header-about {
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.masthead-avatar {
    /* Responsive sizing: min 14rem, preferred 28vw, max 26rem */
    width: clamp(14rem, 28vw, 26rem);
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin-top: 15px;
    margin-bottom: 0.1rem;
}

.masthead-heading {
    font-weight: 900;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.2;
    word-spacing: 100vw;
    margin-bottom: 1rem !important;
    position: relative;
    z-index: 10;
    transform: translateY(-140%);
}

/* Mobile-specific: increase masthead image size on small screens */
@media (max-width: 768px) {
    .masthead-avatar {
        width: clamp(16rem, 350vw, 22rem) !important;
    }
}

    * {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    html, body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

.page-section-heading {
    color: white; 
    margin-bottom: 2rem;
    font-weight: 700;
}
.divider-custom .divider-custom-line {
    background-color: #fff; 
}

/* === Animation Section Styles === */
.spacer {
  width: 100%;
  height: 2vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main {
  position: fixed; /* Take it out of the document flow */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Make it cover the full viewport */
  z-index: -1; /* Place it behind all other content */
  pointer-events: none; /* Allow clicks to pass through to the content */
}

.main .container {
  position: absolute;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-surface50);
  border-radius: 10px;
}

.initial {
  left: 60%;
  top: 10%;
}

.box {
  width: 100px;
  height: 100px;
  position: relative;
  z-index: 10;
  border-radius: 10px;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: transparent;
  background-image: url("https://assets.codepen.io/16327/circle.png");
}

.second {
  left: 10%;
  top: 50%;
}

.marker {
  border-radius: 10px;
}

.second .marker {
  width: 100px;
  height: 100px;
}

.third {
  right: 10%;
  bottom: 3rem;
}

.third .marker {
  width: 100px;
  height: 100px;
}

/*
 * === GLASSMORPHISM STYLES FOR CARDS (The Modern Look) ===
 */
#experience .card, 
#education .card, 
#skills .card,
#portfolio .card {
    background: var(--glass-base); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    border: 1px solid var(--glass-border); 
    border-radius: 15px; 

    /* Make media elements behave responsively */
    img, picture, video, svg {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Prevent bootstrap containers/rows from causing horizontal overflow */
    .container, .row {
        max-width: 100%;
        overflow-x: hidden;
    }

    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.3);
    color: white !important; 
    transition: all 0.3s ease;
}

/* Hover Effect for Glass Cards */
#experience .card:hover, 
#education .card:hover,
#skills .card:hover,
#portfolio .card:hover {
    background: rgba(44, 62, 80, 0.4); 
    transform: translateY(-5px); 
    box-shadow: 0 8px 10px rgba(0, 0, 0, 0.2), 0 15px 30px rgba(0, 0, 0, 0.4);
}

#experience h2,
#education  h2,
#skills h2{
    padding-bottom: 20px; 
}

/* Dark gradient backgrounds for sections */


/* Styling content inside glass cards */
#experience .card{
    border-top: 100px;
}

#experience .card h4, #experience .card h5,
#education .card h4, #education .card h5 {
    color: var(--primary-color); 
}
#experience .card p, #experience .card ul,
#education .card p, #education .card ul,
#skills .card h4, #skills .card ul,
#portfolio .card h4, #portfolio .card p {
    color: #eee !important; 
}

/* Portfolio Image Styling */
#portfolio .card-img-top {
    border-radius: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
#portfolio .card:hover .card-img-top {
    opacity: 1; 
}

/* Contact Form Input Styling */
#contact .form-control {
    background: var(--glass-base);
    border: 1px solid var(--glass-border);
    color: white;
}
#contact .form-control:focus {
    background: rgba(44, 62, 80, 0.4);
    box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.5); 
}
#contact label {
    color: #eee !important;
}

/* === Accordion Section === */
#accordion-section {
    padding-top: 8rem;
    padding-bottom: 6rem;
}

.accordion-headers {
    gap: 0;
    margin-bottom: 3rem;
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.accordion-header {
    background: linear-gradient(135deg, rgba(87, 233, 243, 0.2) 0%, rgba(63, 31, 248, 0.2) 100%);
    border: 2px solid var(--primary-color);
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: table-cell;
    width: 33.333%;
    border-right: none;
}

.accordion-header:last-child {
    border-right: 2px solid var(--primary-color);
}

.accordion-header:hover {
    background: linear-gradient(135deg, rgba(87, 233, 243, 0.35) 0%, rgba(63, 31, 248, 0.35) 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(87, 233, 243, 0.2);
}

.accordion-header.active {
    background: linear-gradient(135deg, rgba(87, 233, 243, 0.4) 0%, rgba(63, 31, 248, 0.4) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(87, 233, 243, 0.3);
}

.accordion-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: white;
}

/* Mobile: Stack headers vertically instead of columns */
@media (max-width: 768px) {
    .accordion-headers {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .accordion-header {
        display: block;
        width: 100%;
        border-right: 2px solid var(--primary-color) !important;
        border-bottom: none;
    }

    .accordion-header:last-child {
        border-bottom: 2px solid var(--primary-color);
        border-right: 2px solid var(--primary-color);
    }
}

.accordion-panel {
    display: none;
    animation: slideDown 0.3s ease;
}

.accordion-panel.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Footer === */
.footer {
    padding-top: 5rem;
    padding-bottom: 5rem;

    color: white;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.btn-social {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-color);
    color: white;
    transition: all 0.3s ease;
    font-size: 1.3rem;
}

.btn-social:hover {
    
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(87, 233, 243, 0.3);
    color: white;
}

.skill-box {
    background: linear-gradient(135deg, rgba(87, 233, 243, 0.15) 0%, rgba(36, 16, 250, 0.15) 100%);
    border: 2px solid rgba(87, 233, 243, 0.4);
    border-radius: 12px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skill-box h5 {
    color: #57e9f3;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.skill-box:hover {
    background: linear-gradient(135deg, rgba(87, 233, 243, 0.25) 0%, rgba(36, 16, 250, 0.25) 100%);
    border-color: #57e9f3;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(87, 233, 243, 0.3);
}

.copyright {
    background-color: #1a252f; 
}

/* Mobile-specific adjustments: add space between header (designation) and About when stacked */
@media (max-width: 767.98px) {
    /* add breathing room below the designation and before the About heading */
    .masthead-subheading {
        margin-bottom: 0.75rem;
        font-size: 0.95rem;
    }

    /* target the About column when columns stack on mobile */
    #header-about .order-lg-2 {
        margin-top: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* slightly reduce avatar on very small screens so spacing looks balanced */
    .masthead-avatar {
        width: clamp(9rem, 28vw, 14rem);
        height: auto;
        margin-bottom: 1rem;
    }
}