* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

/* Header */
header {
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.logo {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: #666;
    font-size: 16px;
    transition: color 0.3s;
}

nav a:hover,
nav a.active {
    color: #333;
}

.contact-btn {
    padding: 10px 24px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.contact-btn:hover {
    background: #555;
}

/* Main Content */
main {
    margin: 0 auto;
    padding: 80px 50px;
    background: linear-gradient(
        160deg,
        rgba(253, 216, 216, 1) 36%,
        rgba(255, 255, 255, 1) 92%
    );
}

/* Marquee Banner */
.marquee-container {
    background: linear-gradient(
        160deg,
        rgba(253, 216, 216, 1) 36%,
        rgba(255, 255, 255, 1) 92%
    );
    color: #1b1616;
    padding: 12px 0;
    margin: -80px -50px 40px -50px;
    overflow: hidden;
}

.marquee-container marquee {
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Quote/Cite Styling */
.quote-section {
    background: #f5f5f5;
    border-left: 4px solid #333;
    padding: 20px 24px;
    margin: 30px 0;
    border-radius: 4px;
}

.quote-section cite {
    font-style: italic;
    color: #555;
    font-size: 17px;
    line-height: 1.6;
    display: block;
}

.quote-author {
    color: #333;
    font-weight: 600;
    margin-top: 12px;
    font-size: 15px;
}

.resume-quote {
    background: #f9f9f9;
    border-left: 4px solid #333;
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 4px;
}

.resume-quote cite {
    font-style: italic;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
    display: block;
}

/* Address Styling */
address {
    font-style: normal;
    color: #666;
    line-height: 1.8;
    font-size: 16px;
}

/* Home Page */
.main-intro {
    background-image: url("images/contact-bg.jpg");
    padding-left: 200px;
    padding-right: 200px;
}

.audio-intro {
    margin-top: 20px;
}

.audio-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 450px;
}

.audio-intro .audio-wrapper img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    display: block;
}

.audio-wrapper audio {
    flex: 1;
    max-width: 400px;
    height: 40px;
    border-radius: 20px;
    outline: none;
}

.audio-label {
    margin-top: 12px;
    margin-left: 36px;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

/* Skills Table */
.skills-table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

.skills-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.skills-table thead {
    background: #333;
    color: #fff;
}

.skills-table th {
    padding: 12px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
}

.skills-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.skills-table tbody tr:last-child td {
    border-bottom: none;
}

.skills-table tbody tr:hover {
    background: #f9f9f9;
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #333 0%, #666 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.profile-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.intro-text h1 {
    font-size: 48px;
    margin-bottom: 16px;
    font-weight: 600;
}

.intro-text h2 {
    font-size: 24px;
    color: #666;
    margin-bottom: 32px;
    font-weight: 400;
}

.intro-text p {
    color: #666;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.intro-text blockquote {
    font-size: 18px;
    color: #999;
    font-style: italic;
    margin-bottom: 20px;
    border-left: 4px solid #eee;
    padding-left: 16px;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.tag {
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
}

.cta-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 14px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #333;
    color: #fff;
}

.btn-primary:hover {
    background: #555;
}

.btn-secondary {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary:hover {
    background: #333;
    color: #fff;
}

/* Resume Page */
.resume-page {
    padding: 60px 50px;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 60px;
    text-align: center;
}

.resume-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.resume-section {
    margin-bottom: 50px;
}

.resume-section h2 {
    font-size: 28px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #333;
}

.resume-section p {
    color: #666;
    line-height: 1.8;
}

.experience-item {
    margin-bottom: 32px;
}

.experience-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 12px;
}

.experience-item ul {
    list-style: none;
    padding-left: 0;
}

.experience-item li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.experience-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333;
}

/* Resume Sidebar */
.sidebar-section {
    margin-bottom: 40px;
}

.sidebar-section h2 {
    font-size: 20px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #333;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-badge {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 16px;
    font-size: 14px;
    color: #666;
}

.language-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.language-item span {
    color: #666;
}

.level {
    color: #999;
    font-size: 14px;
}

/* Footer */
footer {
    padding: 40px 50px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 24px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    color: #333;
    transition: all 0.3s;
    text-decoration: none;
}

.social-icons a:hover {
    background: #333;
    color: #fff;
}

footer p {
    color: #999;
    font-size: 14px;
}

/* Projects Page */
.projects-page,
.contact-page,
.gallery-page {
    padding: 60px 50px;
}

.contact-page {
    background-image: url("images/contact-bg.jpg");
}

.page-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.project-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #f5f5f5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 24px;
}

.project-category {
    display: inline-block;
    padding: 4px 12px;
    background: #333;
    color: #fff;
    font-size: 12px;
    border-radius: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.project-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 16px;
}

.project-description {
    color: #666;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Contact Page */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #333;
    flex-shrink: 0;
}

.info-content h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
}

.info-content p {
    color: #666;
    font-size: 16px;
}

.social-links {
    margin-top: 40px;
}

.social-links h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.social-btn:hover {
    background: #333;
    color: #fff;
}

.social-btn i {
    font-size: 20px;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #333;
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    padding: 14px 32px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #555;
}

/* Gallery Page */
.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: #f5f5f5;
    color: #666;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: #333;
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay h3 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 4px;
}

.gallery-overlay p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #555;
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 1024px) {
    main {
        padding: 60px 30px;
    }

    .main-intro {
        padding-left: 80px;
        padding-right: 80px;
    }

    .intro {
        gap: 50px;
    }

    .resume-grid {
        gap: 50px;
    }

    .projects-grid {
        gap: 30px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 20px;
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        font-size: 20px;
    }

    nav ul {
        gap: 15px;
        font-size: 14px;
    }

    nav a {
        font-size: 14px;
    }

    .contact-btn {
        padding: 8px 20px;
        font-size: 14px;
    }

    main {
        padding: 40px 20px;
    }

    .main-intro {
        padding-left: 40px;
        padding-right: 20px;
    }

    /* Marquee */
    .marquee-container {
        margin: -40px -20px 30px -20px;
        padding: 10px 0;
    }

    .marquee-container marquee {
        font-size: 14px;
    }

    /* Quote */
    .quote-section,
    .resume-quote {
        padding: 16px 20px;
        margin: 20px 0;
    }

    .quote-section cite,
    .resume-quote cite {
        font-size: 15px;
    }

    .quote-author {
        font-size: 14px;
    }

    /* Address */
    address {
        font-size: 14px;
        line-height: 1.6;
    }

    /* Home Page */
    .intro {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .profile-image {
        display: flex;
        justify-content: center;
    }

    .profile-image img {
        max-width: 280px;
    }

    .intro-text h1 {
        font-size: 36px;
    }

    .intro-text h2 {
        font-size: 20px;
    }

    .intro-text p {
        font-size: 16px;
    }

    .tags {
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* Resume Page */
    .resume-page,
    .projects-page,
    .contact-page,
    .gallery-page {
        padding: 40px 20px;
    }

    .page-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .page-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .resume-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .resume-section h2 {
        font-size: 24px;
    }

    .experience-item h3 {
        font-size: 18px;
    }

    /* Projects Page */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 20px;
    }

    /* Contact Page */
    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-info h2,
    .contact-form-wrapper h2 {
        font-size: 24px;
    }

    /* Gallery Page */
    .gallery-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .gallery-overlay {
        padding: 16px;
    }

    .gallery-overlay h3 {
        font-size: 16px;
    }

    .gallery-overlay p {
        font-size: 13px;
    }

    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Footer */
    footer {
        padding: 30px 20px;
    }

    .social-icons {
        gap: 20px;
    }

    .social-icons a {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 18px;
    }

    nav ul {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav li {
        font-size: 13px;
    }

    main {
        padding: 30px 15px;
    }

    /* Marquee */
    .marquee-container {
        margin: -30px -15px 20px -15px;
        padding: 8px 0;
    }

    .marquee-container marquee {
        font-size: 13px;
    }

    /* Quote */
    .quote-section,
    .resume-quote {
        padding: 12px 16px;
        margin: 16px 0;
    }

    .quote-section cite,
    .resume-quote cite {
        font-size: 14px;
    }

    .quote-author {
        font-size: 13px;
    }

    /* Address */
    address {
        font-size: 13px;
    }

    /* Home Page */
    .intro-text h1 {
        font-size: 28px;
    }

    .intro-text h2 {
        font-size: 18px;
    }

    .intro-text p {
        font-size: 15px;
    }

    .tags {
        gap: 8px;
    }

    .tag {
        font-size: 12px;
        padding: 6px 12px;
    }

    .page-title {
        font-size: 28px;
    }

    .page-subtitle {
        font-size: 15px;
    }

    .resume-section h2 {
        font-size: 20px;
    }

    .experience-item h3 {
        font-size: 16px;
    }

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 16px;
    }

    .project-content h3 {
        font-size: 18px;
    }

    .project-description {
        font-size: 14px;
    }

    .project-tags {
        gap: 6px;
    }

    .tag,
    .skill-badge {
        font-size: 12px;
        padding: 5px 10px;
    }

    .info-item {
        gap: 15px;
    }

    .info-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .info-content h3 {
        font-size: 14px;
    }

    .info-content p {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .gallery-overlay {
        padding: 12px;
    }

    .gallery-overlay h3 {
        font-size: 14px;
    }

    .gallery-overlay p {
        font-size: 12px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 15px;
        right: 15px;
    }

    footer {
        padding: 25px 15px;
    }

    .social-icons a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    footer p {
        font-size: 12px;
    }
}
