/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 0;
}

/* Header Styles */
header {
    background-color: #ffffff;
    color: #000000;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(255, 255, 255, 0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 28px;
    font-weight: 600;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
    font-size: 16px;
}

nav a:hover {
    opacity: 0.7;
}

/* Section Styles */
.section {
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    width: 80%; /* Ensures 10% space on each side */
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Start slightly below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth swipe-in effect */
}

.section.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset position */
}

.section-heading {
    opacity: 0; /* Initially hidden */
    transform: translateY(50px); /* Start slightly below */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth swipe-in effect */
}

.section-heading.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Reset position */
}

.section h2 {
    font-size: 28px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 600;
}

/* About Me Section */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.profile-picture {
    flex-shrink: 0;
}

.profile-picture img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
}

.about-text {
    flex: 1;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Smoother sans-serif font */
}

.about-text p {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
}

/* CV Section */
.cv-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.nav-btn {
    background-color: #ffffff;
    color: #000000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.nav-btn:hover {
    background-color: #cccccc;
    transform: scale(1.1);
}

.nav-btn:active {
    transform: scale(0.95);
}

.cv-cards-container {
    flex: 1;
    max-width: 700px;
    overflow: hidden;
    position: relative;
}

.cv-cards {
    display: flex;
    transition: transform 0.5s ease;
}

.cv-card {
    min-width: 100%;
    padding: 40px;
    background-color: #1a1a1a;
    border-radius: 10px;
    border: 2px solid #333333;
}

.cv-card h3 {
    font-size: 24px;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

.card-content {
    max-height: 400px;
    overflow-y: auto;
}

.cv-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333333;
}

.cv-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.cv-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.cv-item .institution {
    font-size: 14px;
    color: #bbbbbb;
    margin-bottom: 5px;
}

.cv-item .date {
    font-size: 12px;
    color: #888888;
    margin-bottom: 10px;
}

.cv-item p {
    font-size: 13px;
    line-height: 1.6;
    color: #cccccc;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 20px;
    background-color: #0a0a0a;
    border-radius: 8px;
    border: 1px solid #333333;
}

.skill-category h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #ffffff;
}

.skill-category p {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.6;
}

/* Card Indicators */
.card-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #333333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #ffffff;
    transform: scale(1.3);
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > p {
    text-align: center;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 16px;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 2px solid #333333;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffffff;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    padding: 15px 40px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    background-color: #cccccc;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    margin-bottom: 0;
    padding: 15px;
    border-radius: 5px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #1a4d1a;
    border: 1px solid #2d7a2d;
    color: #ffffff;
    display: block;
}

.form-message.error {
    background-color: #4d1a1a;
    border: 1px solid #7a2d2d;
    color: #ffffff;
    display: block;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 30px 0;
    text-align: center;
    border-top: 1px solid #333333;
}

footer p {
    color: #888888;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        gap: 20px;
    }

    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cv-navigation {
        flex-direction: column;
        gap: 15px;
    }

    .cv-cards-container {
        width: 100%;
        max-width: 100%;
    }

    .cv-card {
        padding: 20px;
    }

    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }

    .section {
        padding: 60px 0;
    }

    .section h2 {
        font-size: 28px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 24px;
    }

    nav a {
        font-size: 14px;
    }

    .profile-picture img {
        width: 150px;
        height: 150px;
    }

    .section h2 {
        font-size: 24px;
    }

    .cv-card h3 {
        font-size: 22px;
    }
}

/* Scrollbar Styling */
.card-content::-webkit-scrollbar {
    width: 8px;
}

.card-content::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.card-content::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

.card-content::-webkit-scrollbar-thumb:hover {
    background: #555555;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; /* Adjust this value to match the header height */
}

a {
    color: white; /* Make all links white */
    text-decoration: underline; /* Always underlined */
}

a:hover {
    text-decoration: underline; /* Add underline on hover for clarity */
}
