/*
Theme Name: Cvio
Theme URI: https://yoursite.com/
Author: Your Name
Description: Cvio - CV/Resume Personal Portfolio WordPress Theme. Elementor compatible.
Requires at least: 5.6
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cvio
Tags: portfolio, resume, cv, dark, elementor, one-page
*/

/* =====================================================
   CSS CUSTOM PROPERTIES
   (overridden at runtime by cvio_dynamic_css())
   ===================================================== */
:root {
    --cvio-bg:         #101010;
    --cvio-bg2:        #1e1e1e;
    --cvio-accent:     #4bffa5;
    --cvio-text:       #bbb;
    --cvio-text-light: #fff;
    --cvio-text-mid:   #eee;
    --cvio-text-muted: #999;
    --cvio-border:     rgba(255,255,255,0.1);
}

/* =====================================================
   RESET & BASE
   ===================================================== */
html { margin-right: 0 !important; }

body {
    margin: 0; padding: 0;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; line-height: 1.6;
    color: var(--cvio-text);
    background: var(--cvio-bg);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.scroll_hidden { overflow: hidden; height: 100vh; }
* { box-sizing: border-box; }
.clear { clear: both; }

/* =====================================================
   TYPOGRAPHY
   ===================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; margin: 0 0 20px;
    color: var(--cvio-text-light);
}
h1 { font-size: 34px; }
h2 { font-size: 30px; }
h3 { font-size: 26px; }
h4 { font-size: 22px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; }
p  { font-size: 16px; margin: 20px 0; padding: 0; }
strong { font-weight: 700; }

a { color: var(--cvio-text-mid); text-decoration: underline; outline: none; }
a:hover { text-decoration: none; color: var(--cvio-accent); }

@media (max-width: 720px) {
    h1 { font-size: 24px; } h2 { font-size: 20px; }
    h3 { font-size: 18px; } h4 { font-size: 16px; }
    h5 { font-size: 14px; } h6 { font-size: 13px; }
}

/* =====================================================
   BUTTONS (used by Elementor widgets)
   ===================================================== */
a.btn, .btn {
    position: relative; overflow: hidden;
    display: inline-block; vertical-align: middle;
    height: 44px; line-height: 40px; margin-bottom: 10px;
    text-align: center; font-size: 16px;
    color: var(--cvio-accent); font-weight: 500;
    text-decoration: none; background: transparent;
    border: 2px solid var(--cvio-accent); cursor: pointer;
    transition: color 0.4s ease;
}
a.btn .lnk, .btn .lnk {
    padding: 0 30px; position: relative;
    display: block; z-index: 2; pointer-events: none;
}
a.btn:hover, .btn:hover { color: var(--cvio-bg); background: var(--cvio-accent); }

/* =====================================================
   FORMS (used by Elementor contact widget)
   ===================================================== */
input, textarea {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 16px; width: 100%;
    color: var(--cvio-text-mid);
    margin-bottom: 30px; padding: 0;
    background: transparent; border: none;
    border-bottom: 1px solid var(--cvio-border);
    resize: none; outline: 0; border-radius: 0;
    transition: border-color 0.3s ease;
    height: 50px;
}
textarea { height: 120px; padding-top: 15px; }
input:focus, textarea:focus {
    border-bottom-color: var(--cvio-text-mid);
}
::-webkit-input-placeholder { color: #999; }
::placeholder { color: #999; }

button {
    display: inline-block; font-family: 'Roboto', sans-serif;
    font-size: 16px; width: auto; height: 50px;
    color: var(--cvio-text-mid); margin-bottom: 30px; padding: 0 30px;
    background: transparent; border: none;
    border-bottom: 1px solid var(--cvio-text-mid);
    cursor: pointer; border-radius: 0; outline: 0;
    transition: background 0.3s ease;
}
button:hover { background: var(--cvio-accent); color: var(--cvio-bg); }
label { display: inline-block; padding-bottom: 10px; font-size: 16px; }

/* =====================================================
   PRELOADER
   ===================================================== */
.preloader {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    z-index: 11111; background: var(--cvio-bg);
}
.preloader .spinner {
    position: absolute; left: 50%; top: 0; width: 1px; height: 100%;
}
.preloader .spinner .double-bounce1,
.preloader .spinner .double-bounce2 {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}
.preloader .spinner .double-bounce2 {
    background: rgba(255,255,255,0.5);
    height: 0;
    animation: cvio-loading 1s infinite ease-in-out;
}

@keyframes cvio-loading {
    0%,100% { height: 0; top: 0; bottom: auto; }
    50%      { height: 100%; top: 0; bottom: auto; }
    51%      { height: 100%; top: auto; bottom: 0; }
}
@keyframes cvio-mouse {
    0%,100% { top: 0; }
    50%      { top: 10px; }
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
.cursor-follower {
    position: absolute; width: 26px; height: 26px;
    z-index: 1111; pointer-events: none;
    transition: transform 0.7s cubic-bezier(0.02,1.2,0.8,1);
}
.cursor-follower-inner {
    margin: -13px 0 0 -13px; position: absolute;
    background: var(--cvio-accent);
    width: 26px; height: 26px; opacity: 0.4; border-radius: 50%;
}
.cursor-follower.hide { opacity: 0 !important; }
@media (max-width: 1199px) { .cursor-follower { display: none; } }

/* =====================================================
   BACKGROUND LINES
   ===================================================== */
.container { position: relative; margin: 0; overflow: hidden; }
.wrapper { position: relative; }

.lines {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100vh;
    pointer-events: none; z-index: 1111; font-size: 0;
}
.lines .content {
    margin-left: -712px; position: absolute;
    left: 50%; top: 0; width: 1424px;
}
.lines .line-col {
    position: relative; display: inline-block;
    vertical-align: top; width: 20%; height: 100vh;
}
.lines .line-col::before {
    content: ''; position: absolute; left: 0; top: 0;
    width: 1px; height: 0; background: rgba(255,255,255,0.1);
    transition: height 0.65s cubic-bezier(0.165,0.85,0.45,1);
}
.lines .line-col::after {
    content: ''; position: absolute; left: 0; top: 0;
    width: 100%; height: 100%; background: var(--cvio-bg2); z-index: 12;
    transition: height 0.65s cubic-bezier(0.165,0.85,0.45,1);
}
.lines.finish .line-col::before { height: 100%; }
.lines.finish .line-col::after  { height: 0; }
.lines.ready { z-index: 11; }

@media (max-width: 1199px) {
    .lines .line-col { width: 33.333%; }
    .lines .line-col:nth-child(4),
    .lines .line-col:nth-child(5) { display: none; }
}
@media (max-width: 720px) {
    .lines .line-col { width: 50%; }
    .lines .line-col:nth-child(3),
    .lines .line-col:nth-child(4),
    .lines .line-col:nth-child(5) { display: none; }
}

/* =====================================================
   HEADER
   ===================================================== */
.header {
    padding: 50px; position: fixed; left: 0; top: 0;
    width: 100%; z-index: 100;
    transition: padding 0.7s cubic-bezier(0.165,0.85,0.45,1),
                background 0.7s cubic-bezier(0.165,0.85,0.45,1);
}
.header::after { content: ''; display: block; clear: both; }
.header.fixed { padding-top: 30px; padding-bottom: 30px; background: var(--cvio-bg); }
.header .head-top { position: relative; }

/* Hamburger (mobile only) */
.header .menu-btn { position: relative; width: 30px; height: 20px; display: none; }
.header .menu-btn::before,
.header .menu-btn::after {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 2px; background: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.header .menu-btn::after { top: auto; bottom: 0; }
.header .menu-btn span {
    position: absolute; top: 50%; left: 0; margin-top: -1px;
    width: 100%; height: 2px; background: #fff;
    transition: transform 0.3s ease;
}
.header.active .menu-btn::before { opacity: 0; }
.header.active .menu-btn::after  { bottom: 9px; transform: rotate(-45deg); }
.header.active .menu-btn span    { transform: rotate(45deg); }

/* Logo */
.header .logo {
    position: absolute; top: 50%; overflow: hidden;
    transform: translateY(-50%);
    font-size: 16px; line-height: 2.5; font-weight: 600;
    color: rgba(255,255,255,0.5); white-space: nowrap;
    padding-right: 50px;
}
.header .logo img { max-width: 100%; max-height: 60px; width: auto; height: auto; display: block; }
.header .logo a   { color: rgba(255,255,255,0.65); text-decoration: none; display: inline-block; }
.header .logo strong { color: #fff; }

/* Logo hover slide animation */
.hover-masks-logo .mask-lnk {
    display: block; position: relative;
    transform: translateY(0);
    transition: transform 0.7s cubic-bezier(0.165,0.85,0.45,1);
}
.hover-masks-logo .mask-lnk.mask-lnk-hover {
    position: absolute; transform: translateY(100%);
}
.hover-masks-logo a:hover .mask-lnk:first-child    { transform: translateY(-100%); }
.hover-masks-logo a:hover .mask-lnk.mask-lnk-hover { transform: translateY(0); }

/* Primary nav */
.header .top-menu { text-align: right; }
.header .top-menu ul  { margin: 0; padding: 0; list-style: none; }
.header .top-menu ul li {
    margin-left: 40px; display: inline-block;
    vertical-align: top; position: relative;
}
.header .top-menu ul li a {
    display: flex; font-size: 1em; line-height: 2.5;
    color: #fff; font-weight: 600; opacity: 0.65;
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.header .top-menu ul li:hover > a,
.header .top-menu ul li.current-menu-item > a,
.header .top-menu ul li.current-menu-parent > a { opacity: 1; }

/* Dropdown */
.header .top-menu-nav .sub-menu,
.header .top-menu-nav .children {
    position: absolute; left: 0; top: 40px;
    padding: 10px 0; width: 190px;
    background: var(--cvio-bg2); z-index: 50;
    opacity: 0; pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 5px 40px rgba(0,0,0,0.2);
}
.header .top-menu ul li:hover > .sub-menu,
.header .top-menu ul li:hover > .children { opacity: 1; pointer-events: auto; }
.header .top-menu-nav .sub-menu li,
.header .top-menu-nav .children li {
    margin: 0; padding: 8px 20px;
    display: block; border-bottom: 1px solid var(--cvio-border);
}
.header .top-menu-nav .sub-menu li:last-child,
.header .top-menu-nav .children li:last-child { border-bottom: none; }
.header .top-menu-nav .sub-menu li a,
.header .top-menu-nav .children li a { font-size: 12px; color: #fff; opacity: 0.5; line-height: 2; }
.header .top-menu-nav .sub-menu li a:hover,
.header .top-menu-nav .children li a:hover { opacity: 1; }

/* Dark/Light toggle */
.mode-switch-btn {
    position: absolute; right: 0; top: 0;
    display: flex; width: 40px; height: 40px;
    align-items: center; justify-content: center; z-index: 2;
}
.mode-switch-btn .tgl { display: none; }
.mode-switch-btn .mode-swich-label {
    width: 100%; height: 20px; position: relative; cursor: pointer;
}
.mode-switch-btn .mode-swich-label .sw-before,
.mode-switch-btn .mode-swich-label .sw-after {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
}
.mode-switch-btn .mode-swich-label .sw-before { opacity: 0; }
.mode-switch-btn .tgl:checked + .mode-swich-label .sw-before { opacity: 1; }
.mode-switch-btn .tgl:checked + .mode-swich-label .sw-after  { opacity: 0; }
.mode-switch-btn .mode-swich-label svg { max-width: 100%; max-height: 20px; }
.mode-switch-btn .mode-swich-label svg path { fill: #fff; transition: fill 0.3s ease; }
.mode-switch-btn .mode-swich-label:hover svg path { fill: var(--cvio-accent); }

/* Mobile nav */
@media (max-width: 1199px) {
    .header .menu-btn { display: block; float: right; transform: translateY(50%); }
    .header .logo { position: relative; top: 0; transform: none; }
    .header .top-menu {
        float: none; width: auto; text-align: center;
        height: 0; opacity: 0; visibility: hidden;
        overflow: hidden;
        transition: opacity 0.35s ease;
    }
    .header.active {
        padding-top: 4vw; overflow-y: auto; height: 100%;
        background: var(--cvio-bg);
    }
    .header.active .top-menu { height: auto; opacity: 1; visibility: visible; margin-top: 40px; }
    .header .top-menu ul li {
        margin: 0; display: block;
        border-bottom: 1px solid var(--cvio-border);
    }
    .header .top-menu ul li a { display: inline-block; padding: 4px 0; }
    .header .top-menu-nav .sub-menu,
    .header .top-menu-nav .children {
        position: relative; left: 0; top: 0;
        width: auto; text-align: center;
        display: none; opacity: 0; visibility: hidden;
        box-shadow: none;
    }
    .header.active .top-menu-nav .sub-menu,
    .header.active .top-menu-nav .children { opacity: 1; visibility: visible; pointer-events: auto; }
    /* JS slideToggle handles display — reset here for JS */
    .header .top-menu ul li.active > .sub-menu,
    .header .top-menu ul li.active > .children { display: block; }
}
@media (max-width: 720px) {
    .header { padding: 0 30px; top: 30px; }
    .header .logo { padding: 0; max-width: 240px; }
    .header.active .top-menu { padding-bottom: 30px; }
}

/* =====================================================
   CONTENT SECTIONS (shared)
   ===================================================== */
.section {
    position: relative; z-index: 12;
    padding: 70px 0; max-width: 854px; margin: 0 auto;
}
.section:first-child { padding-top: 150px; }
section.elementor-element .section:first-child { padding-top: 70px; }

/* Elementor inner sections */
.elementor-widget-wrap .elementor-inner-section {
    padding: 70px 0; margin: 0 auto;
    width: 100%; max-width: 854px; z-index: 12;
}

.section .content-box {
    padding: 35px; font-size: 16px;
    background: var(--cvio-bg);
    border: 1px solid var(--cvio-border);
    margin-right: -1px;
}
.section .title { position: relative; margin: 0 0 35px 35px; }
.section .title .title_inner {
    display: inline-block; font-size: 24px;
    color: var(--cvio-text-light); font-weight: 600;
}

.section .content .single-post-text > *:first-child { margin-top: 0; }
.section .content .single-post-text > *:last-child  { margin-bottom: 0; }

/* Two-column layout used by resume/skills columns */
.section .col { float: left; width: 50%; }
.section .col:nth-child(odd)  { padding-right: 35px; }
.section .col:nth-child(even) { padding-left: 35px; }
.section .col:nth-child(even) .content-box { margin-right: -1px; }
.section::after { content: ''; display: block; clear: both; }

@media (max-width: 920px) { .section { max-width: 670px; } }
@media (max-width: 720px) {
    .section { padding: 50px 30px; }
    .section:first-child { padding-top: 50px; }
    .elementor-widget-wrap .elementor-inner-section { padding: 50px 30px; }
    .section .title { margin: 0 0 30px; }
    .section .col { float: none; width: 100%; padding: 0 !important; }
    .section .col:nth-child(odd) { margin-bottom: 40px; }
}

/* =====================================================
   HERO / STARTED SECTION
   ===================================================== */
.section.started {
    margin: 0; padding: 0; max-width: 100%;
    height: 100vh; overflow: hidden;
    position: relative; z-index: 11;
}
.section.started.personal { z-index: 12; text-align: center; }

/* Centring shell */
.centrize    { display: table; table-layout: fixed; height: 100%; position: relative; z-index: 2; width: 100%; }
.vertical-center { display: table-cell; vertical-align: middle; }
.full-width  { max-width: 100%; width: 100%; }

.section.started .started-content { padding: 0; margin: 0 auto; max-width: 854px; }
.section.started.personal .started-content { max-width: 100%; }

/* Polygon profile image */
.section.started .started-content .logo {
    display: inline-block; position: relative;
    top: -100px; left: -300px;
    width: 740px; height: 600px;
    background: no-repeat center center / cover;
    clip-path: polygon(31% 0, 100% 25%, 61% 100%, 0 93%);
}
@media (min-width: 1200px) {
    .section.started .started-content .logo {
        top: -11.5vh; left: -18.5vw; width: 56vw; height: 80vh;
    }
    .section.started.personal .started-content .h-title {
        margin-left: 0; margin-top: 0;
        left: 50vw; top: 60vh; bottom: auto;
    }
}

/* Hero title */
.section.started .started-content .h-title {
    margin: 0; position: absolute;
    left: calc(20% + 35px); bottom: 50px;
    max-width: 560px; font-size: 20px; font-weight: 300;
    color: var(--cvio-text-light); word-break: break-word;
}
.section.started.personal .started-content .h-title {
    margin-left: -85px; margin-top: 85px;
    left: 50%; top: 50%; bottom: auto;
    width: 29vw; max-width: 29vw;
    font-size: 1.35vw; text-align: left;
}
.section.started .started-content .h-title strong,
.section.started .started-content .h-title b { color: var(--cvio-accent); }

/* Typing subtitle */
.section.started .started-content .h-subtitles {
    font-size: 38px; height: 38px; opacity: 0;
    transition: opacity 0.3s ease;
}
.section.started .started-content .h-subtitles.ready { opacity: 1; }

.section.started .started-content .h-subtitle,
.section.started .started-content .typed-subtitle,
.section.started .started-content .typed-bread {
    position: absolute; top: 50%; left: 0;
    margin-top: -45px; width: 100%; display: block;
    font-size: 90px; line-height: 90px; font-weight: 500;
    color: var(--cvio-text-light); text-align: center;
}
.section.started .started-content .h-subtitle strong,
.section.started .started-content .typed-subtitle strong { color: var(--cvio-accent); }

/* Personal layout: big type at bottom-left */
.section.started.personal .started-content .typed-subtitle,
.section.started.personal .started-content .typed-bread {
    top: auto; bottom: 50px; left: 20%;
    margin-top: 0; font-size: 6vw; line-height: 0.9; text-align: left;
}

/* Creative layout */
.section.started.creative {
    height: auto !important;
    padding: 20% 20% 70px !important;
}
.section.started.creative .started-content { text-align: left; }
.section.started.creative .started-content .h-title {
    margin: 0 0 7px 33px; padding-right: 0;
    position: relative; left: 0; top: 0; bottom: auto;
    max-width: 800px; font-size: 44px; line-height: 1.3; font-weight: 500;
}
.section.started.creative .started-content .h-subtitle,
.section.started.creative .started-content .typed-subtitle {
    margin: 0 0 0 35px; position: relative;
    top: 0; font-size: 18px; line-height: 40px; text-align: left; color: #999;
}

/* Section-title (inner page banner) */
.section.started.section-title .started-content .h-title {
    position: relative; top: 0; left: 0; bottom: 0; max-width: 100%;
    font-size: 90px; line-height: 1.2; font-weight: 600; text-align: center;
}
.section.started.section-title .started-content .typed-bread {
    position: absolute; left: 50%; bottom: 50px;
    margin-left: -427px; padding-left: 35px;
    max-width: 854px; font-size: 20px; line-height: 1.5;
    font-weight: 400; text-align: left; color: rgba(255,255,255,0.5);
    top: auto;
}

/* Badge / date label */
.started-content .date {
    display: inline-block; margin-bottom: 10px;
    padding: 0 5px; height: 20px; line-height: 18px;
    font-weight: 500; font-size: 11px;
    color: var(--cvio-accent); border: 1px solid var(--cvio-accent);
}

/* Scroll arrow */
.section.started .mouse_btn {
    position: absolute; right: calc(20% + 35px); bottom: 7%;
    width: 20px; height: 40px; z-index: 2;
    font-size: 24px; color: var(--cvio-accent); text-align: center;
    text-decoration: none;
}
.section.started .mouse_btn .icon {
    position: relative; top: 0;
    animation: cvio-mouse 1s ease-out infinite;
}

/* Video/image background */
.video-bg {
    position: absolute !important;
    top: 0; left: 50%; margin-left: -50vw;
    width: 100vw; height: 100%;
    background: no-repeat center center / cover;
}
.video-bg video {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; object-fit: cover;
}
.video-bg-mask {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000; opacity: 0.25; z-index: 2;
}

/* Hero responsive */
@media (max-width: 1199px) {
    .section.started .started-content .h-title { left: 50px; }
    .section.started .started-content .h-subtitle,
    .section.started .started-content .typed-subtitle,
    .section.started .started-content .typed-bread { font-size: 60px; line-height: 70px; margin-top: -35px; }
    .section.started .started-content .logo { top: -50px; left: -150px; width: 640px; height: 560px; }
    .section.started.personal .started-content .h-title { margin-left: 15px; margin-top: 115px; width: 320px; max-width: 320px; font-size: 20px; }
    .section.started.creative { padding: 35vw 50px 70px !important; }
    .section.started .mouse_btn { right: 120px; }
}
@media (max-width: 720px) {
    .section.started { padding: 0 30px !important; }
    .section.started .started-content .h-title { left: 0; bottom: 30px; padding-right: 50px; font-size: 17px; }
    .section.started .started-content .h-subtitle,
    .section.started .started-content .typed-subtitle,
    .section.started .started-content .typed-bread { font-size: 30px; line-height: 40px; margin-top: -20px; }
    .section.started .started-content .logo {
        position: absolute; top: 0; left: -30px;
        width: 110vw; height: 62vh;
        clip-path: polygon(25% 0, 100% 25%, 80% 100%, 0 85%);
    }
    .section.started.personal .started-content .h-title {
        left: 0; top: auto; bottom: 0; width: 100%;
        margin: 0; padding-bottom: 70px; font-size: 17px;
    }
    .section.started.personal .started-content .typed-subtitle,
    .section.started.personal .started-content .typed-bread {
        left: 0; bottom: 30px; padding-right: 50px; font-size: 20px; line-height: 30px;
    }
    .section.started.section-title .started-content .h-title { font-size: 38px; }
    .section.started .mouse_btn { right: 50%; margin-right: -10px; bottom: 50px; }
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */
.section.about .image { float: left; width: 160px; }
.section.about .image img { width: 100%; height: auto; display: block; }
.section.about .desc { margin-left: 195px; }
.section.about .desc p:first-child { margin-top: 0; }

.info-list { margin-bottom: 20px; }
.info-list ul { list-style: none; margin: 0; padding: 0; }
.info-list ul li { display: inline-block; vertical-align: top; width: 48%; margin-bottom: 6px; }
.info-list ul li strong { font-weight: 400; color: var(--cvio-accent); }

@media (max-width: 1199px) {
    .section.about .image { width: 120px; margin-bottom: 25px; }
    .section.about .desc  { margin-left: 145px; }
}
@media (max-width: 720px) {
    .section.about .image { float: none; width: 100px; margin: 0 auto 20px; text-align: center; }
    .section.about .desc  { margin-left: 0; text-align: center; }
    .info-list ul li { width: 100%; }
}

/* =====================================================
   RESUME SECTION
   ===================================================== */
.resume-items .resume-item { position: relative; margin-top: 70px; }
.resume-items .resume-item:first-child { margin-top: 0; }
.resume-items .resume-item .date {
    display: inline-block; margin-bottom: 5px;
    font-size: 12px; color: var(--cvio-text-muted);
}
.resume-items .resume-item .name  { margin-bottom: 15px; color: var(--cvio-text-mid); font-weight: 500; }
.resume-items .resume-item.active .date { color: var(--cvio-accent); font-weight: 600; }

@media (max-width: 1199px) { .resume-items .resume-item { margin-top: 40px; } }

/* =====================================================
   SKILLS SECTION
   ===================================================== */
.skills ul { list-style: none; margin: -35px 0 0; padding: 0; font-size: 0; }
.skills ul li { position: relative; padding-top: 35px; }
.skills ul li .name  { margin-bottom: 10px; font-size: 16px; color: var(--cvio-text-mid); font-weight: 500; }
.skills ul li .progress {
    display: block; height: 4px; width: 100%;
    background: var(--cvio-border); position: relative;
}
.skills ul li .progress .percentage {
    position: absolute; left: 0; top: 0; height: 4px; width: 0;
    background: var(--cvio-accent); transition: width 1.2s ease;
}
.skills ul li .progress .percentage .percent {
    position: absolute; top: -34px; right: 0; font-size: 16px;
}
/* List (tick) style */
.skills.list ul { margin: 0 -35px; }
.skills.list ul li { display: inline-block; vertical-align: top; width: 50%; padding: 0 35px; }
.skills.list ul li .name { padding-left: 35px; position: relative; }
.skills.list ul li .name::before {
    content: "\f00c"; position: absolute; left: 0; top: 3px;
    font-family: 'Font Awesome 5 Free'; font-weight: 900;
    font-style: normal; color: var(--cvio-accent);
}
.skills.list ul li .progress { display: none; }

@media (max-width: 720px) {
    .skills ul { margin-top: -20px; }
    .skills ul li { padding-top: 20px; }
    .skills.list ul li { width: 100%; }
}

/* =====================================================
   SERVICES SECTION
   ===================================================== */
.service-items { margin-top: -70px; font-size: 0; text-align: center; }
.service-items .service-col { display: inline-block; vertical-align: top; width: 50%; margin-top: 70px; }
.service-items .service-col:nth-child(odd)  .content-box { margin-right: 35px; }
.service-items .service-col:nth-child(even) .content-box { margin-left:  35px; }
.service-items .service-item .icon { font-size: 36px; line-height: normal; color: var(--cvio-accent); }
.service-items .service-item .icon svg { max-width: 36px; max-height: 36px; fill: var(--cvio-accent); }
.service-items .service-item .name { margin: 15px 0; color: var(--cvio-text-mid); font-weight: 500; }
.service-items .service-item .text p { margin: 0; }

@media (max-width: 1199px) {
    .service-items { margin-top: -40px; }
    .service-items .service-col { margin-top: 40px; }
    .service-items .service-col:nth-child(odd)  .content-box { margin-right: 20px; }
    .service-items .service-col:nth-child(even) .content-box { margin-left:  20px; }
}
@media (max-width: 720px) {
    .service-items .service-col { width: 100%; }
    .service-items .service-col:nth-child(odd)  .content-box,
    .service-items .service-col:nth-child(even) .content-box { margin: 0; }
}

/* =====================================================
   PORTFOLIO / WORKS
   ===================================================== */
.section.works .filter-menu { margin-bottom: 70px; }
.section.works .filters input[type="radio"] { display: none; }
.section.works .filters label {
    display: inline-block; margin: 10px 25px 0 0;
    font-size: 16px; color: var(--cvio-text-mid);
    cursor: pointer; transition: color 0.3s ease;
}
.section.works .filters label.glitch-effect { color: var(--cvio-accent); }

.box-items { position: relative; margin: 0 -50px; font-size: 0; }
.box-items .box-item {
    display: inline-block; width: 50%;
    padding: 0 50px 100px; vertical-align: top;
    text-align: center; font-size: 13px;
}
.box-items .box-item .image { position: relative; overflow: hidden; }
.box-items .box-item .image a { display: block; font-size: 0; }
.box-items .box-item .image a img { width: 100%; height: auto; }
.box-items .box-item .desc { padding: 20px 20px 0; }
.box-items .box-item .name {
    display: block; font-size: 24px; font-weight: 600;
    color: var(--cvio-text-mid); text-decoration: none;
    transition: color 0.3s ease;
}
.box-items .box-item .name:hover { color: var(--cvio-accent); }
.box-items .box-item .category,
.box-items .box-item .date { display: block; font-size: 14px; color: var(--cvio-text); opacity: 0.65; }

@media (max-width: 1199px) {
    .box-items { margin: 0 -20px; }
    .box-items .box-item { width: 50%; padding: 0 20px 40px; }
    .section.works .filter-menu { margin-bottom: 40px; }
}
@media (max-width: 720px) {
    .box-items { margin: 0; }
    .box-items .box-item { width: 100%; padding: 0 0 40px; }
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.reviews-item .image { float: left; width: 70px; margin: 0 15px 15px 0; }
.reviews-item .image img { width: 100%; height: auto; border-radius: 50%; }
.reviews-item .info { margin-left: 85px; margin-top: 10px; }
.reviews-item .name    { margin-bottom: 5px; color: var(--cvio-text-mid); font-weight: 500; }
.reviews-item .company { font-size: 14px; color: var(--cvio-text-muted); }
.reviews-item .text    { clear: both; }

/* =====================================================
   PRICING
   ===================================================== */
.pricing-items { margin: 0 -35px; font-size: 0; }
.pricing-items .pricing-col { display: inline-block; vertical-align: top; width: 50%; padding: 0 35px; }
.pricing-item { text-align: center; }
.pricing-item .icon { font-size: 36px; color: var(--cvio-accent); }
.pricing-item .icon svg { max-width: 36px; max-height: 36px; fill: var(--cvio-accent); }
.pricing-item .name { margin: 15px 0; color: var(--cvio-text-mid); font-weight: 500; }
.pricing-item .amount { margin: 30px 0; }
.pricing-item .amount .number {
    display: inline-block; vertical-align: middle;
    font-size: 48px; line-height: 24px; font-weight: 600;
    color: var(--cvio-text-mid); position: relative;
}
.pricing-item .amount .number .dollar,
.pricing-item .amount .number .period {
    position: absolute; left: -15px; top: -5px;
    font-size: 14px; line-height: 14px;
    color: var(--cvio-text-muted); font-weight: 400;
}
.pricing-item .amount .number .period { left: auto; right: -55px; top: auto; bottom: -5px; width: 50px; }
.pricing-item .feature-list ul { margin: 0 0 30px; padding: 0; list-style: none; }
.pricing-item .feature-list ul li { margin: 10px 0; }
.pricing-item .feature-list ul li strong {
    margin-left: 5px; padding: 0 5px; font-size: 12px; font-weight: 300;
    color: var(--cvio-bg); background: var(--cvio-accent); border-radius: 2px;
}
@media (max-width: 720px) {
    .pricing-items .pricing-col { width: 100%; margin-bottom: 40px; }
    .pricing-items .pricing-col:last-child { margin-bottom: 0; }
}

/* =====================================================
   FUN FACTS / COUNTER
   ===================================================== */
.fun-facts-counter { font-size: 48px; font-weight: 700; color: var(--cvio-text-light); line-height: 1; }
.fun-facts-label   { font-size: 14px; color: var(--cvio-text-muted); margin-top: 8px; }
.fun-facts-icon    { font-size: 30px; color: var(--cvio-accent); margin-bottom: 10px; }

/* =====================================================
   CONTACT SECTION
   ===================================================== */
.section.contacts .success-message { color: var(--cvio-accent); margin-top: 15px; display: none; }
.section.contacts .error-message   { color: #ff6b6b; margin-top: 15px; display: none; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    position: fixed; bottom: 50px; left: 50px; right: 50px;
    height: 1px; width: auto; padding: 0; z-index: 99;
}
.footer .copy { position: absolute; left: 0; bottom: 0; }
.footer .copy p, .footer p { margin: 2px 0 0; font-size: 14px; line-height: 2; }
.footer .copy a { color: inherit; text-decoration: none; }
.footer .copy a:hover { color: var(--cvio-accent); }

.footer .soc-box { position: absolute; right: 0; bottom: 0; width: 24px; }
.footer .soc a {
    display: block; margin-bottom: 20px; text-align: center;
    color: var(--cvio-text); text-decoration: none;
    transition: color 0.3s ease;
}
.footer .soc a:last-child { margin-bottom: 0; }
.footer .soc a .ion { color: var(--cvio-text); }
.footer .soc a:hover .ion { color: var(--cvio-accent); }

.follow-label {
    position: absolute; bottom: 100%; right: 0; padding-right: 75px;
    color: var(--cvio-text); font-size: 14px; line-height: 24px; height: 24px;
    white-space: nowrap; text-align: right;
    transform: rotate(90deg); transform-origin: 100% 0;
}
.follow-label::after {
    content: ''; position: absolute; top: 50%; right: 0;
    width: 50px; height: 1px; background: #fff;
}

@media (max-width: 1199px) {
    .footer {
        position: relative; bottom: auto; left: 0; right: 0;
        height: auto; padding: 50px 0; width: 100%;
    }
    .footer .copy { position: relative; display: block; text-align: center; margin-bottom: 10px; }
    .footer .soc-box { position: relative; right: auto; left: 0; top: 0; width: auto; text-align: center; }
    .footer .soc a { display: inline-block; margin: 0 10px; }
    .footer .follow-label { display: none; }
    /* On the home page the footer stays fixed */
    .home .footer {
        position: fixed; bottom: 50px; left: 50px; right: 50px;
        height: 1px; padding: 0;
    }
    .home .footer .copy { display: none; }
    .home .footer .soc-box { position: absolute; right: 0; bottom: 0; width: 20px; float: right; }
    .home .footer .soc a  { display: block; margin: 10px 0 0; }
}
@media (max-width: 720px) {
    .home .footer { bottom: 30px; left: 30px; right: 30px; }
}

/* =====================================================
   LIGHT / WHITE MODE
   ===================================================== */
body.cvio-light,
body.cvio-white-bg {
    --cvio-bg:         #f5f5f5;
    --cvio-bg2:        #e8e8e8;
    --cvio-text:       #555;
    --cvio-text-light: #111;
    --cvio-text-mid:   #222;
    --cvio-text-muted: #777;
    --cvio-border:     rgba(0,0,0,0.1);
}

/* =====================================================
   ELEMENTOR OVERRIDES
   ===================================================== */
.elementor-section { position: relative; }
.elementor-widget-wrap .section { padding-top: 0; }
.elementor-element.elementor-widget-cvio-started-section .section:first-child { padding-top: 0; }

/* =====================================================
   PAGE / DEFAULT TEMPLATE
   ===================================================== */
.section .content-box .single-post-text img { max-width: 100%; height: auto; }
.section .content-box .single-post-text p   { margin-top: 0; }
.section .content-box .single-post-text p:last-child { margin-bottom: 0; }
