/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

header h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

section h2 {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.5rem;
    position: relative;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

section h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.5rem 0;
    font-weight: 600;
}

section p, section li {
    margin-bottom: 1rem;
    color: #555;
    font-size: 1.1rem;
}

section ul {
    list-style: none;
    padding-left: 0;
}

section li {
    padding: 0.5rem 0;
    border-left: 4px solid #667eea;
    padding-left: 1rem;
    margin-bottom: 0.5rem;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 0 5px 5px 0;
    transition: background-color 0.3s ease;
}

section li:hover {
    background: rgba(102, 126, 234, 0.1);
}

section a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

section a:hover {
    color: #764ba2;
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
}

/* Projects section specific styling */
#projects ul {
    margin-bottom: 2rem;
}

#projects em {
    color: #7f8c8d;
    font-style: italic;
    display: block;
    margin-bottom: 1rem;
}

/* Skills section styling */
#skills li {
    font-weight: 500;
}

#skills strong {
    color: #2c3e50;
}

/* Certifications section */
#certifications img {
    margin-top: 1rem;
}

/* Organizations section */
#organizations img {
    margin-top: 1rem;
}

/* Education section */
#education img {
    margin-top: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    section {
        padding: 1.5rem;
        margin: 1rem;
    }

    section h2 {
        font-size: 1.6rem;
    }

    section h3 {
        font-size: 1.2rem;
    }

    .textpic-info-row {
        flex-direction: column;
        width: 100%;
        gap: 16px;
    }

    .textpic-info-col-30 {
        width: 100%;
        text-align: center;
    }

    .logo-info-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo-info-col-30 {
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .logo-info-col-70 {
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    section {
        padding: 1rem;
        margin: 0.5rem;
    }

    section h2 {
        font-size: 1.4rem;
    }

    section h3 {
        font-size: 1.1rem;
    }

    section p, section li {
        font-size: 1rem;
    }
}

/* Animation for sections appearing */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2, #667eea);
}

/* Contact icons */
#contacts i {
    margin-right: 0.5rem;
    color: #667eea;
    width: 20px;
}

.textpic-info-row {
    display: flex;
    gap: 32px;
    width: 100%;
    margin-bottom: 12px;
    justify-content: space-between;
}

.textpic-info-col-70 {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: px;
    flex: 0 0 70%;
    align-items: flex-start;
}

.textpic-info-col-30 {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 4px;
    flex: 0 0 30%;
    align-items: flex-start;
}

.logo-info-row {
    display: flex;
}

.logo-info-col-70 {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
    align-items: flex-start;
}

.logo-info-col-30 {
    display: flex;
    flex-direction: column;
    padding-right: 10px;
    align-items: flex-start;
}