/* =========================================
   1. GLOBAL RESET & VARIABLES
   ========================================= */
:root {
    /* --- DEFAULT VARIABLES --- */
    --bg-body: #0b1a22;
    --bg-card: rgba(19, 39, 48, 0.85);
    --text-main: #ffffff;
    --text-muted: #a0b3c1;
    --primary-color: #00d2d3;
    --primary-dark: #00b5b6;
    --footer-bg: #050e11;

    /* --- VARIABLES BARU KHAS UNTUK CONTACT SECTION (DARK MODE) --- */
    --contact-bg: linear-gradient(135deg, #132730 0%, #0b1a22 100%); /* Warna Teal Gelap */
    --contact-form-bg: rgba(19, 39, 48, 0.85); /* Kotak form gelap */
    --contact-input-bg: rgba(10, 20, 26, 0.6); /* Input gelap */
    --contact-border: rgba(255, 255, 255, 0.1);
    --contact-text: #ffffff;
    --contact-text-p: #a0b3c1;
}

body.light-mode {
    --bg-body: #f4f7f6;
    --bg-card: #ffffff;
    --text-main: #333333;
    --text-muted: #666666;
    --footer-bg: #e0e0e0;

    /* --- UPDATE UNTUK CONTACT SECTION (LIGHT MODE) --- */
    --contact-bg: #ffffff; /* Background jadi PUTIH BERSIH */
    --contact-form-bg: #f9f9f9; /* Kotak form kelabu cerah sikit */
    --contact-input-bg: #ffffff; /* Input putih */
    --contact-border: #dddddd; /* Border kelabu */
    --contact-text: #333333; /* Tulisan jadi hitam */
    --contact-text-p: #666666; /* Description kelabu */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body); /* Ikut theme variable */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 15px;
}

p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

/* =========================================
   2. HEADER & NAVIGATION (GLASS EFFECT)
   ========================================= */
header {
    /* Glass Effect Setup */
    background: rgba(0, 0, 0, 0.2); /* Hitam transparent nipis */
    backdrop-filter: blur(15px);    /* Ini yang buat effect kabur/kaca */
    -webkit-backdrop-filter: blur(15px); /* Support untuk Safari/iPhone */
    
    padding: 15px 0;
    position: fixed; /* Guna FIXED supaya header kekal masa scroll (optional) */
    /* Kalau nak dia duduk atas gambar je tapi hilang bila scroll, tukar 'fixed' jadi 'absolute' */
    
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis halus gila */
    transition: background 0.3s;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav {
    display: flex;
    align-items: center; /* Pastikan menu dan button satu level center */
}

nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #ffffff; 
    font-weight: 500;
    transition: color 0.3s;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

nav a:hover {
    color: var(--primary-color);
}

/* --- THEME TOGGLE BUTTON STYLE --- */
.theme-btn {
    background: rgba(255, 255, 255, 0.1); /* Transparent cerah sikit */
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    border-radius: 50%; /* Bulat */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Jarak dari menu Contact */
    margin-left: 25px; 
    
    transition: all 0.3s ease;
    font-size: 16px;
}

.theme-btn:hover {
    background-color: var(--primary-color);
    color: #000;
    box-shadow: 0 0 15px var(--primary-color);
    transform: rotate(20deg);
}

/* =========================================
   3. BUTTON STYLES
   ========================================= */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(to right, var(--primary-color), #00b894);
    color: #000;
    padding: 18px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 210, 211, 0.3);
    background-color: #fff;
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero-section {
    height: 80vh; /* Tinggi hero */
    display: flex;
    align-items: flex-end;
    padding-bottom: 50px;
    
    /* Background Image dengan Overlay Gelap */
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.8)), url('Asset/outside.png');
    
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: white;
}

.hero-section .container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
}

.hero-content {
    text-align: left;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 51px;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.7);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #e0e0e0;
    font-weight: 500;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.7);
}

/* =========================================
   5. SECTIONS GENERAL
   ========================================= */
section {
    padding: 80px 0;
}

section h2 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 50px;
    color: var(--text-main);
}

/* =========================================
   6. SERVICES SECTION
   ========================================= */
.services-section {
    padding: 100px 0;
    background-color: var(--bg-body); 
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('Asset/Service.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    color: white;
}

.services-section h2 {   
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 40px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.service-card h3 { 
    color: #ffffff;
    margin-top: 15px;
}

.service-card p { 
    color: #dddddd;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    background: rgba(0, 0, 0, 0.5);
}

.service-card .icon img {
    height: 60px;
    margin-bottom: 10px;
}

/* =========================================
   7. SPECIALIZED EXPERTISE SECTION
   ========================================= */
.expertise-section {
    position: relative;
    padding: 100px 0;
    color: white;
    background-color: #0f2027; 

    background: linear-gradient(to right, 
        rgba(15, 32, 39, 0.1) 0%,    
        rgba(15, 32, 39, 0.6) 50%,   
        rgba(15, 32, 39, 1) 90%      
    ), 
    url('Asset/expertise.jpeg'); 

    background-size: cover; 
    background-position: center 80%; 
    background-repeat: no-repeat;
    min-height: 600px;
}

.expertise-section .container {
    display: flex;
    flex-direction: column;
    align-items: flex-end; 
    text-align: right;     
}

.expertise-section h2 {
    width: 50%; 
    margin-bottom: 40px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.expertise-grid {
    width: 50%; 
    display: grid;
    grid-template-columns: 1fr; 
    gap: 30px;
}

.expertise-card {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 30px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left; 
    backdrop-filter: blur(5px); 
    transition: transform 0.3s;
}

.expertise-card img {
    height: 100px;   
    max-width: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.expertise-info {  
    flex: 1;
}

.expertise-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-10px); 
    border-color: var(--primary-color); 
}

.expertise-card h3 {
    color: var(--primary-color); 
    margin-bottom: 5px;
}

.expertise-card p {
    color: #ccc; 
    font-size: 14px;
    margin: 0;
}

/* =========================================
   8. COMBINED SECTION (UPDATED FOR THEME)
   ========================================= */
.contact-about-section {
    /* Guna variable background */
    background: var(--contact-bg); 
    
    padding: 80px 0;
    color: var(--contact-text); /* Guna variable text */
    position: relative;
    transition: background 0.5s ease, color 0.5s ease; /* Transition smooth bila tukar theme */
}

.row-layout {
    display: flex;
    gap: 60px; 
    align-items: flex-start;
    flex-wrap: wrap;
}

/* LEFT SIDE: FORM */
.col-left {
    flex: 1.1;
    
    /* Guna variable form background */
    background: var(--contact-form-bg); 
    
    padding: 40px;
    border-radius: 15px;
    
    /* Guna variable border */
    border: 1px solid var(--contact-border); 
    
    backdrop-filter: blur(10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.1); /* Shadow nipiskan sikit untuk light mode */
    transition: background 0.3s;
}

.col-left h2 {
    color: var(--primary-color); 
    margin-bottom: 10px;
    font-size: 28px;
}

.col-left p {
    color: var(--contact-text-p); /* Variable text p */
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--contact-text); /* Label ikut tema */
    font-weight: 600;
    letter-spacing: 0.5px;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    
    /* Guna variable input */
    background-color: var(--contact-input-bg); 
    border: 1px solid var(--contact-border);
    color: var(--contact-text);
    
    border-radius: 8px;
    font-family: inherit;
    transition: 0.3s;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color); 
    box-shadow: 0 0 10px rgba(0, 210, 211, 0.2);
}

.form-row {
    display: flex;
    gap: 20px;
}
.form-group.half {
    flex: 1;
}

/* RIGHT SIDE: INFO */
.col-right {
    flex: 0.9;
    display: flex;
    flex-direction: column;
    justify-content: center; 
    padding: 40px 20px;
}

.about-content h2 {
    color: var(--contact-text); /* Tajuk About Us ikut tema */
    font-size: 36px;
    margin-bottom: 25px;
}

.about-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 10px;
    border-radius: 2px;
}

.about-content p {
    color: var(--contact-text-p); /* Text paragraph ikut tema */
    line-height: 1.9;
    font-size: 17px;
    margin-bottom: 50px;
}

.social-content h3 {
    color: var(--contact-text); /* Tajuk Follow Us ikut tema */
    margin-bottom: 25px;
    font-size: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-btn {
    width: 55px;
    height: 55px;
    background-color: var(--contact-form-bg); /* Ikut warna kotak form */
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px; 
    text-decoration: none;
    font-size: 22px;
    transition: 0.3s;
    border: 1px solid var(--contact-border);
}

.social-btn:hover {
    background-color: var(--primary-color);
    color: #0b1a22;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 211, 0.3);
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background-color: var(--footer-bg); /* Guna variable */
    color: var(--text-muted);
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* =========================================
   10. RESPONSIVE (Mobile)
   ========================================= */
@media (max-width: 900px) {
    .row-layout {
        flex-direction: column-reverse;
        gap: 40px;
    }
    .col-right {
        padding: 0;
        text-align: center;
    }
    .about-content h2::after {
        margin: 10px auto;
    }
    .social-icons {
        justify-content: center;
    }
    .col-left {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    header {
        position: absolute; /* Tukar jadi absolute kat phone kalau nak */
    }

    .hero-section {
        height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
        background-position: center;
    }

    .hero-section .container {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    nav ul {
        display: none; 
    }
    
    /* Pastikan toggle button still nampak kat phone */
    nav {
        margin-left: auto;
    }

    .expertise-section {
        background: linear-gradient(rgba(15,32,39,0.9), rgba(15,32,39,0.9)), url('Asset/1000201047.png');
        background-position: center;
    }
    
    .expertise-section .container {
        align-items: center;
        text-align: center;
    }

    .expertise-section h2, .expertise-grid {
        width: 100%;
    }
    
    .expertise-card {
        text-align: center;
        flex-direction: column;
    }
    
    .expertise-card img {
        margin-bottom: 10px;
    }
}


/* =========================================
   11. ANIMATION CLASSES (Diperlukan oleh JS)
   ========================================= */

/* --- 1. SERVICE CARDS (Naik satu-satu) --- */
.service-card {
    opacity: 0;
    transform: translateY(50px); /* Mula kat bawah */
    transition: all 0.6s ease-out;
}
.service-card.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 2. EXPERTISE (Right to Left) --- */
.expertise-section .container {
    opacity: 0;
    transform: translateX(100px); /* Mula kat kanan */
    transition: all 0.8s ease-out;
}
.expertise-section.show .container {
    opacity: 1;
    transform: translateX(0); /* Masuk ke tengah */
}

/* --- 3. ABOUT/CONTACT (Popup / Zoom In) --- */
.contact-about-section {
    opacity: 0;
    transform: scale(0.9); /* Mula kecik sikit */
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Effect 'boing' sikit */
}
.contact-about-section.show {
    opacity: 1;
    transform: scale(1);
}

/* --- 4. GENERAL FADE (Hero, Footer, Header) --- */
.fade-in {
    opacity: 0;
    transition: opacity 1s ease-in;
}
.fade-in.show {
    opacity: 1;
}