/* 
 * Taro Projects - Custom Styles
 * Author: Mohd Labib
 * Description: Modern landing page dengan glassmorphism dan smooth animations
 */

/* ===== Base Styles ===== */
body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* ===== Color Variables ===== */
.taro-green {
    color: #216D46;
}

.taro-green-bg {
    background-color: #216D46;
}

.taro-green-light {
    background: linear-gradient(135deg, #216D46 0%, #2a8a59 100%);
}

.taro-green-border {
    border-color: #216D46;
}

/* ===== Hero Gradient Background ===== */
.hero-gradient {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8f5e9 100%);
    position: relative;
}

.hero-gradient::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23216D46' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

/* ===== Glassmorphism Effect ===== */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(33, 109, 70, 0.1);
}

/* ===== Project Card Enhanced ===== */
.project-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(33, 109, 70, 0.05), transparent);
    transition: left 0.5s;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(33, 109, 70, 0.2);
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

.pulse-green {
    animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.05);
    }
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #216D46 0%, #2a8a59 50%, #34a86f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== Badge Styles ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, #216D46 0%, #2a8a59 100%);
    color: white;
}

/* ===== Smooth Scroll ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #216D46;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a5536;
}

/* ===== Stats Counter ===== */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #216D46 0%, #2a8a59 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Skill Tag ===== */
.skill-tag {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 9999px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    border-color: #216D46;
    background: #216D46;
    color: white;
    transform: scale(1.05);
}

/* ===== Responsive Typography ===== */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    h1 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    h2 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

/* ===== Section Spacing Fix ===== */
section {
    overflow: hidden;
}

.container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

/* ===== Mobile Navigation ===== */
@media (max-width: 768px) {
    nav .hidden.md\\:flex {
        display: none !important;
    }
}

/* ===== Prevent Text Overflow ===== */
.text-overflow-fix {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* ===== Mobile Optimizations ===== */
@media (max-width: 640px) {
    .project-card {
        padding: 1.5rem !important;
    }
    
    .glass-card {
        padding: 1.5rem !important;
    }
    
    /* Fix untuk heading yang terpotong */
    h1, h2, h3, h4, h5, h6 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    /* Fix untuk container */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Print Styles ===== */
@media print {
    .fixed,
    button,
    footer {
        display: none;
    }
}