@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --main-color: #4c84ff;
    --main-color-dark: #2f6df6;
    --white-color: #ffffff;
    --primary-text: #222222;
    --secondary-text: #666666;
    --soft-bg: #eef3ff;
    --section-bg: #f5f7ff;
    --border-color: #dbe4ff;
    --shadow-sm: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
    --shadow-md: 0 1rem 2rem rgba(0, 0, 0, 0.12);
    --overlay-light: rgba(255, 255, 255, 0.9);
}

body.dark-theme {
    --white-color: #111827;
    --primary-text: #f1f5f9;
    --secondary-text: #cbd5e1;
    --soft-bg: #1e293b;
    --section-bg: #0f172a;
    --border-color: #334155;
    --shadow-sm: 0 0.5rem 1rem rgba(0, 0, 0, 0.25);
    --shadow-md: 0 1rem 2rem rgba(0, 0, 0, 0.35);
    --overlay-light: rgba(17, 24, 39, 0.88);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: var(--section-bg);
    color: var(--primary-text);
    transition: background 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.section-padding {
    padding: 90px 0;
}

.bg-soft {
    background: var(--soft-bg);
}

.navbar {
    background: var(--white-color);
    transition: background 0.3s ease;
}

.navbar-brand {
    color: var(--main-color);
    font-size: 1.6rem;
}

.navbar-brand:hover {
    color: var(--main-color-dark);
}

.navbar .nav-link {
    color: var(--primary-text);
    font-size: 1rem;
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover {
    color: var(--main-color);
}

.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 8px;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--main-color);
    transition: width 0.3s ease;
}

.navbar .nav-link:hover::after {
    width: calc(100% - 16px);
}

.navbar-toggler {
    border: none;
    box-shadow: none !important;
}

body.dark-theme .navbar-toggler {
    filter: invert(1);
}

.btn-theme-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--main-color);
    color: #ffffff;
    border: 2px solid var(--main-color);
    transition: all 0.3s ease;
}

.btn-theme-toggle:hover {
    background: transparent;
    color: var(--main-color);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(76, 132, 255, 0.08), transparent 35%),
        radial-gradient(circle at bottom right, rgba(76, 132, 255, 0.06), transparent 35%);
}

.hero-img {
    max-height: 520px;
    width: 100%;
    object-fit: cover;
    padding: 16px;
    background: var(--white-color);
    border-top: 24px solid var(--white-color);
    border-right: 24px solid var(--white-color);
    border-bottom: 24px solid var(--main-color);
    border-left: 24px solid var(--main-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.hero-subtitle {
    display: inline-block;
    font-size: 1.6rem;
    color: var(--secondary-text);
    margin-bottom: 10px;
}

.hero-title {
    font-size: 3.4rem;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--primary-text);
}

.hero-title span {
    color: var(--main-color);
}

.hero-text {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--secondary-text);
    max-width: 620px;
}

.btn-main,
.btn-outline-main,
.btn-filter {
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-main {
    background: var(--main-color);
    color: #ffffff;
    border: 2px solid var(--main-color);
    box-shadow: var(--shadow-sm);
}

.btn-main:hover {
    background: transparent;
    color: var(--main-color);
    transform: translateY(-2px);
}

.btn-outline-main {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
}

.btn-outline-main:hover {
    background: var(--main-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-text);
    margin-bottom: 0;
    text-transform: uppercase;
}

.section-title h2 span {
    color: var(--main-color);
}

.custom-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 28px 24px;
    transition: all 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.card-title-custom {
    font-size: 1.7rem;
    margin-bottom: 22px;
    color: var(--primary-text);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item:last-child {
    margin-bottom: 0;
}

.skill-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--secondary-text);
}

.custom-progress {
    height: 12px;
    background: #dfe8ff;
    border-radius: 999px;
    overflow: hidden;
}

body.dark-theme .custom-progress {
    background: #243246;
}

.progress-bar {
    background: linear-gradient(90deg, var(--main-color), var(--main-color-dark));
    border-radius: 999px;
}

.timeline-item {
    position: relative;
    padding-left: 24px;
    margin-bottom: 22px;
    border-left: 2px solid var(--main-color);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: -9px;
    width: 16px;
    height: 16px;
    background: var(--main-color);
    border-radius: 50%;
}

.timeline-item h4 {
    font-size: 1.2rem;
    color: var(--main-color);
    margin-bottom: 10px;
}

.timeline-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 0;
}

.service-card {
    position: relative;
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 28px 20px;
    text-align: center;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--main-color);
    clip-path: circle(18% at 0 0);
    opacity: 0.08;
    transition: 0.35s ease;
}

.service-card:hover::before {
    clip-path: circle(120%);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.service-number {
    position: absolute;
    top: 18px;
    left: 20px;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-text);
    opacity: 0.18;
}

.service-icon {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 12px auto 16px;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--main-color);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 0;
    position: relative;
    z-index: 1;
}

.btn-filter {
    background: transparent;
    color: var(--main-color);
    border: 2px solid var(--main-color);
    margin: 6px;
    min-width: 110px;
}

.btn-filter:hover,
.btn-filter.active {
    background: var(--main-color);
    color: #ffffff;
}

.portfolio-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    background: var(--white-color);
    border: 14px solid var(--white-color);
    transition: all 0.3s ease;
}

.portfolio-box:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-overlay {
    position: absolute;
    inset: 14px;
    background: var(--overlay-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.portfolio-overlay h3 {
    font-size: 1.3rem;
    color: var(--primary-text);
    text-align: center;
    margin: 0;
}

.portfolio-box:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-box:hover .portfolio-overlay {
    opacity: 1;
    visibility: visible;
}

.contact-card {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    padding: 32px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--soft-bg);
    color: var(--main-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 16px;
    transition: all 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: var(--main-color);
    color: #ffffff;
}

.contact-card h3 {
    font-size: 1.4rem;
    color: var(--primary-text);
    margin-bottom: 10px;
}

.contact-card p,
.contact-card a {
    font-size: 1rem;
    color: var(--secondary-text);
    margin: 0;
    word-break: break-word;
}

.contact-card a:hover {
    color: var(--main-color);
}

.custom-input {
    border-radius: 10px;
    border: 1px solid var(--border-color);
    padding: 14px 16px;
    background: transparent;
    color: var(--primary-text);
    box-shadow: none !important;
    transition: all 0.3s ease;
}

.custom-input::placeholder {
    color: var(--secondary-text);
}

.custom-input:focus {
    border-color: var(--main-color);
}

body.dark-theme .custom-input {
    background: #0f172a;
}

.map-box {
    background: var(--white-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 100%;
}

.map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 460px;
    border: 0;
}

.footer-section {
    background: var(--white-color);
    padding: 28px 0;
    margin-top: 20px;
}

.footer-section p {
    margin: 0;
    font-size: 1rem;
    color: var(--primary-text);
}

.footer-section p span {
    color: var(--main-color);
    font-weight: 700;
}

@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding-top: 90px;
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    .section-title h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-text {
        font-size: 1rem;
    }

    .portfolio-img {
        height: 220px;
    }

    .btn-filter {
        min-width: auto;
        padding: 10px 18px;
    }

    .map-box iframe {
        min-height: 320px;
    }
}