@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
    letter-spacing: -0.01em;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0f172a;
    color: #e2e8f0;
}

body.dark-mode .navbar-content {
    background-color: #1e293b;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

body.dark-mode .navbar-menu a {
    color: #94a3b8;
}

body.dark-mode .navbar-menu a:hover {
    color: #3a9d6b;
}

body.dark-mode .mobile-menu > div {
    background-color: #1e293b;
}

body.dark-mode .mobile-menu a {
    color: #94a3b8;
}

body.dark-mode .mobile-menu a:hover {
    color: #3a9d6b;
}

body.dark-mode .hamburger-line {
    background: #e2e8f0;
}

body.dark-mode #about {
    background-color: #1e293b;
}

body.dark-mode #services {
    background-color: #0f172a;
}

body.dark-mode .service-card {
    background-color: #1e293b;
    border-color: #334155;
}

body.dark-mode .service-card h3 {
    color: #e2e8f0;
}

body.dark-mode .service-card p {
    color: #94a3b8;
}

body.dark-mode .service-card .text-gray-700 {
    color: #cbd5e1;
}

body.dark-mode #testimonials {
    background-color: #1e293b;
}

body.dark-mode .testimonial-card {
    background-color: #0f172a;
    border-color: #334155;
}

body.dark-mode #faq {
    background-color: #0f172a;
}

body.dark-mode .faq-item {
    background-color: #1e293b;
}

body.dark-mode .faq-item h3 {
    color: #e2e8f0;
}

body.dark-mode .faq-answer {
    color: #94a3b8;
}

body.dark-mode footer {
    background-color: #0a0f1e;
}

.footer-rounded {
    transition: background-color 0.3s ease;
}

body.dark-mode .footer-rounded {
    background-color: rgba(30, 41, 59, 0.3);
}

body.dark-mode .text-gray-800 {
    color: #e2e8f0 !important;
}

body.dark-mode .text-gray-600 {
    color: #94a3b8 !important;
}

body.dark-mode .text-gray-700 {
    color: #cbd5e1 !important;
}

body.dark-mode .bg-gray-50 {
    background-color: #1e293b !important;
}

body.dark-mode .bg-white {
    background-color: #1e293b !important;
}

body.dark-mode .border-gray-100 {
    border-color: #334155 !important;
}

body.dark-mode .border-gray-200 {
    border-color: #334155 !important;
}

body.dark-mode ::-webkit-scrollbar-track {
    background: #1e293b;
}

body.dark-mode ::-webkit-scrollbar-thumb {
    background: #2d7a52;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #1a5f3f;
}

h1, h2, h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.active {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.6s ease, transform 0.6s ease;
}


.scale-in.active {
    opacity: 1;
    transform: scale(1);
}

.gradient-bg {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d7a52 50%, #d4af37 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d7a52 50%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    padding: 4px 0;
    line-height: 1.2;
}

/* Subtle gradient for hero title - elegant and not over */
.hero-title-gradient {
    background: linear-gradient(to right, #ffffff 0%, #f0fdf4 30%, #fef9e7 70%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    background-size: 200% auto;
}

/* Elegant gradient for section titles */
.section-title-gradient {
    background: linear-gradient(120deg, #1a5f3f 0%, #2d7a52 40%, #3a9d6b 70%, #d4af37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% auto;
}

.text-gold {
    color: #d4af37;
}

.text-green-primary {
    color: #1a5f3f;
}

.text-green-secondary {
    color: #2d7a52;
}

.service-card {
    cursor: pointer;
    transform: scale(1);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.pulse-slow {
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .7; }
}

.navbar {
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: transparent;
}

.navbar a {
    transition: color 0.3s ease;
}

.hero-gradient {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d7a52 50%, #3a9d6b 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.btn-primary {
    background: linear-gradient(135deg, #1a5f3f 0%, #2d7a52 50%, #d4af37 100%);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    transform: scale(1);
    will-change: transform;
}

.btn-primary:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(26, 95, 63, 0.4);
}

.smooth-scroll {
    scroll-behavior: smooth;
}

/* Dynamic Island Animation - DISABLED */


/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #2d7a52;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a5f3f;
}


/* Navbar Initial Animation */
.navbar {
    animation: navbarAppear 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    transform-origin: center top;
}

@keyframes navbarAppear {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}


/* Services Pattern Background */
.services-pattern {
    background-color: #ffffff;
    background-image: 
        linear-gradient(#f3f4f6 1px, transparent 1px),
        linear-gradient(90deg, #f3f4f6 1px, transparent 1px);
    background-size: 30px 30px;
}

body.dark-mode .services-pattern {
    background-color: #0f172a;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 30px 30px;
}

/* Testimonials Pattern Background */
.testimonials-pattern {
    background-color: #f9fafb;
    background-image: 
        linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 30px 30px;
}

body.dark-mode .testimonials-pattern {
    background-color: #1e293b;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}


/* Mobile Menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-20px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                transform 0.3s ease;
}

.mobile-menu.active {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}

/* Hamburger Animation */
#hamburger {
    position: relative;
    width: 40px;
    height: 40px;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2.5px;
    background: #374151;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.hamburger-line:nth-child(1) {
    top: 12px;
}

.hamburger-line:nth-child(2) {
    top: 19px;
}

.hamburger-line:nth-child(3) {
    top: 26px;
}

#hamburger.active .hamburger-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

#hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

#hamburger.active .hamburger-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}


/* Typing Animation Cursor - REMOVED (replaced with static list) */


/* Hero Background Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    filter: brightness(1.1) contrast(1.05);
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 95, 63, 0.65) 0%, rgba(45, 122, 82, 0.60) 50%, rgba(58, 157, 107, 0.55) 100%);
    z-index: 1;
}

/* Add subtle vignette effect to focus on center */
.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
    pointer-events: none;
}

/* Remove gradient animation from hero section since we're using images */
.hero-gradient {
    background: transparent;
    animation: none;
}

/* Additional color utilities for green and gold theme */
.bg-green-primary {
    background-color: #1a5f3f;
}

.bg-green-secondary {
    background-color: #2d7a52;
}

.bg-gold {
    background-color: #d4af37;
}

.border-green-primary {
    border-color: #1a5f3f;
}

.hover\:text-green-700:hover {
    color: #15803d;
}

.hover\:bg-green-50:hover {
    background-color: #f0fdf4;
}

/* Ensure logo displays properly across all devices and browsers */
img[alt="Kalyana Logo"] {
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.12));
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Logo in navbar - ensure proper sizing and alignment */
.navbar-content {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
}

.navbar-content img[alt="Kalyana Logo"] {
    height: 48px;
    width: auto;
    transition: all 0.3s ease;
}

/* Logo in footer */
footer img[alt="Kalyana Logo"] {
    filter: brightness(1.05) drop-shadow(0 2px 8px rgba(255, 255, 255, 0.15));
    max-height: 128px;
}

/* Responsive logo sizing for various devices */
@media (max-width: 640px) {
    .navbar-content {
        height: 56px;
        min-height: 56px;
        max-height: 56px;
    }
    
    .navbar-content img[alt="Kalyana Logo"] {
        height: 44px;
    }
    
    footer img[alt="Kalyana Logo"] {
        max-height: 96px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .navbar-content {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }
    
    .navbar-content img[alt="Kalyana Logo"] {
        height: 48px;
    }
    
    footer img[alt="Kalyana Logo"] {
        max-height: 112px;
    }
}

@media (min-width: 1025px) {
    .navbar-content {
        height: 60px;
        min-height: 60px;
        max-height: 60px;
    }
    
    .navbar-content img[alt="Kalyana Logo"] {
        height: 60px;
    }
    
    footer img[alt="Kalyana Logo"] {
        max-height: 128px;
    }
}

/* High DPI displays (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    img[alt="Kalyana Logo"] {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Cross-browser compatibility for gradients */
.section-title-gradient,
.hero-title-gradient,
.gradient-text {
    -webkit-background-clip: text !important;
    -moz-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent;
    -moz-text-fill-color: transparent;
}

/* Fallback for browsers that don't support background-clip */
@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
    .section-title-gradient,
    .hero-title-gradient {
        color: #1a5f3f;
    }
    
    .gradient-text {
        color: #2d7a52;
    }
}

/* Ensure smooth rendering across all browsers */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Responsive container adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-title-gradient {
        font-size: 2.5rem;
        line-height: 1.1;
    }
    
    .section-title-gradient {
        font-size: 2rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .hero-title-gradient {
        font-size: 3.5rem;
    }
    
    .section-title-gradient {
        font-size: 2.5rem;
    }
}

/* Ensure buttons are touch-friendly on mobile */
@media (max-width: 768px) {
    .btn-primary,
    button,
    a[class*="btn"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Prevent layout shift during page load */
img {
    max-width: 100%;
    height: auto;
}

/* Smooth transitions for all interactive elements */
a, button, .service-card, .faq-item {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight Keunggulan - Precise styling for all devices */
.highlight-item {
    min-height: 56px;
    display: flex;
    align-items: center;
}

@media (max-width: 640px) {
    .highlight-item {
        min-height: 52px;
    }
    
    .highlight-item p {
        font-size: 0.813rem;
        line-height: 1.3;
    }
    
    .highlight-item i {
        font-size: 1.125rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .highlight-item {
        min-height: 54px;
    }
    
    .highlight-item p {
        font-size: 0.875rem;
        line-height: 1.35;
    }
    
    .highlight-item i {
        font-size: 1.25rem;
    }
}

@media (min-width: 1025px) {
    .highlight-item {
        min-height: 56px;
    }
    
    .highlight-item p {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .highlight-item i {
        font-size: 1.25rem;
    }
}

/* Ensure consistent icon sizing */
.highlight-item .flex-shrink-0 {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Better backdrop blur for highlight items */
@supports (backdrop-filter: blur(12px)) {
    .highlight-item {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }
}
