:root {
    --accent-color: #dfff00; /* Warna neon-lime */
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --text-primary: #d1d5db;
    --text-secondary: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent-rgba: rgba(223, 255, 0, 0.1);
    --accent-rgba-hover: rgba(223, 255, 0, 0.2);
    --transition-smooth: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.header-nav {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
}

header nav {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative;
}

header .nav-link:first-child {
    display: none;
}

#mobile-menu-button {
    position: absolute;
    right: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: white;
}
.nav-link {
    color: var(--text-primary);
    transition: var(--transition-smooth);
    position: relative;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
}

.nav-link.active {
    color: var(--accent-color);
    font-weight: 600;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu */
#mobile-menu {
    background: rgba(10, 10, 10, 0.95);
    padding: 1rem;
    border-top: 1px solid var(--border-color);
}

.nav-link-mobile {
    display: block;
    padding: 0.75rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    text-decoration: none;
}

.nav-link-mobile.active {
    color: var(--accent-color);
    font-weight: 600;
}


.page-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
    padding-left: 0 !important;
    padding-right: 0 !important;
    position: relative;
    overflow: hidden;
}

main {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}

#home {
    text-align: center;
    position: relative;
    z-index: 1;
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.relative.z-10 {
    position: relative;
    z-index: 10;
    width: 100vw !important;
    max-width: 100vw !important;
    padding: 0 1rem !important;
}

.hero-name {
    font-size: clamp(2.5rem, 18vw, 18rem) !important;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
    letter-spacing: -2px;
    text-shadow: 0 0 30px rgba(223, 255, 0, 0.3);
    animation: slideInDown 0.8s ease;
    min-width: 100%;
    word-wrap: break-word;
    display: block !important;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    animation: slideInDown 0.8s ease 0.1s both;
}

.hero-text {
    color: var(--accent-color);
    animation: slideInUp 0.8s ease 0.2s both;
    font-weight: 500;
}

.social-link,
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--accent-rgba);
    color: var(--accent-color);
    transition: var(--transition-smooth);
    text-decoration: none;
    border: 1px solid rgba(223, 255, 0, 0.3);
}

.social-link:hover,
.social-icon:hover {
    background: var(--accent-rgba-hover);
    transform: translateY(-3px);
    box-shadow: 0 0 20px rgba(223, 255, 0, 0.3);
}

.social-link svg,
.social-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}


.about-card {
    background-color: var(--accent-color);
    color: var(--bg-dark);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(223, 255, 0, 0.2);
    animation: slideInUp 0.8s ease;
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

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

.profile-placeholder {
    position: relative;
    width: 100%;
    max-width: 280px;
    height: auto;
    background: linear-gradient(135deg, rgba(223, 255, 0, 0.1) 0%, rgba(223, 255, 0, 0.05) 100%);
    border: 3px solid var(--accent-color);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideInUp 0.8s ease;
    box-shadow: 0 0 30px rgba(223, 255, 0, 0.2);
}

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

.profile-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 30%, rgba(223, 255, 0, 0.1) 50%, transparent 70%),
        linear-gradient(-45deg, transparent 30%, rgba(223, 255, 0, 0.1) 50%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    animation: shimmer 3s infinite;
}

.profile-placeholder-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent-color);
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, rgba(223, 255, 0, 0.15) 0%, rgba(223, 255, 0, 0.05) 100%);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

.profile-placeholder-text p {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-color);
}

.about-content {
    animation: slideInUp 0.8s ease;
}

.about-content h1 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    animation: slideInDown 0.8s ease;
}

.about-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.about-content p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: justify;
}

.about-card h1,
.about-card h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-align: center;
}

.about-card p {
    font-size: 1rem;
    line-height: 1.8;
    font-weight: 500;
    text-align: justify;
    margin-bottom: 1rem;
}

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

.resume-btn {
    margin: 1.5rem 0;
}

.btn-download {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--bg-dark);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(223, 255, 0, 0.3);
}

.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s;
    z-index: 1;
}

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

.btn-download:hover {
    background-color: transparent;
    color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(223, 255, 0, 0.4);
}

.btn-icon {
    margin-right: 0.5rem;
    display: inline-block;
    transition: var(--transition-smooth);
}

.btn-download:hover .btn-icon {
    transform: translateY(3px);
}

.skills-section {
    margin: 2rem 0;
}

.skills-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.skill-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(223, 255, 0, 0.1);
    border: 2px solid var(--accent-color);
    border-radius: 10px;
    font-size: 24px;
    color: var(--accent-color);
    transition: var(--transition-smooth);
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.skill-logo-item::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;
}

.skill-logo-item:hover::before {
    left: 100%;
}

.skill-logo-item:hover {
    background: rgba(223, 255, 0, 0.2);
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 24px rgba(223, 255, 0, 0.4);
}

.skill-logo-item i {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.skill-text {
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.social-links-about {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    font-size: 1.75rem;
}

.social-links-about a {
    color: var(--accent-color);
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    font-size: 1.5rem;
    overflow: hidden;
}

.social-links-about a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(223, 255, 0, 0.2);
    border-radius: 50%;
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.social-links-about a:hover::before {
    width: 100%;
    height: 100%;
}

.social-links-about a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(223, 255, 0, 0.3);
    color: var(--bg-dark);
}

.skill-card {
    background: rgba(10, 10, 10, 0.3);
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(10, 10, 10, 0.5);
    animation: slideInUp 0.8s ease;
}

.skill-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.skill-card ul {
    list-style: none;
    line-height: 2;
}

.skill-card li::before {
    content: "✓ ";
    font-weight: 700;
    margin-right: 0.5rem;
    color: var(--accent-color);
}

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

.project-card {
    background: var(--bg-card);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    animation: slideInUp 0.8s ease;
    min-height: 350px;
    width: 100%;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: #4a4a4a;
}

/* Project Card Border Colors */
.project-card-lime {
    border: 3px solid var(--accent-color);
    border-radius: 20px;
}

.project-card-lime:hover {
    box-shadow: 0 0 20px rgba(223, 255, 0, 0.4);
}

.project-card-blue {
    border: 3px solid #38bdf8;
    border-radius: 20px;
}

.project-card-blue:hover {
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.4);
}

.project-card-purple {
    border: 3px solid #a78bfa;
    border-radius: 20px;
}

.project-card-purple:hover {
    box-shadow: 0 0 20px rgba(167, 139, 250, 0.4);
}

.project-card-orange {
    border: 3px solid #ff9500;
    border-radius: 20px;
}

.project-card-orange:hover {
    box-shadow: 0 0 20px rgba(255, 149, 0, 0.4);
}

.project-card-dark {
    border: 3px solid #666;
    border-radius: 20px;
}

.project-card-dark:hover {
    box-shadow: 0 0 20px rgba(102, 102, 102, 0.4);
}

.project-card-cyan {
    border: 3px solid #06b6d4;
    border-radius: 20px;
}

.project-card-cyan:hover {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}

.project-card-green {
    border: 3px solid #22c55e;
    border-radius: 20px;
}

.project-card-green:hover {
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.project-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.project-card .p-6 {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.875rem;
}

.tech-icon {
    background-color: #2b2b2b;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    font-size: 1.25rem;
    color: var(--accent-color);
}

.tech-icon:hover {
    background-color: rgba(223, 255, 0, 0.2);
    transform: scale(1.1) translateY(-3px);
    color: var(--accent-color);
}

.tech-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.glow-lime {
    box-shadow: 0 0 10px rgba(223, 255, 0, 0.1);
}

.glow-lime:hover {
    box-shadow: 0 0 25px rgba(223, 255, 0, 0.3);
}

.glow-blue {
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.1);
}

.glow-blue:hover {
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.glow-purple {
    box-shadow: 0 0 10px rgba(167, 139, 250, 0.1);
}

.glow-purple:hover {
    box-shadow: 0 0 25px rgba(167, 139, 250, 0.3);
}

.contact-form {
    background: rgba(26, 26, 26, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    animation: slideInUp 0.8s ease;
    max-width: 56rem;
    margin: 0 auto;
    width: 100%;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-card {
    background: rgba(26, 26, 26, 0.5);
    border: 1px solid rgba(223, 255, 0, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    animation: slideInUp 0.8s ease;
}

.info-card h3 {
    color: var(--accent-color);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.contact-form label {
    color: var(--text-primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    background-color: rgba(10, 10, 10, 0.5);
    border: 1px solid rgba(223, 255, 0, 0.2);
    border-radius: 8px;
    padding: 0.875rem;
    color: #fff;
    transition: var(--transition-smooth);
    font-family: 'Poppins', sans-serif;
    width: 100%;
    margin-bottom: 1.5rem;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(209, 213, 219, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(223, 255, 0, 0.3);
    background-color: rgba(10, 10, 10, 0.8);
}

.contact-form button {
    background: var(--accent-color);
    color: var(--bg-dark);
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.contact-form button:hover {
    background: #c7ff00;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(223, 255, 0, 0.4);
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background-color: rgba(34, 197, 94, 0.2);
    border: 1px solid #22c55e;
    color: #86efac;
}

.form-message.error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid #ef4444;
    color: #fca5a5;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    text-align: center;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--bg-dark);
}

.btn-primary:hover {
    background: #c7ff00;
    transform: scale(1.05);
}

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

.btn-secondary:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
    transform: scale(1.05);
}

.btn-dark {
    background: #1f2937;
    color: white;
}

.btn-dark:hover {
    background: #111827;
    transform: scale(1.05);
}

footer {
    border-top: 1px solid var(--border-color);
    margin-top: 5rem;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

footer p {
    margin: 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveBackgroundText {
    from {
        transform: translate(-50%, -50%);
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    to {
        transform: translate(-55%, -50%);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.max-w-6xl {
    max-width: 1600px !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

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

.text-white {
    color: white;
}

.text-gray-400 {
    color: #9ca3af;
}

.hidden {
    display: none;
}

.max-w-2xl {
    max-width: 42rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.w-full {
    width: 100%;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.75rem;
}

.rounded-2xl {
    border-radius: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.contact-box {
    animation: slideInUp 0.8s ease-out;
}

.contact-box a {
    position: relative;
    transition: all 0.3s ease;
}

.contact-box a:hover {
    opacity: 0.8;
}

.contact-box a i {
    margin-right: 0.5rem;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 2px solid;
    margin-bottom: 1rem;
    font-weight: 600;
    animation: slideInDown 0.4s ease-out;
}

.form-message.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .page-section {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
        padding-left: 0;
        padding-right: 0;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    main {
        padding: 0 1rem;
    }

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

    .profile-placeholder {
        max-width: 90%;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .about-content h1 {
        font-size: 2rem;
    }

    .about-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .skills-logos {
        justify-content: center;
    }

    .skill-logo-item {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .social-links-about {
        justify-content: center;
        gap: 1rem;
    }

    .social-links-about a {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .project-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin-top: 2rem;
    }

    .project-card {
        min-height: auto;
    }

    .project-card img {
        height: 10rem;
    }

    .project-card h3 {
        font-size: 1.1rem;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-form label {
        font-size: 0.95rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.75rem;
        margin-bottom: 1rem;
        font-size: 16px;
    }

    .contact-form button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .social-link,
    .social-icon {
        width: 2.2rem;
        height: 2.2rem;
    }

    .social-link svg,
    .social-icon svg {
        width: 1.1rem;
        height: 1.1rem;
    }

    header nav {
        padding: 1rem 0.75rem;
    }

    header .logo-link {
        font-size: 1.3rem;
    }

    #mobile-menu-button {
        right: 1rem;
    }

    .nav-link-mobile {
        padding: 1rem;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* About card mobile */
    .about-card {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .about-card h1,
    .about-card h2 {
        font-size: 2rem;
    }

    .about-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .btn-download {
        padding: 0.65rem 1.2rem;
        font-size: 0.9rem;
    }

    .skills-section h3 {
        font-size: 1.1rem;
    }

    /* Heading adjustments */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    h3 {
        font-size: 1.1rem !important;
    }

    /* Reduce padding for tight spaces */
    .page-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Better touch targets */
    a, button {
        min-height: 44px;
        min-width: 44px;
    }

    /* Projects heading */
    .page-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        margin-top: 1rem;
    }

    /* Contact heading */
    .contact-box {
        padding: 0;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    main {
        padding: 0 1.25rem;
    }

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

    .profile-placeholder {
        max-width: 250px;
        height: auto;
    }

    .about-content h1 {
        font-size: 2.5rem;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .project-card img {
        height: 12rem;
    }

    .contact-info {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    .contact-form {
        padding: 2.5rem;
    }

    .hero-name {
        font-size: clamp(3rem, 20vw, 12rem);
    }

    .skills-logos {
        justify-content: flex-start;
    }
}

@media (min-width: 1025px) {
    .about-container {
        grid-template-columns: 1fr 1.5fr;
        gap: 3rem;
    }

    .project-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem;
    }
}

@media (max-width: 360px) {
    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-text {
        font-size: 0.9rem;
    }

    main {
        padding: 0 0.75rem;
    }

    .page-section {
        padding-top: 5rem;
        padding-bottom: 2rem;
    }

    .social-link,
    .social-icon {
        width: 2rem;
        height: 2rem;
    }

    button, a {
        font-size: 14px;
    }
}

/* Landscape orientation adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    .page-section {
        min-height: auto;
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-text {
        margin-top: 0.5rem;
    }

    .social-link,
    .social-icon {
        width: 2rem;
        height: 2rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .social-link:active,
    .social-icon:active,
    .btn:active,
    a:active {
        transform: scale(0.98);
        opacity: 0.8;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

@media print {
    header,
    footer,
    button,
    .social-link {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .page-section {
        page-break-inside: avoid;
    }
}
