/* ===========================
   Grid Layout
   =========================== */
.parent {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 30px;
    grid-row-gap: 30px;
    margin-top: 40px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.div1, .div2, .div3 {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(var(--glass-blur, 20px));
    color: white;
    border-radius: 25px;
    padding: 30px;
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 8px 32px var(--shadow-primary, rgba(0, 102, 255, 0.2));
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.div1::before, .div2::before, .div3::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.7s ease;
}

.div1:hover::before, .div2:hover::before, .div3:hover::before {
    left: 100%;
}

.div1:hover, .div2:hover, .div3:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.4);
    border-color: rgba(0, 212, 255, 0.5);
}

.div1 {
    grid-area: 1 / 1 / 3 / 2;
}

.div2 {
    grid-area: 1 / 2 / 2 / 4;
}

.div3 {
    grid-area: 2 / 2 / 3 / 4;
}

/* ===========================
   Skill Bars
   =========================== */
.skill-bar {
    margin-bottom: 20px;
    opacity: 0;
    animation: slideInLeft 0.6s ease forwards;
}

.skill-bar:nth-child(2) { animation-delay: 0.1s; }
.skill-bar:nth-child(3) { animation-delay: 0.2s; }
.skill-bar:nth-child(4) { animation-delay: 0.3s; }
.skill-bar:nth-child(5) { animation-delay: 0.4s; }
.skill-bar:nth-child(6) { animation-delay: 0.5s; }
.skill-bar:nth-child(7) { animation-delay: 0.6s; }
.skill-bar:nth-child(8) { animation-delay: 0.7s; }
.skill-bar:nth-child(9) { animation-delay: 0.8s; }
.skill-bar:nth-child(10) { animation-delay: 0.9s; }
.skill-bar:nth-child(11) { animation-delay: 1s; }
.skill-bar:nth-child(12) { animation-delay: 1.1s; }
.skill-bar:nth-child(13) { animation-delay: 1.2s; }
.skill-bar:nth-child(14) { animation-delay: 1.3s; }
.skill-bar:nth-child(15) { animation-delay: 1.4s; }
.skill-bar:nth-child(16) { animation-delay: 1.5s; }
.skill-bar:nth-child(17) { animation-delay: 1.6s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.skill-bar span {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 0.95rem;
    color: var(--secondary, #00d4ff);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.progress {
    height: 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    overflow: visible;
    position: relative;
}

.progress .determinate {
    background: linear-gradient(90deg, var(--primary, #0066ff), var(--secondary, #00d4ff)) !important;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
    height: 100%;
}

.progress .determinate::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmerProgress 2s infinite;
}

@keyframes shimmerProgress {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===========================
   Section Titles (h5)
   =========================== */
h5 {
    background: linear-gradient(90deg, #ffffff, var(--secondary, #00d4ff));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: 0.02em;
}

h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary, #0066ff), var(--secondary, #00d4ff));
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

/* ===========================
   Collection / Projects List
   =========================== */
.collection {
    background: transparent !important;
    border: none !important;
}

.collection-item {
    border-radius: 15px !important;
    margin-bottom: 15px !important;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1)) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative;
    overflow: hidden;
}

.collection-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.collection-item:hover::before {
    left: 100%;
}

.collection-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3) !important;
    border-color: rgba(0, 212, 255, 0.5) !important;
}

.collection-item .material-icons {
    transition: all 0.3s ease;
}

.collection-item:hover .material-icons {
    animation: pulse 0.6s ease;
    background: linear-gradient(135deg, var(--primary, #0066ff), var(--secondary, #00d4ff)) !important;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2) rotate(10deg); }
}

.collection-item .title {
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

/* ===========================
   Summary Section (div3)
   =========================== */
.div3 p {
    line-height: 1.9;
    font-size: 1.05rem;
    text-align: justify;
    color: rgba(255, 255, 255, 0.9);
}

/* ===========================
   Leadership Section
   =========================== */
.leadership-section {
    margin-top: 35px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.leadership-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem !important;
    color: var(--secondary, #00d4ff);
    text-align: center;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--secondary, #00d4ff) !important;
    background-clip: initial !important;
    padding-bottom: 0 !important;
}

.leadership-title::after {
    display: none !important;
}

.leadership-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.leadership-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: rgba(0, 102, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.leadership-badge:hover {
    background: rgba(0, 102, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.2);
}

.leadership-badge i {
    color: var(--secondary, #00d4ff);
    font-size: 1.5rem;
}

.leadership-badge span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

/* ===========================
   Vibe Coding Section
   =========================== */
.vibe-coding-section {
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1), rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.vibe-coding-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary, #0066ff), var(--secondary, #00d4ff), var(--primary, #0066ff));
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
}

@keyframes shimmerLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.vibe-coding-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem !important;
    color: var(--secondary, #00d4ff);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--secondary, #00d4ff) !important;
    background-clip: initial !important;
    padding-bottom: 0 !important;
}

.vibe-coding-title::after {
    display: none !important;
}

.vibe-coding-text {
    font-size: 1rem !important;
    line-height: 1.8 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    text-align: left !important;
}

.vibe-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.vibe-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--secondary, #00d4ff);
    transition: all 0.3s ease;
}

.vibe-tag:hover {
    background: rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

/* ===========================
   Education Section
   =========================== */
.education-section {
    margin-top: 50px;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.edu-timeline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

.edu-card {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(var(--glass-blur, 20px));
    border: 2px solid var(--glass-border, rgba(255, 255, 255, 0.1));
    border-radius: 25px;
    padding: 30px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.edu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary, #0066ff), var(--secondary, #00d4ff));
    border-radius: 4px;
}

.edu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.3);
    border-color: rgba(0, 212, 255, 0.4);
}

.edu-card-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 20px;
}

.edu-logo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.edu-card:hover .edu-logo {
    transform: scale(1.1);
}

.edu-card-title h6 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    color: white;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.edu-subtitle {
    font-size: 1rem;
    color: var(--secondary, #00d4ff);
    font-weight: 600;
    margin: 0 0 6px 0;
}

.edu-university {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 6px 0;
}

.edu-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.edu-flag {
    width: 24px;
    height: 16px;
    border-radius: 3px;
    margin-left: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.edu-topics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.edu-topic-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
}

.edu-topic-tag:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-2px);
}

.edu-topic-highlight {
    background: rgba(0, 102, 255, 0.2) !important;
    border-color: rgba(0, 212, 255, 0.4) !important;
    color: var(--secondary, #00d4ff) !important;
    font-weight: 600;
}

/* ===========================
   Certifications Carousel
   =========================== */
.cert-carousel-section {
    margin-top: 50px;
    text-align: center;
}

.cert-carousel-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem !important;
    color: var(--secondary, #00d4ff) !important;
    margin-bottom: 25px;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: var(--secondary, #00d4ff) !important;
    background-clip: initial !important;
    padding-bottom: 0 !important;
}

.cert-carousel-title::after {
    display: none !important;
}

.cert-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.cert-carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
}

.cert-item {
    flex-shrink: 0;
    width: 160px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 15px;
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.2);
    transform: scale(1.05);
}

.cert-item img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    border-radius: 8px;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 992px) {
    .parent {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .div1, .div2, .div3 {
        grid-area: auto !important;
    }

    .edu-timeline {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .leadership-badges {
        grid-template-columns: 1fr;
    }

    .edu-card-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .edu-period {
        justify-content: center;
    }

    .edu-topics {
        justify-content: center;
    }
}
