/* Custom Font Family */
.font-inter {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Viewport and Layout Fixes */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Hero Section Safe Area */
#home {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    padding-top: calc(4rem + env(safe-area-inset-top));
    padding-bottom: env(safe-area-inset-bottom);
    box-sizing: border-box;
}

/* Logo Container Safety */
.hero-logo {
    position: relative;
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1f1f1f;
}

::-webkit-scrollbar-thumb {
    background: #404040;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Selection Color */
::selection {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.4), 0 0 40px rgba(255, 255, 255, 0.2);
    }
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
        opacity: 0.1;
    }
    33% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.3;
    }
    66% {
        transform: translateY(-10px) translateX(-10px);
        opacity: 0.2;
    }
}

/* Animation Classes */
.floating-animation {
    animation: float 6s ease-in-out infinite;
}

.bounce-animation {
    animation: bounce 2s infinite;
}

.typing-animation {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid rgba(255, 255, 255, 0.75);
    animation: typing 3s steps(20, end), blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: rgba(255, 255, 255, 0.75); }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-up.delay-200 {
    animation-delay: 0.2s;
}

.fade-in-up.delay-400 {
    animation-delay: 0.4s;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

.glow-effect {
    animation: glow 2s ease-in-out infinite;
}

/* Floating Particles */
.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.floating-particles::before,
.floating-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particle-float 8s ease-in-out infinite;
}

.floating-particles::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-particles::after {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

/* Hover Effects */
.feature-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.feature-card:hover::before {
    left: 100%;
}

.social-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%) translateY(-100%);
    transition: transform 0.6s;
}

.social-card:hover::before {
    transform: translateX(100%) translateY(100%);
}

.social-platform {
    position: relative;
    overflow: hidden;
}

.social-platform::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-platform:hover::after {
    opacity: 1;
}

/* Navigation Enhancements */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #888888);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Menu Animation */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    display: block !important; /* Override Tailwind hidden class */
    position: relative;
    z-index: 50;
}

.mobile-menu.active {
    max-height: 200px !important; /* Reduced from 500px to 200px */
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Modern Navbar Styles */
.nav-item {
    position: relative;
    transition: all 0.2s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffffff, #a0a0a0);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle Animation */
#menu-icon {
    transition: all 0.3s ease;
}

.mobile-menu-open #menu-icon {
    transform: rotate(90deg);
}

/* Mobile Menu Styles */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    display: block !important; /* Override Tailwind hidden class */
}

#mobile-menu.show {
    max-height: 300px;
    opacity: 1;
    display: block !important; /* Ensure it's visible when shown */
}

.mobile-nav-item {
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.3s ease;
}

#mobile-menu.show .mobile-nav-item {
    transform: translateY(0);
    opacity: 1;
}

#mobile-menu.show .mobile-nav-item:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.show .mobile-nav-item:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.show .mobile-nav-item:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.show .mobile-nav-item:nth-child(4) { transition-delay: 0.25s; }
#mobile-menu.show .mobile-nav-item:nth-child(5) { transition-delay: 0.3s; }

/* Mobile-specific overrides */
@media (max-width: 1023px) {
    #mobile-menu {
        display: block !important;
        visibility: visible !important;
    }
    
    #mobile-menu.hidden {
        display: none !important;
    }
    
    #mobile-menu.show {
        display: block !important;
        visibility: visible !important;
    }
}

/* 1080p Monitor Optimization */
@media (max-width: 1920px) and (min-width: 1400px) {
    /* Hero section adjustments for 1080p */
    #home {
        min-height: 100vh;
        padding-top: 6rem !important;
    }
    
    .hero-logo img {
        max-height: 8rem !important; /* 128px for 1080p */
        margin-bottom: 1.5rem !important;
    }
    
    h1 {
        font-size: 4.5rem !important; /* 72px for 1080p */
        line-height: 1.1 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-description {
        font-size: 1.5rem !important; /* 24px */
        margin-bottom: 2rem !important;
    }
    
    .hero-text {
        font-size: 1.125rem !important; /* 18px */
        margin-bottom: 3rem !important;
        max-width: 42rem !important; /* 672px */
    }
    
    .hero-buttons {
        gap: 1rem !important;
    }
    
    .hero-buttons a {
        padding: 0.875rem 2rem !important; /* 14px 32px */
        font-size: 1.125rem !important; /* 18px */
    }
    
    /* Section adjustments for 1080p screens */
    .section-title {
        font-size: 3rem !important; /* 48px */
        margin-bottom: 2rem !important;
    }
    
    .section-text {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.8 !important;
    }
    
    .card {
        padding: 2rem !important;
    }
    
    .card-title {
        font-size: 1.5rem !important; /* 24px */
    }
    
    .card-text {
        font-size: 1rem !important; /* 16px */
    }
    
    /* Spacing adjustments for 1080p screens */
    .py-20 {
        padding-top: 5rem !important; /* 80px */
        padding-bottom: 5rem !important; /* 80px */
    }
    
    .py-16 {
        padding-top: 4rem !important; /* 64px */
        padding-bottom: 4rem !important; /* 64px */
    }
    
    .mb-12 {
        margin-bottom: 3rem !important; /* 48px */
    }
    
    .mb-8 {
        margin-bottom: 2rem !important; /* 32px */
    }
    
    .gap-8 {
        gap: 2.5rem !important; /* 40px */
    }
    
    .gap-6 {
        gap: 1.5rem !important; /* 24px */
    }
    
    /* Fix scroll arrow positioning for 1080p */
    .scroll-indicator {
        bottom: 3rem !important; /* 48px from bottom - moved up */
        margin-top: 3rem !important; /* 48px additional spacing - increased */
    }
    
    /* Adjust hero section bottom spacing */
    #home {
        padding-bottom: 8rem !important; /* 128px bottom padding - increased */
    }
    
    /* Increase spacing for Dewata Solutions section on 1080p */
    .hero-buttons + div {
        margin-top: 4rem !important; /* 64px spacing after buttons */
        margin-bottom: 2rem !important; /* 32px spacing before scroll arrow */
    }
}

/* Specific 2560x1440 Monitor Fix */
@media (min-width: 2560px) and (max-width: 2560px) and (min-height: 1440px) and (max-height: 1440px) {
    /* Debug indicator for 2560x1440 */
    body::before {
        content: "2560x1440 DETECTED" !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        background: green !important;
        color: white !important;
        padding: 5px 10px !important;
        z-index: 99999 !important;
        font-size: 12px !important;
        font-weight: bold !important;
        border-radius: 3px !important;
        font-family: monospace !important;
    }
    
    .hero-logo img {
        height: 11rem !important; /* 176px for 2560x1440 */
        max-height: 11rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    /* Force title visibility for 2560x1440 */
    #home h1,
    section#home h1,
    .hero-section h1 {
        font-size: 5.5rem !important; /* 88px for 2560x1440 */
        line-height: 1.1 !important;
        margin-bottom: 1.75rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        background: linear-gradient(to right, white, #d1d5db, white) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        font-weight: 900 !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .hero-description {
        font-size: 1.75rem !important; /* 28px for 2560x1440 */
        margin-bottom: 2.25rem !important;
    }
    
    .hero-text {
        font-size: 1.25rem !important; /* 20px for 2560x1440 */
        margin-bottom: 3.5rem !important;
        max-width: 48rem !important; /* 768px for 2560x1440 */
    }
}

/* 2K Monitor Optimization - Multiple 2K resolutions */
@media (min-width: 2560px) and (max-width: 3440px),
       (min-width: 2560px) and (min-height: 1440px),
       (min-width: 2560px) {
    /* Debug: Add visible border to confirm media query is active */
    body::before {
        content: "2K MONITOR ACTIVE" !important;
        position: fixed !important;
        top: 10px !important;
        right: 10px !important;
        background: red !important;
        color: white !important;
        padding: 5px !important;
        z-index: 9999 !important;
        font-size: 12px !important;
        font-weight: bold !important;
    }
    .hero-logo img {
        height: 11rem !important; /* 176px for 2K */
        max-height: 11rem !important;
        margin-bottom: 1.75rem !important;
    }
    
    /* Override Tailwind classes for 2K monitors - Ultra High specificity */
    section#home h1[class*="text-"],
    section#home h1.typing-animation,
    section#home h1.font-black,
    section#home h1.bg-gradient-to-r,
    section#home h1.bg-clip-text,
    section#home h1.text-transparent,
    section#home h1.leading-tight {
        font-size: 5.5rem !important; /* 88px for 2K */
        line-height: 1.1 !important;
        margin-bottom: 1.75rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Direct override for 2K monitors - Most aggressive approach */
    #home h1 {
        font-size: 5.5rem !important; /* 88px for 2K */
        line-height: 1.1 !important;
        margin-bottom: 1.75rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        background: linear-gradient(to right, white, #d1d5db, white) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }
    
    .hero-description {
        font-size: 1.75rem !important; /* 28px for 2K */
        margin-bottom: 2.25rem !important;
    }
    
    .hero-text {
        font-size: 1.25rem !important; /* 20px for 2K */
        margin-bottom: 3.5rem !important;
        max-width: 48rem !important; /* 768px for 2K */
    }
    
    .hero-buttons {
        gap: 1.25rem !important;
    }
    
    .hero-buttons a {
        padding: 0.875rem 2.25rem !important; /* 14px 36px */
        font-size: 1.125rem !important; /* 18px */
    }
}

/* Medium Desktop Screens (1366px - 1440px) */
@media (max-width: 1440px) and (min-width: 1366px) {
    /* Hero section adjustments for medium screens */
    #home {
        min-height: 100vh;
        padding-top: 5rem !important;
    }
    
    .hero-logo img {
        max-height: 7rem !important; /* 112px */
        margin-bottom: 1.25rem !important;
    }
    
    h1 {
        font-size: 3.75rem !important; /* 60px */
        line-height: 1.1 !important;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-description {
        font-size: 1.25rem !important; /* 20px */
        margin-bottom: 1.5rem !important;
    }
    
    .hero-text {
        font-size: 1rem !important; /* 16px */
        margin-bottom: 2.5rem !important;
        max-width: 40rem !important; /* 640px */
    }
    
    .hero-buttons {
        gap: 0.875rem !important;
    }
    
    .hero-buttons a {
        padding: 0.75rem 1.75rem !important; /* 12px 28px */
        font-size: 1rem !important; /* 16px */
    }
    
    /* Section adjustments for medium screens */
    .section-title {
        font-size: 2.5rem !important; /* 40px */
        margin-bottom: 1.75rem !important;
    }
    
    .section-text {
        font-size: 1rem !important; /* 16px */
        line-height: 1.7 !important;
    }
    
    .card {
        padding: 1.5rem !important;
    }
    
    .card-title {
        font-size: 1.25rem !important; /* 20px */
    }
    
    .card-text {
        font-size: 0.9375rem !important; /* 15px */
    }
    
    /* Spacing adjustments for medium screens */
    .py-20 {
        padding-top: 4rem !important; /* 64px */
        padding-bottom: 4rem !important; /* 64px */
    }
    
    .py-16 {
        padding-top: 3rem !important; /* 48px */
        padding-bottom: 3rem !important; /* 48px */
    }
    
    .mb-12 {
        margin-bottom: 2.5rem !important; /* 40px */
    }
    
    .mb-8 {
        margin-bottom: 1.75rem !important; /* 28px */
    }
    
    .gap-8 {
        gap: 2rem !important; /* 32px */
    }
    
    .gap-6 {
        gap: 1.25rem !important; /* 20px */
    }
    
    /* Fix scroll arrow positioning for medium screens */
    .scroll-indicator {
        bottom: 2.5rem !important; /* 40px from bottom */
        margin-top: 2.5rem !important; /* 40px additional spacing */
    }
    
    /* Adjust hero section bottom spacing for medium screens */
    #home {
        padding-bottom: 6rem !important; /* 96px bottom padding */
    }
    
    /* Increase spacing for Dewata Solutions section on medium screens */
    .hero-buttons + div {
        margin-top: 3rem !important; /* 48px spacing after buttons */
        margin-bottom: 1.5rem !important; /* 24px spacing before scroll arrow */
    }
}

/* Laptop Screens (1024px - 1365px) */
@media (max-width: 1365px) and (min-width: 1024px) {
    /* Hero section adjustments for laptop screens */
    #home {
        min-height: 100vh;
        padding-top: 4rem !important;
    }
    
    .hero-logo img {
        max-height: 6rem !important; /* 96px */
        margin-bottom: 1rem !important;
    }
    
    h1 {
        font-size: 3rem !important; /* 48px */
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-description {
        font-size: 1.125rem !important; /* 18px */
        margin-bottom: 1.25rem !important;
    }
    
    .hero-text {
        font-size: 0.875rem !important; /* 14px */
        margin-bottom: 2rem !important;
        max-width: 36rem !important; /* 576px */
    }
    
    .hero-buttons {
        gap: 0.75rem !important;
    }
    
    .hero-buttons a {
        padding: 0.625rem 1.5rem !important; /* 10px 24px */
        font-size: 0.875rem !important; /* 14px */
    }
    
    /* Section adjustments for laptop screens */
    .section-title {
        font-size: 2.25rem !important; /* 36px */
        margin-bottom: 1.5rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important; /* 16px */
        margin-bottom: 1rem !important;
    }
    
    .section-text {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.6 !important;
    }
    
    .card {
        padding: 1.25rem !important;
    }
    
    .card-title {
        font-size: 1.125rem !important; /* 18px */
    }
    
    .card-text {
        font-size: 0.875rem !important; /* 14px */
    }
    
    /* Spacing adjustments for laptop screens */
    .py-20 {
        padding-top: 3rem !important; /* 48px */
        padding-bottom: 3rem !important; /* 48px */
    }
    
    .py-16 {
        padding-top: 2.5rem !important; /* 40px */
        padding-bottom: 2.5rem !important; /* 40px */
    }
    
    .mb-12 {
        margin-bottom: 2rem !important; /* 32px */
    }
    
    .mb-8 {
        margin-bottom: 1.5rem !important; /* 24px */
    }
    
    .gap-8 {
        gap: 1.5rem !important; /* 24px */
    }
    
    .gap-6 {
        gap: 1rem !important; /* 16px */
    }
    
    /* Fix scroll arrow positioning for laptop screens */
    .scroll-indicator {
        bottom: 2rem !important; /* 32px from bottom */
        margin-top: 2rem !important; /* 32px additional spacing */
    }
    
    /* Adjust hero section bottom spacing for laptop screens */
    #home {
        padding-bottom: 5rem !important; /* 80px bottom padding */
    }
    
    /* Increase spacing for Dewata Solutions section on laptop screens */
    .hero-buttons + div {
        margin-top: 2.5rem !important; /* 40px spacing after buttons */
        margin-bottom: 1rem !important; /* 16px spacing before scroll arrow */
    }
}

/* Desktop navbar - restore normal size */
@media (min-width: 1024px) {
    nav {
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(12px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    
    nav .container {
        min-height: auto !important;
        padding-top: 0.5rem !important; /* 8px */
        padding-bottom: 0.5rem !important; /* 8px */
    }
    
    nav img {
        max-height: 2rem !important; /* 32px */
    }
    
    nav span, nav a {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5 !important;
    }
}

/* Mobile Menu Button Animation */
.mobile-menu-btn {
    position: relative;
    z-index: 51;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
}

.mobile-menu-btn i {
    transition: transform 0.3s ease;
}

.mobile-menu-btn.active i {
    transform: rotate(90deg);
}

/* Mobile Menu Links Animation */
.mobile-menu a {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem 0.75rem; /* Reduced padding for compact height */
    color: white;
    text-decoration: none;
    border-radius: 0.5rem;
    margin-bottom: 0.25rem; /* Reduced margin between items */
}

.mobile-menu.active a {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger animation delays */
.mobile-menu.active a:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active a:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active a:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active a:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active a:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active a:nth-child(6) { transition-delay: 0.35s; }

/* Test visibility */
.mobile-menu.active a:not([href*="discord"]) {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Discord Button in Mobile Menu */
.mobile-menu a[href*="discord"] {
    background: linear-gradient(to right, #ffffff, #f3f4f6) !important;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.mobile-menu a[href*="discord"]:hover {
    background: linear-gradient(to right, #f9fafb, #e5e7eb) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3) !important;
}

/* Contact Form Styling */
.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Contact Items */
.contact-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.contact-item:hover::before {
    left: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* FAQ Items */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* Tip Cards */
.tip-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tip-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.5s;
}

.tip-card:hover::before {
    left: 100%;
}

.tip-card:hover {
    transform: translateY(-3px);
}

/* Custom Utilities */
.backdrop-blur-sm {
    backdrop-filter: blur(4px);
}

.backdrop-blur-md {
    backdrop-filter: blur(8px);
}

.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Loading Animation */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: shimmer 1.2s ease-in-out infinite;
}

/* Responsive Design Enhancements */

/* 4K Monitor Optimization (3440px and above) */
@media (min-width: 3440px) {
    .hero-logo img {
        height: 12rem !important; /* 192px for 4K */
        max-height: 12rem !important;
        margin-bottom: 2rem !important;
    }
    
    /* Override Tailwind classes for 4K monitors */
    h1.text-3xl,
    h1.sm\\:text-4xl,
    h1.md\\:text-6xl,
    h1.lg\\:text-7xl,
    h1.xl\\:text-8xl {
        font-size: 6rem !important; /* 96px for 4K */
        line-height: 1.1 !important;
        margin-bottom: 2rem !important;
    }
    
    .hero-description {
        font-size: 2rem !important; /* 32px for 2K */
        margin-bottom: 2.5rem !important;
    }
    
    .hero-text {
        font-size: 1.5rem !important; /* 24px for 2K */
        margin-bottom: 4rem !important;
        max-width: 56rem !important; /* 896px for 2K */
    }
    
    .hero-buttons {
        gap: 1.5rem !important;
    }
    
    .hero-buttons a {
        padding: 1rem 2.5rem !important; /* 16px 40px */
        font-size: 1.25rem !important; /* 20px */
    }
    
    /* Section adjustments for 2K screens */
    .section-title {
        font-size: 4rem !important; /* 64px */
        margin-bottom: 3rem !important;
    }
    
    .section-subtitle {
        font-size: 1.5rem !important; /* 24px */
        margin-bottom: 3rem !important;
    }
    
    .card-title {
        font-size: 1.5rem !important; /* 24px */
    }
    
    .card-text {
        font-size: 1.125rem !important; /* 18px */
    }
    
    /* Spacing adjustments for 2K screens */
    .py-20 {
        padding-top: 8rem !important; /* 128px */
        padding-bottom: 8rem !important; /* 128px */
    }
    
    .py-16 {
        padding-top: 6rem !important; /* 96px */
        padding-bottom: 6rem !important; /* 96px */
    }
    
    .py-12 {
        padding-top: 4rem !important; /* 64px */
        padding-bottom: 4rem !important; /* 64px */
    }
    
    .gap-6 {
        gap: 2rem !important; /* 32px */
    }
    
    /* Fix scroll arrow positioning for 2K */
    .scroll-indicator {
        bottom: 4rem !important; /* 64px from bottom */
        margin-top: 4rem !important; /* 64px additional spacing */
    }
    
    /* Adjust hero section bottom spacing */
    #home {
        padding-bottom: 10rem !important; /* 160px bottom padding */
    }
    
    /* Increase spacing for Dewata Solutions section on 2K */
    .hero-buttons + div {
        margin-top: 5rem !important; /* 80px spacing after buttons */
        margin-bottom: 3rem !important; /* 48px spacing before scroll arrow */
    }
}

/* Extra responsive fixes for logo and typography */
@media (min-width: 1920px) and (max-width: 2559px) {
    .hero-logo img {
        height: 10rem;
        max-height: 10rem;
    }
    
    .typing-animation {
        font-size: 7rem;
        line-height: 1.1;
    }
    
    #home {
        padding-top: 2rem;
    }
}

@media (max-width: 1919px) and (min-width: 1200px) {
    .hero-logo img {
        height: 8rem;
        max-height: 8rem;
    }
    
    .typing-animation {
        font-size: 6rem;
        line-height: 1.1;
    }
    
    #home {
        padding-top: 3rem;
    }
}

@media (max-width: 1199px) and (min-width: 992px) {
    .hero-logo img {
        height: 7rem;
        max-height: 7rem;
    }
    
    .typing-animation {
        font-size: 5rem;
        line-height: 1.1;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .hero-logo img {
        height: 6rem;
        max-height: 6rem;
    }
    
    .typing-animation {
        font-size: 4rem;
        line-height: 1.1;
    }
    
    #home {
        padding-top: 6rem;
        min-height: calc(100vh - 2rem);
    }
}

@media (max-width: 768px) {
    .typing-animation {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .floating-animation {
        animation-duration: 4s;
    }
    
    .feature-card,
    .social-card,
    .contact-item,
    .tip-card {
        transform: none !important;
    }
    
    .feature-card:hover,
    .social-card:hover,
    .contact-item:hover,
    .tip-card:hover {
        transform: none !important;
    }
    
    .hero-logo img {
        height: 5rem;
        max-height: 5rem;
    }
    
    #home {
        padding-top: 5rem;
        min-height: calc(100vh - 1rem);
    }
    
    /* Mobile Navigation Improvements - Compact */
    .mobile-menu {
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        border-radius: 0 0 1rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.5rem; /* Reduced margin */
        padding: 0.75rem 0.5rem; /* Reduced padding for compact height */
    }
    
    /* Touch-friendly sizing - compact version */
    .mobile-menu a {
        padding: 0.5rem 0.75rem; /* Reduced padding for compact height */
        font-size: 0.875rem; /* Slightly smaller font for compact menu */
        border-radius: 0.5rem;
        margin-bottom: 0.25rem; /* Reduced margin */
        transition: all 0.3s ease;
        font-weight: 500;
        border: 1px solid transparent;
    }
    
    .mobile-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .mobile-menu a:last-child {
        margin-top: 1rem;
        background: linear-gradient(135deg, #ffffff, #e5e7eb);
        color: #000000;
        font-weight: 700;
        border: none;
        box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
    }
    
    .mobile-menu a:last-child:hover {
        background: linear-gradient(135deg, #f3f4f6, #d1d5db);
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
    }
    
    /* Improved mobile typography */
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    /* Mobile grid improvements */
    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Tablet Landscape Specific Fixes */
@media (max-width: 1024px) and (orientation: landscape) and (min-width: 897px) {
    /* Fix scroll arrow positioning for tablet landscape */
    .scroll-indicator {
        bottom: 2rem !important; /* 32px from bottom */
        margin-top: 2.5rem !important; /* 40px additional spacing */
    }
    
    /* Increase spacing for Dewata Solutions section on tablet landscape */
    .hero-buttons + div {
        margin-top: 2.5rem !important; /* 40px spacing after buttons */
        margin-bottom: 3.5rem !important; /* 56px spacing before scroll arrow */
    }
    
    /* Adjust hero section bottom padding for tablet landscape */
    #home {
        padding-bottom: 5rem !important; /* 80px bottom padding */
    }
}

/* Mobile Landscape Specific Fixes */
@media (max-width: 896px) and (orientation: landscape) {
    /* Fix scroll arrow collision with Dewata Solutions text */
    .scroll-indicator {
        bottom: 1rem !important; /* 16px from bottom */
        margin-top: 2rem !important; /* 32px additional spacing */
    }
    
    /* Increase spacing for Dewata Solutions section on mobile landscape */
    .hero-buttons + div {
        margin-top: 2rem !important; /* 32px spacing after buttons */
        margin-bottom: 3rem !important; /* 48px spacing before scroll arrow */
    }
    
    /* Adjust hero section bottom padding for mobile landscape */
    #home {
        padding-bottom: 4rem !important; /* 64px bottom padding */
    }
    
    /* Reduce hero text size for mobile landscape */
    .hero-text {
        font-size: 0.875rem !important; /* 14px */
        margin-bottom: 1.5rem !important;
        max-width: 32rem !important; /* 512px */
    }
    
    /* Adjust hero description for mobile landscape */
    .hero-description {
        font-size: 1rem !important; /* 16px */
        margin-bottom: 1rem !important;
    }
    
    /* Reduce button spacing for mobile landscape */
    .hero-buttons {
        gap: 0.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-buttons a {
        padding: 0.5rem 1rem !important; /* 8px 16px */
        font-size: 0.875rem !important; /* 14px */
    }
}

/* Mobile Portrait Specific Fixes */
@media (max-width: 896px) and (orientation: portrait) {
    /* Fix scroll arrow positioning for mobile portrait */
    .scroll-indicator {
        bottom: 1.5rem !important; /* 24px from bottom */
        margin-top: 2.5rem !important; /* 40px additional spacing */
    }
    
    /* Increase spacing for Dewata Solutions section on mobile portrait */
    .hero-buttons + div {
        margin-top: 2rem !important; /* 32px spacing after buttons */
        margin-bottom: 4rem !important; /* 64px spacing before scroll arrow */
    }
    
    /* Adjust hero section bottom padding for mobile portrait */
    #home {
        padding-bottom: 6rem !important; /* 96px bottom padding */
    }
}

@media (max-width: 640px) {
    .hero-logo img {
        height: 6rem;
    }
    
    .typing-animation {
        font-size: 2rem;
        white-space: normal;
        border-right: none;
        animation: fadeInUp 1s ease-out forwards;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .bg-white\/5 {
        background-color: rgba(255, 255, 255, 0.15) !important;
    }
    
    .border-white\/10 {
        border-color: rgba(255, 255, 255, 0.3) !important;
    }
    
    .text-gray-400 {
        color: #d1d5db !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .floating-animation,
    .bounce-animation,
    .typing-animation,
    .glow-effect,
    .pulse-animation {
        animation: none !important;
    }
}

/* Print Styles */
@media print {
    .fixed,
    .floating-particles,
    .glow-effect,
    nav,
    footer {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .bg-gradient-to-r,
    .bg-gradient-to-br,
    .bg-gradient-to-b {
        background: white !important;
    }
}

/* Custom Focus Styles for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 6px;
}

/* Dark Mode Enhancement */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #000000;
        color: #ffffff;
    }
}

/* Performance Optimizations */
.will-change-transform {
    will-change: transform;
}

.will-change-opacity {
    will-change: opacity;
}

/* Container Queries Support */
@container (min-width: 768px) {
    .container-responsive {
        padding: 2rem;
    }
}

/* Prevent horizontal overflow */
* {
    box-sizing: border-box;
}

.container {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1280px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1536px;
    }
}

/* Safe area for devices with notches */
@supports (padding: max(0px)) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
}

/* Custom Properties for Theme Consistency */
:root {
    --primary-bg: #000000;
    --secondary-bg: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    --glow-color: rgba(255, 255, 255, 0.2);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 0.5rem;
    --border-radius-md: 1rem;
    --border-radius-lg: 1.5rem;
    --border-radius-xl: 2rem;
}

/* Using Custom Properties */
.themed-bg {
    background-color: var(--primary-bg);
}

.themed-text {
    color: var(--text-primary);
}

.themed-border {
    border-color: var(--border-color);
}

.themed-transition {
    transition: all var(--transition-normal);
}

/* Advanced Grid Layouts */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.grid-auto-fill {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

/* Intersection Observer Classes */
.fade-in-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left-on-scroll {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-left-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right-on-scroll {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-in-right-on-scroll.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Modern Button Styles */
.btn-modern {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: all var(--transition-normal);
}

.btn-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform var(--transition-slow);
}

.btn-modern:hover::before {
    transform: translateX(100%);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Text Gradient Utilities */
.text-gradient-primary {
    background: linear-gradient(135deg, #ffffff, #d1d5db);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, #d1d5db, #9ca3af);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.loading-dots::after {
    content: '...';
    animation: loading-dots 1.5s infinite;
}

@keyframes loading-dots {
    0%, 20% { color: transparent; text-shadow: .25em 0 0 transparent, .5em 0 0 transparent; }
    40% { color: white; text-shadow: .25em 0 0 transparent, .5em 0 0 transparent; }
    60% { text-shadow: .25em 0 0 white, .5em 0 0 transparent; }
    80%, 100% { text-shadow: .25em 0 0 white, .5em 0 0 white; }
}
