/* ============================================================
   KELLY OVITA PORTFOLIO
   MAIN STYLESHEET
   ============================================================ */


/* ============================================================
   1. ROOT VARIABLES
   ============================================================ */

:root {

    --primary: #1683ff;
    --primary-dark: #0b66cc;
    --primary-light: #4da3ff;

    --background: #07090d;
    --background-secondary: #0b0f15;
    --surface: #10151d;
    --surface-light: #151c26;
    --surface-hover: #192330;

    --text: #f5f7fa;
    --text-secondary: #b6beca;
    --text-muted: #7d8795;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.14);

    --success: #25d366;

    --white: #ffffff;
    --black: #000000;

    --container: 1180px;

    --header-height: 82px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --shadow-sm: 0 8px 25px rgba(0, 0, 0, 0.15);
    --shadow-md: 0 15px 45px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 25px 70px rgba(0, 0, 0, 0.35);

    --transition: all 0.3s ease;

}


/* ============================================================
   2. LIGHT THEME
   ============================================================ */

body.light-theme {

    --background: #f5f7fa;
    --background-secondary: #edf1f5;

    --surface: #ffffff;
    --surface-light: #f4f7fa;
    --surface-hover: #eaf0f6;

    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;

    --border: rgba(15, 23, 42, 0.09);
    --border-light: rgba(15, 23, 42, 0.15);

    --shadow-sm: 0 8px 25px rgba(15, 23, 42, 0.07);
    --shadow-md: 0 15px 45px rgba(15, 23, 42, 0.10);
    --shadow-lg: 0 25px 70px rgba(15, 23, 42, 0.14);

}


/* ============================================================
   3. RESET
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {

    font-family: "Inter", sans-serif;

    background: var(--background);

    color: var(--text);

    line-height: 1.7;

    overflow-x: hidden;

    transition:
        background 0.3s ease,
        color 0.3s ease;

}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

ul {
    list-style: none;
}

::selection {
    background: var(--primary);
    color: var(--white);
}


/* ============================================================
   4. CONTAINER
   ============================================================ */

.container {

    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;

}


/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {

    font-family: "Space Grotesk", sans-serif;

    line-height: 1.15;

    color: var(--text);

}

p {
    color: var(--text-secondary);
}


/* ============================================================
   6. PRELOADER
   ============================================================ */

.preloader {

    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--background);

    transition:
        opacity 0.5s ease,
        visibility 0.5s ease;

}

.preloader.hidden {

    opacity: 0;

    visibility: hidden;

}

.loader-content {
    text-align: center;
}

.loader-logo {

    width: 70px;
    height: 70px;

    margin: 0 auto 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid var(--primary);

    border-radius: 18px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 28px;

    font-weight: 800;

    color: var(--text);

}

.loader-logo span {
    color: var(--primary);
}

.loader-line {

    width: 150px;
    height: 3px;

    margin: auto;

    overflow: hidden;

    background: var(--surface-light);

    border-radius: 10px;

}

.loader-line span {

    display: block;

    width: 45%;

    height: 100%;

    background: var(--primary);

    animation: loader 1.2s infinite ease-in-out;

}

.loader-content p {

    margin-top: 12px;

    font-size: 12px;

    color: var(--text-muted);

    letter-spacing: 1px;

    text-transform: uppercase;

}

@keyframes loader {

    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }

}


/* ============================================================
   7. HEADER
   ============================================================ */

.site-header {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    z-index: 1000;

    height: var(--header-height);

    background: rgba(7, 9, 13, 0.75);

    border-bottom: 1px solid transparent;

    backdrop-filter: blur(18px);

    transition: var(--transition);

}

body.light-theme .site-header {
    background: rgba(255, 255, 255, 0.78);
}

.site-header.scrolled {

    background: rgba(7, 9, 13, 0.94);

    border-bottom-color: var(--border);

    box-shadow: var(--shadow-sm);

}

body.light-theme .site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
}

.navbar {

    height: var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;

}


/* ============================================================
   LOGO
   ============================================================ */

.site-logo {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    flex-shrink: 0;

}

.logo-mark {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1.5px solid var(--primary);

    border-radius: 11px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 18px;

    font-weight: 800;

    color: var(--text);

    background: rgba(22, 131, 255, 0.06);

}

.logo-mark span {
    color: var(--primary);
}

.logo-text {

    display: flex;

    flex-direction: column;

    line-height: 1.05;

}

.logo-text strong {

    font-family: "Space Grotesk", sans-serif;

    font-size: 17px;

    font-weight: 700;

}

.logo-text span {

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 2px;

    text-transform: uppercase;

}


/* ============================================================
   NAVIGATION
   ============================================================ */

.nav-wrapper {

    display: flex;

    align-items: center;

    gap: 35px;

}

.nav-menu {

    display: flex;

    align-items: center;

    gap: 7px;

}

.nav-menu a {

    position: relative;

    display: inline-flex;

    align-items: center;

    height: 42px;

    padding: 0 13px;

    color: var(--text-secondary);

    font-size: 13px;

    font-weight: 500;

    transition: var(--transition);

}

.nav-menu a::after {

    content: "";

    position: absolute;

    left: 13px;
    right: 13px;

    bottom: 3px;

    height: 2px;

    background: var(--primary);

    transform: scaleX(0);

    transform-origin: center;

    transition: transform 0.3s ease;

}

.nav-menu a:hover,
.nav-menu a.active {

    color: var(--text);

}

.nav-menu a.active {
    color: var(--primary-light);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
}


/* ============================================================
   NAV ACTIONS
   ============================================================ */

.nav-actions {

    display: flex;

    align-items: center;

    gap: 12px;

}

.theme-toggle {

    width: 39px;
    height: 39px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    background: var(--surface);

    color: var(--text-secondary);

    transition: var(--transition);

}

.theme-toggle:hover {

    color: var(--primary);

    border-color: var(--primary);

    transform: rotate(15deg);

}

.nav-contact-btn {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 10px 17px;

    border: 1px solid var(--primary);

    border-radius: 8px;

    background: var(--primary);

    color: var(--white);

    font-size: 12px;

    font-weight: 600;

    transition: var(--transition);

}

.nav-contact-btn:hover {

    background: transparent;

    color: var(--primary);

    transform: translateY(-2px);

}

.nav-contact-btn i {
    font-size: 10px;
}


/* ============================================================
   MOBILE MENU BUTTON
   ============================================================ */

.mobile-menu-toggle {

    display: none;

    width: 43px;
    height: 43px;

    padding: 9px;

    border: 1px solid var(--border);

    border-radius: 9px;

    background: var(--surface);

}

.mobile-menu-toggle span {

    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--text);

    border-radius: 2px;

    transition: var(--transition);

}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* ============================================================
   8. HERO
   ============================================================ */

.hero {

    position: relative;

    min-height: 100vh;

    display: flex;

    align-items: center;

    padding:
        calc(var(--header-height) + 80px)
        0
        80px;

    overflow: hidden;

}

.hero::before {

    content: "";

    position: absolute;

    width: 650px;
    height: 650px;

    top: -250px;
    left: -220px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 131, 255, 0.14) 0%,
            rgba(22, 131, 255, 0) 70%
        );

    pointer-events: none;

}

.hero::after {

    content: "";

    position: absolute;

    width: 550px;
    height: 550px;

    right: -220px;
    bottom: -250px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(22, 131, 255, 0.09) 0%,
            rgba(22, 131, 255, 0) 70%
        );

    pointer-events: none;

}

.hero-container {

    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 80px;

}

.hero-content {
    max-width: 650px;
}

.hero-badge {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding: 7px 13px;

    margin-bottom: 23px;

    border: 1px solid var(--border);

    border-radius: 30px;

    background: var(--surface);

    color: var(--text-secondary);

    font-size: 11px;

    font-weight: 500;

}

.status-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--success);

    box-shadow:
        0 0 0 4px rgba(37, 211, 102, 0.08);

}

.hero-intro {

    margin-bottom: 3px;

    color: var(--primary-light);

    font-size: 14px;

    font-weight: 600;

    letter-spacing: 1px;

    text-transform: uppercase;

}

.hero h1 {

    margin-bottom: 12px;

    font-size: clamp(48px, 6vw, 82px);

    font-weight: 800;

    letter-spacing: -3px;

}

.hero h1 span {
    color: var(--primary);
}

.hero h2 {

    min-height: 42px;

    margin-bottom: 23px;

    color: var(--text-secondary);

    font-size: clamp(21px, 2.5vw, 29px);

    font-weight: 500;

}

.typing-text {
    color: var(--text);
}

.hero-description {

    max-width: 600px;

    margin-bottom: 32px;

    font-size: 15px;

    line-height: 1.9;

}

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-bottom: 30px;

}


/* ============================================================
   BUTTONS
   ============================================================ */

.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    min-height: 48px;

    padding: 0 21px;

    border: 1px solid transparent;

    border-radius: 9px;

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);

}

.btn-primary {

    background: var(--primary);

    color: var(--white);

    border-color: var(--primary);

}

.btn-primary:hover {

    background: var(--primary-dark);

    border-color: var(--primary-dark);

    transform: translateY(-3px);

    box-shadow:
        0 12px 30px rgba(22, 131, 255, 0.25);

}

.btn-outline {

    border-color: var(--border-light);

    background: transparent;

    color: var(--text);

}

.btn-outline:hover {

    border-color: var(--primary);

    color: var(--primary);

    transform: translateY(-3px);

}

.btn i {
    font-size: 11px;
}


/* ============================================================
   HERO SOCIALS
   ============================================================ */

.hero-socials {

    display: flex;

    align-items: center;

    gap: 8px;

}

.hero-socials a {

    width: 36px;
    height: 36px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 50%;

    color: var(--text-muted);

    font-size: 13px;

    transition: var(--transition);

}

.hero-socials a:hover {

    border-color: var(--primary);

    background: var(--primary);

    color: var(--white);

    transform: translateY(-3px);

}


/* ============================================================
   HERO VISUAL
   ============================================================ */

.hero-visual {

    position: relative;

    min-height: 500px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.hero-visual::before {

    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    border: 1px solid rgba(22, 131, 255, 0.12);

    border-radius: 50%;

}

.hero-visual::after {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    border: 1px dashed rgba(22, 131, 255, 0.08);

    border-radius: 50%;

}

.code-card {

    position: relative;

    z-index: 2;

    width: min(100%, 500px);

    overflow: hidden;

    border: 1px solid var(--border-light);

    border-radius: 16px;

    background: #0d1117;

    box-shadow: var(--shadow-lg);

    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);

}

.code-header {

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 0 15px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    background: #11161d;

}

.code-dots {

    display: flex;

    gap: 6px;

}

.code-dots span {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #454d58;

}

.code-title {

    color: #7e8997;

    font-size: 10px;

}

.code-body {

    padding: 25px 20px;

    font-family: "Courier New", monospace;

    font-size: 12px;

    line-height: 2;

}

.code-body > div {
    white-space: nowrap;
}

.code-number {

    display: inline-block;

    width: 28px;

    color: #46505d;

}

.code-keyword {
    color: #c792ea;
}

.code-string {
    color: #a5d6a7;
}

.code-symbol {
    color: #89ddff;
}

.code-bracket {
    color: #89ddff;
}

.code-indent {
    padding-left: 28px;
}


/* ============================================================
   FLOATING CARDS
   ============================================================ */

.floating-card {

    position: absolute;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 12px 15px;

    border: 1px solid var(--border-light);

    border-radius: 11px;

    background: rgba(16, 21, 29, 0.94);

    box-shadow: var(--shadow-md);

    backdrop-filter: blur(10px);

}

.floating-card i {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(22, 131, 255, 0.12);

    color: var(--primary);

    font-size: 13px;

}

.floating-card div {

    display: flex;

    flex-direction: column;

}

.floating-card strong {

    color: var(--text);

    font-family: "Inter", sans-serif;

    font-size: 10px;

    font-weight: 600;

}

.floating-card small {

    margin-top: 2px;

    color: var(--text-muted);

    font-size: 8px;

}

.floating-card-one {

    top: 35px;
    right: -5px;

    animation: floatOne 5s ease-in-out infinite;

}

.floating-card-two {

    left: -25px;
    bottom: 50px;

    animation: floatTwo 6s ease-in-out infinite;

}

@keyframes floatOne {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }

}

@keyframes floatTwo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(10px);
    }

}


/* ============================================================
   HERO SCROLL
   ============================================================ */

.hero-scroll {

    position: absolute;

    left: 50%;
    bottom: 25px;

    transform: translateX(-50%);

}

.hero-scroll a {

    display: flex;

    align-items: center;

    gap: 8px;

    color: var(--text-muted);

    font-size: 10px;

    letter-spacing: 0.5px;

    transition: var(--transition);

}

.hero-scroll a:hover {
    color: var(--primary);
}

.hero-scroll i {

    animation: scrollArrow 1.5s infinite;

}

@keyframes scrollArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(5px);
    }

}


/* ============================================================
   9. STATS
   ============================================================ */

.stats-section {

    padding: 25px 0;

    border-top: 1px solid var(--border);

    border-bottom: 1px solid var(--border);

    background: var(--background-secondary);

}

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

}

.stat-item {

    display: flex;

    align-items: center;

    gap: 13px;

    padding: 17px 25px;

    border-right: 1px solid var(--border);

}

.stat-item:last-child {
    border-right: 0;
}

.stat-icon {

    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background: rgba(22, 131, 255, 0.08);

    color: var(--primary);

    font-size: 14px;

}

.stat-item div:last-child {

    display: flex;

    flex-direction: column;

}

.stat-item strong {

    color: var(--text);

    font-family: "Space Grotesk", sans-serif;

    font-size: 14px;

}

.stat-item span {

    color: var(--text-muted);

    font-size: 9px;

}


/* ============================================================
   10. GENERAL SECTIONS
   ============================================================ */

.section {

    position: relative;

    padding: 110px 0;

}

.section-heading {

    max-width: 720px;

    margin-bottom: 55px;

}

.section-heading.center {

    margin-left: auto;
    margin-right: auto;

    text-align: center;

}

.section-label {

    display: inline-block;

    margin-bottom: 13px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 2px;

}

.section-heading h2 {

    margin-bottom: 18px;

    font-size: clamp(34px, 4vw, 48px);

    letter-spacing: -1.5px;

}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading p {

    max-width: 650px;

    font-size: 14px;

    line-height: 1.8;

}

.section-heading.center p {
    margin-left: auto;
    margin-right: auto;
}

.section-action {

    margin-top: 50px;

    text-align: center;

}

.text-link {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 600;

    transition: var(--transition);

}

.text-link:hover {
    gap: 14px;
}

.text-link i {
    font-size: 10px;
}


/* ============================================================
   11. ABOUT
   ============================================================ */

.about-preview {
    background: var(--background);
}

.about-grid {

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 90px;

    align-items: center;

}

.about-visual {

    position: relative;

    min-height: 400px;

    display: flex;

    align-items: center;

    justify-content: center;

}

.about-card-main {

    width: 310px;
    height: 350px;

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    border: 1px solid var(--border-light);

    border-radius: 25px;

    background:
        linear-gradient(
            145deg,
            var(--surface-light),
            var(--surface)
        );

    box-shadow: var(--shadow-md);

    overflow: hidden;

}

.about-card-main::before {

    content: "";

    position: absolute;

    width: 260px;
    height: 260px;

    top: -120px;
    right: -120px;

    border-radius: 50%;

    border: 1px solid rgba(22, 131, 255, 0.15);

}

.about-card-main::after {

    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    bottom: -100px;
    left: -90px;

    border-radius: 50%;

    border: 1px solid rgba(22, 131, 255, 0.12);

}

.about-logo {

    position: relative;

    z-index: 1;

    width: 120px;
    height: 120px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 2px solid var(--primary);

    border-radius: 30px;

    font-family: "Space Grotesk", sans-serif;

    font-size: 45px;

    font-weight: 800;

    color: var(--text);

    background: rgba(22, 131, 255, 0.05);

    box-shadow:
        0 0 50px rgba(22, 131, 255, 0.10);

}

.about-logo span {
    color: var(--primary);
}

.about-card-content {

    position: relative;

    z-index: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    margin-top: 25px;

}

.about-card-content span {

    color: var(--primary);

    font-size: 10px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

}

.about-card-content strong {

    margin-top: 5px;

    font-size: 21px;

}

.about-card-content small {

    margin-top: 4px;

    color: var(--text-muted);

    font-size: 9px;

}

.experience-badge {

    position: absolute;

    right: 20px;
    bottom: 25px;

    width: 100px;
    height: 100px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-light);

    border-radius: 50%;

    background: var(--surface);

    box-shadow: var(--shadow-md);

}

.experience-badge strong {

    color: var(--primary);

    font-family: "Space Grotesk", sans-serif;

    font-size: 23px;

}

.experience-badge span {

    color: var(--text-muted);

    font-size: 8px;

    text-transform: uppercase;

}

.about-content {

    max-width: 650px;

}

.about-lead {

    margin-bottom: 20px;

    color: var(--text);

    font-size: 18px;

    line-height: 1.7;

}

.about-content > p:not(.about-lead) {

    margin-bottom: 15px;

    font-size: 13px;

}

.about-points {

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 12px;

    margin: 28px 0;

}

.about-point {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text-secondary);

    font-size: 12px;

}

.about-point i {

    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(22, 131, 255, 0.1);

    color: var(--primary);

    font-size: 8px;

}


/* ============================================================
   12. SERVICES
   ============================================================ */

.services-preview {

    background: var(--background-secondary);

}

.services-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 18px;

}

.service-card {

    position: relative;

    padding: 30px;

    min-height: 280px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    overflow: hidden;

    transition: var(--transition);

}

.service-card:hover {

    border-color: rgba(22, 131, 255, 0.4);

    transform: translateY(-7px);

    box-shadow: var(--shadow-md);

}

.service-card::after {

    content: "";

    position: absolute;

    width: 140px;
    height: 140px;

    right: -70px;
    bottom: -70px;

    border-radius: 50%;

    border: 1px solid rgba(22, 131, 255, 0.08);

    transition: var(--transition);

}

.service-card:hover::after {

    transform: scale(1.3);

    border-color: rgba(22, 131, 255, 0.15);

}

.service-number {

    position: absolute;

    top: 20px;
    right: 25px;

    color: var(--text-muted);

    font-family: "Space Grotesk", sans-serif;

    font-size: 11px;

    opacity: 0.5;

}

.service-icon {

    width: 50px;
    height: 50px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 23px;

    border: 1px solid rgba(22, 131, 255, 0.15);

    border-radius: 12px;

    background: rgba(22, 131, 255, 0.07);

    color: var(--primary);

    font-size: 18px;

    transition: var(--transition);

}

.service-card:hover .service-icon {

    background: var(--primary);

    color: var(--white);

    transform: rotate(-5deg);

}

.service-card h3 {

    margin-bottom: 12px;

    font-size: 18px;

}

.service-card p {

    margin-bottom: 20px;

    font-size: 12px;

    line-height: 1.8;

}

.service-card a {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: var(--primary);

    font-size: 10px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}

.service-card a i {

    font-size: 9px;

    transition: var(--transition);

}

.service-card a:hover i {
    transform: translateX(4px);
}


/* ============================================================
   13. PROJECTS
   ============================================================ */

.projects-preview {

    background: var(--background);

}

.projects-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 22px;

}

.project-card {

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

    transition: var(--transition);

}

.project-card:hover {

    border-color: rgba(22, 131, 255, 0.35);

    transform: translateY(-6px);

    box-shadow: var(--shadow-md);

}

.project-image {

    position: relative;

    min-height: 245px;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0c1118,
            #151d28
        );

}

.project-image::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(22, 131, 255, 0.14),
            transparent 55%
        );

}

.project-placeholder {

    position: relative;

    z-index: 1;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 8px;

}

.project-placeholder i {

    width: 65px;
    height: 65px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(22, 131, 255, 0.25);

    border-radius: 18px;

    background: rgba(22, 131, 255, 0.08);

    color: var(--primary);

    font-size: 24px;

}

.project-placeholder strong {

    font-size: 19px;

}

.project-placeholder small {

    color: var(--text-muted);

    font-size: 10px;

}

.project-overlay {

    position: absolute;

    top: 15px;
    left: 15px;

    z-index: 2;

    padding: 6px 10px;

    border: 1px solid var(--border);

    border-radius: 6px;

    background: rgba(7, 9, 13, 0.75);

    color: var(--text-secondary);

    font-size: 9px;

    backdrop-filter: blur(8px);

}

.project-content {

    padding: 25px;

}

.project-meta {

    display: flex;

    justify-content: space-between;

    margin-bottom: 10px;

}

.project-meta span {

    color: var(--primary);

    font-size: 9px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}

.project-meta span:last-child {

    color: var(--text-muted);

}

.project-content h3 {

    margin-bottom: 10px;

    font-size: 19px;

}

.project-content p {

    margin-bottom: 18px;

    font-size: 12px;

    line-height: 1.8;

}

.project-tech {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

}

.project-tech span {

    padding: 5px 8px;

    border: 1px solid var(--border);

    border-radius: 5px;

    color: var(--text-muted);

    font-size: 8px;

}


/* ============================================================
   14. EXPERIENCE
   ============================================================ */

.experience-preview {

    background: var(--background-secondary);

}

.experience-list {

    max-width: 900px;

    margin: auto;

}

.experience-item {

    display: grid;

    grid-template-columns: 140px 35px 1fr;

    gap: 20px;

    min-height: 180px;

}

.experience-date {

    padding-top: 5px;

    text-align: right;

}

.experience-date span {

    display: block;

    color: var(--text);

    font-family: "Space Grotesk", sans-serif;

    font-size: 13px;

    font-weight: 600;

}

.experience-date small {

    color: var(--text-muted);

    font-size: 9px;

}

.experience-line {

    position: relative;

    display: flex;

    justify-content: center;

}

.experience-line::before {

    content: "";

    position: absolute;

    top: 8px;
    bottom: -8px;

    width: 1px;

    background: var(--border-light);

}

.experience-item:last-child .experience-line::before {
    display: none;
}

.experience-line span {

    position: relative;

    z-index: 1;

    width: 13px;
    height: 13px;

    margin-top: 4px;

    border: 3px solid var(--background-secondary);

    border-radius: 50%;

    background: var(--primary);

    box-shadow:
        0 0 0 3px rgba(22, 131, 255, 0.15);

}

.experience-content {

    padding: 0 0 45px;

}

.experience-type {

    color: var(--primary);

    font-size: 9px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: 1px;

}

.experience-content h3 {

    margin: 8px 0 10px;

    font-size: 21px;

}

.experience-content p {

    max-width: 650px;

    font-size: 12px;

    line-height: 1.8;

}


/* ============================================================
   15. CTA
   ============================================================ */

.cta-section {

    padding: 80px 0;

    background: var(--background);

}

.cta-card {

    position: relative;

    min-height: 330px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 50px;

    padding: 65px;

    border: 1px solid rgba(22, 131, 255, 0.2);

    border-radius: var(--radius-xl);

    background:
        linear-gradient(
            135deg,
            rgba(22, 131, 255, 0.10),
            var(--surface)
        );

    overflow: hidden;

}

.cta-content {

    position: relative;

    z-index: 2;

    max-width: 620px;

}

.cta-content h2 {

    margin-bottom: 15px;

    font-size: clamp(32px, 4vw, 48px);

    letter-spacing: -1px;

}

.cta-content h2 span {
    color: var(--primary);
}

.cta-content p {

    max-width: 560px;

    margin-bottom: 25px;

    font-size: 13px;

}

.cta-decoration {

    position: relative;

    width: 280px;
    height: 230px;

    flex-shrink: 0;

}

.cta-circle {

    position: absolute;

    border-radius: 50%;

    border: 1px solid rgba(22, 131, 255, 0.2);

}

.circle-one {

    width: 230px;
    height: 230px;

    right: 0;
    top: 0;

}

.circle-two {

    width: 150px;
    height: 150px;

    right: 40px;
    top: 40px;

}

.cta-decoration > i {

    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    color: var(--primary);

    font-size: 42px;

}


/* ============================================================
   16. FOOTER CTA
   ============================================================ */

.footer-cta {

    padding: 70px 0;

    border-top: 1px solid var(--border);

    background: var(--background-secondary);

}

.footer-cta-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}

.footer-cta h2 {

    margin-bottom: 10px;

    font-size: clamp(30px, 4vw, 42px);

}

.footer-cta h2 span {
    color: var(--primary);
}

.footer-cta p {

    max-width: 550px;

    font-size: 12px;

}


/* ============================================================
   17. FOOTER
   ============================================================ */

.site-footer {

    background: #05070a;

    border-top: 1px solid var(--border);

}

body.light-theme .site-footer {
    background: #111827;
}

.footer-main {

    display: grid;

    grid-template-columns:
        1.5fr
        0.8fr
        1fr
        1fr;

    gap: 60px;

    padding: 75px 0 60px;

}

.footer-brand {

    max-width: 310px;

}

.footer-brand .site-logo {
    margin-bottom: 20px;
}

.footer-brand p {

    margin-bottom: 22px;

    color: var(--text-muted);

    font-size: 11px;

    line-height: 1.8;

}

.footer-socials {

    display: flex;

    gap: 8px;

}

.footer-socials a {

    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.08);

    border-radius: 50%;

    color: #8b95a3;

    font-size: 11px;

    transition: var(--transition);

}

.footer-socials a:hover {

    background: var(--primary);

    border-color: var(--primary);

    color: var(--white);

    transform: translateY(-3px);

}

.footer-column h3 {

    margin-bottom: 20px;

    color: var(--white);

    font-size: 13px;

}

.footer-column ul {

    display: flex;

    flex-direction: column;

    gap: 10px;

}

.footer-column li a {

    color: #8b95a3;

    font-size: 10px;

    transition: var(--transition);

}

.footer-column li a:hover {

    padding-left: 4px;

    color: var(--primary-light);

}

.footer-contact ul {
    gap: 18px;
}

.footer-contact li {

    display: flex;

    align-items: flex-start;

    gap: 12px;

}

.footer-contact li > i {

    margin-top: 3px;

    color: var(--primary);

    font-size: 12px;

}

.footer-contact li div {

    display: flex;

    flex-direction: column;

}

.footer-contact li span {

    margin-bottom: 2px;

    color: #66707e;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}

.footer-contact li a,
.footer-contact li p {

    color: #a2abb6;

    font-size: 10px;

}

.footer-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 0;

    border-top: 1px solid rgba(255, 255, 255, 0.06);

}

.footer-bottom p {

    color: #5f6874;

    font-size: 9px;

}

.footer-bottom-links {

    display: flex;

    gap: 20px;

}

.footer-bottom-links a {

    color: #6c7581;

    font-size: 9px;

    transition: var(--transition);

}

.footer-bottom-links a:hover {
    color: var(--primary);
}


/* ============================================================
   18. BACK TO TOP
   ============================================================ */

.back-to-top {

    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 900;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 1px solid var(--border);

    border-radius: 10px;

    background: var(--surface);

    color: var(--text);

    box-shadow: var(--shadow-sm);

    opacity: 0;

    visibility: hidden;

    transform: translateY(15px);

    transition: var(--transition);

}

.back-to-top.show {

    opacity: 1;

    visibility: visible;

    transform: translateY(0);

}

.back-to-top:hover {

    border-color: var(--primary);

    background: var(--primary);

    color: var(--white);

    transform: translateY(-3px);

}


/* ============================================================
   19. SCROLL REVEAL
   ============================================================ */

.reveal {

    opacity: 0;

    transform: translateY(25px);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease;

}

.reveal.revealed {

    opacity: 1;

    transform: translateY(0);

}


/* ============================================================
   20. PAGE HERO
   Used by About, Services, Projects and Contact pages
   ============================================================ */

.page-hero {

    position: relative;

    padding:
        calc(var(--header-height) + 90px)
        0
        80px;

    background: var(--background-secondary);

    border-bottom: 1px solid var(--border);

    overflow: hidden;

}

.page-hero::after {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -150px;
    top: -200px;

    border: 1px solid rgba(22, 131, 255, 0.10);

    border-radius: 50%;

}

.page-hero-content {

    position: relative;

    z-index: 1;

    max-width: 750px;

}

.page-hero h1 {

    margin-bottom: 18px;

    font-size: clamp(40px, 6vw, 65px);

    letter-spacing: -2px;

}

.page-hero h1 span {
    color: var(--primary);
}

.page-hero p {

    max-width: 650px;

    font-size: 14px;

}

.breadcrumb {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 25px;

    color: var(--text-muted);

    font-size: 9px;

}

.breadcrumb a {
    color: var(--primary);
}


/* ============================================================
   21. GENERAL CONTENT CARDS
   ============================================================ */

.content-card {

    padding: 30px;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

}

.content-card + .content-card {
    margin-top: 18px;
}


/* ============================================================
   22. SKILLS
   ============================================================ */

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

}

.skill-card {

    padding: 22px;

    border: 1px solid var(--border);

    border-radius: var(--radius-md);

    background: var(--surface);

}

.skill-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 11px;

}

.skill-name {

    display: flex;

    align-items: center;

    gap: 9px;

    color: var(--text);

    font-size: 12px;

    font-weight: 600;

}

.skill-name i {
    color: var(--primary);
}

.skill-percentage {

    color: var(--text-muted);

    font-size: 10px;

}

.skill-bar {

    height: 5px;

    overflow: hidden;

    border-radius: 10px;

    background: var(--surface-light);

}

.skill-progress {

    height: 100%;

    width: 0;

    border-radius: 10px;

    background: var(--primary);

    transition: width 1.2s ease;

}


/* ============================================================
   23. FORM STYLES
   ============================================================ */

.form-group {

    display: flex;

    flex-direction: column;

    gap: 7px;

}

.form-group label {

    color: var(--text-secondary);

    font-size: 11px;

    font-weight: 500;

}

.form-control {

    width: 100%;

    padding: 13px 15px;

    border: 1px solid var(--border);

    border-radius: 9px;

    outline: none;

    background: var(--surface);

    color: var(--text);

    font-size: 12px;

    transition: var(--transition);

}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-control:focus {

    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(22, 131, 255, 0.08);

}

textarea.form-control {

    min-height: 150px;

    resize: vertical;

}

.form-row {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 18px;

}


/* ============================================================
   24. ALERTS
   ============================================================ */

.alert {

    padding: 13px 15px;

    margin-bottom: 20px;

    border: 1px solid var(--border);

    border-radius: 9px;

    font-size: 11px;

}

.alert-success {

    border-color: rgba(37, 211, 102, 0.25);

    background: rgba(37, 211, 102, 0.07);

    color: #72e39a;

}

.alert-error {

    border-color: rgba(255, 75, 75, 0.25);

    background: rgba(255, 75, 75, 0.07);

    color: #ff8585;

}


/* ============================================================
   25. PROJECT DETAIL / PORTFOLIO
   ============================================================ */

.project-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}

.project-detail {

    overflow: hidden;

    border: 1px solid var(--border);

    border-radius: var(--radius-lg);

    background: var(--surface);

}

.project-detail-image {

    min-height: 220px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--surface-light);

}

.project-detail-content {

    padding: 25px;

}

.project-detail-content h3 {

    margin-bottom: 10px;

    font-size: 20px;

}

.project-detail-content p {

    font-size: 12px;

}


/* ============================================================
   26. UTILITY CLASSES
   ============================================================ */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary) !important;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}


/* ============================================================
   27. RESPONSIVE - TABLETS
   ============================================================ */

@media (max-width: 1000px) {

    .nav-wrapper {
        gap: 15px;
    }

    .nav-menu {
        gap: 0;
    }

    .nav-menu a {
        padding: 0 9px;
    }

    .nav-menu a::after {
        left: 9px;
        right: 9px;
    }

    .hero-container {

        grid-template-columns: 1fr;

        gap: 50px;

    }

    .hero-content {

        max-width: 750px;

        margin: auto;

        text-align: center;

    }

    .hero-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-socials {
        justify-content: center;
    }

    .hero-visual {
        min-height: 430px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(2) {
        border-right: 0;
    }

    .stat-item:nth-child(-n + 2) {
        border-bottom: 1px solid var(--border);
    }

    .about-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }

    .about-visual {
        max-width: 500px;
        margin: auto;
        width: 100%;
    }

    .about-content {
        max-width: 750px;
        margin: auto;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-main {

        grid-template-columns:
            repeat(2, 1fr);

    }

}


/* ============================================================
   28. RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 800px) {

    :root {
        --header-height: 72px;
    }

    .container {
        width: min(
            calc(100% - 30px),
            var(--container)
        );
    }

    .site-header {
        height: var(--header-height);
    }

    .navbar {
        height: var(--header-height);
    }

    .nav-wrapper {

        position: fixed;

        top: var(--header-height);

        left: 15px;
        right: 15px;

        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 20px;

        padding: 20px;

        border: 1px solid var(--border);

        border-radius: 15px;

        background: var(--surface);

        box-shadow: var(--shadow-lg);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition: var(--transition);

    }

    .nav-wrapper.open {

        opacity: 1;

        visibility: visible;

        transform: translateY(0);

    }

    .nav-menu {

        width: 100%;

        flex-direction: column;

        align-items: stretch;

    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {

        width: 100%;

        height: 48px;

        justify-content: flex-start;

        padding: 0 13px;

        border-radius: 8px;

    }

    .nav-menu a:hover,
    .nav-menu a.active {
        background: rgba(22, 131, 255, 0.07);
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-actions {

        width: 100%;

        justify-content: space-between;

        padding-top: 15px;

        border-top: 1px solid var(--border);

    }

    .nav-contact-btn {
        flex: 1;
        justify-content: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero {

        min-height: auto;

        padding:
            calc(var(--header-height) + 65px)
            0
            80px;

    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .hero-visual {
        min-height: 390px;
    }

    .code-card {
        transform: none;
    }

    .floating-card-one {
        right: -5px;
        top: 10px;
    }

    .floating-card-two {
        left: -5px;
        bottom: 15px;
    }

    .hero-scroll {
        display: none;
    }

    .section {
        padding: 80px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {

        flex-direction: column;

        align-items: flex-start;

        padding: 40px 30px;

    }

    .cta-decoration {
        display: none;
    }

    .footer-cta-content {

        flex-direction: column;

        align-items: flex-start;

    }

    .footer-main {
        gap: 40px;
    }

}


/* ============================================================
   29. RESPONSIVE - SMALL PHONES
   ============================================================ */

@media (max-width: 600px) {

    .container {
        width: calc(100% - 24px);
    }

    .logo-text {
        display: none;
    }

    .hero {
        padding-top: 125px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .hero h2 {
        font-size: 20px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-buttons {

        flex-direction: column;

        align-items: stretch;

    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .hero-visual::before {
        width: 270px;
        height: 270px;
    }

    .hero-visual::after {
        width: 340px;
        height: 340px;
    }

    .code-card {
        width: 100%;
    }

    .code-body {

        padding: 18px 10px;

        font-size: 9px;

        overflow-x: auto;

    }

    .code-number {
        width: 20px;
    }

    .code-indent {
        padding-left: 20px;
    }

    .floating-card {

        padding: 9px;

    }

    .floating-card i {

        width: 29px;
        height: 29px;

    }

    .floating-card strong {
        font-size: 8px;
    }

    .floating-card small {
        font-size: 7px;
    }

    .floating-card-one {
        right: -2px;
    }

    .floating-card-two {
        left: -2px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {

        border-right: 0;

        border-bottom: 1px solid var(--border);

    }

    .stat-item:last-child {
        border-bottom: 0;
    }

    .section-heading {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .about-visual {
        min-height: 350px;
    }

    .about-card-main {

        width: 270px;
        height: 310px;

    }

    .experience-badge {

        right: 0;

        width: 85px;
        height: 85px;

    }

    .about-points {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .project-image {
        min-height: 210px;
    }

    .experience-item {

        grid-template-columns:
            1fr 25px;

        gap: 10px;

    }

    .experience-date {

        grid-column: 1 / -1;

        text-align: left;

        padding-bottom: 5px;

    }

    .experience-line {
        grid-column: 2;
        grid-row: 2;

    }

    .experience-content {
        grid-column: 1;
        grid-row: 2;
    }

    .experience-line::before {
        bottom: -40px;
    }

    .experience-content h3 {
        font-size: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-main {

        grid-template-columns: 1fr;

        padding: 55px 0 40px;

    }

    .footer-brand {
        max-width: 100%;
    }

    .footer-bottom {

        flex-direction: column;

        align-items: flex-start;

    }

    .back-to-top {

        right: 15px;
        bottom: 15px;

        width: 38px;
        height: 38px;

    }

}


/* ============================================================
   30. ACCESSIBILITY
   ============================================================ */

:focus-visible {

    outline: 2px solid var(--primary);

    outline-offset: 3px;

}

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: 0.01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;

    }

}