/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    color: #000000;
    line-height: 1.6;
}

.container {
    max-width: 1184px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
}

h1 {
    font-size: 100px;
    line-height: 1.2;
}

h2 {
    font-size: 80px;
    line-height: 1.2;
}

h3 {
    font-size: 30px;
    line-height: 1.3;
}

p {
    font-size: 18px;
    font-weight: 400;
}

/* Header Section */
.header {
    background-color: #ffffff;
    padding: 128px 0 64px;
    text-align: center;
}

.intro-text {
    font-size: 30px;
    font-weight: 500;
    margin-bottom: 16px;
}

.main-title {
    margin-bottom: 16px;
}

.profile-images {
    position: relative;
    width: 652px;
    height: 285px;
    margin: 16px auto;
}

.profile-img {
    position: absolute;
    border-radius: 12px;
    object-fit: cover;
}

.profile-img-1 {
    width: 323px;
    height: 277px;
    right: 0;
    top: 8px;
    transform: rotate(4.29deg);
    z-index: 1;
}

.profile-img-2 {
    width: 323px;
    height: 277px;
    left: 0;
    top: 8px;
    transform: rotate(-4.29deg);
    z-index: 1;
}

.profile-img-main {
    width: 288px;
    height: 260px;
    left: 50%;
    transform: translateX(-50%);
    top: 0;
    z-index: 2;
}

.subtitle {
    font-size: 30px;
    font-weight: 500;
    max-width: 782px;
    margin: 16px auto;
}

.description {
    max-width: 782px;
    margin: 16px auto;
    text-align: center;
}

/* Tech Section */
.tech-section {
    background-color: #000000;
    color: #ffffff;
    padding: 128px 0;
    text-align: center;
}

.tech-section h2 {
    margin-bottom: 16px;
}

.tech-description {
    max-width: 782px;
    margin: 0 auto;
}

/* Featured Projects Section */
.featured-projects {
    padding: 128px 0;
}

.featured-projects h2 {
    text-align: center;
    margin-bottom: 128px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 128px;
    margin-bottom: 128px;
}

.project {
    display: flex;
    gap: 125px;
    align-items: center;
}

.project-left {
    flex-direction: row;
}

.project-right {
    flex-direction: row-reverse;
}

.project-image {
    width: 479px;
    height: 479px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.tech-tags {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.tag {
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 16px;
    font-weight: 500;
    background-color: #ffffff;
    display: inline-block;
}

.project-info h3 {
    margin: 0;
}

.project-info p {
    margin: 0;
}

.project-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 16px;
    height: 48px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 303px;
}

.btn-primary {
    background-color: #000000;
    color: #ffffff;
    border: none;
}

.btn-primary:hover {
    background-color: #333333;
}

.btn-secondary {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
    margin: 0 auto;
}

.btn-secondary:hover {
    background-color: #f5f5f5;
}

.btn svg {
    flex-shrink: 0;
}

/* Skills Section */
.skills-section {
    background-color: #000000;
    color: #ffffff;
    padding: 128px 0;
}

.skills-section h2 {
    text-align: center;
    margin-bottom: 16px;
}

.skills-grid {
    display: flex;
    justify-content: center;
    gap: 24px;
    max-width: 982px;
    margin: 0 auto;
}

.skill-category {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 177px;
}

.skill-tag {
    border: 1px solid #ffffff;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    display: inline-block;
    background-color: #000000;
}

.skill-category ul {
    list-style: none;
    font-size: 18px;
    font-weight: 400;
}

.skill-category li {
    margin-bottom: 4px;
}

/* My Words Section */
.my-words {
    background-color: #ffffff;
    padding: 128px 0;
}

.my-words h2 {
    text-align: center;
    margin-bottom: 128px;
}

.articles-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
    margin-bottom: 128px;
}

.article-card {
    display: flex;
    gap: 125px;
    align-items: center;
}

.article-image {
    width: 479px;
    height: 311px;
    object-fit: cover;
    border-radius: 12px;
    flex-shrink: 0;
}

.article-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.article-date {
    border: 1px solid #000000;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    width: fit-content;
}

.article-content h3 {
    margin: 0;
}

.article-content p {
    margin: 0;
}

.article-content .btn {
    margin-top: 16px;
}

/* Contact Section */
.contact-section {
    background-color: #000000;
    color: #ffffff;
    padding: 128px 0;
    text-align: center;
}

.contact-section h2 {
    margin-bottom: 16px;
}

.contact-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    margin-top: 16px;
}

.contact-photo {
    width: 215px;
    height: 194px;
    border-radius: 70px;
    object-fit: cover;
}

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

.contact-name,
.contact-phone,
.contact-email {
    font-size: 30px;
    font-weight: 600;
    margin: 0;
}

.social-links {
    display: flex;
    gap: 32px;
    justify-content: center;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease;
}

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

/* Responsive Design - Tablet */
@media (max-width: 1024px) {
    .container {
        max-width: 744px;
    }

    h1 {
        font-size: 80px;
    }

    h2 {
        font-size: 60px;
    }

    .header {
        padding: 64px 0;
    }

    .profile-images {
        width: 568px;
        height: 300px;
    }

    .profile-img-1,
    .profile-img-2 {
        width: 282px;
        height: 300px;
    }

    .profile-img-main {
        width: 314px;
        height: 283px;
    }

    .tech-section,
    .skills-section,
    .contact-section {
        padding: 64px 0;
    }

    .featured-projects,
    .my-words {
        padding: 64px 0;
    }

    .projects-grid,
    .articles-grid {
        gap: 64px;
    }

    .project {
        gap: 64px;
    }

    .project-image {
        width: 340px;
        height: 340px;
    }

    .article-card {
        gap: 64px;
    }

    .article-image {
        width: 200px;
        height: 338px;
    }

    .skills-grid {
        flex-wrap: wrap;
        max-width: 400px;
    }

    .featured-projects h2,
    .my-words h2 {
        margin-bottom: 64px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 768px) {
    .container {
        max-width: 375px;
        padding: 0 16px;
    }

    h1 {
        font-size: 52px;
        line-height: 56px;
    }

    h2 {
        font-size: 48px;
    }

    h3 {
        font-size: 24px;
    }

    .intro-text {
        font-size: 24px;
    }

    .subtitle {
        font-size: 20px;
    }

    .description {
        font-size: 10px;
    }

    .header {
        padding: 64px 0;
    }

    .profile-images {
        width: 315px;
        height: 182px;
    }

    .profile-img-1,
    .profile-img-2 {
        width: 144px;
        height: 154px;
    }

    .profile-img-main {
        width: 217px;
        height: 171px;
    }

    .tech-section h2 {
        font-size: 60px;
    }

    .tech-description {
        font-size: 16px;
    }

    .featured-projects,
    .my-words {
        padding: 64px 0;
    }

    .featured-projects h2,
    .my-words h2 {
        margin-bottom: 64px;
    }

    .projects-grid {
        gap: 64px;
        margin-bottom: 64px;
    }

    .project {
        flex-direction: column;
        gap: 32px;
    }

    .project-left,
    .project-right {
        flex-direction: column;
    }

    .project-image {
        width: 100%;
        max-width: 343px;
        height: auto;
        aspect-ratio: 343 / 479;
    }

    .project-info {
        width: 100%;
    }

    .project-info p {
        font-size: 16px;
    }

    .skills-section {
        padding: 64px 0;
    }

    .skills-grid {
        flex-direction: column;
        max-width: 100%;
        align-items: flex-start;
    }

    .skill-category {
        width: 100%;
    }

    .skill-category ul {
        font-size: 18px;
    }

    .articles-grid {
        gap: 64px;
        margin-bottom: 64px;
    }

    .article-card {
        flex-direction: column;
        gap: 32px;
    }

    .article-image {
        width: 100%;
        max-width: 327px;
        height: 200px;
    }

    .article-content {
        width: 100%;
    }

    .article-content p {
        font-size: 18px;
    }

    .contact-section {
        padding: 64px 0;
    }

    .contact-name,
    .contact-phone,
    .contact-email {
        font-size: 24px;
    }

    .btn {
        width: 100%;
        max-width: 303px;
    }

    .btn-secondary {
        width: 100%;
        max-width: 303px;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .project-image {
        max-width: 100%;
    }

    .article-image {
        max-width: 100%;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Accessibility */
:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
}

.contact-section :focus-visible {
    outline-color: #ffffff;
}

/* Print Styles */
@media print {
    .btn {
        display: none;
    }
}
