:root {
    /* Base Colors - Dark Mode Default */
    --bg-color: #050505;
    /* Near black */
    --surface-color: rgba(255, 255, 255, 0.03);
    --surface-border: rgba(255, 255, 255, 0.08);
    --text-color: #f8fafc;
    --text-muted: #94a3b8;

    /* Brand Colors */
    --primary-1: #0F172A;
    /* Deep modern base color */
    --primary-2: #00F5FF;
    /* Vibrant accent - electric cyan */
    --primary-3: #8B5CF6;
    /* Soft highlight - purple/pink */

    /* Gradient variants for backgrounds & text */
    --gradient-1: linear-gradient(135deg, var(--primary-2), var(--primary-3));
    --glow-color: rgba(0, 245, 255, 0.3);

    /* Layout */
    --container-width: 1200px;
    --nav-height: 90px;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Z-index */
    --z-bg: -1;
    --z-content: 1;
    --z-mobile-menu: 90;
    --z-nav: 100;
    --z-cursor: 9999;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    /* light slate */
    --surface-color: rgba(0, 0, 0, 0.03);
    --surface-border: rgba(0, 0, 0, 0.08);
    --text-color: #0F172A;
    --text-muted: #475569;
    --glow-color: rgba(139, 92, 246, 0.2);
    --primary-2: #0284c7;
    /* darker cyan for better visibility on light background */
}

/* ==========================================================================
   Base Reset
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    /* Enforce custom cursor globally */
}

html {
    scroll-behavior: initial;
    overflow-x: hidden;
    /* Lenis handles smooth scroll */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--primary-3);
    color: #fff;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--surface-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-3);
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: var(--z-content);
}

.section-padding {
    padding: 8rem 0;
}

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-10 {
    margin-top: 3rem;
}

.text-muted {
    color: var(--text-muted);
}

.gradient-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* ==========================================================================
   Preloader
   ========================================================================== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-color);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 2px solid transparent;
    border-top-color: var(--primary-2);
    border-bottom-color: var(--primary-3);
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.logo-loader {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
    animation: pulse 2s infinite ease-in-out;
}

.logo-loader span {
    color: var(--primary-2);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   Custom Cursor
   ========================================================================== */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: var(--z-cursor);
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-2);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary-2);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 245, 255, 0.1);
    border-color: var(--primary-2);
}

/* ==========================================================================
   Background Effects
   ========================================================================== */


.bg-glow {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: var(--z-bg);
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-2);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--primary-3);
    bottom: -200px;
    right: 10%;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-2);
    top: 40%;
    left: 30%;
    opacity: 0.15;
}

[data-theme="light"] .glow-orb {
    opacity: 0.1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.8rem;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px var(--glow-color);
}

.btn-secondary {
    background: var(--surface-color);
    color: var(--text-color);
    border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--surface-border);
}

.btn-outline:hover {
    border-color: var(--primary-2);
}

.btn-glow:hover {
    box-shadow: 0 0 25px var(--glow-color), 0 0 50px var(--primary-3);
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: var(--z-nav);
    transition: background 0.3s ease, border-bottom 0.3s ease, padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--surface-border);
    height: 70px;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(248, 250, 252, 0.8);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-color);
}

.logo span {
    color: var(--primary-2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-1);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-2);
}

[data-theme="light"] .theme-toggle .moon-icon {
    display: block;
}

[data-theme="light"] .theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    z-index: var(--z-mobile-menu);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--text-color);
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    position: relative;
}

.hero-content {
    max-width: 900px;
}

.badge-wrapper {
    margin-bottom: 2rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    /* green */
    border-radius: 50%;
    position: relative;
}

.pulse::before {
    content: '';
    position: absolute;
    inset: -4px;
    background-color: rgba(16, 185, 129, 0.4);
    border-radius: 50%;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.hero-title {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.hero-greeting {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-body p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-visual {
    position: relative;
    display: flex;
    gap: 2rem;
}

.visual-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    padding: 2.5rem;
    width: calc(50% - 1rem);
    position: relative;
    overflow: hidden;
}

.visual-card-offset {
    margin-top: 4rem;
}

.card-glass {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-icon {
    color: var(--primary-2);
    width: 40px;
    height: 40px;
    margin-bottom: 2rem;
}

.visual-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.visual-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
    padding: 2rem 0 8rem 0;
    /* Tighten up top padding */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 30px;
    padding: 4rem 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 50%;
    background: var(--surface-border);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* ==========================================================================
   Tech Stack Section
   ========================================================================== */
.tech-categories {
    margin-top: 5rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.category-title i {
    color: var(--primary-3);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.tech-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.tech-card img {
    width: 35px;
    height: 35px;
}

.tech-card i {
    width: 35px;
    height: 35px;
    color: var(--primary-2);
}

.tech-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 245, 255, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .tech-card:hover {
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */
.timeline {
    margin-top: 5rem;
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--surface-border);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
}

.timeline-dot {
    position: absolute;
    left: -2.4rem;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-2);
    border: 4px solid var(--bg-color);
    box-shadow: 0 0 10px var(--primary-2);
}

.timeline-date {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-3);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.company-name {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.company-role {
    font-size: 1.4rem;
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.company-desc {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
}

.contributions {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contributions li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    color: var(--text-muted);
}

.contributions i {
    color: var(--primary-2);
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tags span {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.timeline-projects {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--surface-border);
}

.sub-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.project-card {
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-3);
}

.project-tag {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary-2);
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.project-role {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.tech-tags.sm span {
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
}

/* ==========================================================================
   Templates Section
   ========================================================================== */
.templates-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 5rem;
}

.template-card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.template-mockup {
    height: 300px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--surface-border);
    display: flex;
    flex-direction: column;
    padding: 1rem;
    overflow: hidden;
}

.browser-top {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.browser-top span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--surface-border);
}

.browser-top span:nth-child(1) {
    background: #ff5f56;
}

.browser-top span:nth-child(2) {
    background: #ffbd2e;
}

.browser-top span:nth-child(3) {
    background: #27c93f;
}

.mockup-img {
    flex-grow: 1;
    border-radius: 8px 8px 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #fff;
    font-size: 1.5rem;
    font-family: var(--font-heading);
    transition: transform 0.5s ease;
}

.placeholder-gradient {
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.placeholder-gradient-2 {
    background: linear-gradient(135deg, #2d1b69, #120b29);
}

.template-mockup:hover .mockup-img {
    transform: scale(1.05);
}

.mockup-icon {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

.template-info {
    padding: 2.5rem;
}

.template-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.template-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.template-actions {
    display: flex;
    gap: 1rem;
}

/* ==========================================================================
   Why Hire Me Section
   ========================================================================== */
.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.why-list li {
    display: flex;
    gap: 1.5rem;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-2);
    flex-shrink: 0;
}

.list-text h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.list-text p {
    color: var(--text-muted);
}

.glass-box {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
}

.glass-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

.glass-box h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
    outline: none;
}

[data-theme="light"] .input-group input,
[data-theme="light"] .input-group textarea {
    background: #fff;
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--primary-2);
}

.input-group textarea {
    resize: vertical;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--surface-border);
    padding: 4rem 0 2rem 0;
    margin-top: 4rem;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.footer-location i {
    width: 20px;
    height: 20px;
    color: var(--primary-2);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-3);
    color: #fff;
    border-color: var(--primary-3);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--surface-border);
    padding-top: 2rem;
}

/* ==========================================================================
   Services Page Styles
   ========================================================================== */

/* Services List */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    position: relative;
    border-radius: 20px;
    padding: 2.5rem;
    overflow: hidden;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-2);
    box-shadow: 0 10px 30px rgba(0, 245, 255, 0.1);
}

.service-card .card-glass {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
    border-radius: 20px;
}

.service-content {
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 245, 255, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--primary-2);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: var(--gradient-1);
    color: #fff;
}

.service-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.service-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
    position: relative;
}

/* Connecting line for process steps */
@media screen and (min-width: 1025px) {
    .process-grid::before {
        content: '';
        position: absolute;
        top: 35px;
        left: 5%;
        right: 5%;
        height: 2px;
        background: var(--surface-border);
        z-index: 0;
    }
}

.process-step {
    position: relative;
    z-index: 1;
    text-align: center;
    background: var(--bg-color);
    padding: 2rem 1.5rem;
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.process-step:hover {
    border-color: var(--primary-3);
    transform: translateY(-5px);
}

.step-number {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem auto;
    background: var(--surface-color);
    border: 2px solid var(--surface-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    background: var(--gradient-1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.process-step h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.process-step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Why Choose Me Section */
.why-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--surface-color);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--surface-border);
    transition: all 0.3s ease;
}

.why-item:hover {
    border-color: var(--primary-2);
    background: rgba(0, 245, 255, 0.05);
    transform: translateX(5px);
}

.why-icon {
    color: var(--primary-2);
    min-width: 24px;
}

.why-item span {
    font-weight: 500;
    font-size: 1.1rem;

    .workflow-item:nth-child(odd) .workflow-content,
    .workflow-item:nth-child(even) .workflow-content {
        margin: 0 0 0 60px;
        width: calc(100% - 60px);
        padding: 2rem 1.5rem;
    }

    .workflow-grid::before {
        left: 20px;
    }

    .workflow-number {
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }

    .workflow-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .workflow-header .badge {
        margin-left: 0 !important;
    }
}

/* CTA Section */
.cta-glass-box {
    background: var(--surface-color);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-glass-box::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 30px;
    padding: 2px;
    background: var(--gradient-1);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.5;
}

.cta-glass-box h2 {
    font-size: 3.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* ==========================================================================
   Work Process Page Styles
   ========================================================================== */
.workflow-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
}

/* Vertical Connecting Line */
.workflow-grid::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: var(--surface-border);
    transform: translateX(-50%);
    z-index: 0;
}

.workflow-item {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

/* Display pattern (zigzag) */
.workflow-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.workflow-item:nth-child(odd) .workflow-content {
    margin-right: calc(50% + 40px);
}

.workflow-item:nth-child(even) .workflow-content {
    margin-left: calc(50% + 40px);
}

.workflow-number {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: var(--bg-color);
    border: 2px solid var(--surface-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.workflow-item:hover .workflow-number {
    border-color: var(--primary-2);
    box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.workflow-content {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 3rem;
    width: calc(50% - 40px);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
}

.workflow-content:hover {
    border-color: var(--primary-3);
    transform: translateY(-5px);
}

.workflow-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--surface-border);
    padding-bottom: 1.5rem;
}

.workflow-header h2 {
    font-size: 1.8rem;
    margin: 0;
}

.workflow-header .step-icon {
    width: 50px;
    height: 50px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-3);
}

.workflow-body p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.workflow-body p:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Page Styles
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    position: relative;
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

a.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-2);
    box-shadow: 0 15px 30px rgba(0, 245, 255, 0.1);
}

.contact-card .card-glass {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 0;
}

.contact-card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.contact-icon {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

a.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.whatsapp-icon {
    color: #25D366;
    background: rgba(37, 211, 102, 0.1);
}

a.contact-card:hover .whatsapp-icon {
    background: #25D366;
    color: #fff;
}

.phone-icon {
    color: var(--primary-2);
    background: rgba(0, 245, 255, 0.1);
}

a.contact-card:hover .phone-icon {
    background: var(--gradient-1);
    color: #fff;
}

.email-icon {
    color: var(--primary-3);
    background: rgba(139, 92, 246, 0.1);
}

a.contact-card:hover .email-icon {
    background: var(--gradient-1);
    color: #fff;
}

.location-icon {
    color: var(--text-color);
    background: var(--surface-border);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.action-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: gap 0.3s ease;
}

a.contact-card:hover .action-text {
    gap: 0.8rem;
}

/* ==========================================================================
   Works Page Styles
   ========================================================================== */

/* Portfolio Filters */
.portfolio-filters-section {
    padding-bottom: 2rem;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-1);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 0 15px rgba(0, 245, 255, 0.4);
}

/* Case Studies */
.case-studies-container {
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.case-study-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.case-study-visual {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.case-mockup {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    overflow: hidden;
}

.case-study-visual .mockup-img {
    height: 480px;
}

.case-study-content {
    display: flex;
    flex-direction: column;
}

.case-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.case-category {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary-3);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.case-year {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.case-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.case-role {
    font-size: 1rem;
    color: var(--primary-2);
    margin-bottom: 2rem;
}

.case-details h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.case-section {
    margin-bottom: 1.5rem;
}

.case-section p {
    color: var(--text-muted);
    line-height: 1.7;
}

.case-features,
.case-results {
    margin-bottom: 1.5rem;
}

.case-features ul,
.case-results ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.case-features li,
.case-results li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.case-features i,
.case-results i {
    width: 18px;
    height: 18px;
    color: var(--primary-2);
    flex-shrink: 0;
    margin-top: 2px;
}

.case-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.case-tech span {
    background: var(--bg-color);
    border: 1px solid var(--surface-border);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.case-actions {
    display: flex;
    gap: 1rem;
}

/* Utilities used in Works page */
.hero-internal {
    padding-top: 180px;
    padding-bottom: 100px;
    min-height: auto;
}

.mw-800 {
    max-width: 800px;
}

.mw-600 {
    max-width: 600px;
}

.text-sm {
    font-size: 0.9rem;
}

.bg-surface {
    background: var(--surface-color);
}

.text-primary-2 {
    color: var(--primary-2);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.feature-list i {
    width: 18px;
    height: 18px;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-6 {
    margin-top: 3rem;
}

.mt-8 {
    margin-top: 4rem;
}

.mt-10 {
    margin-top: 5rem;
}

/* ==========================================================================
   GSAP Initial States (Prevent layout jumps before JS loads)
   ========================================================================== */
.gs-reveal,
.gs-reveal-text,
.gs-fade-up,
.gs-fade-left,
.gs-fade-right,
.gs-scale {
    opacity: 0;
}

/* ==========================================================================
   Client Logos Grid
   ========================================================================== */
.client-logos {
    width: 100%;
    padding: 6rem 0;
    background: var(--surface-color);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
}

.client-logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.client-logo img {
    height: 100%;
    width: 100%;
    max-height: 50px;
    max-width: 140px;
    object-fit: contain;
    opacity: 0.6;
    filter: grayscale(100%) brightness(1.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 245, 255, 0.3);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 245, 255, 0.1);
}

.client-logo:hover img {
    opacity: 1;
    filter: grayscale(0%) brightness(1);
}

.maintenance-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.maintenance-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--primary-2);
    opacity: 0.9;
    position: relative;
    padding-left: 2rem;
    display: flex;
    align-items: center;
}

.maintenance-title::before {
    content: '';
    position: absolute;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-2);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-2), 0 0 20px var(--glow-color);
}

.maintenance-title::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid var(--primary-2);
    border-radius: 50%;
    opacity: 0.5;
}

.maintenance-section .client-logos-grid {
    width: 100%;
    margin: 0;
}



/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 1024px) {
    .case-study-block {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .case-study-block.alternate .case-study-content {
        order: 2;
    }

    .case-study-block.alternate .case-study-visual {
        order: 1;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .about-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .why-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .visual-card-offset {
        margin-top: 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .templates-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    .nav-actions .btn {
        display: none;
    }

    .nav-actions {
        display: flex !important;
        margin-left: auto;
        flex-shrink: 0;
        z-index: 1000;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-title {
        font-family: 'Courgette', cursive;
        font-size: 3rem;
        word-wrap: break-word;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 2rem);
        padding-bottom: 0rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-visual {
        flex-direction: column;
    }

    .visual-card {
        width: 100%;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-grid::before {
        display: none;
    }

    .why-list-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cta-glass-box {
        padding: 2.5rem 1.5rem;
    }

    .cta-glass-box h2 {
        font-size: 2.5rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .workflow-grid::before {
        left: 40px;
        transform: none;
    }

    .workflow-item:nth-child(odd),
    .workflow-item:nth-child(even) {
        flex-direction: row;
    }

    .workflow-item:nth-child(odd) .workflow-content,
    .workflow-item:nth-child(even) .workflow-content {
        margin: 0 0 0 80px;
        width: calc(100% - 80px);
    }

    .workflow-number {
        left: 40px;
        top: 0;
        transform: translate(-50%, 0);
    }


    .timeline::before {
        left: 8px;
    }

    .timeline-dot {
        left: -1rem;
    }

    .footer-top,
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media screen and (max-width: 575px) {

    .case-features ul,
    .case-results ul {
        grid-template-columns: 1fr;
    }

    .client-logos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .client-logo {
        height: 80px;
        padding: 1rem;
    }

    .client-logo img {
        max-height: 45px;
    }
}

@media screen and (max-width: 480px) {
    .client-logos-grid {
        gap: 1rem;
    }

    .client-logo {
        height: 70px;
        padding: 0.8rem;
    }

    .client-logo img {
        max-height: 35px;
    }

    .mobile-link {
        font-size: 1.8rem;
    }

    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-greeting {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    form>div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .tech-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        /* hide scrollbar for clean look */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tech-grid::-webkit-scrollbar {
        display: none;
    }

    .tech-card {
        flex: 0 0 calc(33.333% - 0.66rem);
        scroll-snap-align: start;
        padding: 1rem 0.5rem;
    }

    .tech-card img,
    .tech-card svg,
    .tech-card i {
        width: 30px;
        height: 30px;
        margin-bottom: 0.5rem;
    }

    .tech-card span {
        font-size: 0.8rem;
    }

    .glass-box {
        padding: 2rem;
    }
}

/* jQuery Validation Errors */
label.error {
    color: #ff4d4d;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: block;
    text-align: left;
}

input.error,
textarea.error {
    border-color: #ff4d4d !important;
}

/* Fix for browser autofill background color */
.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus,
.input-group textarea:-webkit-autofill,
.input-group textarea:-webkit-autofill:hover,
.input-group textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-color);
    transition: background-color 5000s ease-in-out 0s;
}