@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand Colors */
    --primary: #0f4c81;
    --primary-rgb: 15, 76, 129;
    --secondary: #e63946;
    --secondary-rgb: 230, 57, 70;
    --accent: #2a9d8f;
    --whatsapp: #25d366;
    
    /* Light Mode Tokens */
    --bg-gradient: linear-gradient(135deg, #f4f7f6 0%, #e9ecef 100%);
    --card-bg: rgba(255, 255, 255, 0.45);
    --card-border: rgba(255, 255, 255, 0.4);
    --text-main: #212529;
    --text-muted: #6c757d;
    --text-inverse: #ffffff;
    --glass-blur: blur(16px);
    --shadow-main: 0 8px 32px 0 rgba(15, 76, 129, 0.08);
    --shadow-hover: 0 12px 40px 0 rgba(15, 76, 129, 0.16);
    --input-bg: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] {
    /* Dark Mode Tokens */
    --bg-gradient: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    --card-bg: rgba(22, 27, 34, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --text-inverse: #0d1117;
    --shadow-main: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
    --input-bg: rgba(22, 27, 34, 0.7);
}

/* Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.4s ease, color 0.4s ease;
}

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

/* Glassmorphism Classes */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-main);
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    box-shadow: var(--shadow-hover);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
    transition: background 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 48px;
    border-radius: 8px;
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    background: linear-gradient(45deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

/* Theme Toggle */
.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.theme-toggle-btn:hover {
    background: rgba(var(--primary-rgb), 0.1);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary) 20%, #2b70a7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="dark"] .hero-text h1 {
    background: linear-gradient(135deg, #ffffff 20%, #90caf9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: #0d4270;
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.45);
}

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(var(--primary-rgb), 0.05);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-wrapper img {
    max-width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-main);
    border: 1px solid var(--card-border);
    transform: rotate(2deg);
    transition: transform 0.5s ease;
}

.hero-image-wrapper:hover img {
    transform: rotate(0deg) scale(1.02);
}

/* Services Grid */
.services-section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 12px;
}

[data-theme="dark"] .section-header h2 {
    color: #ffffff;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

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

.service-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
}

.service-icon {
    font-size: 2rem;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Interactive Calculator */
.calc-section {
    padding: 80px 0;
    background: rgba(var(--primary-rgb), 0.03);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
}

.calc-form-container {
    padding: 40px;
}

.calc-title {
    margin-bottom: 24px;
    font-size: 1.75rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-select, .form-input {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-select:focus, .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

/* Calculator Result Panel */
.calc-result {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-color: rgba(var(--primary-rgb), 0.15);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.01) 100%);
}

.result-header h4 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px dashed var(--card-border);
}

.result-label {
    color: var(--text-muted);
}

.result-val {
    font-weight: 700;
    color: var(--primary);
}

[data-theme="dark"] .result-val {
    color: #90caf9;
}

.progress-container {
    margin-top: 16px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--text-muted);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    width: 0%;
    transition: width 0.6s cubic-bezier(0.1, 0.8, 0.3, 1);
}

/* Flyers / Banners Carousel */
.carousel-section {
    padding: 80px 0;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 24px;
    box-shadow: var(--shadow-main);
    border: 1px solid var(--card-border);
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 500px;
    opacity: 0.85;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    text-align: left;
}

.carousel-caption h3 {
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.carousel-caption p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    backdrop-filter: blur(8px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

/* Contact Form Section */
.contact-section {
    padding: 80px 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
}

.contact-info h2 {
    font-size: 2.25rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-text h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.info-text p {
    color: var(--text-muted);
}

.contact-form {
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 24px;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 999;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wa-btn {
    width: 60px;
    height: 60px;
    background: var(--whatsapp);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s ease;
}

.wa-btn:hover {
    transform: scale(1.08);
}

.wa-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--whatsapp);
    opacity: 0.4;
    z-index: -1;
    animation: pulse 2s infinite;
}

.wa-badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow-main);
    animation: float 3s ease-in-out infinite;
}

/* Footer */
footer {
    padding: 60px 0 30px;
    background: rgba(var(--primary-rgb), 0.05);
    border-top: 1px solid var(--card-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}

.footer-about h3 {
    margin-bottom: 16px;
}

.footer-about p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-links h4 {
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--card-border);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Animations */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Responsive Grid Adjustments */
@media (max-width: 992px) {
    .hero-grid, .calc-grid, .contact-layout {
        grid-template-columns: 1fr;
    }
    .hero-image-wrapper {
        order: -1;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* SVG Custom Styling */
.service-icon svg, .info-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
    transition: stroke 0.3s ease;
}
[data-theme="dark"] .service-icon svg, [data-theme="dark"] .info-icon svg {
    stroke: #90caf9;
}
.wa-btn svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}
.theme-toggle-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

/* FAQ Accordion */
.faq-section {
    padding: 80px 0;
    background: rgba(var(--primary-rgb), 0.01);
}
.faq-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}
.accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
    transition: border-color 0.3s ease;
}
.accordion-item[open] {
    border-color: var(--primary);
}
.accordion-header {
    padding: 20px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    color: var(--text-main);
}
.accordion-header::-webkit-details-marker {
    display: none;
}
.accordion-header::after {
    content: '+';
    font-size: 1.25rem;
    transition: transform 0.3s ease;
    font-weight: 400;
}
.accordion-item[open] .accordion-header::after {
    content: '−';
}
.accordion-content {
    padding: 0 20px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Chat Widget Simulator */
.chat-simulator {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 480px;
    background: #efe7dd; /* Classic WhatsApp chat background */
}
[data-theme="dark"] .chat-simulator {
    background: #0b141a; /* Dark WhatsApp background */
}
.chat-header {
    background: #075e54;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
}
.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
}
.chat-header-info h4 {
    font-size: 0.95rem;
    font-weight: 600;
}
.chat-status {
    font-size: 0.75rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    display: inline-block;
}
.chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.chat-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.chat-bubble-received {
    background: white;
    color: #303030;
    align-self: flex-start;
    border-top-left-radius: 0;
}
[data-theme="dark"] .chat-bubble-received {
    background: #1f2c34;
    color: #e9edef;
}
.chat-bubble-system {
    background: rgba(225, 230, 233, 0.9);
    color: #54656f;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 8px;
    align-self: center;
    box-shadow: none;
}
[data-theme="dark"] .chat-bubble-system {
    background: #182229;
    color: #8696a0;
}
.chat-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.chat-option-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    background: rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    border-radius: 10px;
    color: var(--primary);
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}
[data-theme="dark"] .chat-option-btn {
    background: rgba(144, 202, 249, 0.08);
    border-color: rgba(144, 202, 249, 0.15);
    color: #90caf9;
}
.chat-option-btn:hover {
    background: rgba(var(--primary-rgb), 0.15);
    transform: translateX(4px);
}
[data-theme="dark"] .chat-option-btn:hover {
    background: rgba(144, 202, 249, 0.15);
}

@media (max-width: 992px) {
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Thesis Feasibility Scanner */
.scan-section {
    padding: 80px 0;
    background: rgba(var(--primary-rgb), 0.02);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}
.scan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.scan-input-card {
    padding: 40px;
}
.scan-result-card {
    padding: 40px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}
.scan-loading {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(var(--primary-rgb), 0.1);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.scan-log {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    height: 20px;
    text-align: center;
}
.scan-dashboard {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 24px;
    animation: fadeIn 0.5s ease-out;
}
.gauge-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(var(--primary-rgb), 0.05);
    border: 5px solid var(--card-border);
}
.gauge-val {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}
[data-theme="dark"] .gauge-val {
    color: #90caf9;
}
.scan-verdict-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 6px;
}
.scan-verdict-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.scan-factors {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.scan-factor-item {
    background: rgba(255,255,255,0.3);
    border: 1px solid var(--card-border);
    padding: 12px;
    border-radius: 12px;
}
[data-theme="dark"] .scan-factor-item {
    background: rgba(0,0,0,0.2);
}
.scan-factor-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}
.scan-factor-score {
    font-size: 0.9rem;
    font-weight: 700;
}
.score-high { color: var(--accent); }
.score-med { color: #f4a261; }
.score-low { color: var(--secondary); }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 992px) {
    .scan-grid {
        grid-template-columns: 1fr;
    }
}
