/* ============================================================
   MIKIN SOLAR DESIGN - style.css
   Premium technical engineering portfolio theme.
   ------------------------------------------------------------
   DESIGN SYSTEM
   - Background:     #0A1628 (deep navy)
   - Accent:         #F5A623 (solar gold)
   - Secondary:      #00A8E8 (electric blue)
   - Cards:          #161B22 (dark card)
   - Text:           #FFFFFF / #B0B8C1
   - Fonts:          "Exo 2" headings / "Inter" body
   ============================================================ */

/* ==================== CSS VARIABLES ==================== */
:root {
    --bg:            #0A1628;
    --bg-alt:        #0d1e38;
    --accent:        #F5A623;
    --accent-dark:   #d48b0f;
    --secondary:     #00A8E8;
    --card:          #161B22;
    --card-glass:    rgba(22, 27, 34, 0.55);
    --text:          #FFFFFF;
    --muted:         #B0B8C1;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --glow-gold:     rgba(245, 166, 35, 0.28);
    --glow-blue:     rgba(0, 168, 232, 0.25);

    --font-head:     "Exo 2", sans-serif;
    --font-body:     "Inter", sans-serif;

    --sidebar-w:     76px;
    --sidebar-w-exp: 232px;
    --radius:        16px;
    --transition:    0.3s ease;
}

/* ==================== RESET / BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    /* Subtle grid texture on the background */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.25;
}

.text-gold {
    color: var(--accent);
}

/* ==================== PAGE LOADER ==================== */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--muted);
    font-family: var(--font-head);
    letter-spacing: 2px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-sun {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 26px;
    border: 2px solid var(--border-strong);
    border-top-color: var(--accent);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== SIDEBAR (desktop) ==================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    /* Glassmorphism */
    background: rgba(13, 22, 38, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-right: 1px solid var(--border);
    transition: width var(--transition);
    overflow: hidden;
}

.sidebar:hover {
    width: var(--sidebar-w-exp);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.5);
}

/* Brand */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 16px;
    white-space: nowrap;
    border-bottom: 1px solid var(--border);
}

.brand-mark {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 18px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), #ffd080);
    box-shadow: 0 0 18px var(--glow-gold);
}

.brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar:hover .brand-text {
    opacity: 1;
    transform: translateX(0);
}

/* Nav list */
.nav-list {
    flex: 1;
    padding: 18px 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-list a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 13px 24px;
    margin: 2px 8px;
    border-radius: 12px;
    color: var(--muted);
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.nav-list a i {
    flex-shrink: 0;
    width: 26px;
    text-align: center;
    font-size: 17px;
}

.nav-label {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 500;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar:hover .nav-label {
    opacity: 1;
    transform: translateX(0);
}

/* Gold accent indicator for the active item */
.nav-list a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleY(0);
    width: 4px;
    height: 60%;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
    box-shadow: 0 0 12px var(--glow-gold);
    transition: transform 0.25s ease;
}

.nav-list a:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
}

.nav-list a.active {
    color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

.nav-list a.active::before {
    transform: translateY(-50%) scaleY(1);
}

.sidebar-footer {
    padding: 18px 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    white-space: nowrap;
}

/* ==================== MOBILE MENU ==================== */
.hamburger {
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1200;
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.hamburger:hover {
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--glow-gold);
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Full-screen overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(10, 22, 40, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    overflow-y: auto;
}

.mobile-overlay.open {
    transform: translateX(0);
}

.mobile-overlay-inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 30px;
    text-align: center;
    gap: 18px;
}

.mobile-brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 20px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--accent), #ffd080);
    box-shadow: 0 0 22px var(--glow-gold);
}

.mobile-brand-text {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 20px;
    color: var(--accent);
    margin-bottom: 10px;
}

.mobile-nav-list {
    width: 100%;
    max-width: 320px;
}

.mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px;
    margin: 6px 0;
    border-radius: 14px;
    color: var(--muted);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 17px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.03);
    transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.mobile-nav-list a i {
    color: var(--accent);
}

.mobile-nav-list a:hover,
.mobile-nav-list a.active {
    color: var(--text);
    border-color: var(--accent);
    background: rgba(245, 166, 35, 0.1);
}

/* ==================== MAIN LAYOUT ==================== */
.main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* Generic section block */
.section {
    padding: 100px clamp(20px, 5vw, 70px);
    position: relative;
}

.section-head {
    max-width: 760px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 7px 16px;
    border-radius: 30px;
    border: 1px solid rgba(245, 166, 35, 0.35);
    background: rgba(245, 166, 35, 0.08);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 3.6vw, 42px);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 18px;
}

.section-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.section-line span {
    display: block;
    width: 70px;
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), var(--secondary));
}

.section-desc {
    margin-top: 18px;
    color: var(--muted);
    font-size: 16px;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 40px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.btn i {
    font-size: 15px;
}

.btn-gold {
    background: linear-gradient(135deg, var(--accent), #ffc566);
    color: var(--bg);
    box-shadow: 0 8px 24px var(--glow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px var(--glow-gold);
    color: var(--bg);
}

.btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}

.btn-outline:hover {
    transform: translateY(-3px);
    background: rgba(0, 168, 232, 0.12);
    color: var(--secondary);
    box-shadow: 0 10px 26px var(--glow-blue);
}

.btn-block {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(10, 22, 40, 0.96) 0%, rgba(10, 22, 40, 0.82) 45%, rgba(10, 22, 40, 0.55) 100%);
}

.hero-content {
    max-width: 900px;
    padding: 40px clamp(20px, 6vw, 90px);
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 9px 18px;
    border-radius: 40px;
    border: 1px solid rgba(245, 166, 35, 0.4);
    background: rgba(245, 166, 35, 0.1);
    margin-bottom: 26px;
}

.hero-title {
    font-size: clamp(34px, 6vw, 66px);
    font-weight: 800;
    color: var(--text);
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--muted);
    margin-bottom: 36px;
    max-width: 560px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 54px;
}

/* Stats */
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    padding: 18px 30px;
    border-radius: var(--radius);
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    min-width: 150px;
    text-align: center;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.stat:hover {
    border-color: rgba(245, 166, 35, 0.4);
    box-shadow: 0 0 24px var(--glow-gold);
}

.stat-number {
    display: block;
    font-family: var(--font-head);
    font-size: 34px;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 20px;
    animation: bounce 2s infinite;
}

.hero-scroll:hover {
    color: var(--accent);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(8px); }
}

/* ==================== ABOUT ==================== */
.about-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) 1fr;
    gap: clamp(30px, 5vw, 70px);
    align-items: center;
}

/* Photo with gold border frame */
.about-photo-col {
    position: relative;
}

.about-photo-frame {
    position: relative;
    padding: 14px;
    border: 2px solid var(--accent);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(245, 166, 35, 0.15), rgba(0, 168, 232, 0.1));
    box-shadow: 0 0 40px var(--glow-gold), inset 0 0 30px rgba(245, 166, 35, 0.06);
}

.about-photo-frame::before {
    content: "";
    position: absolute;
    top: -22px;
    right: -22px;
    width: 90px;
    height: 90px;
    border-top: 3px solid var(--secondary);
    border-right: 3px solid var(--secondary);
    border-radius: 0 14px 0 0;
    opacity: 0.7;
}

.about-photo-frame img {
    border-radius: 12px;
    width: 100%;
    height: auto;
    aspect-ratio: 5 / 6;
    object-fit: cover;
}

.about-badge {
    position: absolute;
    bottom: -18px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    background: var(--card);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    font-size: 13px;
    color: var(--muted);
}

.about-badge i {
    color: var(--accent);
    font-size: 20px;
}

.about-badge strong {
    color: var(--text);
}

.about-text-col .about-lead {
    font-size: 19px;
    color: var(--text);
    margin-bottom: 16px;
}

.about-text-col p {
    color: var(--muted);
    margin-bottom: 14px;
}

.skills-heading {
    font-size: 19px;
    color: var(--text);
    margin: 26px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skills-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--border);
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--card-glass);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    transition: border-color var(--transition), color var(--transition), transform var(--transition);
}

.skills-list li:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--glow-gold);
}

.skills-list li i {
    color: var(--accent);
    font-size: 16px;
}

/* ==================== SERVICES ==================== */
.services {
    position: relative;
}

.services-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: var(--section-bg-opacity, 12%);
    z-index: 0;
}

.section-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: var(--section-bg-opacity, 12%);
    z-index: 0;
}

.services-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg) 90%);
}

.section:not(.hero) > *:not(.services-bg):not(.section-bg) {
    position: relative;
    z-index: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Glassmorphism card with gold glow on hover */
.service-card {
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 0 34px var(--glow-gold), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.service-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.3);
    margin-bottom: 20px;
    transition: transform var(--transition), background var(--transition);
}

.service-card:hover .service-icon {
    transform: rotate(-8deg) scale(1.08);
    background: rgba(245, 166, 35, 0.2);
}

.service-card h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14.5px;
}

/* ==================== PORTFOLIO ==================== */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 9px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-strong);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}

.filter-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}

.filter-btn.active {
    color: var(--bg);
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 6px 18px var(--glow-gold);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1240px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--card);
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow var(--transition);
}

.portfolio-item.hiding {
    opacity: 0;
    transform: scale(0.92);
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-item.appearing {
    animation: fadeInUp 0.4s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.portfolio-item a {
    display: block;
}

.portfolio-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover {
    box-shadow: 0 0 30px var(--glow-gold);
    border-color: rgba(245, 166, 35, 0.5);
}

.portfolio-item:hover img {
    transform: scale(1.08);
}

/* Hover overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 18px;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.1), rgba(10, 22, 40, 0.92));
    opacity: 0;
    transition: opacity 0.35s ease;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-cat {
    font-family: var(--font-head);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.12);
}

.portfolio-title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}

.portfolio-zoom {
    font-size: 22px;
    color: var(--secondary);
    margin-top: 6px;
    animation: pulse-zoom 1.6s infinite;
}

@keyframes pulse-zoom {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.18); }
}

/* ==================== WHY CHOOSE ME ==================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: 38px 24px;
    border-radius: var(--radius);
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.why-card:hover {
    transform: translateY(-8px);
    border-color: rgba(245, 166, 35, 0.55);
    box-shadow: 0 0 34px var(--glow-gold), 0 18px 40px rgba(0, 0, 0, 0.4);
}

.why-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px;
    color: var(--accent);
    background: rgba(245, 166, 35, 0.12);
    border: 1px solid rgba(245, 166, 35, 0.3);
    box-shadow: 0 0 18px rgba(245, 166, 35, 0.12);
}

.why-card h3 {
    font-size: 19px;
    color: var(--text);
    margin-bottom: 10px;
}

.why-card p {
    color: var(--muted);
    font-size: 14.5px;
}

/* ==================== REVIEWS ==================== */
.reviews-swiper {
    max-width: 1180px;
    padding: 10px 8px 70px !important;
    margin: 0 auto 20px;
}

.review-card {
    height: 100%;
    padding: 30px 28px;
    border-radius: var(--radius);
    background: var(--card-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.review-card:hover {
    border-color: rgba(245, 166, 35, 0.5);
    box-shadow: 0 0 28px var(--glow-gold);
    transform: translateY(-5px);
}

.review-stars {
    color: var(--accent);
    font-size: 15px;
    letter-spacing: 2px;
}

.review-stars i {
    margin-right: 2px;
}

.review-text {
    color: var(--muted);
    font-size: 15px;
    flex: 1;
}

.review-text i {
    color: var(--accent);
    opacity: 0.8;
    font-size: 14px;
    margin-right: 4px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

/* Avatar initials circle */
.avatar-circle {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 17px;
    color: var(--bg);
    background: linear-gradient(135deg, var(--secondary), var(--accent));
}

.review-author-info h5 {
    font-size: 15px;
    color: var(--text);
}

.review-author-info p {
    font-size: 13px;
    color: var(--muted);
}

.review-date {
    font-size: 12px;
    color: var(--muted);
    opacity: 0.7;
}

/* Swiper navigation / pagination */
.reviews-swiper .swiper-button-next,
.reviews-swiper .swiper-button-prev {
    color: var(--accent);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--card-glass);
    border: 1px solid var(--border-strong);
}

.reviews-swiper .swiper-button-next::after,
.reviews-swiper .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 800;
}

.reviews-swiper .swiper-pagination-bullet {
    background: var(--muted);
    opacity: 0.5;
}

.reviews-swiper .swiper-pagination-bullet-active {
    background: var(--accent);
    opacity: 1;
    box-shadow: 0 0 10px var(--glow-gold);
}

/* ==================== FORMS (review + contact) ==================== */
.review-form-wrap,
.contact-form-wrap {
    max-width: 640px;
    margin: 60px auto 0;
    padding: 38px 34px;
    border-radius: var(--radius);
    background: var(--card-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.form-title {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 8px;
}

.form-note {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 26px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group .req {
    color: var(--accent);
}

.form-group .opt {
    color: var(--muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: 12px;
    border: 1px solid var(--border-strong);
    background: rgba(10, 22, 40, 0.6);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14.5px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(176, 184, 193, 0.55);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.18);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group select option {
    background: var(--card);
    color: var(--text);
}

/* Star rating */
.star-rating {
    display: flex;
    gap: 8px;
    font-size: 26px;
    color: rgba(176, 184, 193, 0.35);
}

.star-rating i {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active,
.star-rating i.hover {
    color: var(--accent);
    transform: scale(1.12);
    text-shadow: 0 0 14px var(--glow-gold);
}

.form-status {
    margin-top: 14px;
    text-align: center;
    font-size: 14.5px;
    min-height: 22px;
    display: none;
}

.form-status.show {
    display: block;
}

.form-status.success {
    color: #4ade80;
}

.form-status.error {
    color: #f87171;
}

/* ==================== CONTACT ==================== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(300px, 400px) 1fr;
    gap: clamp(30px, 5vw, 60px);
    max-width: 1100px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--card-glass);
    border: 1px solid var(--border);
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.contact-item:hover {
    color: var(--text);
    border-color: rgba(0, 168, 232, 0.5);
    box-shadow: 0 0 26px var(--glow-blue);
    transform: translateX(6px);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--secondary);
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid rgba(0, 168, 232, 0.3);
}

.contact-item h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.contact-item p {
    color: var(--muted);
    font-size: 14px;
    word-break: break-word;
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link,
.footer-social a {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 18px;
    background: var(--card-glass);
    border: 1px solid var(--border);
    transition: color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.social-link:hover,
.footer-social a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 0 18px var(--glow-gold);
}

/* ==================== FOOTER ==================== */
.footer {
    background: rgba(8, 16, 30, 0.9);
    position: relative;
}

/* Gold divider line above footer */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--secondary), transparent);
    opacity: 0.7;
}

.footer-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px clamp(20px, 5vw, 70px) 40px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
}

.footer-brand-col .brand-mark {
    margin-bottom: 14px;
}

.footer-brand-text {
    font-size: 20px;
    display: block;
    margin-bottom: 12px;
}

.footer-brand-col > p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
    max-width: 340px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-col h4 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 46px;
    height: 2px;
    background: var(--accent);
}

.footer-links li {
    margin-bottom: 11px;
    color: var(--muted);
    font-size: 14px;
}

.footer-links a {
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-links i {
    color: var(--accent);
    font-size: 11px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 22px clamp(20px, 5vw, 70px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 13.5px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ==================== BACK TO TOP ==================== */
#back-to-top {
    position: fixed;
    bottom: 26px;
    right: 26px;
    z-index: 900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: var(--card-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--accent);
    font-size: 17px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition), box-shadow var(--transition), border-color var(--transition);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    border-color: var(--accent);
    box-shadow: 0 0 22px var(--glow-gold);
}

/* ==================== GLIGHTBOX THEME ==================== */
.glightbox-container .gdesc-inner {
    background: var(--card);
}

.glightbox-clean .gslide-description {
    background: var(--card-glass);
}

.glightbox-clean .gslide-title {
    font-family: var(--font-head);
    color: var(--accent);
}

.glightbox-clean .gslide-desc {
    color: var(--muted);
}

.glightbox-clean .gprev,
.glightbox-clean .gnext,
.glightbox-clean .gclose {
    border: none;
    background: rgba(22, 27, 34, 0.7);
    color: var(--accent);
}

/* ==================== RESPONSIVE ==================== */

/* Large laptop */
@media (max-width: 1200px) {
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Tablet landscape / switch to mobile menu */
@media (max-width: 992px) {
    .sidebar { display: none; }
    .hamburger { display: flex; }

    .main-content { margin-left: 0; }

    .section { padding: 80px 22px; }

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

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

    .about-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; max-width: 640px; }

    .footer-top { grid-template-columns: 1fr 1fr; }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }

    .form-row { grid-template-columns: 1fr; }

    .hero-stats { gap: 12px; }

    .stat { flex: 1; min-width: 120px; padding: 14px 16px; }

    .stat-number { font-size: 26px; }

    .footer-top { grid-template-columns: 1fr; gap: 30px; }

    .footer-bottom { flex-direction: column; text-align: center; }
}

/* Mobile */
@media (max-width: 576px) {
    .section { padding: 64px 18px; }

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

    .portfolio-grid { grid-template-columns: 1fr; }

    .why-grid { grid-template-columns: 1fr; }

    .hero-cta .btn { width: 100%; justify-content: center; }

    .hero-stats { flex-direction: column; }

    .stat { width: 100%; }

    .review-form-wrap,
    .contact-form-wrap { padding: 28px 20px; }

    .about-badge { right: 0; }
}

/* ==================== AOS PERF / REDUCED MOTION ==================== */
@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;
    }
}
