/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    transition: background 0.3s, color 0.3s;
}

/* Themes */
body.dark-theme {
    background: #121212;
    color: #e0e0e0;
}

body.light-theme {
    background: #ffffff;
    color: #000000;
}

/* Header Styles */
header {
    background: #1D1D1F;
    color: #ffffff;
    padding: 20px;
    text-align: center;
    position: relative;
}

header h1 {
    margin: 0;
}

header p {
    margin: 5px 0 0;
    font-style: italic;
}

nav {
    display: flex;
    justify-content: center;
    padding: 5px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
}

nav a {
    margin: 0;
    padding: 10px 15px;
    text-decoration: none;
    font-weight: bold;
    color: #2c92ff;
    transition: color 0.3s;
}

nav.dark-theme {
    background: #333333;
}

nav a:visited{
    color: #2c92ff;
}

nav a:hover{
    color: #87ceeb;
}

a {
    color: #2c92ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #87ceeb;
    text-decoration: underline;
}

a:active {
    color: #2c92ff;
}

a:visited {
    color: #2c92ff;
}


/* Section Styles */
section {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
}

/* Personal Photo Styles */
.personal-photo {
    width: 200px;
    height: 150px;
    object-fit: cover;
    margin: 20px auto;
    display: block;
    border: 3px solid #1D1D1F;
}

/* Item Styles */
.project-item,
.blog-item,
.publication-item {
    margin-bottom: 5px;
    padding: 12px;
    border-radius: 10px;
    transition: background 0.3s, border-color 0.3s;
}

body.dark-theme .project-item,
body.dark-theme .blog-item,
body.dark-theme .publication-item {
    background: #1c1c1c;
    color: #ffffff;
}

body.light-theme .project-item,
body.light-theme .blog-item,
body.light-theme .publication-item {
    background: #ffffff;
    color: #000000;
}

/* Intro Styles */
.intro {
    text-align: left;
}

.intro img {
    border-radius: 50%;
    width: 150px;
    margin-top: 15px;
    border: 3px solid #2c92ff;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    color: #2c92ff; /* رنگ آبی برای تمام هدرها */
    border-bottom: 2px solid #2c92ff;
    padding-bottom: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 3px;
    margin-top: 30px;
    background-color: #111;
    color: #fff;
}

/* Contact Styles */
.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.contact-column {
    flex: 1;
}

.contact h3 {
    margin-top: 20px;
    color: #2c92ff;
    font-weight: bold;
}

.contact p {
    margin-bottom: 10px;
}

/* Theme Toggle Button */
#theme-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    padding: 15px;
    background: #2c92ff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 1000;
}

#theme-toggle:hover {
    background: #2c92ff; /* Darker shade on hover */
}

#theme-toggle img {
    width: 25px;
    height: 25px;
}

/* Preview Card Styles */
.preview-card {
    display: flex;
    align-items: left;
    padding: 10px;
    margin-top: 10px;
    border-radius: 5px;
}

.preview-image {
    width: 200px;
    height: 100px;
    margin-left: 6px;
    object-fit: cover;
    border-radius: 3px;
}

.preview-content h3 {
    font-size: 16px;
    margin: 0;
}

/* Preview Content Paragraph */
.preview-content p {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}

.preview-content a {
    font-size: 12px;
    color: #2c92ff;
}

/* Project and Blog Cards */
.project-card,
.blog-card {

    height: 350px;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    align-items: flex-end;
    color: #ffffff;
    margin: 10px;
}

/* Overlay for additional information */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6); /* Transparent black background */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.project-card:hover .overlay,
.blog-card:hover .overlay {
    opacity: 1;
}

/* Title positioned at the top left */
.title {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
}


.project-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.project-card:hover,
.blog-card:hover {
    transform: scale(1.03);
}

.project-card img,
.blog-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* Project and Blog Overlay Styles */
.project-overlay,
.blog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    border-radius: 10px 10px 0 0; /* Rounded top corners */
}

.project-overlay h3,
.blog-overlay h3 {
    color: #ffffff;
    margin: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.project-overlay p,
.blog-overlay p {
    color: #fffef2;
    font-size: 14px;
}


.new-products {
    max-width: 1200px;
    margin: auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.shelf-header {
    text-align: center;
    margin-bottom: 20px;
}

.shelf-header h2 {
    font-size: 24px;
    margin: 0;
}

.shelf-header span {
    font-size: 16px;
    color: #555;
}

.product-scroller {
    display: flex;
    overflow-x: auto;
}

.product-card {
    flex: 0 0 300px; /* Adjust width as needed */
    margin-right: 15px;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}

.product-card img {
    width: 100%;
    display: block;
}

/* Additional Styles */
ul {
    padding: 0;
    list-style: none;
}

ul li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

