/* Portfolio styles, kept intact except for button overrides */
:root {
    --primary: #6366f1; /* Modern indigo */
    --secondary: #f59e0b; /* Amber accent */
    --dark: #1e293b; /* Deep slate */
    --light: #f8fafc; /* Light background */
    --text: #334155; /* Soft dark text */
    --global--size: clamp(2rem, 4vw, 5rem); /* For liquid button scaling */
    --anim--hover-time: 400ms;
    --anim--hover-ease: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--light);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
p { font-size: clamp(1rem, 1.2vw, 1.1rem); max-width: 65ch; }

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 6rem 0; }

/* Header */
header {
    position: fixed;
    width: 100%;
    z-index: 100;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 1.5rem;
    width: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

.logo:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    position: relative;
    transition: all 0.3s ease;
}

nav ul li a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover:after {
    width: 100%;
}

.mobile-menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    flex: 1;
    animation: fadeInUp 1s ease;
}

.hero h1 {
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.hero h1 span:after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    left: 0;
    width: 100%;
    height: 0.5rem;
    background-color: rgba(99, 102, 241, 0.2);
    z-index: -1;
    border-radius: 0.25rem;
}

.hero p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Hero Image */
.hero-image {
    flex: 1;
    position: relative;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: perspective(1000px) rotateY(-15deg);
    transition: transform 0.5s ease;
}

.hero-image:hover img {
    transform: perspective(1000px) rotateY(-5deg);
}

.hero-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(245, 158, 11, 0.1) 100%);
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    z-index: -1;
    animation: float 15s infinite ease-in-out;
}

/* Works Section */
.works { background-color: white; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2:after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 4rem;
    height: 0.25rem;
    background-color: var(--secondary);
    border-radius: 0.25rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--secondary);
    color: var(--dark);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text);
    opacity: 0.8;
}

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

/* Contact Section */
.contact {
    background-color: var(--light);
    position: relative;
}

.contact-container {
    display: flex;
    gap: 4rem;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-text h4 {
    margin-bottom: 0.25rem;
}

.contact-text a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: var(--secondary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.contact-form {
    flex: 1;
    background-color: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo-img {
    height: 2.5rem;
    width: auto;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.footer-logo:hover .footer-logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

.footer-links {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(-50%) rotate(0deg); }
    50% { transform: translateY(-50%) rotate(5deg); }
    100% { transform: translateY(-50%) rotate(0deg); }
}

/* Dotted Background Animation */
@keyframes drift {
    0% { background-position: 0 0; }
    100% { background-position: 30px 30px; }
}

.dotted-background {
    animation: drift 30s linear infinite;
}

/* Liquid Glass Button Styles - Exact copy from provided CSS */
@property --angle-1 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -75deg;
}

@property --angle-2 {
    syntax: "<angle>";
    inherits: false;
    initial-value: -45deg;
}

.button-wrap {
        display: inline-block;
    position: relative;
    z-index: 2;
    border-radius: 999vw;
    background: transparent;
    pointer-events: none;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

.button-shadow {
    --shadow-cuttoff-fix: 2em;
    position: absolute;
    width: calc(100% + var(--shadow-cuttoff-fix));
    height: calc(100% + var(--shadow-cuttoff-fix));
    top: calc(0% - var(--shadow-cuttoff-fix) / 2);
    left: calc(0% - var(--shadow-cuttoff-fix) / 2);
    filter: blur(clamp(2px, 0.125em, 12px));
    -webkit-filter: blur(clamp(2px, 0.125em, 12px));
    -moz-filter: blur(clamp(2px, 0.125em, 12px));
    -ms-filter: blur(clamp(2px, 0.125em, 12px));
    overflow: visible;
    pointer-events: none;
}

.button-shadow::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: 999vw;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.1));
    width: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    height: calc(100% - var(--shadow-cuttoff-fix) - 0.25em);
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    left: calc(var(--shadow-cuttoff-fix) - 0.875em);
    padding: 0.125em;
    box-sizing: border-box;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    overflow: visible;
    opacity: 1;
}

button {
    --border-width: clamp(1px, 0.0625em, 4px);
    all: unset;
    cursor: pointer;
    position: relative;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    pointer-events: auto;
    z-index: 3;
    background: linear-gradient(
        -75deg,
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.2),
        rgba(255, 255, 255, 0.05)
    );
    border-radius: 999vw;
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
        0 0 0 0 rgba(255, 255, 255, 1);
    backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -webkit-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -moz-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    -ms-backdrop-filter: blur(clamp(1px, 0.125em, 4px));
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
}

button:hover {
    transform: scale(0.975);
    backdrop-filter: blur(0.01em);
    -webkit-backdrop-filter: blur(0.01em);
    -moz-backdrop-filter: blur(0.01em);
    -ms-backdrop-filter: blur(0.01em);
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
        0 0 0 0 rgba(255, 255, 255, 1);
}

button span {
    position: relative;
    display: flex; /* Modified for icon+text alignment */
    align-items: center;
    gap: 0.5rem; /* Space for icons */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: "Inter", sans-serif;
    letter-spacing: -0.05em;
    font-weight: 500;
    font-size: 1em;
    color: rgba(50, 50, 50, 1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.1);
    transition: all var(--anim--hover-time) var(--anim--hover-ease);
    padding-inline: 1.5em;
    padding-block: 0.875em;
}

button:hover span {
    text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.12);
}

button span::after {
    content: "";
    display: block;
    position: absolute;
    z-index: 1;
    width: calc(100% - var(--border-width));
    height: calc(100% - var(--border-width));
    top: calc(0% + var(--border-width) / 2);
    left: calc(0% + var(--border-width) / 2);
    box-sizing: border-box;
    border-radius: 999vw;
    overflow: clip;
    background: linear-gradient(
        var(--angle-2),
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.5) 40% 50%,
        rgba(255, 255, 255, 0) 55%
    );
    z-index: 3;
    mix-blend-mode: screen;
    pointer-events: none;
    background-size: 200% 200%;
    background-position: 0% 50%;
    background-repeat: no-repeat;
    transition: background-position calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease),
        --angle-2 calc(var(--anim--hover-time) * 1.25) var(--anim--hover-ease);
}

button:hover span::after {
    background-position: 25% 50%;
}

button:active span::after {
    background-position: 50% 15%;
    --angle-2: -15deg;
}

button::after {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    border-radius: 999vw;
    width: calc(100% + var(--border-width));
    height: calc(100% + var(--border-width));
    top: calc(0% - var(--border-width) / 2);
    left: calc(0% - var(--border-width) / 2);
    padding: var(--border-width);
    box-sizing: border-box;
    background: conic-gradient(
        from var(--angle-1) at 50% 50%,
        rgba(0, 0, 0, 0.5),
        rgba(0, 0, 0, 0) 5% 40%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0) 60% 95%,
        rgba(0, 0, 0, 0.5)
    ),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5));
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    transition: all var(--anim--hover-time) var(--anim--hover-ease),
        --angle-1 500ms ease;
    box-shadow: inset 0 0 0 calc(var(--border-width) / 2) rgba(255, 255, 255, 0.5);
}

button:hover::after {
    --angle-1: -125deg;
}

button:active::after {
    --angle-1: -75deg;
}

.button-wrap:has(button:hover) .button-shadow {
    filter: blur(clamp(2px, 0.0625em, 6px));
    -webkit-filter: blur(clamp(2px, 0.0625em, 6px));
    -moz-filter: blur(clamp(2px, 0.0625em, 6px));
    -ms-filter: blur(clamp(2px, 0.0625em, 6px));
    transition: filter var(--anim--hover-time) var(--anim--hover-ease);
}

.button-wrap:has(button:hover) .button-shadow::after {
    top: calc(var(--shadow-cuttoff-fix) - 0.875em);
    opacity: 1;
}

.button-wrap:has(button:active) {
    transform: rotate3d(1, 0, 0, 25deg);
}

.button-wrap:has(button:active) button {
    box-shadow: inset 0 0.125em 0.125em rgba(0, 0, 0, 0.05),
        inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.5),
        0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.2),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
        0 0.225em 0.05em 0 rgba(0, 0, 0, 0.05),
        0 0.25em 0 0 rgba(255, 255, 255, 0.75),
        inset 0 0.25em 0.05em 0 rgba(0, 0, 0, 0.15);
}

.button-wrap:has(button:active) .button-shadow {
    filter: blur(clamp(2px, 0.125em, 12px));
    -webkit-filter: blur(clamp(2px, 0.125em, 12px));
    -moz-filter: blur(clamp(2px, 0.125em, 12px));
    -ms-filter: blur(clamp(2px, 0.125em, 12px));
}

.button-wrap:has(button:active) .button-shadow::after {
    top: calc(var(--shadow-cuttoff-fix) - 0.5em);
    opacity: 0.75;
}

.button-wrap:has(button:active) span {
    text-shadow: 0.025em 0.25em 0.05em rgba(0, 0, 0, 0.12);
}

@media (hover: none) and (pointer: coarse) {
    button span::after, button:active span::after { --angle-2: -45deg; }
    button::after, button:hover::after, button:active::after { --angle-1: -75deg; }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content { flex-direction: column; text-align: center; }
    .btn-group { justify-content: center; }
    .hero-image { margin-top: 3rem; }
    .contact-container { flex-direction: column; }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 5rem 2rem;
        transition: right 0.3s ease;
        z-index: 90;
    }
    nav.active { right: 0; }
    nav ul { flex-direction: column; gap: 1.5rem; }
    .mobile-menu { display: block; z-index: 100; }
    .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 1.5rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .button-wrap { width: 100%; }
    button { width: 100%; text-align: center; }
    button span { justify-content: center; }
}

@media (max-width: 768px) {
.dark-mode .navslide {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
}
}


/* Dark Mode Overrides */
.dark-mode {
    --light: #121212; /* Dark background */
    --dark: #e0e0e0; /* Light text and elements */
    --text: #c0c0c0; /* Softer text color */
    --primary: #8a8dff; /* Brighter primary color for contrast */
    --secondary: #ffc107; /* Brighter secondary color for contrast */
}

/* Base element overrides for dark mode */
.dark-mode body {
    background-color: var(--light);
    color: var(--text);
}

.dark-mode h1,
.dark-mode h2,
.dark-mode h3 {
    color: var(--dark);
}

.dark-mode header.scrolled {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
}

.dark-mode nav ul li a {
    color: var(--dark);
}

.dark-mode nav ul li a:hover {
    color: var(--primary);
}

.dark-mode .mobile-menu {
    color: var(--dark);
}

.dark-mode .section-header h2:after {
    background-color: var(--secondary);
}

/* Works section in dark mode */
.dark-mode .works {
    background-color: #1e1e1e;
}

.dark-mode .project-card {
    background-color: #1e1e1e;
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.05);
}

.dark-mode .project-card:hover {
    box-shadow: 0 20px 25px -5px rgba(255, 255, 255, 0.1);
}

.dark-mode .project-tag {
    background-color: var(--secondary);
    color: var(--light);
}

/* Contact section in dark mode */
.dark-mode .contact {
    background-color: var(--light);
}

.dark-mode .contact-form {
    background-color: #1e1e1e;
    box-shadow: 0 10px 15px -3px rgba(255, 255, 255, 0.05);
}

.dark-mode .contact-icon {
    background-color: rgba(138, 141, 255, 0.1);
    color: var(--primary);
}

.dark-mode .social-link {
    background-color: rgba(138, 141, 255, 0.1);
    color: var(--primary);
}

.dark-mode .social-link:hover {
    background-color: var(--primary);
    color: var(--light);
}

.dark-mode .form-group label {
    color: var(--dark);
}

.dark-mode .form-control {
    background-color: #2a2a2a;
    border: 1px solid #3d3d3d;
    color: var(--dark);
}

.dark-mode .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(138, 141, 255, 0.2);
}

/* Liquid button adjustments for dark mode */
.dark-mode button {
    background: linear-gradient(
        var(--angle-1),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05),
        rgba(255, 255, 255, 0.1)
    );
    box-shadow: inset 0 0.125em 0.125em rgba(255, 255, 255, 0.1),
        inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5),
        0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.5),
        0 0 0.1em 0.25em inset rgba(255, 255, 255, 0.2),
        0 0 0 0 rgba(255, 255, 255, 1);
}

.dark-mode button:hover {
    box-shadow: inset 0 0.125em 0.125em rgba(255, 255, 255, 0.05),
        inset 0 -0.125em 0.125em rgba(0, 0, 0, 0.5),
        0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.25),
        0 0 0.05em 0.1em inset rgba(255, 255, 255, 0.5),
        0 0 0 0 rgba(255, 255, 255, 1);
}

.dark-mode button span {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0em 0.25em 0.05em rgba(0, 0, 0, 0.3);
}

.dark-mode button:hover span {
    text-shadow: 0.025em 0.025em 0.025em rgba(0, 0, 0, 0.4);
}

/* Update this in styles.css */
.menu-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem; /* This controls the space between the toggle and the hamburger menu */
}

.dark-mode-toggle,
.mobile-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover,
.mobile-menu:hover {
    color: var(--primary);
}



.dark-mode nav ul li a {
    color: var(--dark); /* Light text color for the links */
}

.dark-mode nav ul li a:hover {
    color: var(--primary); /* Maintain the primary color for hover state */
}

.dark-mode footer {
    background-color: #10161f; 
    color: white;
    padding: 4rem 0 2rem;
}

/* Add this within your .dark-mode block in styles.css */
.dark-mode .dotted-background {
    fill: url(#dottedGridDark);
}

/* Liquid Glass Form Dark Mode Overrides */
.dark-mode .contact-form {
    background-color: rgba(18, 18, 18, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.05);
}

.dark-mode .contact-info h2,
.dark-mode .contact-info p,
.dark-mode .contact-info h4 {
    color: var(--dark);
}

.dark-mode .form-group label {
    color: var(--dark);
}

.dark-mode .form-control {
    background-color: rgba(18, 18, 18, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--dark);
}

.dark-mode .form-control:focus {
    background-color: rgba(18, 18, 18, 0.6);
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary);
}