:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --bg-dark: #0f172a;
    --bg-darker: #020617;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border: #334155;
    --success: #10b981;
    --danger: #ef4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-darker); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; border: 2px solid var(--bg-darker); }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }
* { scrollbar-width: thin; scrollbar-color: var(--primary) var(--bg-darker); }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    background: var(--bg-darker);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}
.navbar .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: bold; color: var(--primary); text-decoration: none; display: flex; align-items: center; gap: 0.5rem; }
.logo-img { width: 32px; height: 32px; max-width: 32px; max-height: 32px; object-fit: contain; border-radius: 6px; flex-shrink: 0; }
.footer-logo-img { width: 28px; height: 28px; max-width: 28px; max-height: 28px; object-fit: contain; border-radius: 4px; vertical-align: middle; margin-right: 0.5rem; }
.nav-menu { display: flex; list-style: none; gap: 2rem; align-items: center; }
.nav-menu a { color: var(--text-primary); text-decoration: none; padding: 0.5rem 0; position: relative; }
.nav-menu a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.3s ease; }
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }
.nav-menu a.btn-primary { padding: 0.5rem 1.25rem; border-radius: 8px; color: white; background: var(--primary); font-size: 0.9rem; }
.nav-menu a.btn-primary::after { display: none; }
.nav-menu a.btn-primary:hover { background: var(--secondary); color: white; }
.nav-toggle { display: none; flex-direction: column; gap: 4px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 25px; height: 3px; background: var(--text-primary); }

/* Hero */
.hero { padding: 8rem 0; text-align: center; background: linear-gradient(135deg, var(--bg-darker), var(--bg-dark)); }
.hero-content { position: relative; z-index: 1; }
.hero-title { font-size: 3.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, #6366f1, #8b5cf6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: bold; }
.hero-subtitle { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 2rem; }
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Info Panel */
.info-panel-section { margin-top: 0; position: relative; z-index: 10; padding: 3rem 0; background: var(--bg-dark); }
.info-panel { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; padding: 0 1rem; }
.info-card { background: var(--bg-card); padding: 2rem; border-radius: 16px; display: flex; align-items: center; gap: 1.5rem; border: 1px solid var(--border); }
.info-card:hover { border-color: var(--primary); }
.info-icon { width: 60px; height: 60px; min-width: 60px; background: linear-gradient(135deg, var(--primary), var(--secondary)); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; }
.info-content h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.info-content p { font-size: 0.9rem; color: var(--text-secondary); margin: 0; }

/* Buttons */
.btn-primary, .btn-secondary { padding: 0.75rem 2rem; border-radius: 8px; text-decoration: none; font-weight: 600; display: inline-block; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; }
.btn-primary:hover { opacity: 0.9; }
.btn-secondary { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: white; }
.btn-link { color: var(--primary); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-link:hover { color: var(--secondary); }

/* Sections */
.section { padding: 5rem 0; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; position: relative; }
.section-title::after { content: ''; position: absolute; bottom: -10px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 2px; }
.bg-dark { background: var(--bg-darker); }

/* Projects */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.project-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; cursor: pointer; }
.project-card:hover { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15); }
.project-image, .project-image-placeholder { width: 100%; height: 200px; object-fit: cover; }
.project-image-placeholder { background: var(--bg-darker); display: flex; align-items: center; justify-content: center; color: var(--text-secondary); }
.project-content { padding: 1.5rem; }
.project-category { display: inline-block; padding: 0.25rem 0.75rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: white; border-radius: 20px; font-size: 0.875rem; margin-bottom: 0.5rem; }
.project-content h3 { margin: 0.5rem 0; font-size: 1.5rem; }
.project-content p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.service-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; text-align: center; }
.service-card:hover { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15); }
.service-card i { color: var(--primary); margin-bottom: 1rem; }
.service-card h3 { margin-bottom: 1rem; }
.service-card p { color: var(--text-secondary); }
.services-grid-large { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 3rem; }
.service-card-large { background: var(--bg-card); padding: 3rem; border-radius: 12px; text-align: center; }
.service-card-large:hover { box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15); }
.service-card-large i { color: var(--primary); margin-bottom: 1.5rem; }

/* Blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 2rem; }
.blog-card { background: var(--bg-card); border-radius: 12px; overflow: hidden; }
.blog-image { width: 100%; height: 200px; object-fit: cover; }
.blog-content { padding: 1.5rem; }
.blog-date { color: var(--text-secondary); font-size: 0.875rem; }
.blog-content h3 { margin: 0.5rem 0; }
.blog-content p { color: var(--text-secondary); margin-bottom: 1rem; }

/* Page Header */
.page-header { padding: 4rem 0 2rem; text-align: center; background: var(--bg-darker); }
.page-header h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.page-header p { color: var(--text-secondary); font-size: 1.25rem; }

/* Filter */
.filter-buttons { display: flex; gap: 1rem; justify-content: center; margin-bottom: 3rem; flex-wrap: wrap; }
.filter-btn { padding: 0.5rem 1.5rem; background: var(--bg-card); color: var(--text-primary); text-decoration: none; border-radius: 20px; }
.filter-btn:hover, .filter-btn.active { background: var(--primary); color: white; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-weight: 600; transition: color 0.3s ease; }
.form-group:focus-within label { color: var(--primary); }
.form-group input, .form-group textarea {
    padding: 0.75rem;
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}
.contact-form .btn-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}
.contact-form .btn-primary:hover {
    background: var(--secondary);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}
.contact-item { display: flex; gap: 1rem; margin-bottom: 2rem; transition: transform 0.3s ease; }
.contact-item:hover { transform: translateX(5px); }
.contact-item i { color: var(--primary); transition: color 0.3s ease; }
.contact-item:hover i { color: var(--secondary); }

/* Status */
.status-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; }
.status-card { background: var(--bg-card); padding: 2rem; border-radius: 12px; border-left: 4px solid var(--danger); }
.status-card.online { border-left-color: var(--success); }
.status-indicator { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.status-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--danger); }
.status-card.online .status-dot { background: var(--success); }

/* CTA */
.cta-box { background: var(--bg-card); padding: 3rem; border-radius: 12px; text-align: center; margin-top: 3rem; }
.cta-box h2, .cta-box h3 { margin-bottom: 1rem; }
.cta-box p { color: var(--text-secondary); margin-bottom: 2rem; }

/* Footer */
.footer { background: var(--bg-darker); position: relative; margin-top: 5rem; }
.footer-wave { position: absolute; top: -119px; left: 0; width: 100%; overflow: hidden; line-height: 0; }
.footer-wave svg { position: relative; display: block; width: calc(100% + 1.3px); height: 120px; }
.footer-wave path { fill: var(--bg-darker); }
.footer .container { padding: 4rem 20px 2rem; }
.footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand h3 { font-size: 1.5rem; margin-bottom: 1rem; background: linear-gradient(135deg, var(--primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.footer-brand p { color: var(--text-secondary); margin-bottom: 1.5rem; line-height: 1.6; }
.social-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.social-link { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: transparent; border: 2px solid transparent; border-radius: 50%; color: var(--text-primary); text-decoration: none; }
.social-link::after { display: none; }
.social-link:hover { border-color: var(--primary); color: var(--primary); }
.social-link i { font-size: 1.2rem; }
.footer-section h4 { margin-bottom: 1.5rem; font-size: 1.1rem; position: relative; padding-bottom: 0.5rem; }
.footer-section h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 40px; height: 2px; background: linear-gradient(90deg, var(--primary), transparent); }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 0.75rem; }
.footer-section a { color: var(--text-secondary); text-decoration: none; display: inline-flex; align-items: center; gap: 0.5rem; position: relative; }
.footer-section a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transition: width 0.3s ease; }
.footer-section a:hover::after { width: 100%; }
.footer-section a i { font-size: 0.9rem; }
.footer-section a:hover { color: var(--primary); }
.footer-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); margin: 2rem 0; }
.footer-bottom { text-align: center; padding: 1.5rem 0; color: var(--text-secondary); }
.footer-bottom p { margin: 0.5rem 0; }
.footer-tagline { font-size: 0.9rem; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.footer-tagline .fa-heart { color: #ef4444; }

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-secondary); }

/* Messages */
.messages-container { position: fixed; top: 80px; right: 20px; z-index: 1000; max-width: 400px; }
.alert { padding: 1rem 1.5rem; border-radius: 8px; margin-bottom: 1rem; background: var(--bg-card); border-left: 4px solid var(--primary); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
.alert-success { border-left-color: var(--success); }

/* Scroll to Top */
.scroll-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--primary); color: white; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; z-index: 999; }
.scroll-to-top.visible { opacity: 1; visibility: visible; }
.scroll-to-top:hover { background: var(--secondary); }

/* Legal */
.legal-content { max-width: 800px; margin: 0 auto; }
.legal-content h2 { margin-top: 2rem; margin-bottom: 1rem; }
.legal-content h3 { margin-top: 1.5rem; margin-bottom: 0.75rem; }
.legal-content ul { margin-left: 2rem; }

/* About */
.about-content { max-width: 800px; margin: 0 auto; }
.about-text h2 { margin-top: 2rem; margin-bottom: 1rem; }
.feature-list { list-style: none; margin: 1rem 0; }
.feature-list li { padding: 0.5rem 0; display: flex; align-items: center; gap: 0.75rem; }
.feature-list i { color: var(--success); }

/* Project Detail */
.project-detail { max-width: 900px; margin: 0 auto 3rem; }
.project-detail-image { width: 100%; border-radius: 12px; margin-bottom: 2rem; }
.project-links { display: flex; gap: 1rem; margin-top: 2rem; flex-wrap: wrap; }

/* Blog Detail */
.blog-detail { max-width: 800px; margin: 0 auto 3rem; }
.blog-detail-image { width: 100%; border-radius: 12px; margin-bottom: 2rem; }
.blog-detail-content { line-height: 1.8; }

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu { position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-darker); flex-direction: column; padding: 2rem; display: none; }
    .nav-menu.active { display: flex; }
    .hero { padding: 4rem 0; }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .projects-grid, .services-grid, .blog-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2rem; }
    .footer-content { grid-template-columns: 1fr; gap: 2rem; }
    .footer-brand { text-align: center; }
    .social-links { justify-content: center; }
    .footer-section { text-align: center; }
    .footer-section h4::after { left: 50%; transform: translateX(-50%); }
    .footer-section ul li { text-align: center; }
    .messages-container { left: 20px; right: 20px; max-width: none; }
    .info-panel { grid-template-columns: 1fr; gap: 1rem; }
    .info-icon { width: 50px; height: 50px; min-width: 50px; font-size: 1.25rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 1rem; }
    .btn-primary, .btn-secondary { padding: 0.6rem 1.5rem; font-size: 0.9rem; }
    .social-link { width: 40px; height: 40px; }
    .social-link i { font-size: 1rem; }
}
