@font-face {
  font-family: IRANSans;
  font-style: normal;
  font-weight: 400;
  src: url('./fonts/eot/IRANSansWeb_Medium.eot');
  src: url('./fonts/eot/IRANSansWeb_Medium.eot?#iefix')
  format('embedded-opentype'),
  url('./fonts/woff2/IRANSansWeb_Medium.woff2') format('woff2'),
  url('./fonts/woff/IRANSansWeb_Medium.woff') format('woff'),
  url('./fonts/ttf/IRANSansWeb_Medium.ttf') format('truetype');
  font-display: fallback;
}

body {
    font-family: 'IRANSans';
    line-height: 1.6;
    margin: 0;
    padding: 0;
    direction: rtl;
    background: #f0f4f8;
    color: #333;
    transition: background 0.3s;
}

.container {
    width: 85%;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: linear-gradient(135deg, #0093E9 0%, #80D0C7 100%);
    color: #fff;
    padding: 60px 0 20px 0;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

header .profile-picture {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    overflow: hidden;
    width: 150px;
    height: 150px;
    border: 5px solid #fff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    animation: fadeInDown 1s ease;
}

header .profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

header h1 {
    margin-top: 100px;
    font-size: 2.5em;
    animation: fadeInDown 1s ease;
	margin-bottom: 0px;
}

header h2 {
    margin: 0;
    font-size: 1.2em;
    animation: fadeInUp 1s ease;
}

section {
    background: #fff;
    padding: 30px;
    margin: 20px 0;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

h3 {
    margin-top: 0;
    color: #0093E9;
    border-bottom: 3px solid #0093E9;
    padding-bottom: 10px;
}

ul {
    list-style: none;
    padding: 0;
}

ul li {
    background: #f9f9f9;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    transition: background 0.3s, transform 0.3s;
}

ul li:hover {
    background: #0093E9;
    color: #fff;
    transform: translateX(10px);
}

.info-grid, .skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 20px;
}

footer a {
    color: #ffa500;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ff4500;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
       /* width: 95%; */
    }
    
    header h1 {
        font-size: 2em;
    }

    header h2 {
        font-size: 1em;
    }

    header .profile-picture {
        width: 100px;
        height: 100px;
    }
}
