@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300&display=swap");
html[data-theme="light"] {
    --bg1-color: #DDE1E7;
    --text-color: #6C757D;
    --shadow-col1: #babdc2;
    --shadow-col2: #ffffff;
    --meta-col: #444;
    --head-col: black;
}

html[data-theme="dark"] {
    --bg1-color: #272727;
    --text-color: #fff;
    --bg-txt-img: linear-gradient(315deg, #d5adc8 0%, #ff8489 74%);
    --txt-fill: transparent;
    --shadow-col1: #191919;
    --shadow-col2: #1d1d1d;
    --meta-col: rgb(155, 149, 149);
    --head-col: #fff;
}

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2ecc71;
    --text-primary: var(--text-color);
    --bg-primary: var(--bg1-color);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    min-height: 60vh; /* Reduced from 100vh */
    display: flex;
    align-items: center;
    padding: 3rem 0; /* Reduced padding */
    background: linear-gradient(
        45deg,
        rgba(var(--bg1-color-rgb), 0.8),
        rgba(var(--bg1-color-rgb), 0.6)
    );
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    max-width: 450px; /* Reduced from 600px */
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
}

.hero-title {
    font-size: 2.8rem; /* Reduced from 3.5rem */
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--bg-txt-img);
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--txt-fill);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.hero-quote {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    color: var(--text-primary);
    font-style: italic;
    margin-top: 1rem;
    opacity: 0.9;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Section Styles - Updated */
.section-title {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    text-align: center;
    margin-bottom: 2.5rem; /* Reduced from 3rem */
    color: var(--text-primary);
    position: relative;
    padding-bottom: 15px;
}

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

/* Modern Card Styles - Apply to all cards */
.experience-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.2);
}

.experience-card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
}

.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    margin-right: 1rem;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-card-title {
    flex: 1;
    min-width: 0;
}

.experience-card-title h3 {
    font-size: 1.25rem; /* Reduced from 1.4rem */
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    margin-bottom: 0.5rem;
}

.experience-card-company {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.company-name {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
}

.experience-duration {
    font-size: 0.9rem;
    color: var(--text-primary);
    opacity: 0.8;
}

.experience-card-body {
    padding: 1.5rem;
}

.experience-card-description {
    color: var(--text-primary);
    opacity: 0.9;
    line-height: 1.6;
}

.experience-card-description li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.experience-card-description li::before {
    /* content: "•"; */
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.experience-card-footer {
    margin-top: 1.5rem;
    display: flex;
    justify-content: flex-end;
}

.verify-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.verify-button:hover {
    background: var(--secondary-color);
    transform: translateX(5px);
}

.button-icon {
    transition: transform 0.3s ease;
}

.verify-button:hover .button-icon {
    transform: translateX(5px);
}

/* Responsive Design Updates */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }

    .hero-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-quote {
        text-align: center;
    }

    .hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .experience-cards,
    .volunteership,
    .mentorship-cards, .position-cards {
        grid-template-columns: 1fr;
    }

    .company-logo {
        width: 50px;
        height: 50px;
        padding: 6px;
    }
}

/* Dark mode specific styles */
html[data-theme="dark"] .experience-card {
    background: rgba(39, 39, 39, 0.8);
    border-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="light"] .experience-card {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(0, 0, 0, 0.05);
}

/* Updated Container Styles */
.experience-cards,
.volunteership,
.mentorship-cards, .position-cards {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Updated Section Spacing */
.experience-section,
.volunteer-section,
.mentorship-section, .position-section {
    padding: 3rem 0;
}

/* Add smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Logo styling fixes */
.company-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    object-fit: contain;
    margin-right: 1rem;
    background: white;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.experience-card-header {
    padding: 1.25rem;
    display: flex;
    align-items: center;
}

/* Dark mode specific logo handling */
html[data-theme="dark"] .company-logo {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme="light"] .company-logo {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Card header layout improvements */
.experience-card-title {
    flex: 1;
    min-width: 0;
}

.experience-card-company {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Mentorship Section Styles */
.mentorship-section, .position-section {
    padding: 3rem 0;
}

.mentorship-cards .experience-card, .position-cards .experience-card {
    height: 100%;
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .mentorship-cards .col-md-6, .position-cards .col-md-6 {
        margin-bottom: 2rem;
    }
}
