/* Radhika Interactive Apps Studio - Premium Minimalist Theme */
:root {
    --primary: #1A237E;
    --secondary: #6A5ACD;
    --accent: #00C2FF;
    --bg: #f8f9ff;
    --bg-glass: rgba(255, 255, 255, 0.75);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);
    --text: #1a1a2e;
    --text-muted: #5c5c7a;
    --border: rgba(26, 35, 126, 0.12);
    --shadow: 0 8px 32px rgba(26, 35, 126, 0.08);
    --shadow-hover: 0 16px 48px rgba(26, 35, 126, 0.14);
    --radius: 16px;
    --radius-sm: 10px;
    --font-head: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

/* Background effects */
.bg-gradient-float {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -2;
    background: linear-gradient(135deg, #f0f2ff 0%, #e8ebff 40%, #f5f0ff 100%);
    opacity: 0.95;
}

.bg-particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background-image: radial-gradient(circle at 20% 30%, rgba(106, 90, 205, 0.06) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(0, 194, 255, 0.06) 0%, transparent 50%);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 2.5rem; }
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
}

.logo-text { color: var(--primary); }
.logo-accent { color: var(--secondary); }

.nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.main-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(280px, 85vw);
    height: 100vh;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: var(--transition);
    box-shadow: -8px 0 32px rgba(0,0,0,0.06);
}

.main-nav.is-open {
    transform: translateX(0);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-list li { margin-bottom: 0.5rem; }

.nav-link {
    display: inline-block;
    padding: 0.5rem 0;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .main-nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        transform: none;
        box-shadow: none;
    }
    .nav-list {
        display: flex;
        gap: 0.5rem 1.5rem;
    }
    .nav-list li { margin-bottom: 0; }
}

/* Main content */
.main-content {
    min-height: 100vh;
    padding-top: 4rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26, 35, 126, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: #fff;
}

.btn-glow {
    box-shadow: 0 0 24px rgba(0, 194, 255, 0.4);
}

.btn-glow:hover {
    box-shadow: 0 0 32px rgba(0, 194, 255, 0.5);
}

.btn-full { width: 100%; }

/* Hero */
.hero {
    min-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.hero-inner {
    text-align: center;
}

.hero-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.hero-title-main { color: var(--primary); }
.hero-title-accent {
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-cta .btn { min-width: 140px; }

/* Sections */
.section {
    padding: 4rem 0;
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Glass cards */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* About preview */
.about-preview-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about-preview-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
}

/* Services grid */
.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 480px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
    padding: 1.75rem;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
}

.section-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Credibility */
.credibility-inner {
    padding: 2rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.credibility-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 1.05rem;
}

/* CTA section */
.cta-section {
    padding: 4rem 0;
}

.cta-inner {
    text-align: center;
}

.cta-inner .section-title { margin-bottom: 0.5rem; }
.cta-inner .section-subtitle { margin-bottom: 1.5rem; }

/* Page hero (inner pages) */
.page-hero {
    padding: 4rem 0 2rem;
    text-align: center;
}

.page-title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin: 0 0 0.5rem;
}

.page-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0;
}

/* Content section */
.content-section { padding: 2rem 0 4rem; }

.content-block {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
}

.content-block p {
    margin: 0 0 1rem;
    color: var(--text-muted);
}

/* Services full */
.services-grid-full {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .services-grid-full { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid-full { grid-template-columns: repeat(3, 1fr); }
}

.card-lift:hover {
    transform: translateY(-8px);
}

/* Contact */
.contact-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .contact-grid { grid-template-columns: 1fr 1.2fr; }
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
    font-size: 1.25rem;
}

.contact-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-details li {
    margin-bottom: 1rem;
}

.contact-details strong {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.contact-details a,
.contact-details span {
    color: var(--primary);
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-info,
.contact-form-wrapper {
    padding: 2rem;
}

/* Form */
.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.required { color: #c62828; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}

.form-message.success { background: #e8f5e9; color: #2e7d32; }
.form-message.error { background: #ffebee; color: #c62828; }

/* Map */
.map-wrapper {
    margin-top: 2rem;
}

.map-wrapper h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 1rem;
}

.map-embed {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-embed iframe {
    display: block;
}

/* Privacy */
.privacy-content { padding: 2rem 0 4rem; }

.privacy-article {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-article h2 {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--primary);
    margin: 2rem 0 0.75rem;
    font-size: 1.2rem;
}

.privacy-article h2:first-of-type { margin-top: 0; }

.privacy-article p,
.privacy-article ul {
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.privacy-article ul { padding-left: 1.5rem; }

.privacy-article a {
    color: var(--accent);
    text-decoration: none;
}

.privacy-article a:hover { text-decoration: underline; }

.privacy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.privacy-table th,
.privacy-table td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.privacy-table th {
    background: rgba(26, 35, 126, 0.06);
    font-weight: 600;
    color: var(--primary);
}

.privacy-article hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

/* Footer */
.site-footer {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
}

.footer-logo {
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.footer-logo .logo-text { color: var(--primary); }
.footer-logo .logo-accent { color: var(--secondary); }

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--primary);
    margin: 0 0 0.75rem;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.5rem;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact li:last-child {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* FAB */
.fab-contact {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 35, 126, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.fab-contact:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(26, 35, 126, 0.5);
    color: #fff;
}

/* Hide FAB on contact page */
.page-contact .fab-contact {
    display: none;
}

/* Utility */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Focus for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
