/* General Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2c3e50;
    --bg-dark: #212529;
    --accent-color: #c0ddca;
    --text-light: #ffffff;
    --text-dark: #333;
    --card-bg: rgba(255, 255, 255, 0.85);
    --section-bg: rgba(0, 0, 0, 0.7);
    --border-radius: 8px;
    --box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-image: url("ola.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center;
    color: var(--text-dark);
    line-height: 1.6;
}

h1 {
    text-align: center;
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    padding: 12px 25px;
    color: var(--accent-color);
    font-family: 'Kdam Thmor Pro', sans-serif;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Header Styles */
header {
    background-color: var(--bg-dark);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.flexH {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.phd {
    font-size: 2rem;
    color: var(--text-light);
    margin: 0;
    font-family: 'Kdam Thmor Pro', sans-serif;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo {
    width: 40px;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Main Content Styles */
main {
    flex: 1;
    padding: 30px 0;
}

.flexh1, .flex {
    display: flex;
    justify-content: center;
    width: 90%;
    max-width: 800px;
    margin: 0 auto 20px;
    background-color: var(--section-bg);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.flex {
    margin-bottom: 50px;
}

.accordion {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.section {
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--card-bg);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.section-header {
    padding: 15px 20px;
    background-color: var(--secondary-color);
    color: var(--text-light);
    cursor: pointer;
    font-weight: bold;
    position: relative;
    font-family: 'Kdam Thmor Pro', sans-serif;
    transition: background-color 0.3s ease;
}

.section-header:after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.section.active .section-header:after {
    content: '−';
    transform: translateY(-50%) rotate(0deg);
}

.section-header:hover {
    background-color: var(--primary-color);
}

.section-content {
    display: none;
    padding: 20px;
    line-height: 1.6;
}

.section.active .section-content {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-content p {
    margin-bottom: 15px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tech-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.links {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
}

.links:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding: 20px 0;
    text-align: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 15px;
}

footer a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    text-decoration: none;
    transition: transform 0.3s ease;
}

footer a:hover {
    transform: translateY(-5px);
}

footer img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

footer a:hover img {
    box-shadow: 0 0 15px rgba(52, 152, 219, 0.7);
}

footer span {
    font-size: 0.8rem;
}

.copyright {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .flexh1, .flex {
        width: 95%;
        padding: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
        padding: 10px 20px;
    }
    
    .phd {
        font-size: 1.6rem;
    }
    
    .section-header {
        padding: 12px 15px;
    }
    
    .section-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .flexH {
        flex-direction: column;
        gap: 10px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .tech-tags {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .links {
        display: block;
        text-align: center;
    }
}