/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #f59e0b;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-color);
    color: white;
    padding: 0.8rem 0;
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.top-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    z-index: -1;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info a {
    color: white;
    text-decoration: none;
    margin-right: 2rem;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--accent-color);
}

.contact-info i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.social-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Navigation */
/* NAVBAR — slim, responsive, logo proporsional */
.navbar {
  --navbar-height: 56px; /* default desktop */
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0;               /* padding internal diatur pada container */
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(8px);
}

/* container layout */
.navbar .container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;          /* horizontal padding, jangan tambah padding vertikal */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

/* logo - gunakan height sedang dan biarkan lebarnya otomatis */
.logo img {
  height: 44px;             /* desktop */
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform .16s;
}

/* hover halus tanpa membuat navbar lompat */
.logo img:hover {
  transform: scale(1.06);
}

/* nav links */
.nav-links { margin: 0; padding: 0; display: flex; gap: 1.5rem; align-items: center; }

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 15px;
  padding: 0.35rem 0;  /* kecilkan padding vertikal link */
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 180ms ease;
}

.nav-links a:hover::after { width: 100%; }

/* hamburger (hidden on desktop, shown on small screens) */
.hamburger {
  display: none;       /* desktop default */
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 0.35rem;
  align-items: center;
}

.hamburger span {
  width: 22px;
  height: 2px;
  background-color: var(--text-color);
  display: block;
  transition: transform 180ms ease, opacity 160ms ease;
}

@media (max-width: 720px) {
  .navbar { --navbar-height: 48px; height: var(--navbar-height); }
  .logo img { height: 34px; }    /* lebih kecil supaya tidak besar di mobile */

  /* jika kamu menggunakan hamburger, beri jarak kanan agar tidak mepet */
  .hamburger { margin-left: 0.5rem; }

  /* jika nav-links tampil di mobile sebagai overlay, jangan tambahkan top margin tinggi */
  .nav-links { gap: 1rem; font-size: 15px; }
}

/* tambahan: jika hero/top section memiliki margin-top negatif atau padding,
   pastikan tidak terlalu besar pada mobile */
.hero, .hero-section, main {
  /* default tidak menimpa navbar; beri sedikit top padding agar terlihat rapi */
  padding-top: 0;
}

/* pastikan body/main konten tidak tersembunyi di bawah navbar (fallback CSS) */
body > main, .site-content {
  padding-top: var(--navbar-height);
}

/* jika kamu tidak mau padding selalu ada di desktop, batasi pada mobile */
@media (min-width: 721px) {
  body > main, .site-content { padding-top: 0; }
}
}

/* Hero Section */
.hero {
    padding: 8rem 0;
    background: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-image {
    position: relative;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

.hero-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.hero-image:hover img {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* Stats Section */
.stats {
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
    position: relative;
    overflow: hidden;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.1;
}

.stats .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.stat-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.stat-item p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-header p {
    color: var(--light-text);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 8rem 0;
    background: var(--background);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    clip-path: polygon(0% 0%, 75% 0%, 100% 100%, 0% 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-features {
    list-style: none;
    margin-top: 2.5rem;
}

.about-features li {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.about-features i {
    color: var(--primary-color);
    margin-right: 1rem;
    font-size: 1.2rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem;
    border-radius: 50%;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    border-radius: 20px;
    z-index: -1;
    opacity: 0.1;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.about-image:hover img {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

/* Services Section */
.services {
    padding: 8rem 0;
    background: var(--section-bg);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--light-text);
    position: relative;
    z-index: 1;
}

/* Solutions Section */
.solutions {
    padding: 8rem 0;
    background: var(--background);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.solution-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.solution-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.solution-card:hover img {
    transform: scale(1.05);
}

.solution-card h3 {
    padding: 2rem 2rem 0.5rem;
    font-size: 1.5rem;
}

.solution-card p {
    padding: 0 2rem 1.5rem;
    color: var(--light-text);
}

.btn-link {
    display: inline-block;
    padding: 0 2rem 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.btn-link i {
    margin-left: 0.5rem;
    transition: var(--transition);
}

.btn-link:hover {
    color: var(--secondary-color);
}

.btn-link:hover i {
    transform: translateX(5px);
}

/* Case Studies Section */
.case-studies {
    padding: 8rem 0;
    background: var(--section-bg);
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.case-study-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.case-study-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--hover-shadow);
}

.case-study-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

.case-study-card:hover img {
    transform: scale(1.05);
}

.case-study-content {
    padding: 2rem;
}

.case-study-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.case-study-content p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.case-study-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--light-text);
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 8rem 0;
    background: var(--background);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(30, 64, 175, 0.05) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.info-item i {
    font-size: 2rem;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 2rem;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--background);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    background: var(--text-color);
    color: white;
    padding: 6rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><rect width="1" height="1" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1rem;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1.2rem 2.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn.primary {
    background: var(--gradient);
    color: white;
}

.btn.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 960px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 720px;
    }
    
    .top-bar {
        display: none;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: var(--background);
        padding: 2rem;
        box-shadow: var(--card-shadow);
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .stats .container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
        padding: 0 1.5rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stats .container {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .solution-card,
    .case-study-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image,
.about-content,
.service-card,
.solution-card,
.case-study-card,
.contact-content {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

.hero-content { animation-delay: 0.2s; }
.hero-image { animation-delay: 0.4s; }
.about-content { animation-delay: 0.6s; }
.service-card { animation-delay: 0.8s; }
.solution-card { animation-delay: 1s; }
.case-study-card { animation-delay: 1.2s; }
.contact-content { animation-delay: 1.4s; } 