@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --bg-dark: #070913;
    --surface-dark: #0f1325;
    --surface-card: rgba(15, 20, 39, 0.7);
    --surface-card-hover: rgba(22, 29, 56, 0.85);

    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #a855f7;
    --accent-color: #f43f5e;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --white: #ffffff;

    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #f43f5e 100%);
    --card-gradient: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    --border-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
    --border-glow: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(168, 85, 247, 0.4) 100%);

    --glow-1: rgba(99, 102, 241, 0.12);
    --glow-2: rgba(244, 63, 94, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-secondary);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-primary);
    font-weight: 700;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Ambient Glow Background Blobs */
.glow-blob-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.65;
    mix-blend-mode: screen;
}

.glow-blob-1 {
    top: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--glow-1) 0%, rgba(99, 102, 241, 0) 70%);
    animation: floatBlob 25s infinite alternate ease-in-out;
}

.glow-blob-2 {
    top: 40%;
    left: -15%;
    width: 550px;
    height: 550px;
    background: radial-gradient(circle, var(--glow-2) 0%, rgba(244, 63, 94, 0) 70%);
    animation: floatBlob 20s infinite alternate-reverse ease-in-out;
}

.glow-blob-3 {
    bottom: 10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--glow-1) 0%, rgba(168, 85, 247, 0) 70%);
    animation: floatBlob 28s infinite alternate ease-in-out;
}

@keyframes floatBlob {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(50px) scale(1.15);
    }
    100% {
        transform: translateY(-30px) scale(0.9);
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader-inner {
    position: relative;
}

.preloader-icon {
    width: 60px;
    height: 60px;
    display: inline-block;
    padding: 0px;
    text-align: left;
}

.preloader-icon span {
    position: absolute;
    display: inline-block;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: var(--primary-gradient);
    animation: preloaderBounce 1.6s infinite ease-in-out;
    opacity: 0.6;
}

.preloader-icon span:last-child {
    animation-delay: -0.8s;
}

@keyframes preloaderBounce {
    0%, 100% {
        transform: scale(0);
    }
    50% {
        transform: scale(1);
    }
}

/* Header - Glassmorphic */
.navbar-modern {
    width: 100%;
    background: transparent;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 99;
    transition: all 0.3s ease-in-out;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.navbar-modern.scrolled {
    position: fixed;
    background: rgba(7, 9, 19, 0.75);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar-modern .navbar {
    padding: 0;
}

.nav-link-modern {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7) !important;
    transition: all 0.2s ease-in-out;
    padding: 10px 0;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    text-transform: capitalize;
    margin-right: 35px;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    color: var(--white) !important;
}

.nav-link-modern.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 15px;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

/* Language Switcher Button (Positioned after CTA) */
.lang-switch {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px; /* Gap from the CTA button */
    backdrop-filter: blur(5px);
    display: inline-block;
    vertical-align: middle;
}

.lang-switch:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Button Premium styling */
.btn-modern {
    background: var(--primary-gradient);
    color: var(--white) !important;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.45);
}

/* Hero Section */
.hero-modern {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 140px;
    padding-bottom: 80px;
}

.hero-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content-modern h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 30%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.hero-content-modern p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.btn-hero {
    background: var(--primary-gradient);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

/* CSS Mockup iPhone */
.mockup-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.phone-mockup {
    position: relative;
    width: 310px;
    height: 620px;
    background: #080810;
    border-radius: 48px;
    padding: 12px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8),
    inset 0 0 4px 2px rgba(255, 255, 255, 0.15),
    0 0 0 4px #27273a;
    border: 2px solid #181824;
    z-index: 5;
    animation: floatPhone 6s infinite ease-in-out;
}

@keyframes floatPhone {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(1deg);
    }
}

/* Island / Notch */
.phone-mockup::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 95px;
    height: 25px;
    background: #000000;
    border-radius: 20px;
    z-index: 10;
    box-shadow: inset 0 0 2px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #05060b;
    border-radius: 38px;
    overflow: hidden;
    position: relative;
    padding: 40px 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Phone Screen Mock App UI */
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.phone-logo {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.phone-logo span {
    color: var(--primary-color);
}

.phone-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
}

.phone-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.phone-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 12px;
}

.phone-card-title {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 4px;
}

.phone-chart-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.phone-chart-visual {
    height: 60px;
    display: flex;
    align-items: flex-end;
    gap: 6px;
}

.phone-chart-bar {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    animation: barGrow 3s infinite ease-in-out;
}

@keyframes barGrow {
    0%, 100% {
        height: 30%;
    }
    50% {
        height: 90%;
    }
}

.phone-chart-bar:nth-child(2) {
    animation-delay: 0.3s;
    background: var(--primary-color);
}

.phone-chart-bar:nth-child(3) {
    animation-delay: 0.6s;
    background: var(--secondary-color);
}

.phone-chart-bar:nth-child(4) {
    animation-delay: 0.9s;
}

.phone-chart-bar:nth-child(5) {
    animation-delay: 1.2s;
    background: var(--accent-color);
}

.phone-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.phone-icon-box {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 12px;
}

.phone-item-text {
    flex-grow: 1;
}

.phone-item-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--white);
}

.phone-item-desc {
    font-size: 9px;
    color: var(--text-muted);
}

.phone-item-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
}

.phone-nav {
    display: flex;
    justify-content: space-around;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-nav-icon {
    font-size: 14px;
    color: var(--text-muted);
}

.phone-nav-icon.active {
    color: var(--primary-color);
}

/* Secondary Floating Cards outside Mockup */
.floating-badge {
    position: absolute;
    background: rgba(15, 20, 39, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 20px;
    border-radius: 20px;
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-badge-1 {
    top: 20%;
    left: -20px;
    animation: floatBadge1 5s infinite ease-in-out;
}

.floating-badge-2 {
    bottom: 15%;
    right: -20px;
    animation: floatBadge2 5s infinite ease-in-out;
}

@keyframes floatBadge1 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(5px, -10px);
    }
}

@keyframes floatBadge2 {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(-5px, 10px);
    }
}

.floating-badge i {
    font-size: 24px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.floating-badge-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
}

.floating-badge-subtitle {
    font-size: 10px;
    color: var(--text-muted);
    margin: 0;
}

/* Section Common Styling */
.section-modern {
    padding: 120px 0;
    position: relative;
}

.section-title-modern {
    text-align: center;
    margin-bottom: 5rem;
    position: relative;
    z-index: 2;
}

.section-title-modern .subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    margin-bottom: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.section-title-modern h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    letter-spacing: -0.5px;
}

.section-title-modern p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Services Section (4 cards grid) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 2;
}

.card-modern {
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 28px;
    padding: 3rem 2.2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.1), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.card-modern:hover {
    transform: translateY(-8px);
    background: var(--surface-card-hover);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 1px 1px rgba(99, 102, 241, 0.2);
}

.card-modern:hover::before {
    opacity: 1;
}

.card-icon-modern {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    color: var(--primary-light);
}

.card-modern:hover .card-icon-modern {
    background: var(--primary-gradient);
    color: var(--white);
    transform: scale(1.05) rotate(3deg);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.3);
}

.card-icon-modern i {
    font-size: 1.75rem;
}

.card-modern h4 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.card-modern p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* About / Intro Section & Code Editor Mockup */
.intro-section {
    background: radial-gradient(circle at 10% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
}

.code-editor-mockup {
    background: rgba(15, 21, 40, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 0;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    height: 380px;
    width: 100%;
}

.editor-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-buttons {
    display: flex;
    gap: 6px;
}

.editor-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.editor-btn.close {
    background: #ef4444;
}

.editor-btn.minimize {
    background: #eab308;
}

.editor-btn.expand {
    background: #22c55e;
}

.editor-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
}

.editor-content {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13.5px;
    line-height: 1.6;
    overflow: hidden;
}

.code-line {
    display: flex;
    margin-bottom: 5px;
    white-space: nowrap;
}

.line-num {
    width: 25px;
    color: var(--text-muted);
    margin-right: 15px;
    text-align: right;
    user-select: none;
}

.keyword {
    color: #f43f5e;
    font-weight: 600;
}

.class-name {
    color: #60a5fa;
}

.function-name {
    color: #c084fc;
}

.string {
    color: #34d399;
}

.number {
    color: #fbbf24;
}

.ai-suggestion-box {
    position: absolute;
    bottom: 25px;
    right: 20px;
    width: 265px;
    background: rgba(11, 15, 30, 0.95);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 85, 247, 0.35);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    z-index: 10;
    animation: floatEditorBadge 4s infinite ease-in-out;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

@keyframes floatEditorBadge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.ai-suggestion-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.ai-suggestion-header i {
    color: var(--secondary-color);
}

.ai-suggestion-body {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.ai-suggestion-btn {
    margin-top: 10px;
    background: var(--primary-gradient);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

/* Bento Grid Section */
.advantages-section {
    position: relative;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(180px, auto);
    gap: 24px;
    z-index: 2;
    position: relative;
}

.bento-card {
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: var(--surface-card-hover);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Specific grids setup */
.bento-col-2 {
    grid-column: span 2;
}

.bento-row-2 {
    grid-row: span 2;
}

.bento-icon {
    font-size: 2.25rem;
    color: var(--primary-light);
    margin-bottom: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.bento-card h4 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.7;
}

/* Custom interactive visuals inside Bento Cards */
.bento-avatar-stack {
    display: flex;
    align-items: center;
    margin-top: 15px;
    gap: -8px;
}

.bento-avatar-stack img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--surface-dark);
    margin-right: -10px;
    object-fit: cover;
    transition: all 0.2s ease;
}

.bento-avatar-stack img:hover {
    transform: translateY(-5px);
    z-index: 10;
}

.bento-tech-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.bento-tech-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bento-tech-tag i {
    color: var(--primary-light);
}

.bento-progress-track {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
}

.bento-progress-bar {
    width: 85%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 10px;
    animation: pulseWidth 3s infinite alternate ease-in-out;
}

@keyframes pulseWidth {
    0% {
        width: 75%;
    }
    100% {
        width: 95%;
    }
}

/* Testimonials (Client Reviews) Section */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    z-index: 2;
    position: relative;
}

.testimonial-card {
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.25);
    background: var(--surface-card-hover);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.testimonial-stars {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 1.25rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    color: var(--white);
    font-size: 15px;
}

.testimonial-meta h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 2px;
}

.testimonial-meta span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 30px;
    z-index: 2;
    position: relative;
}

.team-card {
    background: var(--surface-card);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.25);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.team-img-wrapper {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.team-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-wrapper img {
    transform: scale(1.06);
}

/* Gradient Overlay on Avatar */
.team-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, var(--surface-dark), transparent);
    z-index: 1;
}

.team-card-content {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    background: var(--surface-dark);
}

.team-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--white);
}

.team-card span {
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    display: block;
    margin-bottom: 1.25rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--primary-gradient);
    color: var(--white);
    transform: translateY(-2px);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-info-card {
    background: var(--surface-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 2.5rem;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: rgba(99, 102, 241, 0.2);
    background: var(--surface-card-hover);
    transform: translateY(-2px);
}

.contact-info-card h3 {
    color: var(--primary-light);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-info-card p {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    margin: 0;
}

.contact-form-modern {
    background: var(--surface-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 28px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form-modern h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
}

.form-control-modern {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    color: var(--white);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-light);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

textarea.form-control-modern {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
/* Contact links */
.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-light);
}

/* Redesigned Footer */
.footer-modern {
    background: #05070f;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    padding: 80px 0 40px;
    position: relative;
    z-index: 2;
}

.footer-top {
    margin-bottom: 50px;
}

.footer-widget h5 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-widget p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #34d399;
    margin-top: 15px;
}

.footer-status-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: statusPulse 2s infinite;
}

@keyframes statusPulse {
    0% {
        transform: scale(0.9);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0.6;
    }
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links-list a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-contact-item i {
    color: var(--primary-light);
    font-size: 1rem;
}

.footer-contact-item a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.footer-legal-links {
    display: flex;
    gap: 20px;
}

.footer-legal-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--primary-light);
}

/* Scroll to top */
.scroll-top-modern {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--primary-gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    text-decoration: none;
}

.scroll-top-modern.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top-modern:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.5);
    color: var(--white);
}

/* Mobile Menu Button customization */
.navbar-modern .mobile-menu-btn {
    border: none;
    background: none;
    display: none; /* Controlled by bootstrap display states */
}

.navbar-modern .mobile-menu-btn .toggler-icon {
    width: 24px;
    height: 2px;
    background-color: var(--white);
    display: block;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Responsive Grid and Bento setup */
@media (max-width: 991px) {
    .navbar-modern {
        padding: 16px 0;
    }

    .navbar-modern .mobile-menu-btn {
        display: block;
    }

    .navbar-modern .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--surface-dark);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 20px;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
        margin-top: 10px;
    }

    .nav-link-modern {
        padding: 12px 10px !important;
        margin-right: 0 !important;
        color: rgba(255, 255, 255, 0.8) !important;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .nav-link-modern:last-child {
        border-bottom: none;
    }

    .navbar-modern .home-btn {
        display: none !important;
    }

    .lang-switch {
        margin-left: 10px;
        margin-top: 0;
        display: inline-block;
    }

    /* Hero Responsive */
    .hero-modern {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content-modern h1 {
        font-size: 2.8rem;
    }

    .mockup-container {
        margin-top: 60px;
    }

    /* Bento Grid Responsive */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .bento-col-2 {
        grid-column: span 1;
    }

    .bento-row-2 {
        grid-row: span 1;
    }

    .bento-card {
        padding: 2rem;
    }

    .footer-modern .footer-bottom p {
        text-align: left;
        margin-top: 15px;
    }
}

@media (max-width: 576px) {
    .section-title-modern h2 {
        font-size: 2.2rem;
    }

    .hero-content-modern h1 {
        font-size: 2.2rem;
    }

    .contact-form-modern {
        padding: 2rem 1.5rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .code-editor-mockup {
        height: 440px;
    }

    .ai-suggestion-box {
        position: relative;
        bottom: auto;
        right: auto;
        width: 100%;
        margin-top: 15px;
        animation: none;
    }
}
