/* Base Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --light-bg: #f8f9fa;
    --text-color: #2c3e50;
    --text-light: #7f8c8d;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--light-bg);
    color: var(--text-color);
    line-height: 1.6;
}

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

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.main-column {
    flex: 2;
    min-width: 300px;
}

.side-column {
    flex: 1;
    min-width: 250px;
    border-left: 3px solid var(--secondary-color);
    padding-left: 24px;
    background: none;
}

@media (max-width: 768px) {
    .side-column {
        border-left: none;
        padding-left: 0;
        border-top: 3px solid var(--secondary-color);
        padding-top: 18px;
        margin-top: 18px;
    }
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    position: relative;
    border-bottom: 5px solid var(--secondary-color);
}

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

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid white;
    box-shadow: var(--box-shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #ddd;
    color: #666;
    font-size: 36px;
}

.profile-photo img {
    width: 100%;
    height: auto;
}

header h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
}

header h2 {
    margin: 5px 0 15px;
    font-size: 22px;
    font-weight: 500;
    color: var(--secondary-color);
    border: none;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

.social-link i {
    margin-right: 8px;
    width: 16px;  /* Fixed width for icons */
    text-align: center;
}

/* Section Styles */
section {
    padding: 25px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

h2 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 24px;
    position: relative;
}

h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

h3 {
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-size: 18px;
}

/* Experience Section */
.experience-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 20px;
}

.experience-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.company {
    font-weight: 600;
}

.period {
    color: var(--text-light);
    font-style: italic;
}

.location {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-category {
    margin-bottom: 20px;
    width: 100%;
    overflow: hidden; /* Prevent cards from overflowing */
}

.skill-category h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-item {
    background-color: var(--light-bg);
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 14px;
    transition: all 0.2s ease;
}

/* Modern Skill Card Styles */
.skill-card-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

.skill-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.2s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--secondary-color);
    border-radius: 4px 0 0 4px;
}

.skill-name {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 15px;
    padding-left: 8px;
}

/* Remove skill-bar, skill-level, skill-level-container, skill-percentage from card display */
.skill-bar,
.skill-level-container,
.skill-level,
.skill-percentage {
    display: none !important;
}

/* Responsive for skill cards */
@media (max-width: 768px) {
    .skill-card-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .skill-card {
        width: auto;
    }
}

/* Projects Section */
.projects-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    list-style: none;
}

.project-item {
    border-left: 3px solid var(--secondary-color);
    padding-left: 15px;
    margin-bottom: 15px;
}

.project-title {
    font-weight: 600;
    margin-bottom: 5px;
    display: flex;
    justify-content: space-between;
}

.project-link {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.project-link:hover {
    text-decoration: underline;
}

.project-description {
    margin: 5px 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.tech-tag {
    background-color: var(--light-bg);
    border-radius: 15px;
    padding: 3px 10px;
    font-size: 12px;
    color: var(--text-light);
}

/* Languages Section */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.language-name {
    font-weight: 500;
}

.language-level {
    color: var(--text-light);
    font-style: italic;
}

/* Education Section */
.education-item {
    margin-bottom: 20px;
}

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

.university {
    font-weight: 600;
    margin-bottom: 5px;
}

.degree {
    margin: 5px 0;
}

.gpa {
    color: var(--text-light);
}

/* Achievement Badges */
.achievement-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.badge {
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Professional Summary */
.professional-summary {
    font-size: 16px;
    line-height: 1.7;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

/* List Styles */
ul {
    padding-left: 0;
    list-style-type: none;
}

ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* Print Styles */
@media print {
    body {
        background-color: white;
    }
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }
    section,
    header {
        box-shadow: none;
        margin-bottom: 15px;
        page-break-inside: avoid;
    }
    header {
        padding: 15px 0;
    }
    .two-column {
        gap: 15px;
    }
    section {
        padding: 15px;
    }
    .experience-item::before {
        background-color: #000;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .two-column {
        flex-direction: column;
    }
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .profile-info {
        flex-direction: column;
        align-items: center;
    }
    .profile-details {
        text-align: center;
    }
    .profile-image-container {
        margin-left: 0;
        margin-top: 20px;
        justify-content: center;
    }
    .contact-info {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
}

.profile-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.profile-details {
    flex: 1 1 0;
    text-align: left;
}

.profile-image-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-width: 200px;
    margin-left: 30px;
}

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

/* Portfolio Apps Showcase */
.portfolio-section {
    padding: 30px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-top: 30px;
}

.app-showcase {
    margin-bottom: 40px;
}

.app-title {
    color: var(--primary-color);
    font-size: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.app-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-title a:hover {
    color: var(--secondary-color);
}

.app-title a i {
    font-size: 16px;
}

.app-images {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.app-image {
    flex: 0 0 auto;
    width: calc((100% - 48px) / 5);  /* 5 images per row with gaps */
    aspect-ratio: 9/16;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    scroll-snap-align: start;
    background-color: #f8f9fa;
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;  /* Changed back to cover to fill the container */
    display: block;  /* Remove any extra space */
    padding: 0;  /* Remove padding */
}

.app-images::-webkit-scrollbar {
    height: 8px;
}

.app-images::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.app-images::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 4px;
}

@media (max-width: 768px) {
    .app-image {
        width: calc((100% - 24px) / 3);  /* 3 images visible on mobile */
    }
}
