@font-face {
    font-family: "AHFont";
    src: url("fonts/thmanyahserifdisplay-Light.otf") format("opentype");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "AHText";
    src: url("fonts/thmanyahseriftext-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --black: #0A0A0A;
    --dark: #1C1C1E;
    --navy: #0D1B2A;
    --white: #F8F8F8;
    --offwhite: #F5F5F7;
    --grey: #E0E0E0;
    --teal: #00c8c8;
    --teal-light: #00a8a8;
    --radius: 28px;
    --transition: 0.35s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "AHText", Arial, sans-serif;
    background: var(--black);
    color: var(--offwhite);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
.brand-mark,
.logo-frame span {
    font-family: "AHFont", Arial, sans-serif;
    font-weight: 900;
}

.hero {
    min-height: 80vh;
    background:
        radial-gradient(circle at 20% 20%, rgba(0, 200, 200, 0.16), transparent 35%),
        linear-gradient(135deg, var(--black), var(--navy));
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(248, 248, 248, 0.08) 45%, transparent 65%);
    transform: translateX(-120%);
    animation: cinematic-sweep 5s ease-in-out infinite;
}

.navbar {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(10, 10, 10, 0.55), rgba(10, 10, 10, 0.55)),
        repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 6px, #0d0d0d 6px, #0d0d0d 12px);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.04),
        0 10px 40px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 200, 200, 0.12);
    z-index: 2;
}

.navbar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(120deg, transparent 0%, rgba(0, 200, 200, 0.03) 40%, rgba(0, 200, 200, 0.05) 50%, rgba(0, 200, 200, 0.03) 60%, transparent 100%);
    transform: translateX(-120%);
    animation: navbar-shine 8s ease-in-out infinite;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 2;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.logo-mark {
    transition: transform 0.35s ease, filter 0.35s ease;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.logo-mark:hover {
    transform: scale(1.08) rotate(-3deg);
    filter: drop-shadow(0 0 10px rgba(0, 200, 200, 0.55)) drop-shadow(0 0 22px rgba(0, 200, 200, 0.35));
}

.logo-mark:hover img {
    transform: translateY(-2px);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 14px;
    color: rgba(248, 248, 248, 0.78);
    position: relative;
    z-index: 2;
}

.nav-links a:hover {
    color: var(--teal);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    min-height: calc(80vh - 120px);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
    gap: 70px;
    padding-top: 70px;
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-label,
p.section-label {
    color: var(--teal) !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
}

h1 {
    font-size: clamp(18px, 2.5vw, 38px);
    line-height: 1.15;
    max-width: 900px;
    margin-bottom: 28px;
}

.hero-description {
    max-width: 680px;
    color: rgba(248, 248, 248, 0.72);
    font-size: 19px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    padding: 14px 26px;
    border-radius: 999px;
    transition: var(--transition);
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--offwhite);
    color: var(--black);
}

.secondary-btn {
    border: 1px solid rgba(248, 248, 248, 0.22);
    color: var(--offwhite);
}

.primary-btn:hover {
    background: var(--teal);
    color: var(--offwhite);
    transform: translateY(-3px);
}

.secondary-btn:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-3px);
}

.primary-btn::before,
.secondary-btn::before,
.social-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%);
    transition: 0.6s ease;
}

.primary-btn:hover::before,
.secondary-btn:hover::before,
.social-links a:hover::before {
    transform: translateX(120%);
}

.hero-visual {
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.logo-frame {
    width: min(360px, 80vw);
    aspect-ratio: 1;
    border: 12px solid var(--offwhite);
    border-radius: 70px;
    display: grid;
    place-items: center;
    background: rgba(13, 27, 42, 0.8);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
    position: relative;
    overflow: hidden;
    animation: floating-logo 4.5s ease-in-out infinite;
    transition: transform 0.18s ease-out;
    will-change: transform;
}

.logo-frame::before {
    content: "";
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 180deg, transparent, rgba(0, 200, 200, 0.55), transparent, rgba(245, 245, 247, 0.35), transparent);
    animation: rotate-glow 7s linear infinite;
}

.logo-frame::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 58px;
    background: rgba(13, 27, 42, 0.96);
    z-index: 1;
}

.logo-frame span {
    font-size: 110px;
    letter-spacing: -8px;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 22px rgba(248, 248, 248, 0.25), 0 0 55px rgba(0, 200, 200, 0.45);
}

.profile-frame {
    width: min(420px, 85vw) !important;
    aspect-ratio: 3 / 4 !important;
    border-radius: 30px !important;
    padding: 3px !important;
    background: #00c8c8 !important;
    position: relative !important;
    overflow: hidden !important;
    animation: floating-logo 4.5s ease-in-out infinite !important;
}

.profile-frame::before,
.profile-frame::after {
    display: none !important;
    content: none !important;
}

.profile-frame img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
    display: block !important;
    position: relative !important;
    z-index: 2 !important;
}

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 28px;
}

.section h2 {
    margin-bottom: 14px;
}

.section > p {
    max-width: 760px;
    color: rgba(248, 248, 248, 0.72);
    font-size: 19px;
    margin-bottom: 26px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: clamp(22px, 3vw, 36px);
    margin-bottom: 28px;
}

.section-title span:first-child {
    color: #00c8c8;
    letter-spacing: 2px;
}

.section-title .dash {
    color: rgba(255, 255, 255, 0.3);
}

.section-title span::after,
.section-title::before,
.section-title::after,
.section-title span::before {
    display: none !important;
    content: none !important;
}

/* Single divider: space + one line + space */
.services-section,
.work-section,
.contact-section {
    border-top: 0 !important;
    margin-top: 34px;
    padding-top: 0 !important;
}

.services-section {
    max-width: 1100px;
    width: 100%;
    margin: 34px auto 0;
    padding: 0 28px 40px !important;
    border-top: 0 !important;
}

.services-section::before {
    content: "";
    display: block;
    width: 100%;
    height: 1px;
    background: #00c8c8;
    margin: 0 0 34px 0;
}

.services-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.service-card {
    width: 100%;
    min-width: 0;
    min-height: 260px;
    padding: 26px;
    border-radius: 28px;
    border: 1px solid rgba(0, 200, 200, 0.28);
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: var(--transition);
}

.service-card-1 {
    background-image:
        linear-gradient(180deg, rgba(10,10,10,0.18), rgba(10,10,10,0.90)),
        url("images/services/service1.png");
}

.service-card-2 {
    background-image:
        linear-gradient(180deg, rgba(10,10,10,0.18), rgba(10,10,10,0.90)),
        url("images/services/service2.png");
}

.service-card-3 {
    background-image:
        linear-gradient(180deg, rgba(10,10,10,0.18), rgba(10,10,10,0.90)),
        url("images/services/service3.png");
}

.service-card-4 {
    background-image:
        linear-gradient(180deg, rgba(10,10,10,0.18), rgba(10,10,10,0.90)),
        url("images/services/service4.png");
}
.service-card-5 {
    background-image:
        linear-gradient(180deg, rgba(10,10,10,0.18), rgba(10,10,10,0.90)),
        url("images/services/service5.png");
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(248, 248, 248, 0.12), transparent);
    transform: translateX(-120%);
    transition: 0.8s ease;
    z-index: 1;
}

.service-card:hover::before {
    transform: translateX(120%);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.015);
    border-color: rgba(0, 200, 200, 0.65);
    box-shadow: 0 24px 80px rgba(0, 200, 200, 0.22);
}

.service-card span,
.service-card h3,
.service-card p {
    position: relative;
    z-index: 2;
}

.service-card span {
    color: var(--teal);
    font-weight: 900;
    font-size: 18px;
}

.service-card h3 {
    margin: 16px 0 10px;
    font-size: 22px;
    line-height: 1.3;
}

.service-card p {
    color: rgba(248, 248, 248, 0.72);
    font-size: 15px;
    line-height: 1.8;
}

.portfolio-grid {
    margin-top: 0;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    grid-template-rows: repeat(2, 260px);
    gap: 18px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(0, 200, 200, 0.18), rgba(248, 248, 248, 0.04)), linear-gradient(135deg, #111, #0D1B2A);
    border: 1px solid rgba(0, 200, 200, 0.18);
    cursor: pointer;
    transform-style: preserve-3d;
    transition: transform 0.9s cubic-bezier(.16, 1, .3, 1), box-shadow 0.9s cubic-bezier(.16, 1, .3, 1), border-color 0.5s ease;
}

.portfolio-card.large {
    grid-row: span 2;
}

.portfolio-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 200, 200, 0.45), transparent 28%), linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.12), transparent);
    opacity: 0.45;
    transform: scale(1.1);
    transition: opacity 0.85s ease, transform 1.2s ease;
}

.portfolio-card::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(248, 248, 248, 0.12);
    border-radius: 24px;
    opacity: 0;
    transform: scale(0.96);
    transition: 0.5s ease;
}

.portfolio-card:hover {
    transform: perspective(1200px) rotateX(2deg) rotateY(-2deg) scale(1.015);
    border-color: rgba(0, 200, 200, 0.65);
    box-shadow: 0 30px 90px rgba(0, 200, 200, 0.18);
}

.portfolio-card:hover::before {
    opacity: 1;
    transform: scale(1.08);
}

.portfolio-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.portfolio-card:nth-child(1) {
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.05), rgba(10, 10, 10, 0.88)), url("images/work/work1.jpeg");
    background-size: cover;
    background-position: center;
}

.portfolio-card:nth-child(2) {
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.05), rgba(10, 10, 10, 0.88)), url("images/work/work2.png");
    background-size: cover;
    background-position: center;
}

.portfolio-card:nth-child(3) {
    background-image: linear-gradient(180deg, rgba(10, 10, 10, 0.05), rgba(10, 10, 10, 0.88)), url("images/work/work3.png");
    background-size: cover;
    background-position: center;
}

.portfolio-overlay {
    position: absolute;
    inset: auto 24px 24px 24px;
    z-index: 2;
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.85s ease, transform 0.85s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-overlay span {
    color: #00c8c8;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-overlay h3 {
    margin-top: 8px;
    font-size: 28px;
}

.portfolio-overlay p {
    color: rgba(248, 248, 248, 0.68);
    max-width: 420px;
}

.contact-section {
    background: var(--black);
    color: var(--offwhite);
    max-width: none;
    padding-inline: max(28px, calc((100vw - 1200px) / 2));
}

.contact-section h2 {
    font-size: clamp(18px, 2vw, 28px);
}

.contact-section p {
    color: #00c8c8;
}

.contact-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    text-align: right;
}

.contact-form {
    display: grid;
    gap: 16px;
    width: 100%;
    max-width: 520px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    display: block;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 200, 200, 0.3);
    background: rgba(248, 248, 248, 0.06);
    color: #F5F5F7;
    font-family: "AHText", Arial, sans-serif;
    font-size: 16px;
    direction: rtl;
    text-align: right;
    outline: none;
    transition: 0.3s ease;
}

.contact-form textarea {
    min-height: 140px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(245, 245, 247, 0.55);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #00c8c8;
    box-shadow: 0 0 20px rgba(0, 200, 200, 0.25);
}

.contact-form button {
    width: 100%;
    padding: 15px 24px;
    border-radius: 999px;
    border: none;
    background: #00c8c8;
    color: #0A0A0A;
    font-family: "AHText", Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 200, 200, 0.4);
}

.social-links {
    margin-top: 1px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.social-links a {
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--black);
    color: #00c8c8;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a:hover,
.contact-section .social-links a:hover,
.contact-section .social-links a:not(.whatsapp-btn):hover {
    background: #00c8c8 !important;
    color: #0A0A0A !important;
    transform: translateY(-3px);
}

.contact-section .social-links a:hover span {
    color: #0A0A0A !important;
}

.contact-highlight {
    margin-bottom: 3px;
}

.scroll-progress {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 0%;
    height: 25px;
    z-index: 100000;
    background: repeating-linear-gradient(45deg, #1a1a1a, #1a1a1a 6px, #0d0d0d 6px, #0d0d0d 12px);
    border-top: 1px solid rgba(0, 200, 200, 0.25);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.10), 0 0 22px rgba(0, 200, 200, 0.95), 0 0 50px rgba(0, 200, 200, 0.75), 0 0 95px rgba(0, 200, 200, 0.45);
}

.stats-section {
    max-width: 420px;
    margin: 0 0 20px;
    padding: 10px 14px;
    border: 1px solid rgba(0, 200, 200, 0.12);
    border-radius: 16px;
    background: rgba(248, 248, 248, 0.03);
    backdrop-filter: blur(10px);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    display: block;
    color: #00c8c8;
    font-family: "AHFont", Arial, sans-serif;
    font-size: clamp(16px, 1.8vw, 22px);
    line-height: 1;
}

.stat-item p {
    font-size: 10px;
    margin-top: 3px;
}

.site-footer {
    padding: 70px 20px 110px;
    text-align: center;
    position: relative;
}

.footer-line {
    width: min(520px, 80vw);
    height: 1px;
    margin: 0 auto 34px;
    background: linear-gradient(90deg, transparent, rgba(0, 200, 200, 0.75), transparent);
    box-shadow: 0 0 20px rgba(0, 200, 200, 0.45);
}

.footer-brand {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 14px rgba(0, 200, 200, 0.55)) drop-shadow(0 0 34px rgba(0, 200, 200, 0.25));
    animation: footer-float 4s ease-in-out infinite;
}

.footer-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-tagline {
    color: rgba(248, 248, 248, 0.72);
    font-size: 12px;
    letter-spacing: 4px;
    margin-bottom: 8px;
}

.footer-credit {
    color: #00c8c8;
    font-size: 13px;
    letter-spacing: 2px;
}

.loader {
    position: fixed;
    inset: 0;
    background: #0A0A0A;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.9s ease, visibility 0.9s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    width: 120px;
    height: 120px;
    animation: loader-logo-motion 1.6s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 14px rgba(0, 200, 200, 0.75)) drop-shadow(0 0 34px rgba(0, 200, 200, 0.45));
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hidden {
    opacity: 0;
    filter: blur(18px);
    transform: translateY(70px) scale(0.96);
    transition: opacity 1.1s cubic-bezier(.16, 1, .3, 1), transform 1.1s cubic-bezier(.16, 1, .3, 1), filter 1.1s cubic-bezier(.16, 1, .3, 1);
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

.hero-text.hidden {
    transform: translateY(80px) scale(0.94);
}

.hero-text.show {
    animation: hero-arrive 1.3s cubic-bezier(.16, 1, .3, 1) forwards;
}

.hero-visual.hidden {
    transform: translateX(-90px) rotate(-8deg) scale(0.86);
}

.hero-visual.show {
    transform: translateX(0) rotate(0) scale(1);
}

body.loaded .hero-text,
body.loaded .hero-visual,
body.loaded .navbar {
    opacity: 0;
    transform: translateY(40px);
    animation: page-enter 1s cubic-bezier(.16, 1, .3, 1) forwards;
}

body.loaded .navbar {
    animation-delay: 0.2s;
}

body.loaded .hero-text {
    animation-delay: 0.4s;
}

body.loaded .hero-visual {
    animation-delay: 0.6s;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 200, 200, 0.18), transparent 24%),
        radial-gradient(circle at 80% 20%, rgba(245, 245, 247, 0.07), transparent 30%),
        radial-gradient(circle at 20% 80%, rgba(0, 200, 200, 0.12), transparent 35%);
    transition: background 0.15s ease;
}

.cursor-glow {
    position: fixed;
    width: 64px;
    height: 64px;
    background: radial-gradient(circle, rgba(0, 255, 255, 1) 0%, rgba(0, 200, 200, 0.65) 30%, transparent 72%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: left 0.04s linear, top 0.04s linear;
    mix-blend-mode: screen;
    filter: blur(6px);
    box-shadow: 0 0 16px rgb(255, 255, 0), 0 0 34px rgba(231, 0, 123, 0.9), 0 0 70px rgba(0, 200, 200, 0.65);
}

@keyframes cinematic-sweep {
    0%, 55% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@keyframes navbar-shine {
    0% { transform: translateX(-120%); }
    40%, 100% { transform: translateX(120%); }
}

@keyframes hero-arrive {
    0% {
        opacity: 0;
        transform: translateY(90px) scale(0.92);
        filter: blur(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes floating-logo {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -18px; }
}

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

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

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

@keyframes loader-logo-motion {
    from {
        opacity: 0.55;
        transform: scale(0.92) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: scale(1.08) rotate(2deg);
    }
}

@keyframes page-enter {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1200px) {
    .services-section {
        max-width: 1100px;
    }

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

@media (max-width: 1024px) {
    .hero-content {
        gap: 44px;
        grid-template-columns: 1fr 0.85fr;
    }

    .section {
        padding-inline: 34px;
    }

    .portfolio-grid {
        grid-template-rows: repeat(2, 240px);
    }

    .contact-layout {
        gap: 34px;
    }
}

@media (max-width: 850px) {
    .hero {
        min-height: auto;
        padding: 18px;
    }

    .navbar {
        border-radius: 24px;
        padding: 14px 16px;
        flex-direction: row;
        align-items: center;
        gap: 14px;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        font-size: 13px;
        white-space: nowrap;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .nav-links {
        gap: 12px;
        font-size: 12px;
        overflow-x: auto;
        scrollbar-width: none;
        max-width: 54vw;
        justify-content: flex-end;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 54px;
        gap: 36px;
        min-height: auto;
    }

    .hero-text {
        text-align: right;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-actions {
        justify-content: flex-start;
    }

    .primary-btn,
    .secondary-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .profile-frame,
    .logo-frame {
        width: min(320px, 82vw) !important;
        border-radius: 28px !important;
    }

    .section {
        padding: 34px 20px;
    }

    .section-title {
        font-size: clamp(22px, 7vw, 30px);
        justify-content: flex-start;
        flex-wrap: wrap;
        margin-bottom: 24px;
    }

    .section > p {
        font-size: 16px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 14px;
    }

    .portfolio-card,
    .portfolio-card.large {
        min-height: 260px;
        grid-row: auto;
    }

    .portfolio-overlay {
        opacity: 1;
        transform: none;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-info {
        text-align: right;
    }

    .contact-form {
        max-width: 100%;
    }

    .social-links {
        justify-content: flex-start;
    }

    .stats-section {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
    }

    .scroll-progress {
        height: 14px;
    }

    .cursor-glow {
        display: none;
    }
}

@media (max-width: 520px) {
    .navbar {
        align-items: flex-start;
        flex-direction: column;
        border-radius: 22px;
    }

    .nav-links {
        max-width: 100%;
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    h1 {
        font-size: clamp(20px, 8vw, 32px);
    }

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

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

    .primary-btn,
    .secondary-btn {
        width: 100%;
        text-align: center;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }

    .section {
        padding-inline: 16px;
    }

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

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

    .services-section::before,
    .work-section::before,
    .contact-section::before {
        margin-bottom: 26px;
    }

    .portfolio-card,
    .portfolio-card.large {
        min-height: 220px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 15px;
        padding: 14px 16px;
    }

    .footer-brand {
        width: 60px;
        height: 60px;
    }

    .footer-tagline,
    .footer-credit {
        letter-spacing: 2px;
    }
}


/* Accessibility and fixed hidden iframe */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden-iframe { display: none; width: 0; height: 0; border: 0; }
.form-success { display: block; opacity: 0; visibility: hidden; margin-top: 14px; padding: 12px 16px; border: 1px solid rgba(0, 200, 200, 0.35); border-radius: 16px; background: rgba(0, 200, 200, 0.08); color: #00c8c8; font-size: 14px; line-height: 1.7; text-align: right; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease; }
.form-success.show { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-reveal { opacity: 0; filter: blur(12px); transform: translateY(36px); transition: opacity 0.9s cubic-bezier(.16, 1, .3, 1), transform 0.9s cubic-bezier(.16, 1, .3, 1), filter 0.9s cubic-bezier(.16, 1, .3, 1); }
.scroll-reveal.delay-1 { transition-delay: 0.12s; }
.scroll-reveal.delay-2 { transition-delay: 0.22s; }
.scroll-reveal.active { opacity: 1; filter: blur(0); transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0.01ms !important; } .loader { display: none; } }
.loader {
  animation: force-hide-loader 1.2s ease forwards;
  animation-delay: 1.5s;
}

@keyframes force-hide-loader {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}
.floating-social {
    position: fixed;
    right: 18px;
    bottom: 46px;
    z-index: 99998;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.floating-social a,
.floating-social button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(0, 200, 200, 0.45);
    background: rgba(10, 10, 10, 0.72);
    color: #00c8c8;
    display: grid;
    place-items: center;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 14px rgba(0, 200, 200, 0.22);
    transition: 0.25s ease;
}

.floating-social button {
    font-size: 18px;
    line-height: 1;
}

.floating-social a:hover,
.floating-social button:hover {
    background: #00c8c8;
    color: #0A0A0A;
    transform: translateY(-3px);
    box-shadow: 0 0 22px rgba(0, 200, 200, 0.55);
}

@media (max-width: 520px) {
    .floating-social {
        right: 12px;
        bottom: 36px;
        gap: 7px;
    }

    .floating-social a,
    .floating-social button {
        width: 31px;
        height: 31px;
        font-size: 10px;
    }

    .floating-social button {
        font-size: 16px;
    }
}

.floating-social svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
    display: block;
}

@media (max-width: 520px) {
    .floating-social svg {
        width: 15px;
        height: 15px;
    }
}
