/* =====================================================
   studio karobar apply — Global Stylesheet
   Modern Premium Light Mode Theme (Crisp Black Text)
   ===================================================== */

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

/* ---------- CSS Variables (Light Mode with Black Text) ---------- */
:root {
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --glass-border: #e2e8f0;
    --glass-border-hover: #cbd5e1;
    
    --primary: #1e293b;
    --primary-hover: #000000;
    --primary-glow: rgba(15, 23, 42, 0.15);
    --accent: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --gradient-text: linear-gradient(135deg, #000000 0%, #0f172a 50%, #1e293b 100%);
    --gradient-btn: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-btn-hover: linear-gradient(135deg, #000000 0%, #0f172a 100%);
    --gradient-card: #ffffff;
    
    --text-main: #000000;
    --text-heading: #0f172a;
    --text-muted: #334155;
    --text-dim: #64748b;
    
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    --nav-height: 74px;
    --radius-lg: 20px;
    --radius: 14px;
    --radius-sm: 10px;
    
    --shadow-lg: 0 20px 40px -15px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(15, 23, 42, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 20%, rgba(15, 23, 42, 0.03) 0%, transparent 45%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f172a;
}

a {
    color: #0f172a;
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: #2563eb;
}

img {
    max-width: 100%;
    display: block;
}

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.navbar .logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #000000 !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}
.navbar .logo:hover {
    transform: scale(1.02);
}

.navbar .nav-links {
    display: flex;
    gap: 2.2rem;
    list-style: none;
    align-items: center;
}

.navbar .nav-links a {
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 0.4rem 0;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #000000;
}
.navbar .nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000000;
    border-radius: 2px;
}

.nav-btn {
    padding: 0.6rem 1.4rem;
    background: var(--gradient-btn);
    color: white !important;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.9rem;
    transition: var(--transition);
    -webkit-text-fill-color: white !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.nav-btn:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: #f1f5f9;
    border: 1px solid var(--glass-border);
    color: #000000;
    font-size: 1.4rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}
.menu-toggle:hover {
    background: #e2e8f0;
}

/* ---------- Layout ---------- */
.page-wrapper {
    padding-top: var(--nav-height);
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4.5rem 0;
}

/* ---------- Hero Section ---------- */
.hero {
    text-align: center;
    padding: 6rem 2rem 3.5rem;
    position: relative;
}

.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    color: #000000;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.25rem;
    color: #334155;
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 500;
}

.hero-btns {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.98rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-btn);
    color: white !important;
    -webkit-text-fill-color: white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}
.btn-primary:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
    color: white !important;
}

.btn-outline {
    background: #ffffff;
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    border: 1px solid #cbd5e1;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}
.btn-outline:hover {
    background: #f8fafc;
    border-color: #000000;
    color: #000000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white !important;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
}

/* ---------- Cards ---------- */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 2rem;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    position: relative;
}
.card:hover {
    border-color: #cbd5e1;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* ---------- Portfolio Card ---------- */
.portfolio-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.portfolio-card .card-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    color: #000000 !important;
}

.portfolio-card .card-location {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.portfolio-card .card-socials {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.portfolio-card .card-socials a,
.portfolio-card .card-socials span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid #e2e8f0;
}
.portfolio-card .card-socials a:hover {
    background: #ffffff;
    border-color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* ---------- Form Styles ---------- */
.form-container {
    max-width: 620px;
    margin: 0 auto;
}

.form-glass {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 2.75rem;
    box-shadow: var(--shadow-lg);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.2px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: var(--radius-sm);
    color: #000000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 500;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 4px rgba(15, 23, 42, 0.1);
    background: #ffffff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #94a3b8;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-divider {
    grid-column: 1 / -1;
    margin-top: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #000000;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 1.1rem 1.5rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.75rem;
    font-weight: 600;
    text-align: center;
    animation: slideDown 0.4s ease;
}

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

.alert-success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

/* ---------- Stats Row ---------- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 1.75rem;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.stat-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-3px);
}

.stat-card .stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    color: #000000;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    line-height: 1.1;
}

.stat-card .stat-label {
    color: #475569;
    font-size: 0.92rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

/* ---------- Feature Grid ---------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.feature-icon {
    font-size: 2.8rem;
    margin-bottom: 1.25rem;
    display: inline-block;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- Section Headers ---------- */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    color: #000000;
    background: none !important;
    -webkit-text-fill-color: initial !important;
    letter-spacing: -0.5px;
}

.section-header p {
    color: #475569;
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto;
    font-weight: 500;
}

/* ---------- Profile Page ---------- */
.profile-header {
    text-align: center;
    padding: 3.5rem 2rem 2rem;
}

.profile-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    border: 4px solid #ffffff;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 2.3rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
}

.profile-location {
    color: #475569;
    font-size: 1.1rem;
    font-weight: 600;
}

.profile-details {
    max-width: 720px;
    margin: 2rem auto;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #334155;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-value {
    font-weight: 700;
    color: #000000;
    font-size: 0.98rem;
}
.detail-value a {
    color: #2563eb;
}
.detail-value a:hover {
    color: #000000;
    text-decoration: underline;
}

/* ---------- Dashboard ---------- */
.dashboard-header {
    padding: 3rem 0 2rem;
}

.dashboard-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.2rem;
    font-weight: 800;
    color: #000000;
}

.dashboard-header p {
    color: #475569;
    margin-top: 0.5rem;
    font-size: 1.05rem;
}

/* ---------- Pricing Grid & Plans ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem 2rem;
    position: relative;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid #e2e8f0;
}

.pricing-card.popular {
    border-color: #000000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: #ffffff;
}

.pricing-badge {
    align-self: flex-start;
    padding: 0.35rem 0.85rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #334155;
    margin-bottom: 1.25rem;
    border: 1px solid #e2e8f0;
}

.pricing-badge.popular-badge {
    background: #000000;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.plan-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
}

.plan-price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #000000;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.plan-price span {
    font-size: 1rem;
    color: #475569;
    font-weight: 600;
}

.plan-desc {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.plan-features li {
    color: #0f172a;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---------- Search Bar ---------- */
.search-bar {
    max-width: 550px;
    margin: 0 auto 3.5rem;
    position: relative;
}

.search-bar input {
    width: 100%;
    padding: 1.1rem 1.5rem 1.1rem 3.2rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    color: #000000;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.search-bar input:focus {
    outline: none;
    border-color: #000000;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.08);
}

.search-bar::before {
    content: '🔍';
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* ---------- Footer ---------- */
.footer {
    padding: 3.5rem 2rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 0.92rem;
    margin-top: 5rem;
    background: #ffffff;
}

.footer a {
    color: #334155;
    font-weight: 600;
}
.footer a:hover {
    color: #000000;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1.25rem;
    list-style: none;
}

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

.animate-in {
    animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 { animation-delay: 0.08s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.16s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.24s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.32s; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .navbar {
        padding: 0 1.25rem;
    }
    
    .nav-links {
        display: none !important;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column !important;
        padding: 1.5rem;
        gap: 0.75rem !important;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    }
    
    .nav-links.open {
        display: flex !important;
    }
    
    .nav-links a {
        padding: 0.85rem 1rem;
        display: block;
        width: 100%;
    }
    
    .menu-toggle {
        display: block;
    }

    .hero {
        padding: 5rem 1.25rem 3rem;
    }

    .hero h1 {
        font-size: 2.3rem;
    }

    .hero p {
        font-size: 1.05rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-glass {
        padding: 2rem 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .stats-row {
        grid-template-columns: 1fr 1fr;
    }

    .detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }
}
