/* --- 1. Fonts Setup --- */
/* Import Google Fonts: Kalnia for the name, Lora for body text */
@import url('https://fonts.googleapis.com/css2?family=Kalnia:wght@300;400;500;600;700&family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* Local Font Fallback (if you have the file) */
@font-face {
    font-family: 'Kalnia';
    src: url('Kalnia-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* --- 2. Global Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Removes blue highlight on tap for mobile */
}

body {
    font-family: 'Lora', serif;
    background: #0f0f0f; /* Fallback color */
    background-image: url('images/bg.webp'); /* Ensure this matches your image file name */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Padding prevents card from touching edges on small screens */
    padding: 20px; 
    color: white;
    overflow-x: hidden;
}

/* --- 3. Main Card Container --- */
.card-container {
    max-width: 480px;
    width: 100%;
    text-align: center;
    
    /* Spacing */
    padding: 45px 25px;
    margin: 10px auto;
    
    /* UX IMPROVEMENT: Lighter transparency & stronger blur */
    background: rgba(0, 0, 0, 0.45); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px); /* Safari support */
    
    /* Border & Shadow */
    border-radius: 24px;
    /* Inset shadow creates a subtle "rim light" effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.image{
    border-radius: 50%;
    overflow: hidden;
    width: 200px;
    height: 200px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #ffffff;
}
.image img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* --- 4. Logo --- */
.logo {
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo img {
    height: 32px;
    width: auto;
    /* Inverts black logo to white to match dark theme */
    filter: brightness(0) invert(100%);
}

/* --- 5. Typography --- */
.brand-name {
    font-size: 11px;
    letter-spacing: 3px;
    color: #bbb;
    margin-bottom: 5px;
    font-weight: 400;
    text-transform: uppercase;
}

.name {
    font-family: 'Kalnia', 'Playfair Display', serif;
    font-size: 42px; /* Adjusted slightly for mobile fitting */
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
    line-height: 1.2;
}
/* .profession::before,.profession::after{
    content: '';
    position: absolute;
    top: 50%;
    width: 20px;
    height: 1px;
    background-color: #d1d1d1;
    z-index: 1111;
}
.profession::before{
    left: 20%;
}
.profession::after{
    right: 20%;
} */
.profession {
    font-family: 'Lora', serif;
    font-size: 15px;
    color: #d1d1d1; /* Slightly brighter grey for readability */
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: italic;
    position: relative;
}
.profession-desc{
    font-family: 'Lora', serif;
    font-size: 15px;
    color: #d1d1d1;
    font-weight: 400;
    letter-spacing: 1px;
    font-style: italic;
    margin-bottom: 30px;
}
/* --- 6. Social Media Icons --- */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 28px; /* More space between icons prevents mis-taps */
    margin-bottom: 40px;
}

.social-icon {
    width: 24px;
    height: 24px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: white;
    transform: translateY(-3px) scale(1.1);
    filter: drop-shadow(0 0 5px rgba(255,255,255,0.5));
}

/* --- 7. Experience & Education Sections --- */
.info-section {
    width: 100%;
    margin: 30px 0; /* Space between sections */
    text-align: left;
    padding: 0 10px; /* Aligns visually with the rounded corners */
}

/* The Section Header (e.g., "EXPERIENCE") */
.section-title {
    font-family: 'Kalnia', serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5); /* Muted color */
    /* margin-bottom: 15px; */
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    display: block; /* Ensures it takes full width */
}

/* The Individual Item Container */
.info-item {
    /* Removed the background box for a cleaner "Magazine" look */
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Very subtle separator */
    padding: 10px 0 15px 0;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.info-item:last-child {
    border-bottom: none; /* No border for the last item */
}

/* Row containing Role and Date */
.info-main-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline; /* Aligns text neatly */
    margin-bottom: 4px;
}

/* The Job Title / Degree */
.info-role {
    font-family: 'Kalnia', serif; /* Premium header font */
    font-size: 18px;
    font-weight: 500;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* The Date */
.info-date {
    font-family: 'Lora', serif;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
    white-space: nowrap; /* Prevents date from breaking line */
}

/* The Company / School Name */
.info-company {
    font-family: 'Lora', serif;
    font-size: 13px;
    font-weight: 600; /* Slightly bolder */
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase; /* Makes it look like a brand label */
    letter-spacing: 1px;
    margin-bottom: 6px;
}

/* The Description */
.info-desc {
    font-family: 'Lora', serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.5;
    font-style: italic;
    max-width: 95%;
}

/* --- 8. Contact Buttons (The Main UX Fix) --- */
.contact-links-group {
    display: flex;
    flex-direction: column;
    gap: 16px; /* Space between buttons */
    max-width: 100%;
}

.contact-link-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    
    /* UX IMPROVEMENT: Brighter glass background */
    background: rgba(255, 255, 255, 0.12); 
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    /* UX IMPROVEMENT: Brighter border for definition */
    border: 1px solid rgba(255, 255, 255, 0.25); 
    
    border-radius: 50px;
    /* UX IMPROVEMENT: Larger touch target padding */
    padding: 18px 25px; 
    
    text-decoration: none;
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.contact-link-block:active {
    transform: scale(0.98); /* Subtle press effect on mobile */
    background: rgba(255, 255, 255, 0.2);
}

.contact-link-block:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.contact-link-block .contact-icon {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-right: 15px;
}

.contact-link-block .contact-text {
    flex-grow: 1;
    text-align: center;
}

.contact-link-block .arrow-icon {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-left: 15px;
}

/* --- 9. Save Contact Button --- */
.save-button {
    width: 100%;
    margin-top: 35px;
    
    background: #ffffff;
    color: #000000;
    
    border: none;
    /* Changed to 50px to match the contact buttons (Consistency) */
    border-radius: 50px; 
    
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.save-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.15);
}

.save-button:active {
    transform: translateY(0);
}

.button-icon {
    font-size: 16px;
    color: #000000;
}

/* --- 11. Responsive Adjustments --- */
@media (max-width: 400px) {
    .name {
        font-size: 34px;
    }
    .card-container {
        padding: 35px 20px;
    }
    .contact-link-block {
        padding: 16px 20px; /* Slightly compact on very small screens */
    }
    .section-title {
        font-size: 18px;
    }
    .info-item {
        padding: 15px 16px;
    }
    .info-item-title {
        font-size: 15px;
    }
    .info-item-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
/* Responsive Tweak for very small screens */
@media (max-width: 360px) {
    .info-main-row {
        flex-direction: column;
        gap: 2px;
    }
    .info-date {
        font-size: 11px;
        margin-bottom: 5px;
    }
}