/* 
 * EV Charging at Home - Main Stylesheet
 * Modern, clean-energy brand aesthetic
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Light Mode (Default) */
    --primary: #10B981;
    /* Emerald 500 */
    --primary-dark: #059669;
    /* Emerald 600 */
    --secondary: #0EA5E9;
    /* Sky 500 */
    --secondary-dark: #0284C7;
    /* Sky 600 */
    --accent: #F59E0B;
    /* Amber 500 */

    --bg-body: #F8FAFC;
    /* Slate 50 */
    --bg-surface: #FFFFFF;
    --bg-surface-2: #F1F5F9;
    /* Slate 100 */

    --text-main: #0F172A;
    /* Slate 900 */
    --text-muted: #64748B;
    /* Slate 500 */
    --text-light: #94A3B8;
    /* Slate 400 */

    --border: #E2E8F0;
    /* Slate 200 */
    --border-hover: #CBD5E1;
    /* Slate 300 */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-full: 9999px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --nav-height: 80px;
}

[data-theme="dark"] {
    --bg-body: #0F172A;
    /* Slate 900 */
    --bg-surface: #1E293B;
    /* Slate 800 */
    --bg-surface-2: #020617;
    /* Slate 950 */

    --text-main: #F8FAFC;
    /* Slate 50 */
    --text-muted: #94A3B8;
    /* Slate 400 */
    --text-light: #64748B;
    /* Slate 500 */

    --border: #334155;
    /* Slate 700 */
    --border-hover: #475569;
    /* Slate 600 */

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Grid & Layout Utilities */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-3 {
    grid-template-columns: repeat(1, 1fr);
}

.grid-cols-4 {
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Flex Layout Utilities */
.flex {
    display: flex;
}

.flex-1 {
    flex: 1 1 0%;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.flex-wrap {
    flex-wrap: wrap;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.w-full {
    width: 100%;
}

/* Spacing Utilities */
.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-16 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-6 {
    margin-top: 1.5rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mt-16 {
    margin-top: 4rem;
}

.mt-auto {
    margin-top: auto;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

.p-4 {
    padding: 1rem;
}

.p-6 {
    padding: 1.5rem;
}

.p-8 {
    padding: 2rem;
}

.p-12 {
    padding: 3rem;
}

.p-16 {
    padding: 4rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.py-32 {
    padding-top: 8rem;
    padding-bottom: 8rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-body);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 10px 15px -3px rgba(16, 185, 129, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-surface);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: var(--bg-surface-2);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: var(--text-main);
}

/* Form Elements */
.input-group {
    margin-bottom: 1rem;
}

.label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-main);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: border-color 0.2s;
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--nav-height);
    width: 100%;
    background-color: transparent;
    transition: background-color 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    z-index: -1;
    transition: all 0.3s ease;
}

.header.scrolled::before {
    box-shadow: var(--shadow-sm);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .header.scrolled::before {
    background-color: rgba(15, 23, 42, 0.95);
}

[data-theme="dark"] .header::before {
    background-color: rgba(15, 23, 42, 0.8);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--text-main);
}

.logo-icon {
    color: var(--primary);
}

/* Nav Menu */
.nav-menu {
    display: none;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .nav-actions {
        display: flex;
    }
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.theme-toggle:hover {
    background-color: var(--bg-surface-2);
    color: var(--primary);
}

/* Nav Controls Container (Mobile Only) */
.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

@media (min-width: 1024px) {
    .nav-controls {
        display: none;
    }
}


/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-full);
}

.mobile-menu-btn:hover {
    background-color: var(--bg-surface-2);
}

/* Mobile Menu Active State */
/* Mobile Menu Active State */
.nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--nav-height));

    background-color: var(--bg-surface);
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    z-index: 999;
    overflow-y: auto;

    align-items: center;
    justify-content: flex-start;
    padding: 1.25rem 1.5rem;
    /* Reduced from 2rem */
    gap: 0.25rem;
    /* Reduced from 0.5rem */
    /* Minimized gap */

    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-menu.active .nav-link {
    font-size: 1.125rem;
    padding: 0.25rem 0;
    border-bottom: none;
    width: 100%;
    text-align: center;
}

/* Mobile Nav Buttons */
.mobile-nav-auth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* Reduced from 0.75rem */
    margin-top: 0.75rem;
    /* Reduced from 1.5rem */
    width: 100%;
    max-width: 240px;
    /* Reduced from 320px for a slimmer look */
}

.mobile-nav-auth .btn {
    width: 100%;
    padding: 0.5rem 1rem;
    /* Reduced padding */
    font-size: 0.875rem;
    /* Smaller font size */
}

@media (min-width: 1024px) {
    .mobile-nav-auth {
        display: none;
    }
}

/* Responsive Nav */
@media (min-width: 1024px) {
    .nav-menu {
        display: flex;
        /* Always flex on desktop */
        flex-direction: row;
        position: static;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    /* Override any active state styles just in case */
    .nav-menu.active {
        display: flex;
        flex-direction: row;
        position: static;
        padding: 0;
        border: none;
        box-shadow: none;
        background: transparent;
    }

    .mobile-menu-btn {
        display: none;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer {
    background-color: #0B1120;
}

.footer-content {
    display: grid;
    gap: 3rem;
    grid-template-columns: repeat(1, 1fr);
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 1rem;
    max-width: 300px;
}

.footer-heading {
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-surface-2);
    border-radius: 50%;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.footer-social-link:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.15) translateY(-5px);
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer-contact-item i {
    color: var(--primary);
    font-size: 1rem;
    width: 16px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transition: all 0.4s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(16, 185, 129, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
    text-align: center;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Hero Sections */
.hero {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.7), rgba(15, 23, 42, 0.5)),
        rgba(15, 23, 42, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
}

.hero-buttons {
    justify-content: center;
}

/* Cards */
/* Cards */
.card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    background-color: var(--bg-surface-2);
}

.card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-body>*:last-child {
    margin-top: auto;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    font-weight: 700;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex: 1;
}


/* Products Grid - Center Alignment for few items */
.products-grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.products-grid .card {
    flex: 1 1 380px;
    max-width: 400px;
    min-width: 300px;
}

@media (max-width: 767px) {
    .products-grid .card {
        max-width: 100%;
    }
}

/* Installer Finder */
.search-bar {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.installer-card {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
}

.installer-avatar {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background-color: var(--bg-surface-2);
    object-fit: cover;
}

/* Auth Pages */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-surface-2);
    padding: 2rem 1.5rem;
}

@media (max-width: 480px) {
    .auth-container {
        align-items: flex-start;
        padding: 3rem 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}

.auth-card {
    background-color: var(--bg-surface);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 480px;
    border: 1px solid var(--border);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider::before {
    margin-right: .5em;
}


@media (max-width: 768px) {
    .auth-container {
        padding: 0;
        align-items: center;
        height: 100vh;
        overflow: hidden;
    }

    .auth-card {
        padding: 1.5rem;
        box-shadow: none;
        border: none;
        max-width: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
    }

    .auth-header {
        margin-bottom: 1rem;
        flex-shrink: 0;
    }

    .auth-header .logo {
        margin-bottom: 0.5rem !important;
        font-size: 1.25rem;
    }

    .auth-header h2 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .auth-header p {
        font-size: 0.875rem;
    }

    .input-group {
        margin-bottom: 0.75rem;
    }

    .input-group .label {
        font-size: 0.875rem;
        margin-bottom: 0.125rem;
    }

    .input {
        padding: 0.625rem .75rem;
        padding-left: 2.5rem !important;
        font-size: 0.9375rem;
    }

    .password-toggle {
        top: 50%;
    }

    .btn {
        padding: 0.625rem;
        font-size: 1rem;
    }

    .divider {
        margin: 0.75rem 0;
        font-size: 0.75rem;
    }

    .social-login {
        margin-bottom: 0.75rem;
        gap: 0.5rem;
    }

    .text-center.mt-6 {
        margin-top: 1rem;
        font-size: 0.875rem;
    }

    /* Signup specific adjustments */
    form .grid.gap-4 {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }


    .flex.items-center.gap-2.mb-6 {
        margin-bottom: 1rem;
    }

    .top-3\.5 {
        top: 0.625rem !important;
    }
}

.divider::after {
    margin-left: .5em;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Responsive Utilities */
.hidden-mobile {
    display: none;
}

.hidden-desktop {
    display: block;
}

@media (min-width: 1024px) {
    .hidden-mobile {
        display: block;
    }

    .hidden-desktop {
        display: none;
    }
}

/* Utilities needed for proper layout */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* Border Utilities */
.border {
    border: 1px solid var(--border);
}

.border-t {
    border-top: 1px solid var(--border);
}

.border-b {
    border-bottom: 1px solid var(--border);
}

.border-border {
    border-color: var(--border);
}

.border-primary {
    border-color: var(--primary);
}

.top-8 {
    top: 2rem;
}

.left-8 {
    left: 2rem;
}

.left-3 {
    left: 0.75rem;
}

.top-3\.5 {
    top: 0.875rem;
}

/* Matches Tailwind top-3.5 roughly */
.pl-10 {
    padding-left: 2.5rem !important;
}

/* Force padding over default input padding */
.text-sm {
    font-size: 0.875rem;
}

.text-lg {
    font-size: 1.125rem;
}

.cursor-pointer {
    cursor: pointer;
}

.select-none {
    user-select: none;
}

.accent-primary {
    accent-color: var(--primary);
}

.text-light {
    color: var(--text-light);
}

.justify-center {
    justify-content: center;
}

/* Add Utility Classes */
.bg-surface {
    background-color: var(--bg-surface);
}


.bg-surface-2 {
    background-color: var(--bg-surface-2);
}

.bg-primary-subtle {
    background-color: rgba(16, 185, 129, 0.1);
}

.text-red {
    color: #ef4444;
}

/* Step Cards */
.step-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.step-number {
    background-color: var(--bg-surface-2);
    color: var(--text-main);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    display: inline-block;
}

[data-theme="dark"] .step-card {
    background-color: var(--bg-surface);
}

/* Feature Cards (Why Switch) */
.features-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(14, 165, 233, 0.1));
    color: var(--primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: rotate(10deg);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}



/* --- Contact Page: Follow Us Section --- */
.follow-us-section {
    display: flex;
    flex-direction: column;
}

.social-icons-wrapper {
    display: flex;
    gap: 1.25rem;
}

.social-icon-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: var(--bg-surface-2);
    color: var(--text-main);
    font-size: 1.25rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
}

/* Hover Effect: Lift/Scale + Color Change + Soft Shadow */
.social-icon-btn:hover {
    transform: translateY(-8px) scale(1.1);
    color: white;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Brand specific colors on hover for premium feel */
.social-icon-btn.facebook:hover {
    background-color: #1877F2;
}

.social-icon-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon-btn.twitter:hover {
    background-color: #000000;
}

.social-icon-btn.linkedin:hover {
    background-color: #0077B5;
}

/* Responsive alignment for mobile and tablet views */
@media (max-width: 1023px) {
    .follow-us-section {
        padding-left: 0;
        align-items: flex-start;
        /* Changed from center */
        text-align: left;
        /* Changed from center */
        margin-top: 3rem;
    }

    .social-icons-wrapper {
        justify-content: flex-start;
        /* Changed from center */
    }
}

[data-theme="dark"] .social-icon-btn {
    background-color: #1E293B;
    /* Slate 800 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .social-icon-btn:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
}