@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
    --secondary: #f59e0b;
    --accent: #14b8a6;
    --dark: #0f172a;
    --gray-dark: #1e293b;
    --gray: #64748b;
    --gray-light: #cbd5e1;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --bg-gradient: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--dark);
    background: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    position: relative;
}

/* Modern Header with Hero Image */
.header {
    position: relative;
    background: var(--bg-gradient);
    color: var(--white);
    padding: 0;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.95) 0%, rgba(2, 132, 199, 0.9) 100%);
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    min-height: 500px;
    padding: 3rem;
}

.header-text {
    padding-right: 2rem;
}

.header-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.contact-item .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-item span {
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
}

.profile-hero {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(14, 165, 233, 0.2) 100%);
    z-index: 1;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About Section with Modern Card */
.about {
    position: relative;
    margin: -3rem 3rem 0;
    padding: 2.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    border-left: 5px solid var(--primary);
    z-index: 3;
}

.about p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    font-weight: 400;
}

/* Section Styling */
.section {
    padding: 4rem 3rem;
    border-bottom: 1px solid var(--gray-light);
}

.section:last-of-type {
    border-bottom: none;
}

.section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 100%;
    background: var(--bg-gradient);
    border-radius: 10px;
}

/* Experience Cards */
.experience-item,
.education-item {
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
    position: relative;
}

.experience-item:hover,
.education-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.experience-item:last-child,
.education-item:last-child {
    margin-bottom: 0;
}

.experience-header,
.education-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.experience-header h3,
.education-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.company,
.degree {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
}

.field {
    color: var(--gray);
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.date {
    flex-shrink: 0;
    background: var(--primary);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.responsibilities {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
}

.responsibilities li {
    padding-left: 2rem;
    position: relative;
    color: var(--gray-dark);
    line-height: 1.6;
}

.responsibilities li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Skills Grid */
.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid var(--gray-light);
}

.skill-category h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3::before {
    content: '●';
    color: var(--primary);
    font-size: 1.5rem;
}

.skill-category ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.75rem;
}

.skill-category ul li {
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    position: relative;
    color: var(--gray-dark);
    background: var(--white);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-category ul li:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.skill-category ul li:before {
    content: "✓";
    position: absolute;
    left: 1rem;
    color: var(--accent);
    font-weight: 700;
}

/* License Cards */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.license-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2rem;
    border: 3px solid var(--gray-light);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.license-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--bg-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.license-card:hover::before {
    transform: scaleX(1);
}

.license-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-xl);
    transform: translateY(-5px);
}

.license-card.driving {
    border-color: var(--primary-light);
}

.license-card.adr {
    border-color: var(--secondary);
}

.license-card.driver-card {
    border-color: var(--accent);
}

.license-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.license-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--white);
    stroke-width: 2;
}

.license-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1rem;
}

.license-details {
    color: var(--gray-dark);
}

.category-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.badge {
    background: var(--bg-light);
    color: var(--gray-dark);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 2px solid var(--gray-light);
}

.badge.highlight {
    background: var(--bg-gradient);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.cert-type {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.cert-classes {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.valid-until {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 600;
    margin-top: 0.75rem;
}

.subsection-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

/* Certifications */
.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
}

.cert-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 14px;
    border: 2px solid var(--gray-light);
    transition: all 0.3s ease;
}

.cert-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cert-item .icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

.cert-item span {
    color: var(--gray-dark);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.5;
}

/* Interests */
.interests {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.interest-tag {
    background: var(--bg-gradient);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
}

.interest-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Footer */
.footer {
    padding: 3rem;
    background: var(--gray-dark);
    text-align: center;
    color: var(--gray-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 968px) {
    .header-content {
        grid-template-columns: 1fr;
        padding: 2rem;
        min-height: auto;
    }

    .header-text {
        padding-right: 0;
        text-align: center;
    }

    .header-text h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .profile-hero {
        margin-top: 2rem;
    }

    .profile-image-wrapper {
        max-width: 300px;
    }

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

    .about {
        margin: -2rem 1.5rem 0;
        padding: 1.5rem;
    }

    .section {
        padding: 2.5rem 1.5rem;
    }

    .experience-header,
    .education-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .date {
        align-self: flex-start;
    }

    .licenses-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

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

@media print {
    body {
        background: var(--white);
    }

    .container {
        box-shadow: none;
    }

    .header-content {
        min-height: auto;
    }

    .experience-item,
    .education-item,
    .cert-item {
        page-break-inside: avoid;
    }
}
