
@import url('https://cdn.jsdelivr.net/gh/rastikerdar/iran-sans/dist/font-face.css');

@view-transition { navigation: auto; }

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'YekanBakhMedium', 'Tahoma', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100%;
    line-height: 1.6;
}

@font-face {
  font-family: 'YekanBakhMedium';
  src: url('/YekanBakhMedium.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* Layout shells */
.container {
    max-width: 1000px;
    margin: 20px auto;
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-radius: 15px;
    overflow: hidden;
}

/* Header */
.header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 40px;
    text-align: center;
    position: relative;
}



.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
}

.profile-img {
    width: 150px;
    height: 170px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    position: relative;
    z-index: 1;
    
}

.profile-img img{
    /* width: 200px;
    height: 140px; */
    /* border-radius: 50%; */
    /* object-fit: cover; */
    /* margin-bottom: 15px; */
    border: 3px solid #fff;
}

.name {
    font-size: 2.5em;
    margin: 0;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.title {
    font-size: 1.3em;
    margin: 10px 0;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Contact info */
.contact-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95em;
}

/* Main content layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.sidebar {
    background: #f8f9fa;
    padding: 40px 30px;
}

.content {
    padding: 40px;
}

/* Sections */
.section {
    margin-bottom: 35px;
}

.section-title {
    font-size: 1.4em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3498db;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    right: 0;
    width: 50px;
    height: 3px;
    background: #e74c3c;
}

/* Skills */
.skill-item {
    margin-bottom: 15px;
}

.skill-name {
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.skill-bar {
    background: #ecf0f1;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

/* Experience & Education */
.experience-item, .education-item {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-right: 4px solid #3498db;
}

.job-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
}

.company {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 5px;
}

.duration {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.description {
    color: #555;
    line-height: 1.6;
}

/* Summary badge */
.summary {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-size: 1.05em;
    line-height: 1.7;
}

/* Tech stack chips */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tech-item {
    background: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
}

/* Languages */
.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.language-item:last-child {
    border-bottom: none;
}

.language-level {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8em;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Tabs */
.nav-tabs {
    background: white;
    padding: 0;
    margin: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.nav-tab {
    background: none;
    border: none;
    padding: 20px 30px;
    font-size: 1.1em;
    font-weight: 600;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    font-family: inherit;
}

.nav-tab:hover {
    color: #3498db;
    background: #f8f9fa;
}

.nav-tab.active {
    color: #2c3e50;
    border-bottom-color: #3498db;
    background: #f8f9fa;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.portfolio-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.portfolio-image {
    height: 200px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    color: white;
}

.portfolio-content {
    padding: 25px;
}

.portfolio-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.portfolio-description {
    color: #7f8c8d;
    line-height: 1.6;
    margin-bottom: 15px;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.portfolio-tech-item {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
}

/* Contact page */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(52, 152, 219, 0.3);
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.contact-card-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-card-text {
    color: #7f8c8d;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 15px;
    }

    .container {
        margin: 10px;
        border-radius: 10px;
    }

    .header {
        padding: 30px 20px;
    }

    .sidebar, .content {
        padding: 30px 20px;
    }

    .nav-tab {
        padding: 15px 20px;
        font-size: 1em;
    }

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

    .contact-form {
        padding: 25px;
    }
}
