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

/* ==========================================================================
   Blue Craft Theme — Default (Light)
   Global Style Tokens
   ========================================================================== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f0f5ff;
    --bg-tertiary: #e8f0fe;
    --accent: #2563eb;
    --accent-dark: #1d4ed8;
    --accent-light: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    --accent-glow: rgba(37, 99, 235, 0.12);
    --text-primary: #0d1b3e;
    --text-secondary: #3d5a8a;
    --text-muted: #7a93b8;
    --border-color: rgba(37, 99, 235, 0.12);
    --shadow-color: rgba(13, 27, 62, 0.08);
    --shadow-blue: rgba(37, 99, 235, 0.12);
    --glass-bg: rgba(255, 255, 255, 0.82);
    --glass-border: rgba(37, 99, 235, 0.1);
    --card-bg: #ffffff;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 36px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1100px;
}

/* Dark Theme Overrides */
body.dark-theme {
    --bg-primary: #0b0f19;
    --bg-secondary: #151c2c;
    --bg-tertiary: #1e293b;
    --accent: #60a5fa;
    --accent-dark: #3b82f6;
    --accent-light: #93c5fd;
    --accent-gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
    --accent-glow: rgba(96, 165, 250, 0.18);
    --text-primary: #f0f6ff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: rgba(255, 255, 255, 0.08);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-blue: rgba(96, 165, 250, 0.1);
    --glass-bg: rgba(21, 28, 44, 0.82);
    --glass-border: rgba(255, 255, 255, 0.06);
    --card-bg: #151c2c;
}

/* ==========================================================================
   Base Reset & Core
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.35s, color 0.35s;
}

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 88px 0;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==========================================================================
   Navigation / Header
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    transition: background-color 0.35s, border-color 0.35s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 5%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    box-shadow: 0 3px 10px var(--shadow-blue);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.93rem;
    padding: 6px 0;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
    transition: var(--transition);
}

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

/* ==========================================================================
   Theme Toggle Button
   ========================================================================== */
.theme-toggle-btn {
    background: transparent;
    border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    background-color: var(--bg-secondary);
    border-color: var(--accent);
    color: var(--accent);
}

/* Default (light): show moon icon to switch TO dark */
.sun-icon  { display: none;  width: 20px; height: 20px; }
.moon-icon { display: block; width: 20px; height: 20px; }

body.dark-theme .sun-icon  { display: block; }
body.dark-theme .moon-icon { display: none;  }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.93rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.28);
    color: #ffffff;
}

.btn-secondary {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.app-store-badge img {
    height: 46px;
    transition: var(--transition);
}

.app-store-badge:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 12px rgba(37, 99, 235, 0.2));
}

/* ==========================================================================
   Watercolor Blobs (Decorative)
   ========================================================================== */
.blob-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.blob-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(147, 197, 253, 0.6) 0%, rgba(96, 165, 250, 0.25) 60%, transparent 100%);
    top: -120px;
    right: -80px;
}

.blob-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(167, 209, 255, 0.5) 0%, rgba(59, 130, 246, 0.2) 60%, transparent 100%);
    bottom: -60px;
    left: -60px;
}

.blob-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(199, 220, 255, 0.45) 0%, transparent 100%);
    top: 40%;
    left: 30%;
}

body.dark-theme .blob-1 {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(29, 78, 216, 0.1) 60%, transparent 100%);
}

body.dark-theme .blob-2 {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 100%);
}

body.dark-theme .blob-3 {
    background: radial-gradient(circle, rgba(96, 165, 250, 0.12) 0%, transparent 100%);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 140px;
    padding-bottom: 60px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 16px;
    background-color: rgba(37, 99, 235, 0.08);
    border: 1.5px solid rgba(37, 99, 235, 0.2);
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 22px;
    letter-spacing: 0.01em;
}

.hero-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    background-color: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 22px;
}

.hero p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.75;
    margin-bottom: 34px;
    max-width: 520px;
}

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

/* ==========================================================================
   Phone Frame Showcase
   ========================================================================== */
.hero-mockup-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    position: relative;
    width: 100%;
}

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

.phone-frame {
    position: relative;
    width: 100%;
    max-width: 290px;
    height: 590px;
    background: #e8f0ff;
    border: 10px solid #c8d8f8;
    border-radius: 46px;
    box-shadow:
        0 32px 64px -16px rgba(37, 99, 235, 0.18),
        0 0 0 1px rgba(37, 99, 235, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.6);
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
    transition: border-color 0.35s, box-shadow 0.35s;
}

body.dark-theme .phone-frame {
    background: #0f1b35;
    border-color: #1e3a6e;
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.5), 0 0 40px rgba(59, 130, 246, 0.12);
}

.dynamic-island {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    background-color: #000000;
    border-radius: 20px;
    z-index: 10;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background-color: #f0f5ff;
    border-radius: 36px;
    overflow: hidden;
}

body.dark-theme .phone-screen {
    background-color: #0b1120;
}

.phone-screen .screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(0.96) translateY(5px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    z-index: 1;
}

.phone-screen .screenshot.active {
    opacity: 1;
    transform: scale(1) translateY(0);
    z-index: 2;
}

.phone-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    padding: 6px;
    border-radius: 30px;
    box-shadow: 0 6px 20px var(--shadow-blue);
    z-index: 5;
}

.control-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 22px;
    transition: var(--transition);
}

.control-btn:hover {
    color: var(--accent);
    background-color: var(--bg-secondary);
}

.control-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 52px;
}

.section-header h2 {
    font-size: 2.15rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   Portfolio / App Cards
   ========================================================================== */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.app-card {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 38px;
    box-shadow: 0 8px 32px var(--shadow-blue);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.app-card:hover {
    transform: translateY(-6px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 48px rgba(37, 99, 235, 0.14);
}

.app-card:hover::before {
    opacity: 1;
}

.app-card-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.app-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    box-shadow: 0 6px 18px var(--shadow-blue);
}

.app-card-title h3 {
    font-size: 1.35rem;
    margin-bottom: 3px;
}

.app-card-title p {
    font-size: 0.83rem;
    color: var(--accent);
    font-weight: 600;
    font-family: var(--font-body);
}

.app-card p.desc {
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 28px;
    flex-grow: 1;
}

.app-card-ctas {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 50px;
}

.faq-item {
    background-color: var(--card-bg);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 28px 30px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 6px 24px var(--shadow-blue);
    transform: translateY(-3px);
}

.faq-item h3 {
    font-size: 1.08rem;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.94rem;
    line-height: 1.65;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: flex-start;
}

.contact-info h2 {
    font-size: 2.15rem;
    margin-bottom: 14px;
}

.contact-info p {
    margin-bottom: 28px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: rgba(37, 99, 235, 0.08);
    border: 1.5px solid rgba(37, 99, 235, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

/* ==========================================================================
   Privacy Pages
   ========================================================================== */
.privacy-container {
    max-width: 800px;
    padding-top: 140px;
    padding-bottom: 80px;
}

.privacy-container h1 {
    font-size: 2.6rem;
    margin-bottom: 12px;
}

.privacy-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
}

.privacy-content h2 {
    font-size: 1.55rem;
    margin-top: 40px;
    margin-bottom: 14px;
}

.privacy-content h3 {
    font-size: 1.2rem;
    margin-top: 28px;
    margin-bottom: 10px;
}

.privacy-content p, .privacy-content ul {
    margin-bottom: 18px;
    font-size: 1.02rem;
}

.privacy-content ul {
    padding-left: 20px;
}

.privacy-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 56px 0 28px;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 38px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.footer-link {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-body);
}

.footer-link:hover {
    color: var(--accent);
}

.footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.83rem;
    font-family: var(--font-body);
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 44px;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas {
        justify-content: center;
    }

    .portfolio-grid, .faq-grid, .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        align-items: center;
    }

    .footer-layout {
        flex-direction: column;
        text-align: center;
    }

    .footer-copy {
        flex-direction: column;
        text-align: center;
    }

    .blob-1 { width: 280px; height: 280px; }
    .blob-2 { width: 200px; height: 200px; }
}

/* ==========================================================================
   Status Badges & Coming Soon
   ========================================================================== */
.coming-soon-badge {
    position: relative;
    display: inline-block;
    height: 40px;
    vertical-align: middle;
}

.app-store-badge-coming {
    height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    opacity: 0.3;
    filter: grayscale(100%);
    transition: var(--transition);
}

.coming-soon-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-primary);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    background-color: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--border-color);
    padding: 3px 8px;
    border-radius: 4px;
    pointer-events: none;
    box-shadow: 0 2px 8px var(--shadow-color);
}

body.dark-theme .coming-soon-label {
    background-color: rgba(15, 23, 42, 0.88);
    color: #f0f6ff;
    border-color: rgba(255, 255, 255, 0.12);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background-color: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    vertical-align: middle;
    font-family: var(--font-body);
}

body.dark-theme .status-badge {
    background-color: rgba(96, 165, 250, 0.1);
    border-color: rgba(96, 165, 250, 0.25);
    color: var(--accent);
}

.coming-soon-badge-large {
    position: relative;
    display: inline-block;
    height: 40px;
    vertical-align: middle;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.loading-spinner {
    animation: spin 0.8s linear infinite;
}

.form-success-view {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ==========================================================================
   Extracted Utility Classes (formerly inline styles)
   ========================================================================== */

/* Apps portfolio section */
.apps-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.35s, border-color 0.35s;
}

/* Contact section */
.contact-section {
    text-align: center;
}

.contact-container {
    max-width: 600px;
    padding: 80px 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-details {
    margin-top: 15px;
}

.contact-detail-item {
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 15px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px var(--shadow-color);
    transition: background-color 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.contact-icon-wrapper {
    width: 44px;
    height: 44px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    flex-shrink: 0;
    transition: background-color 0.35s, border-color 0.35s;
}

.contact-text {
    text-align: left;
}

.contact-label {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.contact-email {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.contact-email:hover {
    color: var(--accent);
}
