/* =========================================================
   SD STUDIO
   MAIN STYLESHEET
========================================================= */


/* =========================================================
   COLOR PALETTE

   Primary Background   : #0B1020
   Secondary Background : #111827
   Card / Surface        : #172033
   Primary Blue          : #3B82F6
   Hover Blue            : #60A5FA
   Main Text             : #F8FAFC
   Secondary Text        : #94A3B8
   Border                : #263247
   Cyan Highlight        : #22D3EE
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background-color: #0B1020;

    color: #F8FAFC;

    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {
    width: 100%;

    padding: 20px 7%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background-color: #0B1020;

    border-bottom: 1px solid #263247;

    position: relative;
    z-index: 100;
}


/* Logo */

.navbar h1 {
    color: #F8FAFC;

    font-size: 28px;

    font-weight: 700;

    letter-spacing: -1px;

    cursor: pointer;

    transition: color 0.25s ease;
}

.navbar h1:hover {
    color: #60A5FA;
}


/* Navigation */

.navbar nav ul {
    display: flex;

    align-items: center;

    gap: 32px;

    list-style: none;
}

.navbar nav ul li a {
    text-decoration: none;

    color: #94A3B8;

    font-size: 15px;

    font-weight: 500;

    transition: color 0.25s ease;
}

.navbar nav ul li a:hover {
    color: #60A5FA;
}


/* Active navigation */

.navbar nav ul li a.active {
    color: #3B82F6;
}


/* =========================================================
   HOME HERO
========================================================= */

.hero {
    min-height: calc(100vh - 145px);

    display: flex;

    justify-content: center;

    align-items: center;

    text-align: center;

    padding: 60px 7%;

    position: relative;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 45%,
            rgba(59, 130, 246, 0.15),
            transparent 40%
        );
}


/* Hero content */

.hero > div {
    max-width: 800px;

    position: relative;

    z-index: 1;
}


/* Hero heading */

.hero h2 {
    font-size: clamp(42px, 6vw, 72px);

    line-height: 1.05;

    letter-spacing: -2px;

    margin-bottom: 24px;

    color: #F8FAFC;
}


/* Blue highlighted text */

.hero h2 span {
    color: #3B82F6;
}


/* Hero paragraph */

.hero p {
    max-width: 600px;

    margin: 0 auto 35px;

    font-size: 18px;

    line-height: 1.7;

    color: #94A3B8;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.cta-button {
    display: inline-block;

    padding: 14px 26px;

    background-color: #3B82F6;

    color: #F8FAFC;

    text-decoration: none;

    font-size: 15px;

    font-weight: 600;

    border-radius: 8px;

    box-shadow:
        0 8px 25px rgba(59, 130, 246, 0.25);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.cta-button:hover {
    background-color: #60A5FA;

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(59, 130, 246, 0.35);
}

.cta-button:active {
    transform: translateY(-1px);
}


/* =========================================================
   SERVICES PAGE
========================================================= */

.services {
    min-height: calc(100vh - 145px);

    padding: 90px 7%;

    background-color: #0B1020;
}


/* Services heading */

.services-header {
    max-width: 750px;

    margin: 0 auto 65px;

    text-align: center;
}


/* Small cyan text */

.services-header > p:first-child {
    margin-bottom: 15px;

    color: #22D3EE;

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 3px;

    text-transform: uppercase;
}


/* Services title */

.services-header h2 {
    margin-bottom: 20px;

    color: #F8FAFC;

    font-size: clamp(42px, 6vw, 64px);

    line-height: 1.05;

    letter-spacing: -2px;
}


/* Blue word */

.services-header h2 span {
    color: #3B82F6;
}


/* Services description */

.services-header p:last-child {
    max-width: 600px;

    margin: 0 auto;

    color: #94A3B8;

    font-size: 17px;

    line-height: 1.7;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-container {
    max-width: 1200px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}


/* =========================================================
   SERVICE CARD
========================================================= */

.service-card {
    position: relative;

    min-height: 270px;

    padding: 35px 30px;

    display: flex;

    flex-direction: column;

    background-color: #172033;

    border: 1px solid #263247;

    border-radius: 12px;

    overflow: hidden;

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* Blue top line */

.service-card::before {
    content: "";

    position: absolute;

    top: 0;

    left: 0;

    width: 100%;

    height: 3px;

    background-color: #3B82F6;

    transform: scaleX(0);

    transform-origin: left;

    transition: transform 0.3s ease;
}


/* Blue glow */

.service-card::after {
    content: "";

    position: absolute;

    width: 120px;

    height: 120px;

    top: -60px;

    right: -60px;

    background-color: #3B82F6;

    opacity: 0;

    border-radius: 50%;

    filter: blur(45px);

    transition: opacity 0.3s ease;
}


/* Card hover */

.service-card:hover {
    transform: translateY(-8px);

    border-color: #3B82F6;

    box-shadow:
        0 15px 40px rgba(59, 130, 246, 0.15);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 0.15;
}


/* =========================================================
   SERVICE NUMBER
========================================================= */

.service-number {
    display: inline-block;

    margin-bottom: 28px;

    color: #3B82F6;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 2px;
}


/* =========================================================
   SERVICE TITLE
========================================================= */

.service-card h3 {
    margin-bottom: 15px;

    color: #F8FAFC;

    font-size: 22px;

    line-height: 1.3;

    font-weight: 600;
}


/* =========================================================
   SERVICE DESCRIPTION
========================================================= */

.service-card p {
    margin-bottom: 25px;

    color: #94A3B8;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   SERVICE LINK
========================================================= */

.service-card a {
    margin-top: auto;

    display: inline-block;

    color: #60A5FA;

    text-decoration: none;

    font-size: 14px;

    font-weight: 600;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.service-card a:hover {
    color: #F8FAFC;

    transform: translateX(5px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    padding: 20px 7%;

    text-align: center;

    background-color: #111827;

    border-top: 1px solid #263247;

    color: #94A3B8;

    font-size: 13px;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .services {
        padding: 75px 5%;
    }

    .services-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    /* Navbar */

    .navbar {
        padding: 18px 5%;

        flex-direction: column;

        gap: 18px;
    }

    .navbar h1 {
        font-size: 25px;
    }

    .navbar nav ul {
        gap: 20px;
    }

    .navbar nav ul li a {
        font-size: 14px;
    }


    /* Hero */

    .hero {
        min-height: calc(100vh - 180px);

        padding: 50px 5%;
    }

    .hero h2 {
        font-size: 44px;
    }

    .hero p {
        font-size: 16px;
    }


    /* Services */

    .services {
        padding: 65px 5%;
    }

    .services-header h2 {
        font-size: 48px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 600px) {

    .services-container {
        grid-template-columns: 1fr;

        gap: 18px;
    }

    .service-card {
        min-height: 250px;

        padding: 30px 25px;
    }

    .services-header {
        margin-bottom: 45px;
    }

    .services-header h2 {
        font-size: 42px;
    }

    .services-header p:last-child {
        font-size: 15px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .navbar {
        padding: 18px 4%;
    }

    .navbar nav ul {
        gap: 14px;
    }

    .navbar nav ul li a {
        font-size: 13px;
    }


    .hero h2 {
        font-size: 38px;
    }

    .hero p {
        font-size: 15px;
    }


    .cta-button {
        width: 100%;

        max-width: 280px;
    }


    .services {
        padding: 50px 20px;
    }

    .services-header h2 {
        font-size: 38px;
    }

    .service-card h3 {
        font-size: 20px;
    }

    .service-card p {
        font-size: 14px;
    }
}

/* =========================================================
   SD STUDIO — POLISHED RESPONSIVE LAYER
   Keeps the existing palette and design language.
========================================================= */

:root {
    --sd-bg: #0B1020;
    --sd-surface: #111827;
    --sd-card: #172033;
    --sd-blue: #3B82F6;
    --sd-blue-hover: #60A5FA;
    --sd-text: #F8FAFC;
    --sd-muted: #94A3B8;
    --sd-border: #263247;
    --sd-cyan: #22D3EE;
}

* {
    -webkit-tap-highlight-color: transparent;
}

body {
    overflow-x: hidden;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    min-height: 76px;
    gap: 24px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    color: var(--sd-text);
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    width: 46px;
    height: 46px;
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--sd-border);
    box-shadow: 0 0 22px rgba(59, 130, 246, 0.18);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.brand:hover img {
    transform: rotate(-3deg) scale(1.04);
    border-color: var(--sd-blue);
}

.brand span {
    color: var(--sd-text);
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.7px;
    white-space: nowrap;
}

.navbar nav ul li a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 7px 0;
    position: relative;
}

.navbar nav ul li a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: var(--sd-blue);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
    transform: scaleX(1);
}

button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--sd-cyan);
    outline-offset: 3px;
}

img {
    max-width: 100%;
}

@media (max-width: 768px) {
    .navbar {
        min-height: auto;
        padding: 14px 5%;
        flex-direction: column;
        gap: 12px;
    }

    .brand img {
        width: 42px;
        height: 42px;
    }

    .brand span {
        font-size: 21px;
    }

    .navbar nav {
        width: 100%;
    }

    .navbar nav ul {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 4px 20px;
    }

    .navbar nav ul li a {
        font-size: 13px;
        min-height: 38px;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 4% 10px;
        gap: 8px;
    }

    .brand img {
        width: 38px;
        height: 38px;
    }

    .brand span {
        font-size: 19px;
    }

    .navbar nav ul {
        gap: 2px 13px;
    }

    .navbar nav ul li a {
        font-size: 12px;
        min-height: 34px;
    }

    footer {
        padding: 18px 5%;
        line-height: 1.6;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* Services — touch-friendly cards */
.service-card {
    cursor: default;
}

.service-card a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
}

@media (max-width: 768px) {
    .services {
        min-height: auto;
        padding: 65px 5%;
    }

    .services-header {
        margin-bottom: 45px;
    }

    .services-header h2 {
        font-size: clamp(40px, 10vw, 52px);
    }

    .services-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .service-card {
        min-height: 230px;
        padding: 28px 24px;
    }
}

@media (max-width: 480px) {
    .services {
        padding: 50px 20px;
    }

    .services-header h2 {
        font-size: 38px;
    }

    .service-card {
        min-height: 220px;
        padding: 27px 22px;
    }
}
