/**
 * MODERN THEME CSS
 * Bold, dynamic design with gradients and asymmetric layouts
 * Font: Space Grotesk
 * Colors: Purple-to-indigo gradients, dark sections
 */

/* ==============================================================================
   GRADIENTS
   ============================================================================== */

.theme-modern .gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-modern .gradient-bg-alt {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.theme-modern .gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.theme-modern .gradient-border {
    border-image: linear-gradient(135deg, #667eea 0%, #764ba2 100%) 1;
}

/* ==============================================================================
   ANIMATIONS
   ============================================================================== */

@keyframes slideInLeft {
    from {
        transform: translateX(-50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(50px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ==============================================================================
   ANIMATION CLASSES
   ============================================================================== */

.theme-modern .slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.theme-modern .slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

/* ==============================================================================
   HOVER EFFECTS
   ============================================================================== */

.theme-modern .scale-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-modern .scale-hover:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(102, 126, 234, 0.25);
}

.theme-modern .card-tilt {
    transition: transform 0.3s ease;
}

.theme-modern .card-tilt:hover {
    transform: perspective(1000px) rotateY(5deg);
}

.theme-modern .hover-glow {
    transition: all 0.3s ease;
}

.theme-modern .hover-glow:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.4);
}

/* ==============================================================================
   SECTION STYLES
   ============================================================================== */

.theme-modern .section-dark {
    background: linear-gradient(to bottom, #1a202c 0%, #2d3748 100%);
}

.theme-modern .section-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

.theme-modern .section-header {
    @apply mb-16 text-center;
}

.theme-modern .section-title {
    @apply text-5xl font-bold mb-4;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-modern .section-subtitle {
    @apply text-xl text-gray-400;
}

/* ==============================================================================
   CARD STYLES
   ============================================================================== */

.theme-modern .card {
    @apply bg-gray-800 rounded-2xl p-6 h-full border border-gray-700;
}

.theme-modern .card-gradient {
    @apply rounded-2xl p-6 h-full;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.theme-modern .card-glass {
    @apply rounded-2xl p-6 h-full backdrop-blur-lg;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==============================================================================
   BUTTON STYLES
   ============================================================================== */

.theme-modern .btn-primary {
    @apply px-8 py-4 rounded-full font-bold transition-all duration-300;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    border: none;
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.theme-modern .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(240, 147, 251, 0.5);
    filter: brightness(1.1);
}

.theme-modern .btn-secondary {
    @apply px-8 py-4 rounded-full font-bold transition-all duration-300;
    border: 2px solid rgba(240, 147, 251, 0.6);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.2);
}

.theme-modern .btn-secondary:hover {
    transform: translateY(-2px);
    border-color: #f093fb;
    background: rgba(240, 147, 251, 0.1);
    box-shadow: 0 0 30px rgba(240, 147, 251, 0.4);
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */

.theme-modern .hero-container {
    @apply min-h-screen flex items-center justify-center px-4 py-20;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.theme-modern .hero-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 0;
}

.theme-modern .hero-container > * {
    position: relative;
    z-index: 1;
}

/* Hide centered layout on modern theme, show split layout */
.theme-modern .hero-centered-layout {
    display: none;
}

.theme-modern .modern-hero-split {
    display: block;
}

/* Hide tech terminal on modern theme */
.theme-modern .tech-terminal {
    display: none;
}

/* Hide tech background effects on modern theme */
.theme-modern .hero-grid-bg,
.theme-modern .hero-blur-cyan,
.theme-modern .hero-blur-purple {
    display: none;
}

/* Hero text with vibrant pink gradient */
.theme-modern #hero h1 {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 20px rgba(240, 147, 251, 0.5));
}

.theme-modern #hero h1 .gradient-text {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.theme-modern #hero p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3), 0 0 30px rgba(240, 147, 251, 0.2);
}

/* Floating accent shape for visual interest */
.theme-modern .hero-container::after {
    content: '';
    position: absolute;
    top: 15%;
    right: 5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    animation: float 10s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.theme-modern .hero-blur {
    @apply absolute inset-0 overflow-hidden;
}

.theme-modern .hero-blur::before {
    content: '';
    @apply absolute -top-1/2 -left-1/2 w-full h-full;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    filter: blur(60px);
}

/* ==============================================================================
   TECH STACK / SKILL CARDS
   ============================================================================== */

.theme-modern .skill-card {
    @apply bg-gray-800 rounded-xl p-4 text-center border border-purple-500/20
           transition-all duration-300 hover:border-purple-500/50 hover:bg-gray-700;
}

/* ==============================================================================
   ASYMMETRIC GRID
   ============================================================================== */

.theme-modern .asymmetric-grid {
    @apply grid grid-cols-1 md:grid-cols-12 gap-6;
}

.theme-modern .asymmetric-left {
    @apply md:col-span-7;
}

.theme-modern .asymmetric-right {
    @apply md:col-span-5;
}

/* ==============================================================================
   MODERN SPLIT-SCREEN HERO SECTION
   ============================================================================== */

/* Split hero layout */
.theme-modern .modern-hero-split {
    @apply min-h-screen flex items-center justify-center relative;
    overflow: hidden;
}

/* Animated background shapes */
.theme-modern .modern-shape-1,
.theme-modern .modern-shape-2,
.theme-modern .modern-shape-3 {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.theme-modern .modern-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #f093fb 0%, transparent 70%);
    top: -10%;
    left: -5%;
    animation: float 20s ease-in-out infinite;
    filter: blur(60px);
}

.theme-modern .modern-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation: float 15s ease-in-out infinite reverse;
    filter: blur(50px);
}

.theme-modern .modern-shape-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #f5576c 0%, transparent 70%);
    top: 40%;
    right: -5%;
    animation: float 18s ease-in-out infinite;
    animation-delay: 2s;
    filter: blur(40px);
}

/* Badge element */
.theme-modern .modern-badge {
    @apply inline-block px-6 py-2 rounded-full text-sm font-bold;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(240, 147, 251, 0.5);
    color: white;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(240, 147, 251, 0.3);
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

/* Modern hero title */
.theme-modern .modern-hero-title {
    @apply text-6xl md:text-7xl lg:text-8xl font-bold leading-tight mb-0;
    color: white;
    text-align: left;
}

/* Individual title words with staggered animation */
.theme-modern .modern-title-word {
    @apply inline-block mr-4;
    animation: wordSlideIn 0.8s ease-out forwards;
    opacity: 0;
}

.theme-modern .modern-title-word:nth-child(1) {
    animation-delay: 0.2s;
}

.theme-modern .modern-title-word:nth-child(2) {
    animation-delay: 0.4s;
}

.theme-modern .modern-title-word:nth-child(3) {
    animation-delay: 0.6s;
}

.theme-modern .modern-title-word:nth-child(4) {
    animation-delay: 0.8s;
}

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

/* Muat Digital brand text */
.theme-modern .modern-brand-text {
    @apply text-7xl md:text-8xl lg:text-9xl font-bold;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 50%, #667eea 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    letter-spacing: -0.02em;
    line-height: 1.1;
    padding-bottom: 0.2em;
    animation: brandFadeIn 1s ease-out forwards;
    animation-delay: 0.9s;
    opacity: 0;
    filter: drop-shadow(0 4px 30px rgba(240, 147, 251, 0.6));
}

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

/* Animated gradient underline */
.theme-modern .modern-underline {
    height: 6px;
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 50%, #667eea 100%);
    border-radius: 3px;
    max-width: 300px;
    animation: underlineGrow 1.2s ease-out forwards;
    transform-origin: left;
    transform: scaleX(0);
    box-shadow: 0 4px 20px rgba(240, 147, 251, 0.5);
}

@keyframes underlineGrow {
    to {
        transform: scaleX(1);
    }
}

/* Subtitle */
.theme-modern .modern-subtitle {
    @apply text-xl md:text-2xl text-white/90 leading-relaxed;
    text-align: left;
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
}

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

/* CTA group */
.theme-modern .modern-cta-group {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.2s;
    opacity: 0;
}

/* ==============================================================================
   SECTION BACKGROUND OVERRIDES
   ============================================================================== */

/* About section - dark gray */
.theme-modern #about {
    background: linear-gradient(to bottom, #1f2937 0%, #111827 100%) !important;
    color: white;
}

.theme-modern #about h2,
.theme-modern #about p {
    color: white;
}

/* Services section - gradient accent */
.theme-modern #services {
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%) !important;
    color: white;
}

.theme-modern #services h2,
.theme-modern #services h3,
.theme-modern #services p {
    color: white;
}

/* Projects section - dark */
.theme-modern #projects {
    background: linear-gradient(to bottom, #111827 0%, #1f2937 100%) !important;
    color: white;
}

.theme-modern #projects h2 {
    color: white;
}

/* Reviews section - gradient accent */
.theme-modern #reviews {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
    color: white;
}

.theme-modern #reviews h2 {
    color: white;
}

/* Contact section - dark with gradient border */
.theme-modern #contact {
    background: linear-gradient(to bottom, #1f2937 0%, #111827 100%) !important;
    color: white;
}

.theme-modern #contact h2 {
    color: white;
}

/* Footer - darkest */
.theme-modern footer {
    background: #030712 !important;
}

/* ==============================================================================
   FORM STYLING
   ============================================================================== */

.theme-modern .card {
    @apply bg-gray-800/80 backdrop-blur-sm border-purple-500/30;
}

.theme-modern #contact .card {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(240, 147, 251, 0.3);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(240, 147, 251, 0.1);
}

.theme-modern #contact input,
.theme-modern #contact textarea {
    @apply bg-gray-700 border-gray-600 text-white placeholder-gray-400;
}

.theme-modern #contact input:focus,
.theme-modern #contact textarea:focus {
    @apply border-purple-500 ring-purple-500/50;
}

.theme-modern #contact label {
    @apply text-gray-200;
}

/* ==============================================================================
   FILTER & CAROUSEL STYLING
   ============================================================================== */

.theme-modern .filter-btn {
    background: rgba(31, 41, 55, 0.8);
    color: #d1d5db;
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.theme-modern .filter-btn:hover {
    background: rgba(55, 65, 81, 0.9);
    border-color: rgba(240, 147, 251, 0.5);
}

.theme-modern .filter-btn-active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: white !important;
    border-color: transparent !important;
}

.theme-modern .filter-dropdown {
    background: rgba(31, 41, 55, 0.8);
    border: 1px solid rgba(240, 147, 251, 0.3);
}

.theme-modern .filter-select {
    color: #f3f4f6;
}

.theme-modern .carousel-nav {
    background: rgba(31, 41, 55, 0.9);
    border: 1px solid rgba(240, 147, 251, 0.3);
    color: #f3f4f6;
}

.theme-modern .carousel-nav:hover:not(:disabled) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-color: transparent;
    color: white;
}

.theme-modern .carousel-dot {
    background: rgba(240, 147, 251, 0.3);
}

.theme-modern .carousel-dot-active {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
}

/* Social links */
.theme-modern .modern-social {
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 1.4s;
    opacity: 0;
}

/* Glassmorphism card on right side */
.theme-modern .modern-glass-card {
    @apply p-8 rounded-3xl;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3),
                inset 0 0 20px rgba(255, 255, 255, 0.05);
    animation: floatUp 1s ease-out forwards;
    animation-delay: 1s;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stat icons in glass card */
.theme-modern .modern-stat-icon {
    @apply w-16 h-16 rounded-full flex items-center justify-center text-2xl;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 10px 30px rgba(240, 147, 251, 0.4);
}

/* Content animations */
.theme-modern .modern-content-left {
    animation: slideInLeft 1s ease-out forwards;
}

.theme-modern .modern-content-right {
    animation: slideInRight 1s ease-out forwards;
    animation-delay: 0.5s;
}

/* Mobile responsive */
@media (max-width: 1024px) {
    .theme-modern .modern-hero-title {
        @apply text-4xl md:text-5xl;
        text-align: center;
    }

    .theme-modern .modern-badge {
        @apply mx-auto;
    }

    .theme-modern .modern-brand-text {
        @apply text-5xl md:text-6xl;
        text-align: center;
    }

    .theme-modern .modern-subtitle {
        text-align: center;
    }

    .theme-modern .modern-cta-group {
        @apply justify-center;
    }

    .theme-modern .modern-underline {
        @apply mx-auto;
    }

    /* Hide floating shapes on mobile to prevent overflow */
    .theme-modern .modern-shape-1,
    .theme-modern .modern-shape-2,
    .theme-modern .modern-shape-3 {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 640px) {
    .theme-modern .modern-hero-title {
        @apply text-3xl;
    }

    .theme-modern .modern-brand-text {
        @apply text-4xl;
    }

    .theme-modern .modern-subtitle {
        @apply text-lg;
    }
}
