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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #131729;
    --bg-card: #1a1f3a;
    --accent-primary: #00d4ff;
    --accent-secondary: #7c3aed;
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.03;
}

.particle {
    position: absolute;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: float 20s infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    25% { transform: translateY(-100px) translateX(50px); }
    50% { transform: translateY(-50px) translateX(100px); }
    75% { transform: translateY(-150px) translateX(25px); }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.5rem 5%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 212, 255, 0.05);
    transition: all 0.3s ease;
}

nav .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-primary);
}

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

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

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

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

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

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5% 50px 5%;
    position: relative;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    max-width: 600px; /* <-- Batasi lebar text */
    padding: 2.5rem;
    text-align: left;
    margin-left: 0;
    background: rgba(10, 14, 39, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative; 
    z-index: 2;
}

.hero-image {
    flex: 100px 0 450px;
    animation: fadeInUp 1s ease-out 0.3s both;
    position: relative;
    z-index: 1;
    margin-left: auto;
}

.image-placeholder {
    width: 350px;
    height: 450px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    animation: morph 8s ease-in-out infinite;
    z-index: -1;
    filter: blur(1px);
}

@keyframes morph {
    0%, 100% {
        border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    }
    25% {
        border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%;
    }
    50% {
        border-radius: 54% 46% 38% 62% / 49% 70% 30% 51%;
    }
    75% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 63% 37% 54% 46% / 55% 48% 52% 45%;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.3);
}

.image-placeholder::after {
    content: '';
    position: absolute;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    z-index: 1;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    transition: left 0.6s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

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

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: none;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::after {
    width: 00px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.5);
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
}

.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.6);
}

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

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.btn-secondary:hover {
    background: rgba(0, 212, 255, 0.1);
}

.btn-secondary:hover::before {
    opacity: 0.15;
}

.btn-secondary::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 12px;
    z-index: -2;
    opacity: 0;
    filter: blur(10px);
    transition: opacity 0.4s;
}

.btn-secondary:hover::after {
    opacity: 0.7;
    animation: neonPulse 1.5s ease-in-out infinite;
}


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

@keyframes neonPulse {
    0%, 100% {
        opacity: 0.5;
        filter: blur(10px);
    }
    50% {
        opacity: 1;
        filter: blur(15px);
    }
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}

.btn-secondary:active {
    transform: translateY(-2px) scale(1.02);
}

/* Button Text Animation */
.btn span {
    position: relative;
    z-index: 1;
    display: inline-block;
    transition: transform 0.3s ease;
}

.btn:hover span {
    animation: textBounce 0.6s ease;
}

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

/* Floating Animation on Load */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.btn-primary {
    animation: float 3s ease-in-out infinite;
    animation-delay: 0.8s;
}

.btn-secondary {
    animation: float 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Ripple Effect on Click */
.btn {
    overflow: visible;
}

.btn.ripple::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    to {
        width: 300px;
        height: 300px;
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

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

/* Section Styles */
section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section - Redesigned */
#about {
    position: relative;
    padding: 8rem 5%;
}

#about h2 {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInScale 1s ease-out;
    position: relative;
}

#about h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

/* About Container - Grid Layout */
.about-container {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    margin-bottom: 5rem;
}

/* Intro Card */
.about-intro-card {
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    margin-bottom: 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.about-intro-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: var(--gradient);
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    animation: float 6s ease-in-out infinite;
}

.intro-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: inline-block;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg) translateY(0); }
    25% { transform: rotate(20deg) translateY(-5px); }
    75% { transform: rotate(-20deg) translateY(-5px); }
}

.about-intro-card h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.wave-line {
    display: inline-block;
    width: 40px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
    margin-right: 10px;
    animation: expandLine 1.5s ease-in-out infinite;
}

@keyframes expandLine {
    0%, 100% { width: 40px; }
    50% { width: 60px; }
}

.name-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 212, 255, 0.15);
    border: 1px solid var(--accent-primary);
    border-radius: 50px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.company-highlight {
    color: var(--accent-secondary);
}

/* Story Blocks */
.about-story {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.story-block {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    border: 2px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s ease;
}

.story-block:hover {
    transform: translateX(10px);
    border-color: var(--accent-primary);
    background: rgba(26, 31, 58, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.story-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.story-block p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.story-block .highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

/* Sidebar Stats */
.about-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.stat-card {
    background: rgba(26, 31, 58, 0.9);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid rgba(0, 212, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    background: rgba(26, 31, 58, 1);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* Skills Section */
.skills-section {
    margin-top: 4rem;
}

.section-subtitle {
    font-size: 2rem;
    text-align: center;
    color: var(--accent-primary);
    margin-bottom: 2.5rem;
}

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

/* Skill Cards Enhancement */
.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    opacity: 0.8;
    animation: float 6s ease-in-out infinite;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.skill-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .about-sidebar {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
    }
}

@media (max-width: 768px) {
    #about h2 {
        font-size: 2.5rem;
    }

    .about-intro-card h3 {
        font-size: 1.5rem;
    }

    .story-block {
        flex-direction: column;
        gap: 1rem;
    }

    .about-sidebar {
        flex-direction: column;
    }
}
/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.skill-card h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--gradient);
}

.timeline-item {
    display: flex;
    justify-content: flex-start;
    padding: 2rem 0;
    position: relative;
}

.timeline-item:nth-child(even) {
    justify-content: flex-end;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-primary);
    border: 4px solid var(--bg-primary);
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    width: 45%;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
}

.timeline-content:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.timeline-content h3 {
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Achievements & Publications - Unified Grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.achievement-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.2);
}

.achievement-card:hover::before {
    transform: scaleX(1);
}

.achievement-card.coming-soon {
    opacity: 0.7;
    cursor: default;
}

.achievement-card.coming-soon:hover {
    transform: translateY(0);
    box-shadow: none;
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.achievement-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.achievement-badge.patent {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-secondary);
}

.achievement-badge.journal {
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
}

.achievement-card h3 {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    flex-grow: 1;
}

.achievement-meta,
.achievement-location,
.achievement-status {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.achievement-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.view-link {
    display: inline-block;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: auto;
    font-size: 0.9rem;
}

.view-link.coming-soon-text {
    color: var(--text-secondary);
    font-style: italic;
}

/* Certificate Cards with Images */
.cert-image-card {
    padding: 0;
}

.cert-link {
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cert-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.cert-image-placeholder::before {
    content: '📜';
    font-size: 3rem;
    position: absolute;
}

.cert-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.cert-image-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.cert-image-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.cert-image-card h3 {
    padding: 1.5rem;
    color: var(--text-primary);
    text-align: center;
    font-size: 1rem;
    margin: 0;
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

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

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
}

.contact-link:hover {
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.3s;
}

.contact-link:hover .contact-icon {
    border-color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.1);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .mobile-menu {
        display: flex;
    }

    .hero-content {
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .hero-text {
        padding: 2rem;
        max-width: 100%;
        text-align: center;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    .hero-image {
        flex: 0 0 auto;
    }

    .image-placeholder {
        width: 300px;
        height: 400px;
    }

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

    .btn {
        width: 100%;
    }

    h2 {
        font-size: 2rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-dot {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-end;
        padding-left: 60px;
    }

    .timeline-content {
        width: 100%;
    }

    .contact-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-content {
        flex-direction: column-reverse;
        gap: 3rem;
    }

    .hero-image {
        margin-left: 0; /* <-- Reset di mobile */
        flex: 0 0 auto;
    }

    .image-placeholder {
        width: 350px;
        height: 450px;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }
}
/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 1rem 5% 1rem 5%;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
    position: relative;
    overflow: visible;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.social-icons-footer {
    display: flex;
    gap: 4rem;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

/* Tooltip Container */
.tooltip-container {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 17px;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    margin-bottom: 20px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border-radius: 15px;
    box-shadow: 
        inset 5px 5px 5px rgba(0, 0, 0, 0.2),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1),
        5px 5px 15px rgba(0, 0, 0, 0.3),
        -5px -5px 15px rgba(255, 255, 255, 0.1);
    z-index: 100;
    min-width: 250px;
}

.profile {
    background: #2a2b2f;
    border-radius: 10px 15px;
    padding: 15px;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.tooltip-container:hover .tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin-bottom: 30px;
}

/* Icon Styling */
.icon {
    text-decoration: none;
    color: #fff;
    display: block;
    position: relative;
}

.layer {
    width: 55px;
    height: 55px;
    transition: transform 0.3s;
    position: relative;
}

.icon:hover .layer {
    transform: rotate(-35deg) skew(20deg);
}

.layer span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 1px solid #fff;
    border-radius: 5px;
    transition: all 0.3s;
}

/* LinkedIn Colors */
.linkedin .layer span,
.linkedin .text {
    color: #0077b5;
    border-color: #0077b5;
}

.linkedin .layer span.fab {
    fill: #0077b5;
    background: rgba(0, 119, 181, 0.1);
}

.linkedin:hover .layer span {
    box-shadow: -1px 1px 3px #0077b5;
}

/* GitHub Colors */
.github .layer span,
.github .text {
    color: #00d4ff;
    border-color: #00d4ff;
}

.github .layer span.fab {
    fill: #00d4ff;
    background: rgba(0, 212, 255, 0.1);
}

.github:hover .layer span {
    box-shadow: -1px 1px 3px #00d4ff;
}

/* Email Colors */
.email .layer span,
.email .text {
    color: #7c3aed;
    border-color: #7c3aed;
}

.email .layer span.fab {
    stroke: #7c3aed;
    background: rgba(124, 58, 237, 0.1);
}

.email:hover .layer span {
    box-shadow: -1px 1px 3px #7c3aed;
}

/* Common fab styling */
.layer span.fab {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
}

/* Text label below icon */
.icon .text {
    position: absolute;
    left: 50%;
    bottom: -5px;
    opacity: 0;
    font-weight: 500;
    transform: translateX(-50%);
    transition: bottom 0.3s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.icon:hover .text {
    bottom: -35px;
    opacity: 1;
}

/* Layer animation on hover */
.icon:hover .layer span:nth-child(1) {
    opacity: 0.2;
}

.icon:hover .layer span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}

.icon:hover .layer span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}

.icon:hover .layer span:nth-child(4) {
    opacity: 0.8;
    transform: translate(15px, -15px);
}

.icon:hover .layer span:nth-child(5) {
    opacity: 1;
    transform: translate(20px, -20px);
}

/* Tooltip Profile */
.user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.img {
    width: 50px;
    height: 50px;
    font-size: 20px;
    font-weight: 700;
    border: 2px solid var(--accent-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
}

.details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.name {
    font-size: 16px;
    font-weight: 700;
    color: var(--accent-primary);
}

.username {
    font-size: 13px;
    color: var(--text-secondary);
}

.about {
    color: var(--text-secondary);
    padding-top: 10px;
    font-size: 13px;
    line-height: 1.4;
}

/* Footer Text */
.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
    margin: 1rem 0 0.5rem 0;
}

.footer-highlight {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 768px) {
    .social-icons-footer {
        gap: 2.5rem;
    }

    .tooltip {
        min-width: 200px;
    }

    .layer {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .social-icons-footer {
        gap: 2rem;
    }

    .layer {
        width: 45px;
        height: 45px;
    }

    footer {
        padding: 3\rem 5% 1.5rem 5%;
    }
}
.social-links {
    display: flex;
    gap: 2rem;
}

.social-icon {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.social-icon:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-5px);
}

.social-icon svg {
    width: 24px;
    height: 24px;
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    text-align: center;
}

.footer-link {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--accent-secondary);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .social-links {
        gap: 1.5rem;
    }
    
    .social-icon {
        width: 45px;
        height: 45px;
    }
}
/* Neural Background */
.neural-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    opacity: 0.4;
    pointer-events: none;
}

/* PYRAMID LOADING - EXACT COPY DARI LU + CONTAINER */
.pyramid-loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at center, #0a0a1a 0%, #000 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

.pyramid-loader {
  position: relative;
  width: 300px;
  height: 300px;
  display: block;
  transform-style: preserve-3d;
  transform: rotateX(-20deg);
}

.wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  animation: spin 0.8s linear infinite; /* CEPAT & SMOOTH */
}

@keyframes spin {
  100% {
    transform: rotateY(360deg);
  }
}

.pyramid-loader .wrapper .side {
  width: 70px;
  height: 70px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform-origin: center top;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  box-shadow: 0 0 30px rgba(255,255,255,0.3);
}

.pyramid-loader .wrapper .side1 {
  transform: rotateZ(-30deg) rotateY(90deg);
  background: conic-gradient(#2BDEAC, #F028FD, #D8CCE6, #2F2585);
}

.pyramid-loader .wrapper .side2 {
  transform: rotateZ(30deg) rotateY(90deg);
  background: conic-gradient(#2F2585, #D8CCE6, #F028FD, #2BDEAC);
}

.pyramid-loader .wrapper .side3 {
  transform: rotateX(30deg);
  background: conic-gradient(#2F2585, #D8CCE6, #F028FD, #2BDEAC);
}

.pyramid-loader .wrapper .side4 {
  transform: rotateX(-30deg);
  background: conic-gradient(#2BDEAC, #F028FD, #D8CCE6, #2F2585);
}

.pyramid-loader .wrapper .shadow {
  width: 60px;
  height: 60px;
  background: #8B5AD5;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  transform: rotateX(90deg) translateZ(-40px);
  filter: blur(12px);
}

/* PROGRESS TEXT */
.loader-text {
  margin-top: 40px;
  text-align: center;
}

.progress-text {
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 20px rgba(255,255,255,0.8);
  letter-spacing: 2px;
}

/* MAIN CONTENT */
.main-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.main-content.show {
  opacity: 1;
}

/* Projects Section */
#projects {
    padding: 8rem 5%;
    position: relative;
}

#projects h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 4rem auto;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Project Card */
.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 50px rgba(0, 212, 255, 0.3);
}

/* Project Image */
.project-image {
    width: 100%;
    height: 240px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(124, 58, 237, 0.2) 100%);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Project Overlay */
.project-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.project-status {
    padding: 0.4rem 1rem;
    background: rgba(0, 212, 255, 0.9);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.project-status.ongoing {
    background: rgba(255, 165, 0, 0.9);
}

/* Project Content */
.project-content {
    padding: 2rem;
}

.project-category {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(0, 212, 255, 0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.project-content h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-tags .tag {
    padding: 0.4rem 0.8rem;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-secondary);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

/* Project Stats */
.project-stats {
    display: flex;
    gap: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 212, 255, 0.1);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Scroll Animation */
.project-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
    #projects h2 {
        font-size: 2.5rem;
    }

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

    .project-image {
        height: 200px;
    }

    .project-content {
        padding: 1.5rem;
    }

    .project-stats {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ORGANIZATIONAL EXPERIENCE CARDS - TRANSPARENT BG */
.org-section {
  padding: 60px 0; /* Dikecilin dari 80px */
  position: relative;
  overflow: hidden;
}

.org-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffffffff, transparent);
  animation: shimmer 3s infinite;
}

.org-section h2 {
  text-align: center;
  font-size: 2.5rem; /* Dikecilin dari 3rem */
  color: white;
  margin-bottom: 50px; /* Dikecilin dari 60px */
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.flip-card {
  perspective: 800px;
  height: 320px; /* Compact */
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 20px; /* Dikecilin dari 24px */
  padding: 24px; /* Dikecilin dari 30px */
  /* TRANSPARENT GLASSMORPHISM */
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.flip-card-front {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.org-photo-wrapper {
  width: 120px;              /* sesuaikan ukuran */
  height: 120px;
  border-radius: 24px;
  overflow: hidden;
  margin: 16px 0;
  border: 2px solid rgba(255,255,255,0.2);
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

/* Foto organisasi */
.org-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flip-card-back {
  background: rgba(255,255,255,0.08); /* TRANSPARAN 92% → 8% */
  backdrop-filter: blur(25px); /* FULL BLUR kayak front */
  border: 1px solid rgba(255,255,255,0.15); /* Border tipis */
  transform: rotateY(180deg);
  color: rgba(255,255,255,0.95); /* TEXT PUTIH biar kontras */
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0,0,0,0.25);
  padding: 24px 24px 24px 32px; /* kanan, bawah, kiri = 32px (lebih jauh dari garis) */
  border-radius: 20px 16px 16px 20px; /* kiri lebih bulat, kanan sedikit lebih kecil */
}

.card-header h3 {
  font-size: 1.6rem; /* Compact */
  margin: 0 0 8px;
  background: linear-gradient(45deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.role {
  background: linear-gradient(45deg, #f093fb, #f5576c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1rem;
  font-weight: 600;
}

.period {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6); /* TRANSPARAN 40% */
  margin: 12px 0;
  backdrop-filter: blur(25px);
  padding: 4px 12px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
}

.icon-stack {
  font-size: 3rem; /* Compact */
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.3));
  animation: float 3s ease-in-out infinite;
}

.flip-card-back h4 {
  color: #667eea;
  margin-bottom: 16px;
  font-size: 1.2rem;
  text-align: center;
  position: relative;
}

.flip-card-back h4::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.flip-card-back li {
  margin: 12px 0; /* Naik dari 10px */
  padding: 10px 0; /* Naik dari 6px */
  font-weight: 600; /* Bold */
  position: relative;
  padding-left: 40px; /* Lebih space */
  font-size: 1rem; /* Naik dari 0.95rem */
  background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent);
  margin: 12px -8px;
  padding: 12px 16px;
  border-radius: 12px;
  border-left: 4px solid transparent;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.flip-card-back li:hover {
  transform: translateX(8px);
  border-left-color: #667eea;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
}

.flip-card-back li::before {
  content: none;
  position: absolute;
  left: 18px; /* Adjust posisi */
  top: 14px;
  width: 14px; /* Lebih gede */
  height: 14px;
  background: none;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { 
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 25px rgba(102, 126, 234, 0.9);
    transform: scale(1.1);
  }
}

/* ANIMATIONS */
@keyframes shimmer {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

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

/* RESPONSIVE */
@media (max-width: 768px) {
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 16px;
  }
  
  .org-section h2 {
    font-size: 2rem;
  }
  
  .flip-card {
    height: 280px;
  }
}

/* Contact Section */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* 3D Contact Form */
.contact-form-3d {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    perspective: 1000px;
}

.form-item {
    position: relative;
    z-index: var(--depth);
    transition: transform 0.3s ease;
}

/* Input Wrapper with Border Animation */
.input-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

/* Animated Gradient Border */
.input-border {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        filter: hue-rotate(0deg);
    }
    100% {
        filter: hue-rotate(360deg);
    }
}

.input-wrapper:hover .input-border,
.form-input-3d:focus ~ .input-border {
    opacity: 1;
}

/* Input 3D Styling */
.form-input-3d {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid transparent;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-primary);
    position: relative;
    transition: all 0.3s ease;
    background: rgba(26, 31, 58, 0.8);
    z-index: 1;
}

.form-textarea-3d {
    resize: vertical;
    min-height: 150px;
}

/* Different box shadows for each input */
.form-item:nth-child(1) .input-wrapper {
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.1),
        8px 8px 0 rgba(0, 212, 255, 0.2),
        16px 16px 0 rgba(0, 212, 255, 0.1),
        inset 0 0 20px rgba(0, 212, 255, 0.05);
}

.form-item:nth-child(2) .input-wrapper {
    box-shadow: 
        0 0 25px rgba(0, 212, 255, 0.15),
        8px 8px 0 rgba(0, 212, 255, 0.25),
        16px 16px 0 rgba(0, 212, 255, 0.12),
        inset 0 0 20px rgba(0, 212, 255, 0.08);
}

.form-item:nth-child(3) .input-wrapper {
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.2),
        8px 8px 0 rgba(0, 212, 255, 0.3),
        16px 16px 0 rgba(0, 212, 255, 0.15),
        inset 0 0 20px rgba(0, 212, 255, 0.1);
}

/* Placeholder styling */
.form-input-3d::placeholder {
    color: var(--text-secondary);
}

/* Focus state */
.form-input-3d:focus {
    outline: none;
    transform: translate(-4px, -4px);
    background: rgba(26, 31, 58, 0.95);
}

.form-item:nth-child(1) .input-wrapper:has(.form-input-3d:focus) {
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.3),
        12px 12px 0 rgba(0, 212, 255, 0.3),
        24px 24px 0 rgba(0, 212, 255, 0.15),
        inset 0 0 30px rgba(0, 212, 255, 0.1);
}

.form-item:nth-child(2) .input-wrapper:has(.form-input-3d:focus) {
    box-shadow: 
        0 0 45px rgba(0, 212, 255, 0.35),
        12px 12px 0 rgba(0, 212, 255, 0.35),
        24px 24px 0 rgba(0, 212, 255, 0.18),
        inset 0 0 30px rgba(0, 212, 255, 0.12);
}

.form-item:nth-child(3) .input-wrapper:has(.form-input-3d:focus) {
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.4),
        12px 12px 0 rgba(0, 212, 255, 0.4),
        24px 24px 0 rgba(0, 212, 255, 0.2),
        inset 0 0 30px rgba(0, 212, 255, 0.15);
}

/* Hover effect */
.form-item:hover {
    transform: translate(-4px, -4px);
}

.form-item:hover .input-wrapper {
    filter: brightness(1.1);
}

/* Submit Button 3D with Icon */
.form-submit-3d {
    padding: 1.2rem 2.5rem;
    background: var(--gradient);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    margin-top: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 
        0 0 30px rgba(0, 212, 255, 0.3),
        8px 8px 0 rgba(0, 212, 255, 0.4),
        16px 16px 0 rgba(0, 212, 255, 0.2);
    overflow: hidden;
}

.form-submit-3d::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.6s;
}

.form-submit-3d:hover::before {
    left: 100%;
}

.form-submit-3d span {
    position: relative;
    z-index: 2;
}

/* Animated Send Icon */
.send-icon {
    position: relative;
    z-index: 2;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-submit-3d:hover .send-icon {
    transform: translateX(10px) translateY(-5px) rotate(-45deg);
    animation: sendPulse 0.8s ease-in-out;
}

@keyframes sendPulse {
    0%, 100% {
        transform: translateX(10px) translateY(-5px) rotate(-45deg) scale(1);
    }
    50% {
        transform: translateX(10px) translateY(-5px) rotate(-45deg) scale(1.15);
    }
}

.form-submit-3d:hover {
    transform: translate(-8px, -8px);
    box-shadow: 
        0 0 50px rgba(0, 212, 255, 0.5),
        16px 16px 0 rgba(0, 212, 255, 0.5),
        24px 24px 0 rgba(0, 212, 255, 0.3),
        32px 32px 0 rgba(0, 212, 255, 0.15);
}

.form-submit-3d:active {
    transform: translate(-4px, -4px);
    box-shadow: 
        0 0 40px rgba(0, 212, 255, 0.4),
        12px 12px 0 rgba(0, 212, 255, 0.4),
        20px 20px 0 rgba(0, 212, 255, 0.2);
}

.form-submit-3d:active .send-icon {
    transform: translateX(15px) translateY(-15px) rotate(-45deg) scale(0.9);
}

/* Success Message */
.form-success {
    padding: 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    color: var(--accent-primary);
    text-align: center;
    margin-top: 1rem;
    display: none;
    box-shadow: 
        0 0 20px rgba(0, 212, 255, 0.3),
        8px 8px 0 rgba(0, 212, 255, 0.2),
        16px 16px 0 rgba(0, 212, 255, 0.1);
}

.form-success.show {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .contact-content {
        padding: 0 1rem;
    }

    .form-input-3d {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Reduce 3D effect on mobile */
    .form-item:nth-child(1) .input-wrapper,
    .form-item:nth-child(2) .input-wrapper,
    .form-item:nth-child(3) .input-wrapper {
        box-shadow: 
            0 0 15px rgba(0, 212, 255, 0.15),
            4px 4px 0 rgba(0, 212, 255, 0.2),
            8px 8px 0 rgba(0, 212, 255, 0.1);
    }

    .form-submit-3d {
        padding: 1rem 2rem;
        box-shadow: 
            0 0 20px rgba(0, 212, 255, 0.3),
            4px 4px 0 rgba(0, 212, 255, 0.4),
            8px 8px 0 rgba(0, 212, 255, 0.2);
    }

    .form-item:hover,
    .form-submit-3d:hover {
        transform: translate(-2px, -2px);
    }
}

@media (max-width: 480px) {
    .contact-intro {
        font-size: 1rem;
    }
}