:root {
    --bg: #0b1020;
    --panel: #0f1629;
    --panel-2: #121a33;
    --border: #1f2a4b;
    --text: #e8ecf4;
    --muted: #a9b3c7;
    --brand: #7aa7ff;
    --brand-2: #9b8cff;
    --ok: #2ad4a1;
    --warn: #ffb86b;
    --error: #ff6b6b;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius: 12px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 1200px at 10% -10%, rgba(122, 167, 255, .18), transparent 50%),
        radial-gradient(900px 900px at 100% 10%, rgba(155, 140, 255, .18), transparent 40%),
        linear-gradient(180deg, #070b17, #0b1020);
    overflow-x: hidden;
}

.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 80 80"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity=".02"/></svg>');
    opacity: .4;
    mix-blend-mode: overlay
}

.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 0 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    font-size: 18px;
}

.brand .logo {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: var(--shadow);
}

.brand .logo svg {
    width: 20px;
    height: 20px;
    color: white
}

.theme-toggle {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    color: var(--text);
    border-radius: 999px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.theme-toggle span {
    font-size: 12px;
    color: var(--muted);
}

.grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 26px;
}

@media (max-width: 920px) {
    .grid {
        grid-template-columns: 1fr;
    }
}

.card {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.panel {
    padding: 26px;
    backdrop-filter: blur(8px);
}

.title {
    font-size: 26px;
    margin: 0 0 6px;
    letter-spacing: .3px
}

.subtitle {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.6
}

.contact-list {
    display: grid;
    gap: 12px;
    margin: 16px 0 0
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px;
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .01));
}

.contact-item svg {
    flex: 0 0 20px;
    opacity: .9
}

.contact-item strong {
    display: block;
    font-size: 14px
}

.contact-item span {
    color: var(--muted);
    font-size: 13px
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 16px
}

.icon-btn {
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    border-radius: 12px;
    padding: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform .14s ease;
}

.icon-btn:hover {
    transform: translateY(-2px)
}

.icon-btn svg {
    width: 20px;
    height: 20px
}

/* Map placeholder */
.map {
    height: 240px;
    border-top: 1px solid var(--border);
    background: conic-gradient(from 180deg at 0% 0%, rgba(122, 167, 255, .12), rgba(155, 140, 255, .08), rgba(42, 212, 161, .10));
    position: relative;
}

.map::after {
    content: "Map preview";
    position: absolute;
    bottom: 10px;
    right: 12px;
    font-size: 12px;
    color: var(--muted);
}

/* Light theme */
.light {
    --bg: #f6f8fd;
    --panel: #fff;
    --panel-2: #f9fafc;
    --border: #e6eaf3;
    --text: #0d1321;
    --muted: #5a6275;
    --shadow: 0 10px 30px rgba(19, 33, 68, .08);
    background: radial-gradient(1400px 1200px at 10% -10%, rgba(122, 167, 255, .25), transparent 50%),
        radial-gradient(900px 900px at 100% 10%, rgba(155, 140, 255, .22), transparent 40%),
        linear-gradient(180deg, #eef3ff, #f6f8fd);
}

.light .label {
    background: linear-gradient(180deg, #fff, #fff);
}

/* Polishing visuals */
.title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--brand), var(--brand-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.card {
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(120deg, rgba(122, 167, 255, .6), rgba(42, 212, 161, .4), rgba(155, 140, 255, .6));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .25;
    transition: opacity .25s ease;
    pointer-events: none
}

.card:hover::after {
    opacity: .55
}

.fade-in {
    animation: fadeInUp .6s ease both
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(6px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-links a {
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
    border-radius: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

.contact-links a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(120px 120px at var(--mx, 0) var(--my, 0), rgba(122, 167, 255, .25), transparent 60%);
    opacity: 0;
    transition: opacity .2s ease;
}

.contact-links a:hover {
    transform: translateY(-2px);
}

.contact-links a:hover::before {
    opacity: 1
}

.quote {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text);
}

.quote strong {
    background: linear-gradient(90deg, var(--brand), var(--ok));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    font-size: 12px;
    color: var(--muted)
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.sparkle {
    position: absolute;
    right: -40px;
    top: -40px;
    width: 200px;
    height: 200px;
    background: radial-gradient(closest-side, rgba(122, 167, 255, .18), transparent 65%);
    filter: blur(8px);
    pointer-events: none
}

.icon {
    width: 18px;
    height: 18px
}

/* Hover underline for Get in touch social links */
.contact-item span:hover,
.contact-item strong:hover {
    text-decoration: underline;
    cursor: pointer;
}

/* Full-width contact buttons on mobile */
@media (max-width: 600px) {
    .contact-links a {
        width: 100%;
        justify-content: center;
    }
}

/* Ripple effect for buttons */
.contact-links a {
    position: relative;
    overflow: hidden;
}

.contact-links a .ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0
    }
}

@media (max-width: 600px) {
    .contact-links a {
        width: 100%;
        justify-content: center;
    }
}

/* Micro-interactions & delightful polish */
.card {
    transition: transform .25s ease, box-shadow .25s ease
}

.card:hover {
    transform: translateY(-3px)
}

.brand .logo {
    transition: transform .3s ease
}

.brand:hover .logo {
    transform: rotate(-8deg) scale(1.05)
}

.theme-toggle {
    transition: transform .15s ease
}

.theme-toggle:active {
    transform: scale(.96)
}

.map {
    background-size: 200% 200%;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        background-position: 0% 0%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 0%
    }
}

.contact-item {
    transition: transform .2s ease, background .2s ease
}

.contact-item:hover {
    transform: translateX(4px)
}

.contact-item a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color .2s ease
}

.contact-item a:hover {
    border-color: var(--brand)
}

.card.in-view {
    animation: fadeInUp .6s var(--delay, 0ms) ease both
}

/* Disable micro-interactions specifically for the Get in touch card */
section[aria-labelledby="contact-info-title"] .contact-item {
    transition: none;
    transform: none;
}

section[aria-labelledby="contact-info-title"] .contact-item a {
    border: 0;
    text-decoration: none;
    color: var(--muted);
}

section[aria-labelledby="contact-info-title"] .contact-item a:hover {
    text-decoration: underline;
}

/* ===== Scroll to Top Button ===== */
#scrollTopBtn {
    position: fixed;
    bottom: 60px;
    right: 20px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--panel), var(--panel-2));
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    z-index: 999;
}

#scrollTopBtn svg {
    width: 20px;
    height: 20px;
    color: var(--text);
}

#scrollTopBtn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#scrollTopBtn:active {
    transform: scale(.94);
}