/* Variables */
:root {
    --primary: #4f46e5;
    --primary-light: #7dd3fc;
    --accent: #22d3ee;
    --accent-warm: #f8d36f;
    --bg-dark: #050816;
    --bg-light: #0a1022;
    --surface: rgba(15, 23, 42, 0.78);
    --surface-light: rgba(30, 41, 59, 0.82);
    --text: #f8fafc;
    --text-dim: #a6b4c8;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #22d3ee 0%, #4f46e5 52%, #f8d36f 120%);
    --gradient-vibrant: linear-gradient(135deg, #22d3ee 0%, #4f46e5 46%, #c084fc 76%, #f8d36f 115%);
    --shadow: 0 28px 90px -34px rgba(0, 0, 0, 0.85);
    --glass: rgba(5, 8, 22, 0.72);
    --border: rgba(255, 255, 255, 0.12);
    --halo-cyan: rgba(34, 211, 238, 0.26);
    --halo-indigo: rgba(79, 70, 229, 0.34);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background:
        radial-gradient(circle at 16% 8%, rgba(34, 211, 238, 0.16), transparent 28rem),
        radial-gradient(circle at 84% 2%, rgba(124, 58, 237, 0.2), transparent 32rem),
        linear-gradient(180deg, #040714 0%, #070b1c 40%, #050816 100%);
    color: var(--text);
    line-height: 1.7; /* Increased for better readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(circle at 50% 0%, black, transparent 68%);
    mask-image: radial-gradient(circle at 50% 0%, black, transparent 68%);
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em; /* Subtle premium feel */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 7.5rem 0; /* Reduced from 9rem for better balance */
}

.section-label {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 800; /* Bolder for hierarchy */
    font-size: 0.82rem;
    letter-spacing: 0.15em; /* Increased spacing */
    margin-bottom: 1.25rem;
    padding: 0.42rem 0.78rem;
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.07);
}

.bg-alt {
    background:
        radial-gradient(circle at 10% 20%, rgba(79, 70, 229, 0.12), transparent 26rem),
        linear-gradient(180deg, rgba(10, 16, 34, 0.92), rgba(5, 8, 22, 0.95));
}

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

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.18));
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

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


button,
input,
textarea {
    font: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(34, 211, 238, 0.85);
    outline-offset: 3px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.9rem 0;
    z-index: 1000;
    transition: 0.4s ease;
}

.navbar.scrolled {
    background: rgba(5, 8, 22, 0.78);
    backdrop-filter: blur(18px) saturate(160%);
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    padding: 0.48rem 0.72rem 0.48rem 0.92rem;
    background: rgba(5, 8, 22, 0.62);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 60px rgba(0, 0, 0, 0.22);
}

.logo {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.9rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-dim);
    font-size: 0.96rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--white);
}

.nav-links a:not(.btn):hover,
.nav-links a:not(.btn).active {
    text-shadow: 0 0 24px rgba(34, 211, 238, 0.5);
}

.nav-toggle {
    display: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--white);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 85px; /* Adjusted for slimmer navbar */
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    pointer-events: none;
    border-radius: 999px;
    filter: blur(20px);
}

.hero::before {
    width: 760px;
    height: 760px;
    right: -250px;
    top: 30px;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.36), transparent 63%);
}

.hero::after {
    width: 580px;
    height: 580px;
    left: -220px;
    bottom: 10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.2), transparent 62%);
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.hero h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.hero h1 {
    font-size: clamp(2.7rem, 4.2vw, 4.85rem);
    line-height: 1.04;
    margin-bottom: 1.5rem;
    letter-spacing: -0.055em;
    max-width: 700px;
}

.hero p {
    font-size: 1.08rem;
    color: var(--text-dim);
    margin-bottom: 2.2rem;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 1rem 2.35rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    border: none;
    text-align: center;
    letter-spacing: -0.01em;
    overflow: hidden;
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.875rem;
}

.btn-primary {
    background: var(--gradient-vibrant);
    background-size: 200% auto;
    color: var(--white);
    box-shadow: 0 18px 48px rgba(79, 70, 229, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transition: 0.5s ease;
}

@keyframes shine {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 24px 70px rgba(34, 211, 238, 0.35), 0 18px 48px rgba(79, 70, 229, 0.36);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(14px);
    color: var(--white);
}

.btn-outline:hover {
    background: rgba(34, 211, 238, 0.14);
    border-color: rgba(34, 211, 238, 0.45);
    transform: translateY(-3px);
}

.btn-full {
    width: 100%;
}

/* Hero Mockup Anim */
.hero-image {
    position: relative;
    transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
    transform-origin: center;
}

.blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: var(--gradient-vibrant);
    filter: blur(95px);
    opacity: 0.34;
    z-index: -1;
    border-radius: 50%;
}

.hero-mockup {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.mockup-header {
    background: var(--surface-light);
    padding: 0.75rem;
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.mockup-body {
    display: flex;
    height: 100%;
}

.mockup-sidebar {
    width: 60px;
    background: var(--surface-light);
    opacity: 0.5;
}

.mockup-main {
    flex: 1;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-content: start;
}

.mockup-card {
    height: 80px;
    background: var(--surface-light);
    border-radius: 6px;
}

.mockup-line {
    grid-column: span 2;
    height: 12px;
    background: var(--surface-light);
    border-radius: 4px;
}

/* About Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.image-box {
    position: relative;
}

.avatar-mockup {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    border: 8px solid var(--surface);
    box-shadow: var(--shadow);
}

.stats-card {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--glass);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    text-align: center;
    box-shadow: var(--shadow);
}

.stats-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
}

.about-features {
    margin-top: 3rem;
}

.feature-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-icon {
    font-size: 2rem;
    background: var(--surface);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.feature-item h4 {
    margin-bottom: 0.25rem;
}

.feature-item p {
    color: var(--text-dim);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.skill-card {
    background: var(--surface);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: 0.4s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.skill-group-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--accent);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    background: var(--surface-light);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    color: var(--text-dim);
}

/* Projects Section */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.75rem;
    margin-top: 3.25rem;
}

.screenshot-crop {
    object-fit: contain;
    object-position: center center;
    width: 100%;
    height: 100%;
    display: block;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: brightness(0.9) contrast(1.1);
}

.project-card:hover .screenshot-crop {
    transform: scale(1.025) translateY(-1%);
    filter: brightness(1.05) contrast(1.1);
}

.project-card {
    background: linear-gradient(180deg, rgba(18, 27, 48, 0.9), rgba(9, 14, 31, 0.92));
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: 0.4s ease;
    box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.project-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 24px 72px -30px rgba(34, 211, 238, 0.28), 0 22px 58px rgba(0,0,0,0.46);
}

.project-image {
    position: relative;
    aspect-ratio: 20/9;
    overflow: hidden;
    padding: 0.75rem;
    background:
        radial-gradient(circle at 18% 0%, rgba(34, 211, 238, 0.22), transparent 34%),
        radial-gradient(circle at 85% 20%, rgba(124, 58, 237, 0.24), transparent 38%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.98));
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.4);
    transition: 0.6s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.025) translateY(-1%);
}

.project-overlay {
    position: absolute;
    bottom: 16px;
    left: 16px;
}

.project-category {
    background: rgba(5, 8, 22, 0.72);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 0.34rem 0.82rem;
    border-radius: 50px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-info {
    padding: 1.55rem;
}

.project-info h3 {
    margin-bottom: 0.75rem;
    font-size: 1.26rem;
}

.project-info p {
    color: var(--text-dim);
    margin-bottom: 1.1rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 0.55rem;
    margin-bottom: 1.35rem;
    flex-wrap: wrap;
}

.project-tags span {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 700;
    padding: 0.28rem 0.62rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.14);
}

.project-actions {
    display: flex;
    gap: 1rem;
}

.project-points {
    display: grid;
    gap: 0.55rem;
    margin-bottom: 1.2rem;
    color: var(--text-dim);
    font-size: 0.84rem;
    line-height: 1.58;
}

.project-points strong {
    color: var(--white);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.process-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid rgba(255,255,255,0.11);
    border-radius: 24px;
    padding: 2rem;
    transition: 0.3s ease;
}

.process-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.28);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28), 0 0 44px rgba(34, 211, 238, 0.08);
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1.2rem;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--accent);
    font-weight: 800;
    letter-spacing: 0.06em;
}

.process-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.process-card p {
    color: rgba(255,255,255,0.48);
    font-size: 0.9rem;
    line-height: 1.7;
}

.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.fit-card h3 {
    font-size: 1.05rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,0.92);
}

.fit-card .testimonial-text {
    margin-bottom: 0;
    font-style: normal;
}

/* Preview Section */
.dashboard-mock {
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 0;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.demo-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ef4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* Contact Section */
.contact-box {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 28px 86px rgba(0,0,0,0.46), 0 0 60px rgba(79, 70, 229, 0.1);
    position: relative;
}

/* LEFT panel - info side */
.contact-info {
    padding: 2.35rem;
    background:
        radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.24), transparent 34%),
        linear-gradient(145deg, #0b1638 0%, #050816 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Glowing orb accents */
.contact-info::before {
    content: '';
    position: absolute;
    top: -70px;
    left: -70px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.32) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info::after {
    content: '';
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(124,58,237,0.3) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.contact-info-top { position: relative; z-index: 1; }

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 50px;
    padding: 0.32rem 0.78rem;
    font-size: 0.66rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.9px;
    margin-bottom: 1.45rem;
}

.contact-eyebrow span { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s infinite; }

.contact-info h2 {
    font-size: 1.28rem;
    line-height: 1.28;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.contact-info h2 .accent { 
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info-top p {
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    font-size: 0.86rem;
    max-width: 390px;
}

.contact-highlights {
    margin-top: 1.55rem;
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.72rem;
}

.contact-highlight-card {
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    transition: 0.3s ease;
}

.contact-highlight-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(34, 211, 238, 0.3);
    transform: translateX(4px);
}

.contact-highlight-card .label {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.62rem;
    letter-spacing: 0.9px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 0.34rem;
}

.contact-highlight-card .val {
    font-size: 0.84rem;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

/* Availability badge */
.contact-avail {
    position: relative;
    z-index: 1;
    margin-top: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.74rem;
    color: rgba(255,255,255,0.45);
}

.avail-dot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulse 2s infinite;
}

/* RIGHT panel - form side */
.contact-form {
    padding: 2.35rem;
    background: rgba(5, 8, 22, 0.96);
    position: relative;
}

.form-header {
    margin-bottom: 1.25rem;
}

.form-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.28rem;
}

.form-header p {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.82rem;
}

.form-group {
    margin-bottom: 0.82rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.34rem;
    font-weight: 500;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255,255,255,0.4);
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.76rem 0.88rem;
    border-radius: 10px;
    color: var(--white);
    font-family: inherit;
    font-size: 0.84rem;
    transition: 0.25s ease;
}

.form-group textarea {
    resize: none;
    height: 98px;
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255,255,255,0.2);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.52);
    background: rgba(34, 211, 238, 0.055);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12), 0 0 30px rgba(79, 70, 229, 0.1);
}

.btn-send {
    width: 100%;
    padding: 0.84rem;
    border: none;
    border-radius: 12px;
    background: var(--gradient);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-send::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-send:hover::before { opacity: 1; }
.btn-send:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(34, 211, 238, 0.26), 0 12px 34px rgba(79, 70, 229, 0.28); }

.btn-send span { position: relative; z-index: 1; }

.form-note {
    text-align: center;
    margin-top: 0.8rem;
    color: rgba(255,255,255,0.25);
    font-size: 0.76rem;
}

.form-status {
    min-height: 1.4rem;
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.68);
}

.form-status.is-success {
    color: #34d399;
}

.form-status.is-error {
    color: #fda4af;
}

.hidden-field {
    position: absolute;
    left: -9999px;
}

/* Footer Section */
.footer {
    padding: 8rem 0 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.footer-logo span {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding-top: 0;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

/* Scroll Top */
.scroll-top {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: var(--gradient-vibrant);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    display: none;
    z-index: 999;
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.25), 0 10px 28px rgba(79, 70, 229, 0.28);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container, .grid-2, .contact-box {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .process-grid,
    .preview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .hero {
        text-align: center;
        padding-top: 132px;
    }
    
    .hero h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    
    .hero-btns { justify-content: center; }
    
    .contact-info, .contact-form {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 12px);
        left: 1rem;
        right: 1rem;
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
        border: 1px solid var(--border);
        border-radius: 18px;
        background: rgba(5, 8, 22, 0.96);
        backdrop-filter: blur(18px) saturate(150%);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
    }

    .nav-links.open {
        display: flex;
    }
    
    .nav-toggle {
        display: inline-flex;
    }
    
    .hero h1 { font-size: 3rem; }

    .hero p {
        font-size: 1.05rem;
    }
    
    .skills-grid,
    .process-grid,
    .preview-grid,
    .project-grid,
    .form-row,
    .footer-bottom {
        grid-template-columns: 1fr;
    }

    .project-actions,
    .hero-btns,
    .cta-banner .cta-btns {
        flex-direction: column;
    }

    .project-actions .btn,
    .hero-btns .btn,
    .cta-banner .btn {
        width: 100%;
    }
}

/* Case Study Split List Alignment */
.split-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.split-item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: flex-start;
}

.split-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.4;
}

.split-title::before {
    content: "✔";
    color: var(--accent);
    flex-shrink: 0;
}

.split-desc {
    color: var(--text-dim);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .split-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}



@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto;
    }

    .fade-in,
    .reveal,
    .btn,
    .service-card,
    .project-card,
    .process-card,
    .detail-item,
    .btn-send {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .reveal {
        opacity: 1;
    }
}

/* Vibrant Button Upgrade */
.btn-vibrant {
    background: var(--gradient-vibrant);
    background-size: 200% auto;
    color: white !important;
    font-weight: 800;
    box-shadow: 0 18px 48px rgba(79, 70, 229, 0.36), 0 0 36px rgba(34, 211, 238, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.32);
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: shine-flow 4s infinite linear;
}

@keyframes shine-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn-vibrant:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 24px 70px rgba(34, 211, 238, 0.32), 0 18px 54px rgba(79, 70, 229, 0.42);
    filter: brightness(1.15);
    background-position: right center;
}
