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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0d0d0d;
    overflow-x: hidden;

}

.open-sans {
  font-family: "Open Sans", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700 ;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


.rubik{
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700 ;
  font-style: normal;
}


.libre-baskerville {
  font-family: "Libre Baskerville", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
    color: #00a8ff;
}

.cta-button {
    background: #00a8ff;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    cursor: pointer;
}

.cta-button:hover {
    background: #0088cc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 168, 255, 0.3);
}

/* Main Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 80px 50px;
}

/* Section Styling */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

section.active {
    opacity: 1;
    transform: translateY(0);
}

/* Home Section - FIXED LAYOUT */
#home {
    display: grid;
    grid-template-columns: 1fr 1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.intro-text {
    padding-right: 40px;
    padding-left: 0;
}

.intro-text h2 {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 10px;
}

.intro-text h1 {
    font-size: 72px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    line-height: 1.1;
}

.intro-text p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-info {
    margin-top: 80px;
}

.email {
    color: #fff;
    font-size: 15px;
    margin-bottom: 15px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.social-icons .email { background: #00a8ff; }
.social-icons .dribbble { background: #ea4c89; }
.social-icons .behance { background: #1769ff; }

/* Hero Image - FIXED POSITIONING */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}


.hero-image img {
    width: 500px;
    aspect-ratio: 3 / 4; /* otomatis proporsional */
    object-fit: cover;
}

/* Portfolio Cards - FIXED SPACING */
.portfolio-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    padding-left: 0;
}

.portfolio-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    width: 100%;
    max-width: 280px;
    animation: float 3s ease-in-out infinite;
}

/* Zigzag positioning */
.portfolio-card:nth-child(odd) {
    align-self: flex-start;
    margin-left: 0;
}

.portfolio-card:nth-child(even) {
    align-self: flex-end;
    margin-right: 0;
}

.portfolio-card:nth-child(1) {
    animation-delay: 0s;
}

.portfolio-card:nth-child(2) {
    animation-delay: 1s;
}

.portfolio-card:nth-child(3) {
    animation-delay: 2s;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
    animation-play-state: paused;
}

/* Floating animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(2deg);
    }
    50% {
        transform: translateY(-10px) rotate(-2deg);
    }
    75% {
        transform: translateY(-15px) rotate(1deg);
    }
}

.card-image {
    width: 100%;
    height: 150px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    animation: cardImagePulse 2s ease-in-out infinite;
}

@keyframes cardImagePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

.card-image.card-1 { 
    background: linear-gradient(135deg, #e3f2fd 0%, #90caf9 100%);
    animation-delay: 0.3s;
}

.card-image.card-2 { 
    background: linear-gradient(135deg, #d1c4e9 0%, #7e57c2 100%);
    animation-delay: 0.6s;
}

.card-image.card-3 { 
    background: linear-gradient(135deg, #fff3e0 0%, #ffb74d 100%);
    animation-delay: 0.9s;
}

.portfolio-card h3 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 5px;
}

.portfolio-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

/* Works Section */
#works {
    flex-direction: column;
    justify-content: center;
    padding: 50px 0;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
}

.works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.work-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.work-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.work-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.work-content {
    padding: 25px;
}

.work-content h3 {
    font-size: 20px;
    color: #fff;
    margin-bottom: 10px;
}

.work-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.6;
}

/* Services Section */
#services {
    flex-direction: column;
    justify-content: center;
    padding: 50px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 15px;
}

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    line-height: 1.8;
}

/* About Section */
#about {
    flex-direction: column;
    justify-content: center;
    padding: 10px 0;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    margin-bottom: 30px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
    transition: all 0.3s;
}

.skill-tag:hover {
    background: #00a8ff;
    border-color: #00a8ff;
    color: white;
    transform: translateY(-3px);
}

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

/* Desktop Sedang - 1200px */
@media (max-width: 1200px) {
    #home {
        grid-template-columns: 1fr 1fr 0.8fr;
        gap: 40px;
    }
    
    .intro-text h1 {
        font-size: 60px;
    }
    
    .hero-image::before {
        width: 380px;
        height: 380px;
    }
    
    .hero-image::after {
        width: 410px;
        height: 410px;
    }
    
    .hero-image img {
        max-width: 320px;
    }
}

/* Tablet & Small Desktop - 1024px */
@media (max-width: 1024px) {
    #home {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .intro-text {
        padding-right: 0;
    }

    .portfolio-cards {
        flex-direction: row;
        justify-content: center;
    }

    /* Layout 2 kolom untuk tablet */
    .works-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

/* Tablet Medium - 768px */
@media (max-width: 768px) {
    nav {
        padding: 15px 30px;
    }

    .container {
        padding: 80px 30px 30px;
    }

    /* TETAP 2 kolom untuk tablet medium */
    .works-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .intro-text h1 {
        font-size: 48px;
    }
    
    .section-title {
        font-size: 42px;
    }

    .work-image {
        height: 220px;
        font-size: 56px;
    }

    .work-content {
        padding: 20px;
    }

    .work-content h3 {
        font-size: 18px;
    }

    .service-card {
        padding: 35px;
    }

    .hero-image::before {
        width: 300px;
        height: 300px;
    }
    
    .hero-image::after {
        width: 330px;
        height: 330px;
    }
    
    .hero-image img {
        max-width: 260px;
    }
}

/* Mobile Landscape - 640px */
@media (max-width: 640px) {
    nav {
        padding: 12px 20px;
    }

    .logo {
        font-size: 18px;
    }

    .nav-links {
        gap: 15px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .cta-button {
        padding: 8px 16px;
        font-size: 11px;
    }

    /* TETAP 2 kolom untuk mobile landscape */
    .works-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .work-content h3 {
        font-size: 16px;
    }

    .work-content p {
        font-size: 13px;
    }
}

/* Mobile Portrait - 480px ke bawah */
@media (max-width: 480px) {
    nav {
        padding: 10px 15px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .cta-button {
        padding: 7px 14px;
        font-size: 10px;
    }

    .container {
        padding: 80px 20px 30px;
    }

    /* 1 KOLOM untuk HP kecil */
    .works-grid,
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .intro-text h1 {
        font-size: 36px;
    }

    .section-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .work-image {
        height: 200px;
        font-size: 48px;
    }

    .work-content {
        padding: 20px;
    }

    .work-content h3 {
        font-size: 18px;
    }

    .work-content p {
        font-size: 14px;
    }

    .service-card {
        padding: 30px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
    }

    .hero-image img {
        max-width: 220px;
    }

    .about-content p {
        font-size: 16px;
    }
}

/* Mobile Extra Small - 360px */
@media (max-width: 360px) {
    nav {
        padding: 10px 12px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 10px;
    }

    .cta-button {
        padding: 7px 14px;
        font-size: 10px;
        border-radius: 20px;
    }

    .intro-text h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 32px;
    }

    .work-image {
        height: 180px;
    }

    .service-card {
        padding: 25px;
    }
}

/* Social Icons Styling */
.social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    color: white;
}

.social-icons a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    top: -100%;
    left: -100%;
    transition: all 0.6s;
}

.social-icons a:hover::before {
    top: 100%;
    left: 100%;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1) rotate(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.social-icons .Instagram { 
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons .Instagram:hover {
    box-shadow: 0 15px 35px rgba(240, 148, 51, 0.5);
}

.social-icons .Discord { 
    background: #5865F2;
}

.social-icons .Discord:hover {
    box-shadow: 0 15px 35px rgba(88, 101, 242, 0.5);
}

.social-icons .Linkedin { 
    background: #0077b5;
}

.social-icons .Linkedin:hover {
    box-shadow: 0 15px 35px rgba(0, 119, 181, 0.5);
}

.social-icons svg {
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Typewriter cursor */
.typewriter::after {
    content: '|';
    color: #00a8ff;
    animation: blink 0.7s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}