* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background: #222;
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 48px;
    text-align: center;
    color: #333;
}

h2::after{
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: #333;
    margin: 10px auto 20px;
    border-radius: 8px;
}

h3 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 32px;
    text-align: center;
    color: #333;
}

nav ul {
    list-style: none;
    margin-top: 10px;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
}

#start h2 {
    font-size: 64px;
}

#start h2::after{
    content: "";
    display: block;
    width: 250px;
    height: 8px;
    background-color: #333;
    margin: 10px auto 20px;
    border-radius: 8px;
}

#start p {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    font-size: 28px;
    white-space: normal;
}

#about p {
    max-width: 600px;
    margin: 0 auto;
    text-align: justify;
    white-space: normal;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    text-align: left;
    font-size: 20px;
}

.about-image {
    flex: 0 0 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
    justify-items: center;
}

.education-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.education-card img {
    max-width: 100%;
    max-height: 180px;
    margin-bottom: 15px;
    object-fit: contain;
}

.education-text h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.education-text p {
    font-size: 0.95rem;
    color: #555;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
    justify-items: center;
}

.skill-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100px;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.skill-card img {
    max-height: 60px;
    object-fit: contain;
}

.section {
    scroll-margin-top: 100px;
    padding: 250px 20px;
    max-width: 1800px;
    margin: auto;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px 150px;
}

.project {
    background: white;
    border-radius: 20px;
    box-shadow: 0 5px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
    display: block;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    margin: 0;
    border-radius: 20px;
}

.project-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

.project-title {
    font-size: 1.8rem;
    color: #181818;
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

.project-description {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 30px;
    text-align: left;
    line-height: 1.6;
}

.project-date {
    font-size: 0.85rem;
    color:#888;
    margin: 8px 0;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: left;
    margin-bottom: 30px;
}

.project-tags span {
    background-color: #eee;
    color: #333;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    justify-content: left;
    gap: 30px;
    margin-top: 20px;
}

.project-links a img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
}

.project-links a:hover img {
    transform: scale(1.2);
}

.project-content {
    display: flex;
    flex-direction: row;
    gap: 40px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.project-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.project-images {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.project-images img {
    max-width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.social-links a img {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
    pointer-events: auto;
}

.social-links a:hover img {
    transform: scale(1.2);
}

.back-arrow {
    width: 40px;
    height: auto;
    margin-top: 10px;
    transition: transform 0.2s ease;
}

.back-arrow:hover {
    transform: translateX(-5px);
}

footer {
    text-align: center;
    padding: 20px;
    background: #222;
    color: white;
}