/* ============================================================
   Dmitry Kochubey Consulting
   Premium Robotics / AI Consultancy Design System
   Complete CSS Replacement
============================================================ */

/* ============================================================
   VARIABLES
============================================================ */

:root {
    --accent:#2563eb;
    --accent-light:#60a5fa;
    --accent-dark:#1d4ed8;

    --accent-gradient:linear-gradient(135deg,#2563eb,#60a5fa);
    --accent-glow:rgba(37,99,235,.25);

    --bg:#ffffff;
    --bg-soft:#f8fafc;
    --bg-muted:#f1f5f9;

    --text:#0f172a;
    --text-soft:#64748b;

    --border:rgba(15,23,42,.08);
    --glass:rgba(255,255,255,.65);

    --shadow:0 20px 60px rgba(15,23,42,.08);

    --radius:1.5rem;
}

[data-bs-theme="dark"] {
    --bg:#080f1f;
    --bg-soft:#111827;
    --bg-muted:#1e293b;

    --text:#f8fafc;
    --text-soft:#94a3b8;

    --border:rgba(255,255,255,.1);
    --glass:rgba(15,23,42,.55);

    --shadow:0 25px 70px rgba(0,0,0,.45);
}

/* ============================================================
   GLOBAL
============================================================ */
main {
    padding-top: 76px; /* same height as navbar */
}

* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
    scroll-padding-top:90px;
}

body {
    font-family:"Inter",system-ui,-apple-system,sans-serif;
    background:var(--bg);
    color:var(--text);
    line-height:1.7;
    transition:background .3s ease,color .3s ease;
}

h1,h2,h3,h4,h5 {
    font-weight:800;
    letter-spacing:-.04em;
}

p {
    color:var(--text-soft);
}

a {
    text-decoration:none;
    transition:.25s ease;
}

img {
    max-width:100%;
}

/* ============================================================
   UTILITIES
============================================================ */

.text-accent {
    color:var(--accent)!important;
}

.ls-1 {
    letter-spacing:.12em;
}

/* ============================================================
   BUTTONS
============================================================ */

.btn-accent {
    background:var(--accent-gradient);
    border:none;
    color:white;
    border-radius:999px;
    padding:.9rem 2rem;
    font-weight:700;
    box-shadow:0 15px 35px var(--accent-glow);
    transition:.3s ease;
}

.btn-accent:hover {
    transform:translateY(-3px);
    color:white;
    box-shadow:0 25px 50px var(--accent-glow);
}

.btn-outline-accent {
    border:1px solid var(--accent);
    color:var(--accent);
    border-radius:999px;
    padding:.9rem 2rem;
    font-weight:700;
}

.btn-outline-accent:hover {
    background:var(--accent);
    color:white;
}

/* ============================================================
   NAVBAR
============================================================ */

.navbar-glass {
    height:76px;
    background:var(--bg)!important;
    backdrop-filter:none;
    border-bottom:1px solid var(--border);
}

.navbar-glass {
    box-shadow:0 8px 25px rgba(15,23,42,.06);
}

.navbar-brand {
    font-weight:900;
    font-size:1.25rem;
    color:var(--text)!important;
}

.brand-logo {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:200px;
    height:40px;
    border-radius:12px;
    background:var(--accent-gradient);
    color:white;
    font-weight:900;
}

.nav-link {
    color:var(--text-soft)!important;
    font-weight:600;
    padding:.5rem 1rem!important;
}

.nav-link:hover,
.nav-link.active {
    color:var(--accent)!important;
}

/* ============================================================
   HERO
============================================================ */

.hero-section {
    position:relative;
    overflow:hidden;
    padding:36px 0 16px;
    background:linear-gradient(135deg,var(--bg),var(--bg-soft));
}

.hero-section .row {
    align-items:center;
}

.hero-section::before {
    content:"";
    position:absolute;
    width:700px;
    height:700px;
    right:-250px;
    top:-250px;
    background:radial-gradient(circle,rgba(37,99,235,.22),transparent 65%);
    filter:blur(20px);
}

.hero-title {
    font-size:clamp(3rem,6vw,5.5rem);
    line-height:1;
    margin-bottom:1.5rem;
}

.hero-subtitle {
    font-size:1.25rem;
    max-width:620px;
}

.hero-photo-placeholder {
    width:420px;
    aspect-ratio:4/5;
    margin:auto;
    border-radius:2.5rem;
    background:linear-gradient(145deg,var(--bg-soft),var(--bg-muted));
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    border:1px solid var(--border);
    box-shadow:var(--shadow);
}

.hero-photo-placeholder i {
    font-size:7rem;
    opacity:.25;
}

.hero-photo-wrapper {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin-top: 0;
}

/* Desktop: image centered vertically beside text */
.hero-photo {
    display: block;

    width: 100%;

    height: auto;

    border-radius: 28px;

}


/* Medium screens */
@media(max-width:992px){

    .hero-section {
        padding:90px 0 70px;
    }

    .hero-title {
        font-size:3.2rem;
    }

        .navbar-collapse {
        margin-top: 0.75rem;
        padding: 1rem;
        background: var(--bg);
        border: 1px solid var(--border);
        border-radius: 1rem;
        box-shadow: var(--shadow);
    }

    .navbar-nav {
        align-items: stretch !important;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 0;
    }

    .navbar-nav .btn-accent,
    .navbar-nav .btn-icon {
        width: 100%;
        justify-content: center;
    }

}


/* Small screens:
   Image moves below text and becomes horizontally centered */
@media(max-width:768px){

    .hero-section {
        padding:70px 0 60px;
    }

    .hero-section .row {
        text-align:center;
    }

    .hero-photo-wrapper {
        margin-top:2rem;
        width:100%;
    }

    .hero-photo {
        max-width:300px;
        margin:0 auto;
    }

    .hero-subtitle {
        margin-left:auto;
        margin-right:auto;
    }

    .d-flex {
        justify-content:center;
    }

        .navbar .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .logo {
        font-size: 1.5rem;
    }

    .navbar-brand {
        max-width: 75%;
        overflow: hidden;
    }

    .navbar-collapse {
        margin-top: .5rem;
        padding: .75rem;
        border-radius: .75rem;
    }

    .nav-link {
        font-size: 1rem;
    }

    .btn-accent {
        padding: .8rem 1rem;
        font-size: .95rem;
    }

}
/* ============================================================
   SECTIONS
============================================================ */

.section-white,
.section-light {
    padding:8rem 0;
}

.section-light {
    background:var(--bg-soft);
}

.section-accent {
    background:var(--accent-gradient);
    padding:6rem 0;
}

/* ============================================================
   GLASS CARDS
============================================================ */
.container.projects-container {
    display: flex;
    flex-direction: column;
    gap: 3rem; /* Forces reliable vertical space between cards */
}

.tech-card,
.reason-card,
.expertise-card,
.process-card,
.service-card,
.pricing-tier,
.skill-category,
.project-card,
.testimonial-card {
    background:var(--glass);
    backdrop-filter:blur(25px);
    border:1px solid var(--border);
    border-radius:var(--radius);
    padding:2.5rem;
    box-shadow:var(--shadow);
    transition:.35s ease;
}

.tech-card:hover,
.reason-card:hover,
.expertise-card:hover,
.process-card:hover {
    transform:translateY(-8px);
    border-color:rgba(37,99,235,.4);
    box-shadow:0 35px 80px rgba(37,99,235,.15);
}

/* ============================================================
   ICONS
============================================================ */

.tech-icon,
.reason-icon-wrap,
.service-icon-wrap {
    color:var(--accent);
}

.tech-icon {
    font-size:2.5rem;
}

/* ============================================================
   PROCESS
============================================================ */

.process-num {
    display:flex;
    width:60px;
    height:60px;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:var(--accent-gradient);
    color:white;
    font-weight:900;
}

/* ============================================================
   COUNTERS
============================================================ */

.counter {
    font-size:4rem;
    font-weight:900;
}

/* ============================================================
   FAQ
============================================================ */

.accordion-item {
    background:var(--glass)!important;
    border:1px solid var(--border)!important;
    border-radius:1.25rem!important;
    overflow:hidden;
    margin-bottom:1rem;
}

.accordion-button {
    background:transparent!important;
    color:var(--text)!important;
    font-weight:700;
}

/* ============================================================
   FOOTER
============================================================ */

.footer {
    background:var(--bg-soft);
    border-top:1px solid var(--border);
    padding:5rem 0 3rem;
}

/* ============================================================
   ANIMATION
============================================================ */

[data-reveal] {
    opacity:0;
    transform:translateY(35px);
    transition:.8s cubic-bezier(.2,.8,.2,1);
}

[data-reveal].visible {
    opacity:1;
    transform:none;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media(max-width:992px){
    .hero-section {
        padding:140px 0 80px;
    }

    .hero-title {
        font-size:3rem;
    }
}

@media(max-width:768px){
    .section-white,
    .section-light {
        padding:5rem 0;
    }

    .hero-photo-placeholder {
        width:300px;
    }

    .counter {
        font-size:3rem;
    }
}

.hero-photo-wrapper {
    position: relative;
    display: inline-block;
}


.hero-photo-wrapper::before {
    content: "";
    position: absolute;
    inset: -20px;
    background: var(--accent);
    opacity: 0.12;
    filter: blur(40px);
    border-radius: 50%;
    z-index: 0;
}



.hero-photo {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 420px;

    aspect-ratio: 4 / 5;

    object-fit: cover;

    border-radius: 2rem;

    border: 1px solid var(--border);

    box-shadow:
        0 30px 80px rgba(0,0,0,0.15);

    transition:
        transform .4s ease,
        box-shadow .4s ease;
}



.hero-photo:hover {

    transform:
        translateY(-8px);

    box-shadow:
        0 40px 100px rgba(0,0,0,0.25);

}

.page-header {
    padding-top: 4rem;
}

.profile-card {
    transform: translateY(-40px);
}


.profile-badge {

    position: absolute;

    bottom: -100px;
    left: 50%;

    transform: translateX(-50%);

    width: 105%;
    max-width: 480px;

    padding: 1.4rem 2rem;


    /* uses your theme colors */
    background: var(--bs-body-bg);

    border: 1px solid var(--accent);

    border-radius: 18px;

    color: var(--bs-body-color);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.20),
        inset 0 0 20px rgba(0,0,0,0.05);


    z-index: 10;

}


.profile-badge h2 {

    margin: 0;

    color: var(--bs-body-color);

    font-size: 1.8rem;

    font-weight: 700;

}


.profile-title {

    margin-top: 8px;

    color: var(--accent-color);

    font-size: 0.85rem;

    font-weight: 700;

    letter-spacing: 1.5px;

    text-transform: uppercase;

}


.profile-expertise {

    margin-top: 10px;

    color: var(--accent);

    font-size: 0.9rem;

}


  .led-dot {
    color: #00ff66;
    display: inline-block;
    margin: 0 2px;
    position: relative;
    animation: led-glow 2s infinite alternate ease-in-out;
  }

  @keyframes led-glow {
    0% {
      text-shadow:
        0 0 4px #00ff66,
        0 0 10px #00ff66,
        0 0 20px #00ff66;
      opacity: 0.8;
    }
    100% {
      text-shadow:
        0 0 8px #00ff66,
        0 0 20px #00ff66,
        0 0 40px #00ff66,
        0 0 60px #00ff66;
      opacity: 1;
    }
  }

.logo {
    font-size: clamp(1.3rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: baseline;
    user-select: none;
}

  .skill-bar {
    width: 100%;
    height: 10px;
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #0d6efd, #20c997);
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.contact-info-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;
    background: var(--bg-soft);
    color: var(--accent);

    font-size: 1.25rem;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-info-item > div:last-child {
    flex: 1;
}