/* 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-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header and Navigation */
header {
    background: #000000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin-left: auto;
}

.header-logo {
    height: 80px;
    width: auto;
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: translateY(-50%) scale(1.05);
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: #ffeb3b;
    color: #333;
    padding: 4rem 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: #000;
    color: #fff;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-secondary {
    background-color: #000;
    color: #fff;
    border: 2px solid #000;
}

.btn-secondary:hover {
    background-color: #333;
    color: #fff;
    transform: translateY(-2px);
}

/* About Section */
.about {
    padding: 4rem 0;
    background-color: white;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.about-text h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #333;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.magnus-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.magnus-photo:hover {
    transform: scale(1.05);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: #555;
}

.what-i-seek {
    margin-top: 10rem;
}

.what-i-seek h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #333;
}

.about-highlights {
    background: #000000;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-highlights h3 {
    margin-bottom: 1rem;
    color: #ffffff;
    font-size: 1.3rem;
}

.about-highlights ul {
    list-style: none;
}

.about-highlights li {
    padding: 0.5rem 0;
    color: #ffffff;
    position: relative;
    padding-left: 1.5rem;
}

.about-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #ffeb3b;
    font-weight: bold;
}

/* Quick Links Section */
.quick-links {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.quick-links h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card h3 {
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.3rem;
}

.card p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.card-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.card-link:hover {
    color: #5a6fd8;
}

/* Footer */
footer {
    background-color: #000000;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #ffeb3b;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffeb3b;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.8;
    margin: 0;
}

/* Page Header for other pages */
.page-header {
    background: #ffeb3b;
    color: #333;
    padding: 3rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content sections for other pages */
.cv-content,
.grades-content,
.contact-content {
    padding: 3rem 0;
    background-color: white;
}

/* Contact Page Styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 2rem;
}

.contact-info h2,
.contact-form h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.contact-info p {
    margin-bottom: 2rem;
    color: #666;
    line-height: 1.6;
}

.contact-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ffeb3b;
}

.contact-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: #555;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    color: #ffeb3b;
}

/* Contact Form Styling */
.contact-form {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ffeb3b;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

/* Responsive Contact Page */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Grades Page Styling */
.grades-content h2 {
    text-align: center;
    color: #333;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.grades-display {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.grades-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 2px solid #ffeb3b;
}

/* CV Page Styling */
.cv-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.cv-section {
    margin-bottom: 3rem;
}

.cv-section h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 3px solid #ffeb3b;
    padding-bottom: 0.5rem;
}

.experience-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-left: 5px solid #ffeb3b;
    transition: transform 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-5px);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.experience-header h3 {
    color: #333;
    font-size: 1.4rem;
    margin: 0;
}

.company {
    background: #ffeb3b;
    color: #333;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
}

.date-badge {
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    display: inline-block;
    margin-bottom: 1rem;
}

.experience-description ul {
    margin: 1rem 0;
    padding-left: 1rem;
}

.experience-description li {
    margin-bottom: 0.5rem;
    color: #555;
}

.highlight {
    background: #fff3cd;
    padding: 1rem;
    border-radius: 6px;
    border-left: 4px solid #ffeb3b;
    margin-top: 1rem;
    font-style: italic;
    color: #333;
}

.education-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffeb3b;
}

.education-item h3 {
    color: #333;
    margin-bottom: 0.5rem;
}

.school {
    color: #666;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.status {
    color: #ffeb3b;
    font-weight: bold;
}

.future-goals p {
    background: #e8f5e8;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    border-left: 4px solid #28a745;
}

.strength-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #ffeb3b;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.interests {
    list-style: none;
    padding: 0;
}

.interests li {
    background: #f8f9fa;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 6px;
    border-left: 3px solid #ffeb3b;
}

.cv-sidebar .cv-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Responsive CV */
@media (max-width: 768px) {
    .cv-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .header-logo {
        position: static;
        transform: none;
        margin-bottom: 1rem;
        height: 50px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-buttons .btn {
        width: 80%;
        max-width: 250px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-right {
        order: -1;
    }
    
    .magnus-photo {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .what-i-seek {
        margin-top: 3rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .navbar {
        padding: 0.5rem;
    }
    
    .nav-menu {
        gap: 0.5rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .header-logo {
        height: 40px;
    }
    
    .about h2,
    .what-i-seek h2 {
        font-size: 1.8rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-highlights {
        padding: 1.5rem;
    }
    
    .about-highlights h3 {
        font-size: 1.1rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .card h3 {
        font-size: 1.2rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
    }
}
