:root {
    --primary: #3a7bd5;
    --primary-light: #4d8ae6;
    --secondary: #2c3e50;
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.5);
    --light: #f5f7fa;
    --dark: #121212;
    --dark-alt: #1e1e1e;
    --gray-light: #e2e8f0;
    --gray: #a0aec0;
    --gray-dark: #4a5568;
    --card-bg: #ffffff;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --neon-glow: 0 0 10px var(--accent-glow), 0 0 20px var(--accent-glow);
--nav-bg: rgba(30, 144, 255, 0.85);
}

.dark-mode {
    --primary: #4d8ae6;
    --primary-light: #3a7bd5;
    --secondary: #1a202c;
    --accent: #00d2ff;
    --accent-glow: rgba(0, 210, 255, 0.7);
    --light: #121212;
    --dark: #f5f7fa;
    --dark-alt: #e2e8f0;
    --gray-light: #2d3748;
    --gray: #718096;
    --gray-dark: #e2e8f0;
    --card-bg: #1a202c;
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --neon-glow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: var(--transition);
}

body {
    background-color: var(--light);
    color: var(--text-primary);
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    transition: background-color 0.3s ease;
    max-width: 100vw;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
}

header {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
display: flex;
align-items: center;
gap: 8px;     
font-size: 1.2rem;    
font-weight: 700;
color: #1e90ff;       
}

.logo img {
width: 28px; 
height: 28px;
object-fit: contain;   
}


nav {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
background: var(--nav-bg);
display: flex;
justify-content: center;
align-items: center;
padding: 0.6rem 0;
box-shadow: 0 -2px 8px rgba(0,0,0,0.3);
z-index: 999;
}


nav ul {
display: flex;
justify-content: space-around;
align-items: center;
list-style: none;
gap: 2rem; 
margin: 0;
padding: 0;
width: 100%;
max-width: 500px; 
}

nav a {
color: white;
text-decoration: none;
font-weight: 500;
transition: var(--transition);
position: relative;
font-size: 0.9rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

nav a:after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: -4px;
left: 0;
background-color: var(--accent);
transition: var(--transition);
box-shadow: var(--neon-glow);
}

nav a:hover {
color: var(--accent);
}

nav a:hover:after {
width: 100%;
}

.theme-switch {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.theme-switch:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero {
    padding: 4rem 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.hero p {
    font-size: 1rem;
    max-width: 100%;
    margin: 0 auto 2rem;
    font-weight: 300;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    background: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), var(--neon-glow);
}

.btn:hover:after {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    margin-left: 0;
    margin-top: 1rem;
    color: white;
}

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

.app-form {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin: -50px auto 3rem;
    box-shadow: var(--shadow);
    max-width: 100%;
    position: relative;
    z-index: 3;
}

.form-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.2);
}

.color-group {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.color-picker {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
}

.file-upload {
    position: relative;
    border: 2px dashed var(--gray-light);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.file-upload i {
    font-size: 2rem;
    color: var(--gray);
    margin-bottom: 0.8rem;
}

.file-upload input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-info {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.5rem;
}

.preview {
    display: flex;
    justify-content: center;
    margin-top: 1.2rem;
}

.preview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.full-width {
    grid-column: 1 / -1;
}

.submit-btn {
    width: 100%;
    padding: 1.1rem;
    font-size: 1.1rem;
    margin-top: 1.2rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
}

.submit-btn:hover {
    box-shadow: var(--neon-glow);
}

.features {
    padding: 4rem 0;
    background: var(--light);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    font-size: 2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transform: rotate(0deg);
    transition: var(--transition);
    box-shadow: var(--neon-glow);
}

.feature-card:hover .feature-icon {
    transform: rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    color: var(--primary);
    font-size: 1.3rem;
}

.feature-card p {
    font-size: 0.95rem;
}

.progress-container {
    display: none;
    margin-top: 2.5rem;
    text-align: center;
}

.progress-bar {
    height: 10px;
    background: var(--gray-light);
    border-radius: 8px;
    margin-bottom: 1.2rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 8px;
    width: 0%;
    transition: width 0.5s ease;
    box-shadow: var(--neon-glow);
}

.result {
    display: none;
    margin-top: 2.5rem;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
}

.result.success {
    border-left: 5px solid var(--accent);
}

.result.error {
    border-left: 5px solid #ff4757;
}

.download-btn {
    margin: 0.8rem 0.3rem;
    padding: 0.7rem 1.2rem;
    background: var(--accent);
    color: var(--secondary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 0.9rem;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), var(--neon-glow);
}

.key-info {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 1.2rem;
    margin: 1.2rem 0;
    text-align: left;
}

.key-info h4 {
    margin-bottom: 0.8rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.key-info p {
    margin-bottom: 0.5rem;
    font-family: monospace;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.4rem;
    border-radius: 5px;
    word-break: break-all;
    font-size: 0.85rem;
}

.about {
    padding: 4rem 0;
    background: var(--light);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.2rem;
    font-size: 1rem;
    color: var(--text-secondary);
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 1.5rem 0;
    width: 100%;
}

.stat {
    text-align: center;
    background: var(--card-bg);
    padding: 1.2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    flex: 1;
}

.stat h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-shadow: var(--neon-glow);
}

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

.about-image {
flex: 1;
width: 100%;
}

.about-image img {
width: 250px; 
height: 250px;
object-fit: cover;
border-radius: 50%; 
border: 4px solid #00d2ff; 
box-shadow: 0 0 10px #00d2ff, 
0 0 20px #00d2ff, 
0 0 40px rgba(0,210,255,0.6); 
animation: pulseGlow 3s infinite;

}

.header-buttons {
display: flex;
gap: 12px;
}

.header-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.header-btn:active {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(0.9);
}

.main-content {
    padding: 20px;
}

.sosmed-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 998;
}
.sosmed-overlay.open { display: block; }

.sosmed-panel {
  display: none;
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #222;
  padding: 25px 20px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.4);
  z-index: 999;
  width: 300px;
  text-align: center;
  margin: 20px 0
}
.sosmed-panel a {
  display: block;
  margin: 10px 0;   
  padding: 12px;
  border-radius: 10px;
  text-decoration: none;
  color: white;
  font-weight: bold;
}
.sosmed-panel.open { display: block; }

.social-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    padding: 12px;
    border: none;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    font-size: 14px;
}

.social-btn:active {
    transform: scale(0.95);
}

.tiktok {
    background: linear-gradient(45deg, #000, #69C9D0, #EE1D52);
    color: white;
    box-shadow: 0 0 10px rgba(105, 201, 208, 0.3);
}

.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    box-shadow: 0 0 10px rgba(220, 39, 67, 0.3);
}

.github {
    background: #333;
    color: white;
    box-shadow: 0 0 10px rgba(51, 51, 51, 0.3);
}

.youtube {
    background: #ff0000;
    color: white;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.email {
    background: #ea4335;
    color: white;
    box-shadow: 0 0 10px rgba(234, 67, 53, 0.3);
}

.whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.3);
}

@keyframes pulseGlow {
  0% { box-shadow: 0 0 10px #00d2ff, 0 0 20px #00d2ff; }
  50% { box-shadow: 0 0 20px #00d2ff, 0 0 40px rgba(0,210,255,0.8); }
  100% { box-shadow: 0 0 10px #00d2ff, 0 0 20px #00d2ff; }
}


footer {
    background: var(--secondary);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.3rem;
    text-shadow: var(--neon-glow);
}

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

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

.footer-section ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.2rem;
    justify-content: center;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-5px);
    text-shadow: var(--neon-glow);
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: var(--gray);
}

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

@keyframes glow {
    0% { box-shadow: 0 0 5px var(--accent-glow); }
    50% { box-shadow: 0 0 20px var(--accent-glow), 0 0 30px var(--accent-glow); }
    100% { box-shadow: 0 0 5px var(--accent-glow); }
}

.animated {
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.neon-glow {
    animation: glow 2s infinite;
}

/* Mobile Responsiveness */
@media (min-width: 480px) {
    .about-stats {
flex-direction: row;
    }
    
    .features-grid {
grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .container {
padding: 0 20px;
    }
    
    .form-grid {
grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .features-grid {
grid-template-columns: repeat(3, 1fr);
    }
    
    .about-content {
flex-direction: row;
text-align: left;
    }
    
    .about-text {
text-align: left;
    }
    
    .footer-content {
grid-template-columns: repeat(3, 1fr);
    }
}