/* Base styles */
body {
    font-family: "Charter", "Georgia", "Helvetica Neue", serif;
    color: #333;
    background: #f8f8f8;
    font-size: 16px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
#cv-content {
    background: #fff;
    max-width: 42em;
    margin: 2.5em auto;
    padding: 2.5em 3em;
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Profile Header */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3em;
    gap: 2em;
}

.profile-info {
    flex: 1;
}

.profile-image {
    flex: 0 0 auto;
    width: 100px;
}

.profile-image img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

/* Typography */
h1, h2, h3 {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    color: #111;
}

h1 {
    font-size: 2.4em;
    margin: 0 0 0.2em;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.2em;
    letter-spacing: -0.01em;
    margin: 1.8em 0 0.8em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #eee;
}

h3 {
    font-size: 1.1em;
    margin: 1.2em 0 0.4em;
}

/* Contact section */
.contact {
    font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.9em;
    color: #666;
    margin: 0.8em 0;
}

.contact p {
    margin: 0.3em 0;
}

.contact a {
    color: #1a73e8;
    text-decoration: none;
    transition: all 0.2s ease;
    padding: 0.1em 0;
    border-bottom: 1px solid transparent;
}

.contact a:hover {
    color: #155ab9;
    border-bottom-color: #155ab9;
}

.contact i {
    color: #666;
    margin-right: 0.4em;
    font-size: 0.9em;
}

/* Content */
p, li {
    font-size: 1em;
    line-height: 1.5;
    color: #444;
}

ul {
    padding-left: 1.2em;
    margin: 0.6em 0 1em;
}

li {
    margin: 0.3em 0;
    padding-left: 0.2em;
}

p strong {
    color: #222;
    font-weight: 600;
}

/* Download button */
.download-btn {
    display: inline-flex;
    align-items: center;
    background: #1a73e8;
    color: white !important;
    padding: 0.5em 1em;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 500;
    margin-top: 1.2em;
    transition: all 0.2s ease;
    text-decoration: none;
}

.download-btn:hover {
    background: #155ab9;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-btn i {
    margin-right: 0.6em;
    color: white !important;
}

/* Sections */
section {
    margin: 1.5em 0;
    text-align: left;
}

/* Loading state */
#cv-content.loading {
    text-align: center;
    color: #555;
    font-style: italic;
    padding: 2em;
}

/* Responsive */
@media screen and (max-width: 768px) {
    #cv-content {
        padding: 2em;
        margin: 1em;
    }
    
    .profile-header {
        flex-direction: column-reverse;
        align-items: flex-start;
    }

    .profile-image {
        width: 80px;
        margin-bottom: 1em;
    }

    .profile-image img {
        width: 80px;
        height: 80px;
    }

    .profile-info {
        width: 100%;
    }

    h1 {
        font-size: 2.5em;
    }
}

@media screen and (max-width: 480px) {
    #cv-content {
        padding: 1em;
        margin: 0.5em;
    }
    
    h1 {
        font-size: 2em;
    }
}

/* Print styles */
@media print {
    @page {
        size: A4;
        margin: 1.5cm;
    }

    body {
        background: white;
        font-size: 11pt;
    }

    #cv-content {
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .download-btn {
        display: none;
    }

    section {
        page-break-inside: avoid;
    }

    h2, h3 {
        page-break-after: avoid;
    }
}
  