:root {
    --primary: #9900ff;
    --secondary: #b950ff;
    --accent: #cf87ff;
    --light: #e6c0ff;
    --lightest: #f9f0ff;
}

html {
    scroll-behavior: smooth;
  }
  

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: white;
    color: #333;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 100;
}

header nav {
    display: flex;
    align-items: center; /* vertically centers logo and menu */
    justify-content: space-between;
    height: 100px; /* or any height you want */
}

nav {
    display: flex;
    justify-content: space-between; /* Ensures logo left, nav right */
    align-items: center;
    padding: 0;
    position: relative;
}


.logo img {
    height: 150px;
    width: auto;
    max-height: 100%;
  }
  

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(153, 0, 255, 0.3);
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(to bottom, var(--lightest), white);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    padding-right: 50px;
}

.hero-text h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-text p {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.hero-video {
    flex: 1;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hero-video video {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    border-radius: 10px;
}

/* Fallback for browsers that don't support video */
.hero-video img {
    width: 100%;
    height: auto;
    display: none; /* Only shows if video fails */
}

/* Templates Section */
.templates {
    padding: 80px 0;
    background-color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

.template-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.template-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.template-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(153, 0, 255, 0.1);
}

.template-image {
    height: 250px;
    overflow: hidden;
}

.template-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.template-card:hover .template-image img {
    transform: scale(1.05);
}

.template-info {
    padding: 20px;
}

.template-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.template-info p {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.template-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    color: var(--primary);
    font-size: 18px;
}

/* View All Templates Button */
.view-all-templates {
    text-align: center;
    margin-top: 50px;
}

.view-all-templates .cta-button {
    padding: 12px 30px;
    font-size: 16px;
}
/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--lightest);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--light), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 30px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 18px;
}

.cta-button.white {
    background: white;
    color: var(--primary);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--light);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 42px;
    }
    
    .hero-text p {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    
    .hero-text h1 {
        font-size: 36px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-video video {
        max-height: 400px;
    }    
    .section-title h2 {
        font-size: 30px;
    }
    
    .template-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 120px 0 60px;
    }
    
    .hero-text h1 {
        font-size: 28px;
    }
    
    .hero-video video {
        max-height: 300px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .template-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons a {
        width: 100%;
        margin: 10px 0;
    }
    
    .template-price {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .template-price .cta-button {
        margin-top: 10px;
        width: 100%;
        text-align: center;
    }
}

/* Touch improvements */
.cta-button, a, button {
    touch-action: manipulation;
}

/* Prevent zoom on form inputs */
@media (max-width: 768px) {
    input, select, textarea {
        font-size: 16px;
    }
}

/* Mobile Menu Styles */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary);
    font-size: 24px;
    cursor: pointer;
    z-index: 101;
    padding: 10px;
}


.nav-links {
    display: flex;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Mobile styles */
@media (max-width: 768px) {
    header nav {
        height: 30px; /* Remove fixed height */
        padding: 15px 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 20px 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        z-index: 100;
        margin: 0;
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links li {
        margin: 15px 0;
        margin-left: 0; /* Remove left margin on mobile */
    }
    
    /* Adjust header padding */
    header {
        padding: 15px 0;
    }
    
    nav {
        display: flex;
        justify-content: space-between; /* Logo left, burger right */
        align-items: center;
        padding: 0;
        position: relative;
    }
    
    .logo {
        margin: 0; /* Align left */
    }
    
}

.no-scroll {
    overflow: hidden;
}

/* Pakej Section Styles */
.pakej {
    padding: 80px 0;
    background-color: white;
}

.pakej-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pakej-card {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.pakej-card.highlight {
    border: 2px solid var(--primary);
    transform: scale(1.02);
    position: relative;
}

.pakej-card.highlight::before {
    content: "POPULAR";
    position: absolute;
    top: -10px;
    right: 20px;
    background-color: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pakej-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.pakej-header h3 {
    color: var(--primary);
    font-size: 24px;
    margin-bottom: 10px;
}

.pakej-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--secondary);
}

.pakej-features {
    list-style: none;
    margin-bottom: 30px;
}

.pakej-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.pakej-features i {
    color: var(--primary);
    margin-right: 10px;
    margin-top: 3px;
}

.pakej-note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: #666;
    font-size: 18px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pakej-grid {
        grid-template-columns: 1fr;
    }
    
    .pakej-card.highlight {
        transform: none;
    }
}