@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300&display=swap');

:root {
    --color-primary: #4c1a26;
    /* Dark burgundy */
    --color-secondary: #2c4656;
    /* Dark slate blue */
    --color-accent: #59261a;
    /* Dark brown for badges */
    --color-text: #334155;
    --color-bg: #e0f4f7;
    --color-white: #ffffff;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Poppins', sans-serif;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --border-radius-lg: 30px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

/* Background Texture */
.page-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('./images/bg_watercolor.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    /* Subtle watercolor effect */
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--color-secondary);
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
}

.section-title.center {
    text-align: center;
}

.section-title.large-title {
    font-size: 3.5rem;
    border-left: 4px solid var(--color-primary);
    padding-left: 15px;
}

.subsection-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 5px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========== NAVBAR ========== */
nav {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
}

#nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

#nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-secondary);
    transition: color var(--transition);
    position: relative;
}

#nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition);
}

#nav-menu a:hover::after,
#nav-menu a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--color-secondary);
    transition: var(--transition);
}

/* ========== HERO ========== */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    min-height: calc(100vh - 150px);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-family: var(--font-serif);
    font-size: 3.8rem;
    margin-bottom: 12px;
    color: var(--color-secondary);
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.hero-text h2 {
    font-size: 1.6rem;
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.hero-text h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.hero-text .tagline {
    font-size: 1.15rem;
    max-width: 500px;
    margin-top: 24px;
    color: #64748b;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 4px 12px rgba(76, 26, 38, 0.25);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image-wrapper {
    position: relative;
    width: 400px;
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    border-radius: calc(var(--border-radius-lg) + 3px);
    z-index: -1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
}

/* ========== ABOUT ME ========== */
.about-grid {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 50px;
}

.about-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image-frame {
    position: relative;
    width: 380px;
    height: 420px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
}

.about-image-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    border-radius: calc(var(--border-radius-lg) + 3px);
    z-index: -1;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    transition: transform 0.5s ease;
}

.about-image-frame:hover .profile-pic {
    transform: scale(1.05);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.75;
}

.domain-cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.domain-card {
    background: #ffffff;
    color: var(--color-secondary);
    padding: 20px 30px;
    border-radius: 12px;
    font-weight: 600;
    flex: 1;
    text-align: center;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.domain-card i {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 5px;
}

.domain-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: var(--color-primary);
    color: var(--color-white);
}

.domain-card:hover i {
    color: var(--color-white);
}

/* ========== EDUCATION ========== */
.education-timeline {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.edu-item {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    gap: 20px;
    align-items: center;
    transition: transform var(--transition);
    border-left: 5px solid var(--color-primary);
}

.edu-item:hover {
    transform: translateX(10px);
}

.edu-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.edu-details h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* ========== SKILLS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 30px;
}

.skill-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.skill-card {
    background: #ffffff;
    color: var(--color-secondary);
    padding: 28px 24px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.skill-card:nth-child(1) { animation-delay: 0.1s; }
.skill-card:nth-child(2) { animation-delay: 0.2s; }
.skill-card:nth-child(3) { animation-delay: 0.3s; }
.skill-card:nth-child(4) { animation-delay: 0.4s; }
.skill-card:nth-child(5) { animation-delay: 0.5s; }

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.skill-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.skill-card:hover .skill-card-icon {
    transform: scale(1.1);
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.skill-card h4 {
    color: var(--color-secondary);
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin: 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    display: inline-block;
    background: #f1f5f9;
    color: var(--color-secondary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.25s ease;
}

.skill-card:hover .skill-tag {
    background: #eef2f7;
    border-color: #cbd5e1;
}

/* Make UI/UX card take full width if uneven */
.skill-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.soft-skill-card {
    background: #ffffff;
    padding: 24px 20px;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    text-align: center;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease both;
}

.soft-skill-card:nth-child(1) { animation-delay: 0.15s; }
.soft-skill-card:nth-child(2) { animation-delay: 0.25s; }
.soft-skill-card:nth-child(3) { animation-delay: 0.35s; }
.soft-skill-card:nth-child(4) { animation-delay: 0.45s; }
.soft-skill-card:nth-child(5) { animation-delay: 0.55s; }
.soft-skill-card:nth-child(6) { animation-delay: 0.65s; }

.soft-skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), #4a8fa8);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.soft-skill-card:hover::before {
    opacity: 1;
}

.soft-skill-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

.soft-skill-icon {
    width: 52px;
    height: 52px;
    background: #f1f5f9;
    color: var(--color-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin: 0 auto 14px;
    transition: all 0.3s ease;
}

.soft-skill-card:hover .soft-skill-icon {
    background: linear-gradient(135deg, var(--color-secondary), #4a8fa8);
    color: var(--color-white);
    transform: scale(1.1);
}

.soft-skill-card h4 {
    color: var(--color-secondary);
    font-family: var(--font-serif);
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.soft-skill-card p {
    font-size: 0.82rem;
    color: #94a3b8;
    line-height: 1.5;
}

/* ========== PROJECTS ========== */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

.project-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s ease;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border: 1px solid rgba(0, 0, 0, 0.04);
    min-height: 350px;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.06);
}

.project-info {
    flex: 1;
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.project-info h3 {
    font-family: var(--font-serif);
    font-size: 1.45rem;
    color: var(--color-secondary);
    margin-bottom: 14px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.project-status {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    vertical-align: middle;
}

.project-info p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.project-media {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(160deg, #f8fafc 0%, #eef2f7 50%, #e8edf4 100%);
    align-items: center;
    justify-content: center;
    position: relative;
    min-width: 0;
    max-width: 55%;
}

.project-media::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.06), transparent);
}

.browser-frame {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.project-item:hover .browser-frame {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
}

.browser-header {
    height: 26px;
    background: linear-gradient(180deg, #e8ecf0 0%, #d5dbe3 100%);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
    border-bottom: 1px solid #d1d9e0;
}

.browser-header span {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.browser-header span:nth-child(1) {
    background: #ff5f57;
}

.browser-header span:nth-child(2) {
    background: #ffbd2e;
}

.browser-header span:nth-child(3) {
    background: #28c840;
}

.browser-frame .media-content {
    display: block;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: top;
}

.mobile-frame {
    position: relative;
    width: 160px;
    height: 320px;
    border: 8px solid #1a1f2e;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
    background: #000;
    flex-shrink: 0;
}

.mobile-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 16px;
    background: #1a1f2e;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    z-index: 2;
}

.mobile-frame .media-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 11px 22px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 0.9rem;
    gap: 8px;
    width: fit-content;
    letter-spacing: 0.01em;
}

.btn:hover {
    background-color: var(--color-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 26, 38, 0.25);
}

.btn i {
    font-size: 0.95rem;
}

/* ========== CONTACT & THANK YOU (Split Sections) ========== */
.split-section {
    display: flex;
    align-items: center;
    gap: 60px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-text {
    flex: 1;
}

.split-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.illustration {
    width: 100%;
    max-width: 450px;
    border-radius: var(--border-radius);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.illustration:hover {
    transform: translateY(-10px);
}

.contact-desc {
    margin-bottom: 35px;
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.75;
}

.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-box {
    background: #ffffff;
    color: var(--color-secondary);
    padding: 24px;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: block;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.contact-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    background: var(--color-primary);
    color: var(--color-white);
}

.contact-box-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.contact-box:hover .contact-box-icon {
    background: rgba(255, 255, 255, 0.2);
}

.contact-box-header {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.contact-box-content {
    font-size: 0.85rem;
    opacity: 0.75;
    word-break: break-all;
    line-height: 1.5;
}

/* Thank You specific */
.thank-you-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thank-you-content .badge {
    display: block;
    width: fit-content;
    margin: 0 auto 20px;
}

.thank-you-content .section-title {
    font-size: 3.5rem;
    border-left: none;
    padding-left: 0;
    position: relative;
    display: block;
    margin-bottom: 15px;
}

.thank-you-content .section-title::after {
    content: '';
    display: block;
    margin: 15px auto 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    border-radius: 2px;
}

.thank-you-desc {
    font-size: 1.2rem;
    margin-bottom: 40px;
    margin-top: 25px;
    line-height: 1.8;
    color: #64748b;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.thank-you-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.action-box {
    background: #ffffff;
    color: var(--color-secondary);
    padding: 32px 20px;
    text-align: center;
    font-weight: 600;
    border-radius: 14px;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    position: relative;
    overflow: hidden;
}

.action-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-box:hover::before {
    opacity: 1;
}

.action-box i {
    font-size: 2rem;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.action-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    background: var(--color-primary);
    color: var(--color-white);
}

.action-box:hover i {
    color: var(--color-white);
    transform: scale(1.15);
}

.thank-you-btn {
    font-size: 1rem;
    padding: 14px 36px;
    border-radius: 10px;
}

/* ========== RESPONSIVE ========== */

/* Tablet */
@media (max-width: 992px) {
    .hero-content {
        min-height: auto;
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 20px;
    }

    .hero-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h2::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-text .tagline {
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image-wrapper {
        width: 300px;
        height: 380px;
    }

    .about-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .about-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-item {
        flex-direction: column;
    }

    .project-media {
        max-width: 100%;
        min-height: auto;
    }

    .project-media::before {
        display: none;
    }

    .skill-cards {
        grid-template-columns: 1fr 1fr;
    }

    .split-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .split-section.reverse {
        flex-direction: column;
    }

    .split-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .illustration {
        max-width: 350px;
    }

    .section-title.large-title {
        border-left: none;
        border-top: 4px solid var(--color-primary);
        padding-left: 0;
        padding-top: 15px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-container {
        padding: 0 20px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    #nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        transform: translateX(100%);
        width: 250px;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        padding-top: 100px;
        transition: transform var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }

    #nav-menu.show {
        transform: translateX(0);
    }

    #nav-menu li {
        text-align: center;
    }

    .container {
        padding: 0 16px;
    }

    .section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 1.4rem;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .badge {
        font-size: 0.65rem;
        padding: 4px 10px;
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    /* Hero */
    .hero-content {
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text h2 {
        font-size: 1.2rem;
    }

    .hero-text .tagline {
        font-size: 0.92rem;
    }

    .hero-image-wrapper {
        width: 240px;
        height: 300px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    /* About */
    .about-image-frame {
        width: 220px;
        height: 260px;
    }

    .about-text p {
        font-size: 0.82rem;
        max-width: 400px;
    }

    /* Projects */
    .project-item {
        min-height: auto;
        max-width: 360px;
        margin-left: auto;
        margin-right: auto;
    }

    .project-info {
        padding: 16px;
    }

    .project-info h3 {
        font-size: 1.05rem;
        flex-wrap: wrap;
    }

    .project-info p {
        font-size: 0.8rem;
    }

    .project-media {
        padding: 12px;
    }

    .browser-frame .media-content {
        max-height: 250px;
    }

    .mobile-frame {
        width: 140px;
        height: 280px;
        border-width: 7px;
        border-radius: 22px;
    }

    .mobile-notch {
        width: 60px;
        height: 14px;
    }

    .subsection-title {
        text-align: center;
        margin-bottom: 20px;
        font-size: 1.4rem;
    }

    /* Skills */
    .skill-cards {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 360px;
        margin: 0 auto;
    }

    .skill-card {
        padding: 20px 18px;
    }

    .skill-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .skill-card-header {
        gap: 12px;
        margin-bottom: 12px;
    }

    .skill-card h4 {
        font-size: 1.05rem;
    }

    .skill-tag {
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .soft-skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 360px;
        margin: 0 auto;
    }

    .soft-skill-card {
        padding: 20px 16px;
    }

    .soft-skill-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .soft-skill-card h4 {
        font-size: 0.95rem;
        margin-bottom: 4px;
    }

    .soft-skill-card p {
        font-size: 0.72rem;
    }

    /* Education */
    .education-timeline {
        max-width: 380px;
    }

    .edu-item {
        padding: 12px;
        gap: 10px;
    }

    .edu-icon {
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }

    .edu-details h3 {
        font-size: 0.88rem;
    }

    .edu-details p {
        font-size: 0.75rem;
    }

    /* Domain cards */
    .domain-cards {
        flex-direction: column;
        gap: 10px;
        max-width: 360px;
        margin: 0 auto;
    }

    .domain-card {
        padding: 14px 18px;
        min-width: auto;
        gap: 8px;
    }

    .domain-card i {
        font-size: 1.5rem;
    }

    /* Contact */
    .contact-desc {
        font-size: 0.85rem;
        max-width: 400px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 360px;
        margin: 0 auto;
    }

    .contact-box {
        padding: 18px;
    }

    .contact-box-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .contact-box-header {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .contact-box-content {
        font-size: 0.8rem;
    }

    .illustration {
        max-width: 260px;
    }

    /* Thank You */
    .thank-you-content .section-title {
        font-size: 1.8rem;
        border-top: none;
        padding-top: 0;
    }

    .thank-you-content .section-title::after {
        width: 50px;
        height: 2px;
        margin: 10px auto 0;
    }

    .thank-you-desc {
        font-size: 0.88rem;
        max-width: 380px;
    }

    .thank-you-boxes {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 360px;
        margin: 0 auto;
    }

    .action-box {
        padding: 20px 16px;
        gap: 10px;
    }

    .action-box i {
        font-size: 1.6rem;
    }

    .action-box span {
        font-size: 1rem;
    }

    .thank-you-btn {
        margin-top: 20px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    p {
        font-size: 0.8rem;
    }

    .section {
        padding: 30px 0;
    }

    .about-text p {
        font-size: 0.78rem;
        max-width: 320px;
    }

    .contact-desc {
        font-size: 0.8rem;
        max-width: 320px;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 18px;
    }

    .hero-text h1 {
        font-size: 1.7rem;
    }

    .hero-text h2 {
        font-size: 1.05rem;
    }

    .hero-image-wrapper {
        width: 200px;
        height: 260px;
    }

    .about-image-frame {
        width: 180px;
        height: 220px;
    }

    .project-info h3 {
        font-size: 1.05rem;
    }

    .project-item {
        max-width: 300px;
    }

    .thank-you-desc {
        font-size: 0.82rem;
        max-width: 300px;
    }

    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .browser-header {
        height: 22px;
        padding: 0 10px;
        gap: 5px;
    }

    .browser-header span {
        width: 7px;
        height: 7px;
    }

    .browser-frame .media-content {
        max-height: 200px;
    }

    .thank-you-content .section-title {
        font-size: 1.7rem;
        border-top: none;
        padding-top: 0;
    }

    .thank-you-content .section-title::after {
        width: 40px;
        height: 2px;
    }

    /* Compact cards */
    .skill-card {
        padding: 16px 14px;
    }

    .skill-card-icon {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .soft-skill-card {
        padding: 16px 14px;
    }

    .soft-skill-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .education-timeline {
        max-width: 320px;
    }

    .edu-item {
        padding: 10px;
        gap: 8px;
        max-width: 320px;
    }

    .edu-icon {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .contact-box {
        padding: 16px;
    }

    .action-box {
        padding: 18px 14px;
    }

    .thank-you-btn {
        margin-top: 20px;
    }
}