@media (max-width: 992px) {
    .container {
        padding: 0 30px;
    }

    .hero-name {
        font-size: 4rem;
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden !important;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 24px !important;
        width: 100%;
        max-width: 100%;
    }

    .navbar {
        padding: 0 16px !important;
        top: 12px !important;
    }

    .nav-inner {
        padding: 10px 20px !important;
        border-radius: 50px !important;
    }

    .logo {
        font-size: 1.5rem !important;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
        width: 44px;
        height: 44px;
    }

    .hamburger i {
        font-size: 1.4rem;
    }

    .hero {
        padding: 95px 0 50px !important;
        min-height: auto !important;
    }

    .hero-wrapper {
        flex-direction: column !important;
        gap: 30px !important;
    }

    .hero-content {
        text-align: center !important;
        width: 100% !important;
        min-width: auto !important;
        padding: 0 !important;
    }

    .hero-badge {
        margin: 0 auto 18px auto !important;
        padding: 8px 20px !important;
        font-size: 0.8rem !important;
        display: inline-flex !important;
        width: fit-content !important;
    }

    .hero-name {
        font-size: 2.6rem !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.3 !important;
        margin: 0 0 12px 0 !important;
        display: block !important;
        width: 100% !important;
    }

    .typed-box {
        justify-content: center !important;
        margin: 15px 0 18px !important;
        font-size: 1.2rem !important;
    }

    .typed-word {
        font-size: 1.2rem !important;
    }

    .hero-desc {
        margin: 12px auto 22px auto !important;
        font-size: 0.95rem !important;
        padding: 0 8px !important;
        max-width: 90% !important;
    }

    .stats-container {
        justify-content: center !important;
        gap: 28px !important;
        margin: 18px 0 25px !important;
    }

    .stat-number {
        font-size: 1.8rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    .btn-group {
        justify-content: center !important;
        gap: 15px !important;
    }

    .btn-primary,
    .btn-outline {
        padding: 10px 24px !important;
        font-size: 0.85rem !important;
    }

    .hero-visual {
        justify-content: center !important;
        left: 0 !important;
        margin-top: 20px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
    }

    .floating-shape {
        width: 200px !important;
        height: 200px !important;
        margin: 0 auto !important;
    }

    .section {
        padding: 50px 0 !important;
    }

    .section-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
        margin-bottom: 35px !important;
    }

    .section-title-wrap {
        justify-content: center !important;
        gap: 14px !important;
    }

    .section-icon {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.5rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .view-all-btn {
        padding: 8px 24px !important;
        font-size: 0.8rem !important;
    }

    .horizontal-scroll {
        gap: 22px !important;
        padding: 10px 5px 25px 5px !important;
    }

    .project-card-horizontal {
        min-width: 280px !important;
        padding: 22px !important;
    }

    .project-icon-big {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.4rem !important;
        margin-bottom: 14px !important;
    }

    .project-title {
        font-size: 1.3rem !important;
        margin: 10px 0 8px !important;
    }

    .project-desc {
        font-size: 0.8rem !important;
        margin-bottom: 12px !important;
    }

    .tech {
        padding: 4px 12px !important;
        font-size: 0.7rem !important;
    }

    .project-link {
        font-size: 0.8rem !important;
    }

    .scroll-arrow {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }

    .scroll-dot {
        width: 7px !important;
        height: 7px !important;
    }

    .scroll-dot.active {
        width: 20px !important;
    }

    .skills-grid {
        gap: 18px !important;
    }

    .skill-item {
        padding: 18px !important;
    }

    .skill-name {
        font-size: 0.85rem !important;
        white-space: normal !important;
        word-break: keep-all !important;
        line-height: 1.3 !important;
    }

    .skill-percent {
        font-size: 0.85rem !important;
        white-space: nowrap !important;
    }

    .extra-skill {
        padding: 6px 18px !important;
        font-size: 0.8rem !important;
    }

    .certificates-grid {
        gap: 20px !important;
    }

    .cert-card {
        padding: 20px !important;
    }

    .cert-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
        margin-bottom: 14px !important;
    }

    .cert-title {
        font-size: 1.1rem !important;
    }

    .cert-issuer {
        font-size: 0.7rem !important;
    }

    .contact-card-modern {
        padding: 32px 24px !important;
    }

    .contact-header-modern {
        gap: 14px !important;
        margin-bottom: 32px !important;
        flex-direction: column !important;
        text-align: center !important;
    }

    .contact-header-modern .section-icon {
        margin: 0 auto !important;
    }

    .contact-grid-modern {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .contact-item-modern {
        padding: 18px 20px !important;
        border-radius: 28px !important;
    }

    .contact-icon-modern {
        width: 52px !important;
        height: 52px !important;
        font-size: 1.4rem !important;
    }

    .contact-info-modern h4 {
        font-size: 0.75rem !important;
        margin-bottom: 6px !important;
    }

    .contact-info-modern .contact-value-modern {
        font-size: 0.85rem !important;
    }

    .contact-action-modern {
        margin-top: 32px !important;
        padding-top: 28px !important;
        flex-direction: column !important;
        gap: 16px !important;
        text-align: center !important;
    }

    .contact-badge-modern {
        justify-content: center !important;
    }

    .contact-social-links-modern {
        justify-content: center !important;
    }

    .color-palette {
        bottom: 75px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 6px 14px !important;
        gap: 10px !important;
        border-radius: 45px !important;
    }

    .color-option {
        width: 28px !important;
        height: 28px !important;
    }

    .back-to-top {
        bottom: 22px !important;
        right: 22px !important;
        width: 44px !important;
        height: 44px !important;
    }

    .back-to-top i {
        font-size: 1.1rem !important;
    }

    .toast {
        bottom: 85px !important;
        padding: 10px 20px !important;
        font-size: 0.75rem !important;
        max-width: 260px !important;
        white-space: normal !important;
    }

    .page-header {
        padding: 120px 0 40px !important;
    }

    .page-title {
        font-size: 2.2rem !important;
    }

    .page-desc {
        font-size: 0.9rem !important;
        padding: 0 15px !important;
    }

    .filter-section {
        gap: 12px !important;
        margin-bottom: 35px !important;
    }

    .filter-btn {
        padding: 7px 20px !important;
        font-size: 0.75rem !important;
    }

    .projects-grid {
        gap: 22px !important;
        padding-bottom: 50px !important;
    }

    .project-card {
        padding: 20px !important;
    }

    .project-icon {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.4rem !important;
        margin-bottom: 14px !important;
    }

    .project-title {
        font-size: 1.25rem !important;
    }

    .project-desc {
        font-size: 0.8rem !important;
    }

    .detail-page {
        padding: 120px 0 70px !important;
    }

    .back-link {
        margin-bottom: 25px !important;
        padding: 6px 16px !important;
        font-size: 0.8rem !important;
    }

    .detail-card {
        padding: 28px !important;
    }

    .detail-title {
        font-size: 1.8rem !important;
    }

    .media-box img,
    .media-box video {
        max-height: 240px !important;
    }

    .full-desc {
        font-size: 0.9rem !important;
        margin: 20px 0 !important;
    }

    .info-card {
        padding: 14px !important;
    }

    .info-label {
        font-size: 0.7rem !important;
    }

    .info-value {
        font-size: 0.9rem !important;
    }

    .btn-request {
        padding: 11px 26px !important;
        font-size: 0.85rem !important;
    }

    .mobile-panel {
        width: 280px !important;
        padding: 85px 22px 35px !important;
    }

    .mobile-header {
        top: 22px !important;
        left: 22px !important;
        right: 22px !important;
    }

    .mobile-logo {
        font-size: 1.5rem !important;
    }

    .mobile-logo i {
        font-size: 1.3rem !important;
    }

    .mobile-close {
        width: 38px !important;
        height: 38px !important;
    }

    .mobile-close i {
        font-size: 1.2rem !important;
    }

    .mobile-panel li {
        margin-bottom: 22px !important;
    }

    .mobile-panel a {
        font-size: 1.1rem !important;
        gap: 14px !important;
    }

    .mobile-panel a i {
        width: 30px !important;
        font-size: 1.1rem !important;
    }

    .mobile-footer {
        padding: 14px !important;
    }
}

@media (max-width: 480px) {
    .hero-name {
        font-size: 2.1rem !important;
    }

    .hero-badge {
        font-size: 0.7rem !important;
        padding: 6px 14px !important;
    }

    .typed-box {
        font-size: 1rem !important;
    }

    .typed-word {
        font-size: 1rem !important;
    }

    .hero-desc {
        font-size: 0.85rem !important;
    }

    .stat-number {
        font-size: 1.5rem !important;
    }

    .btn-primary,
    .btn-outline {
        padding: 8px 18px !important;
        font-size: 0.75rem !important;
    }

    .floating-shape {
        width: 170px !important;
        height: 170px !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }

    .project-card-horizontal {
        min-width: 260px !important;
    }

    .contact-card-modern {
        padding: 24px 18px !important;
    }

    .contact-item-modern {
        padding: 14px 16px !important;
    }

    .contact-icon-modern {
        width: 46px !important;
        height: 46px !important;
        font-size: 1.2rem !important;
    }

    .contact-info-modern .contact-value-modern {
        font-size: 0.75rem !important;
        word-break: break-all !important;
    }

    .contact-social-link {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }

    .contact-badge-modern {
        padding: 6px 14px !important;
        font-size: 0.7rem !important;
    }

    .color-palette {
        bottom: 65px !important;
        padding: 5px 12px !important;
    }

    .color-option {
        width: 24px !important;
        height: 24px !important;
    }

    .mobile-logo {
        font-size: 1.3rem !important;
    }

    .page-title {
        font-size: 1.8rem !important;
    }

    .detail-title {
        font-size: 1.5rem !important;
    }

    .hero-visual {
        margin-top: 25px !important;
    }
}

@media (min-width: 769px) and (max-width: 1200px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .skill-name {
        font-size: 0.85rem;
        white-space: normal;
        line-height: 1.3;
    }

    .skill-header {
        gap: 10px;
        flex-wrap: wrap;
        align-items: baseline;
    }

    .contact-grid-modern {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 22px !important;
    }
}

@media (min-width: 1201px) {
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .skill-name {
        white-space: nowrap;
    }
}

.skill-item {
    min-width: 0;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
    flex: 1;
    word-break: break-word;
    line-height: 1.4;
}

.skill-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--secondary);
    white-space: nowrap;
}

.contact-detail {
    flex: 1;
    min-width: 0;
}

.contact-detail h4 {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1px;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.contact-value {
    direction: ltr;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    word-break: break-all;
    white-space: normal;
}

.contact-item {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
    border-color: var(--secondary);
    background: rgba(108, 99, 255, 0.08);
}

.contact-item:hover .contact-value {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .skill-name {
        font-size: 0.8rem;
        white-space: normal;
        word-break: keep-all;
    }

    .skill-percent {
        font-size: 0.8rem;
    }

    .contact-detail h4 {
        font-size: 0.6rem;
    }

    .contact-value {
        font-size: 0.7rem;
    }
}

@media (min-width: 769px) {
    .contact-detail h4 {
        font-size: 0.75rem;
    }

    .contact-value {
        font-size: 0.9rem;
    }
}

.contact-card-modern {
    background: linear-gradient(135deg, rgba(15, 15, 30, 0.9), rgba(8, 8, 20, 0.95));
    backdrop-filter: blur(20px);
    border-radius: 48px;
    border: 1px solid rgba(108, 99, 255, 0.3);
    padding: 48px;
    transition: all 0.4s ease;
    box-shadow: 0 25px 45px -12px rgba(0, 0, 0, 0.5);
}

.contact-card-modern:hover {
    border-color: var(--secondary);
    box-shadow: 0 30px 55px -15px rgba(0, 217, 255, 0.2);
}

.contact-header-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 45px;
}

.contact-header-modern .section-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.25), rgba(0, 217, 255, 0.15));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 1px solid var(--border);
}

.contact-header-modern .section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #fff, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.contact-header-modern .contact-subtitle {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-top: 8px;
}

.contact-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 35px;
}

.contact-item-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 26px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 32px;
    border: 1px solid rgba(108, 99, 255, 0.2);
    transition: all 0.35s ease;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-item-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.05), rgba(0, 217, 255, 0.02));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.contact-item-modern:hover::before {
    opacity: 1;
}

.contact-item-modern:hover {
    transform: translateY(-5px);
    border-color: var(--secondary);
    background: rgba(108, 99, 255, 0.08);
    box-shadow: 0 15px 35px -12px rgba(0, 217, 255, 0.2);
}

.contact-icon-modern {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.contact-item-modern:hover .contact-icon-modern {
    transform: scale(1.08) rotate(5deg);
}

.contact-info-modern {
    flex: 1;
}

.contact-info-modern h4 {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dim);
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.contact-info-modern .contact-value-modern {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.5;
    word-break: break-word;
    direction: ltr;
    display: inline-block;
}

.contact-copy-badge {
    background: rgba(108, 99, 255, 0.2);
    border-radius: 40px;
    padding: 4px 12px;
    font-size: 0.7rem;
    color: var(--secondary);
    margin-right: 12px;
    transition: all 0.2s ease;
}

.contact-item-modern:hover .contact-copy-badge {
    background: var(--primary);
    color: white;
}

.contact-action-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 35px;
    border-top: 1px solid rgba(108, 99, 255, 0.2);
}

.contact-badge-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(108, 99, 255, 0.1);
    padding: 10px 22px;
    border-radius: 60px;
    border-right: 3px solid var(--primary);
}

.contact-badge-modern i {
    color: var(--secondary);
    font-size: 1.1rem;
}

.contact-badge-modern span {
    font-size: 0.85rem;
    font-weight: 600;
}

.contact-social-links-modern {
    display: flex;
    gap: 15px;
}

.contact-social-link {
    width: 44px;
    height: 44px;
    background: rgba(108, 99, 255, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

.contact-social-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-3px);
    border-color: transparent;
}

.contact-response-time {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
}

.contact-response-time i {
    color: var(--secondary);
}

@media (max-width: 768px) {
    .contact-grid-modern {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .contact-item-modern {
        padding: 16px 20px;
    }

    .contact-icon-modern {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }

    .contact-info-modern .contact-value-modern {
        font-size: 0.85rem;
    }

    .contact-action-modern {
        flex-direction: column;
        text-align: center;
    }

    .contact-badge-modern {
        justify-content: center;
    }
}