:root {
    --blue-dark: #1E40AF;
    --blue-medium: #3B82F6;
    --blue-light: #60A5FA;
    --blue-soft: #E0F2FE;
    --white: #FFFFFF;
    --gray-light: #F8FAFC;
    --gray-medium: #E5E7EB;
    --text-dark: #1F2937;
    --text-gray: #6B7280;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

#flowingBackground {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

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

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.2rem 2rem;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue-medium);
    text-decoration: none;
    letter-spacing: -0.5px;
    transition: transform 0.3s ease;
}

.brand-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    vertical-align: middle;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.12);
}

.brand:hover {
    transform: scale(1.05);
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle-bar {
    width: 24px;
    height: 2px;
    background: var(--blue-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle-btn.active .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle-btn.active .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle-btn.active .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.main-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.main-nav a .nav-icon {
    flex-shrink: 0;
    color: var(--blue-medium);
    opacity: 0.85;
    transition: all 0.3s ease;
}

.main-nav a:hover .nav-icon {
    opacity: 1;
    transform: scale(1.15);
}

.main-nav a:hover {
    color: var(--blue-medium);
    transform: translateY(-2px);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue-medium);
    transition: width 0.3s ease;
}

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

.main-nav a.active {
    color: var(--blue-medium);
    font-weight: 700;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    outline: none;
}

.theme-toggle-btn:hover {
    background: var(--blue-soft);
    color: var(--blue-medium);
    transform: rotate(15deg) scale(1.1);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    background: linear-gradient(135deg, #F8FAFC 0%, #E0F2FE 100%);
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin-bottom: 4rem;
}

.greeting {
    font-size: 1.4rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.name {
    font-size: 5rem;
    font-weight: 800;
    color: var(--blue-medium);
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease;
}

.name:hover {
    transform: scale(1.02);
}

.bio {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--blue-medium);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: var(--blue-dark);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
}

.btn-outline {
    background: var(--white);
    color: var(--blue-medium);
    padding: 1rem 2.5rem;
    border: 2px solid var(--blue-medium);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(38, 90, 143, 0.2);
}

.btn-outline:hover {
    background: var(--blue-medium);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.footer-icons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
}

.icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-medium);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.icon-circle:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.5);
    background: var(--blue-soft);
}

.section {
    padding: 6rem 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

.title-part-1 {
    color: var(--blue-dark);
}

.title-part-2 {
    color: var(--blue-medium);
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.15rem;
    margin-bottom: 3rem;
}

.about-section {
    background: var(--white);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.about-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
}

.illustration-card {
    width: 100%;
    max-width: 320px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.illustration-placeholder {
    width: 100%;
    height: 360px;
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    display: block;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
}

.about-text {
    padding: 1rem;
}

.about-heading {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
}

.about-paragraph {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.skills-section {
    background: var(--gray-light);
}

.skills-attributes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.attribute-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.attribute-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.attribute-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.attribute-icon {
    width: 70px;
    height: 70px;
    background: var(--blue-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--blue-medium);
    transition: transform 0.4s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.attribute-card:hover .attribute-icon {
    transform: rotate(360deg) scale(1.1);
}

.attribute-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.attribute-card p {
    font-size: 1rem;
    color: var(--blue-medium);
    position: relative;
    z-index: 1;
}

.skills-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
}

.skills-category {
    background: rgba(79, 70, 229, 0.04);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(79, 70, 229, 0.15);
    transition: all 0.3s ease;
}

.skills-category:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: rgba(79, 70, 229, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(79, 70, 229, 0.15);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
    color: var(--blue-dark);
    padding: 0.6rem 1rem;
    border-radius: 22px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(79, 70, 229, 0.25);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: default;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.skill-tag:hover {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(99, 102, 241, 0.15));
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.2);
}

.experience-section {
    background: var(--white);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.experience-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.experience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

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

.experience-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(79, 70, 229, 0.25);
}

.experience-icon-area {
    background: linear-gradient(135deg, #4F46E5 0%, #6366F1 100%);
    padding: 2.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.experience-icon {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease;
}

.experience-card:hover .experience-icon {
    transform: scale(1.08);
}

.experience-logo-img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
    border-radius: 8px;
}

.experience-logo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1d4ed8;
    border-radius: 18px;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    box-shadow: 0 12px 28px rgba(29, 78, 216, 0.2);
}

.experience-body {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.experience-header h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin: 0;
}

.experience-date {
    background: rgba(79, 70, 229, 0.1);
    color: var(--blue-dark);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.company-name {
    color: var(--blue-medium);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.5rem 0 1rem 0;
}

.experience-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.experience-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.exp-tag {
    display: inline-block;
    background: rgba(79, 70, 229, 0.12);
    color: var(--blue-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(79, 70, 229, 0.2);
    transition: all 0.3s ease;
}

.exp-tag:hover {
    background: rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.4);
    transform: translateY(-2px);
}

.education-section {
    background: var(--gray-light);
}

.education-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    color: var(--blue-medium);
}

.column-header svg {
    width: 28px;
    height: 28px;
}

.column-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--blue-dark);
}

.education-card,
.certification-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: all 0.4s ease;
    margin-bottom: 1.5rem;
    position: relative;
}

.education-card::before,
.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.education-card:hover::before,
.certification-card:hover::before {
    opacity: 1;
}

.education-card:hover,
.certification-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.3);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--blue-soft);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue-medium);
    flex-shrink: 0;
    transition: transform 0.4s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.education-card:hover .card-icon,
.certification-card:hover .card-icon {
    transform: rotate(10deg) scale(1.1);
}

.card-content {
    flex: 1;
}

.card-content h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.institution,
.issuer {
    color: var(--blue-medium);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.status {
    color: var(--text-gray);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.description {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.6;
}

.certificate-details {
    margin-top: 0.75rem;
}

.certificate-details h5 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.35rem;
}

.certificate-details ul {
    margin: 0;
    padding-left: 1.2rem;
}

.certificate-details li {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.4;
}

.year {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--blue-medium);
    font-weight: 600;
    font-size: 0.95rem;
}

.projects-section {
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
    position: relative;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 60px rgba(59, 130, 246, 0.35);
}

.project-icon-area {
    background: linear-gradient(135deg, #E0F2FE 0%, #BAE6FD 100%);
    padding: 3rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.project-icon-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3) 0%, rgba(14, 165, 233, 0.1) 100%);
    pointer-events: none;
}

.project-icon {
    position: relative;
    z-index: 1;
}

.project-body {
    padding: 2rem;
    position: relative;
}

.project-body h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.4rem;
    position: relative;
    z-index: 2;
}

.project-body > .year {
    position: static;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.project-body p {
    color: var(--text-gray);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-preview-container {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    margin: 15px 0 20px 0;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.15);
    background: #f1f5f9;
    position: relative;
}

.project-preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.project-card:hover .project-preview-image {
    transform: scale(1.06);
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.tag {
    background: var(--blue-soft);
    color: var(--blue-medium);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.project-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--blue-medium);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--blue-dark);
}

.project-link svg {
    width: 18px;
    height: 18px;
}

.others-section {
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.others-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 3rem;
}

.other-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: 18px;
    padding: 1.25rem 1.2rem;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    text-align: center;
    gap: 0.65rem;
}

.other-link-card h3 {
    margin: 0 0 0.35rem;
    color: var(--blue-dark);
    font-size: 1.05rem;
    font-weight: 700;
}

.other-link-card p {
    margin: 0;
    color: var(--text-gray);
    font-size: 0.94rem;
}

.other-link-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.45);
}

.other-link-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(99, 102, 241, 0.08));
    color: var(--blue-dark);
    box-shadow: 0 8px 18px rgba(59, 130, 246, 0.08);
}

.other-link-icon svg {
    width: 28px;
    height: 28px;
}

.contact-section {
    background: var(--gray-light);
}

.contact-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--white);
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.25);
    text-align: center;
    transition: transform 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotate-bg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-location {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.contact-location svg {
    color: var(--blue-medium);
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.contact-cta-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.btn-say-hello {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--blue-medium);
    color: var(--white);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn-say-hello:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-book-call {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--white);
    color: var(--blue-medium);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--blue-medium);
    cursor: pointer;
    font-family: inherit;
}

.btn-book-call:hover {
    background: var(--blue-medium);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.social-icon {
    width: 60px;
    height: 60px;
    background: var(--gray-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background: var(--blue-medium);
    color: var(--white);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.4);
}

.contact-download-resume {
    text-decoration: none;
    display: inline-block;
    position: relative;
    z-index: 1;
}

.btn-download-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--blue-soft);
    color: var(--blue-medium);
    padding: 1rem 2.5rem;
    border: 2px solid var(--gray-medium);
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-download-resume:hover {
    border-color: var(--blue-medium);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 1;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: var(--white);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--blue-medium);
    color: var(--white);
    transform: rotate(90deg);
}

.modal-header {
    padding: 3rem 3rem 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-medium);
    background: linear-gradient(135deg, var(--blue-soft) 0%, var(--white) 100%);
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

.contact-form-modal {
    padding: 2.5rem 3rem 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: #EF4444;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid var(--gray-medium);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue-medium);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn-cancel {
    padding: 0.875rem 2rem;
    border: 2px solid var(--gray-medium);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-cancel:hover {
    border-color: var(--text-gray);
    background: var(--gray-light);
}

.btn-submit {
    padding: 0.875rem 2rem;
    background: var(--blue-medium);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    font-family: inherit;
}

.btn-submit:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.form-success {
    padding: 1.5rem;
    background: #10B981;
    color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: none;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.form-success.active {
    display: flex;
}

.form-error {
    padding: 1rem;
    background: #FEE2E2;
    color: #DC2626;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
    font-size: 0.9rem;
    border-left: 4px solid #DC2626;
}

.form-error.active {
    display: block;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: var(--gray-light);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--blue-medium);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--blue-dark);
}

.simple-mailto-toast {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 20000;
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(2, 6, 23, 0.4);
    display: flex;
    gap: 10px;
    align-items: center;
}

.simple-mailto-toast button {
    background: transparent;
    color: #60A5FA;
    border: 1px solid rgba(96, 165, 250, 0.18);
    padding: 6px 8px;
    border-radius: 8px;
    cursor: pointer;
}

body.dark-mode {
    --gray-light: #0f172a;
    --white: #1e293b;
    --gray-medium: #334155;
    --text-dark: #f8fafc;
    --text-gray: #94a3b8;
    --blue-soft: #1e3a8a;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

body.dark-mode .site-header {
    background: rgba(30, 41, 59, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-mode .main-nav a {
    color: #f8fafc;
}

body.dark-mode .main-nav a:hover,
body.dark-mode .main-nav a.active {
    color: var(--blue-light);
}

body.dark-mode .main-nav a .nav-icon {
    color: var(--blue-light);
}

body.dark-mode .brand {
    color: var(--blue-light);
}

body.dark-mode .nav-toggle-bar {
    background: #f8fafc;
}

body.dark-mode .hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

body.dark-mode .attribute-card,
body.dark-mode .experience-card,
body.dark-mode .education-card,
body.dark-mode .certification-card,
body.dark-mode .project-card,
body.dark-mode .other-link-card,
body.dark-mode .contact-card,
body.dark-mode .modal-content {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.08);
}

body.dark-mode .skills-category {
    background: rgba(99, 102, 241, 0.06);
    border-color: rgba(99, 102, 241, 0.2);
}

body.dark-mode .skill-tag {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(59, 130, 246, 0.1));
    border-color: rgba(99, 102, 241, 0.3);
    color: #f8fafc;
}

body.dark-mode .skill-tag:hover {
    border-color: var(--blue-light);
}

body.dark-mode .social-icon {
    background: #334155;
    color: #f8fafc;
}

body.dark-mode .social-icon:hover {
    background: var(--blue-medium);
}

body.dark-mode .btn-outline {
    background: #1e293b;
    color: var(--blue-light);
    border-color: var(--blue-light);
}

body.dark-mode .btn-outline:hover {
    background: var(--blue-medium);
    color: #ffffff;
}

body.dark-mode .form-group label {
    color: #f8fafc;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: #334155;
    border-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #94a3b8;
}

body.dark-mode .modal-close {
    color: #ffffff;
}

body.dark-mode .btn-cancel {
    background: #334155;
    color: #ffffff;
}

body.dark-mode .btn-download-resume {
    background: #1e3a8a;
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--blue-light);
}

body.dark-mode .btn-download-resume:hover {
    background: var(--blue-medium);
    color: #ffffff;
}

body.dark-mode .btn-book-call {
    background: #1e293b;
    color: var(--blue-light);
    border-color: var(--blue-light);
}

body.dark-mode .btn-book-call:hover {
    background: var(--blue-medium);
    color: #ffffff;
}

body.dark-mode .illustration-placeholder {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
}

body.dark-mode .theme-toggle-btn {
    color: #fbbf24;
}

body.dark-mode .theme-toggle-btn:hover {
    background: rgba(251, 191, 36, 0.15);
}

@media (max-width: 1024px) {
    .skills-attributes {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .education-content {
        grid-template-columns: 1fr;
    }

    .others-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .nav-toggle-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: min(320px, 80vw);
        background: var(--white);
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 6rem 2rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 1050;
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav a {
        width: 100%;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--gray-medium);
        font-size: 1.1rem;
    }

    .main-nav .theme-toggle-btn {
        margin-top: 1.5rem;
    }

    body.nav-open {
        overflow: hidden;
    }

    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 1040;
    }

    .nav-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .skills-attributes {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .others-grid {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }

    .illustration-placeholder {
        height: 280px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 4rem 0;
    }

    .skills-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .skills-category {
        padding: 1.5rem 1.2rem;
    }

    .project-body {
        padding: 1.5rem 1.2rem;
    }

    .project-preview-container {
        height: 160px;
        margin: 10px 0 15px 0;
    }

    .education-card,
    .certification-card {
        padding: 1.5rem 1.2rem;
        flex-direction: column;
        gap: 1rem;
    }

    .education-card .year,
    .certification-card .year {
        position: static;
        margin-top: 0.5rem;
        display: inline-block;
    }

    .contact-heading {
        font-size: 1.8rem;
    }

    .modal-header {
        padding: 2rem 1.5rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .contact-form-modal {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }

    .contact-cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-say-hello,
    .btn-book-call {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding: 0.8rem 1rem;
    }

    .hero {
        padding: 6rem 1rem 3rem;
    }

    .name {
        font-size: 2.25rem;
    }

    .greeting {
        font-size: 1.1rem;
    }

    .bio {
        font-size: 0.9rem;
    }

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

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .contact-card {
        padding: 2.5rem 1.2rem;
    }

    .modal-content {
        width: 95%;
        border-radius: 20px;
    }

    .theme-toggle-btn {
        margin-left: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
