        :root {
            --primary-color: #3a86ff;
            --secondary-color: #f2f2f2;
            --accent-color: #0056b3;
            --dark-bg: #f8f9fa;
            --darker-bg: #e0e0e0;
            --light-text: #111111;
            --gray-text: #333333;
            --text-shadow: 0 1px 3px rgba(0,0,0,0.1);
            --box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            --transition-fast: 0.3s ease;
            --transition-medium: 0.5s ease;
            --border-radius: 12px;
            --vh: 1vh; /* For iOS 100vh fix */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--dark-bg);
            color: var(--light-text);
            font-family: 'Raleway', sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
            scroll-behavior: smooth;
        }

        ::-webkit-scrollbar {
            width: 5px;
        }

        ::-webkit-scrollbar-track {
            background: var(--dark-bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary-color);
            border-radius: 3px;
        }

        .visually-hidden {
            position: absolute;
            width: 1px;
            height: 1px;
            margin: -1px;
            padding: 0;
            overflow: hidden;
            clip: rect(0, 0, 0, 0);
            border: 0;
        }

        a:focus, button:focus, input:focus, textarea:focus, [tabindex]:focus {
            outline: 3px solid var(--primary-color);
            outline-offset: 2px;
            box-shadow: 0 0 0 2px var(--secondary-color), 0 0 0 4px var(--primary-color);
        }

        header {
            background: rgba(255, 255, 255, 0.95);
            padding: 1rem 0;
            position: fixed;
            width: 100%;
            top: 0;
            z-index: 1000;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            transition: all var(--transition-fast);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        }

        .header-container {
            max-width: 1400px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 2rem;
        }

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

        .logo img {
            height: 40px;
            width: 40px;
            margin-right: 10px;
            border-radius: 50%;
            object-fit: cover;
        }

        .logo-text {
            color: var(--light-text);
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
        }

        .menu-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
            z-index: 1001;
        }

        .menu-toggle span {
            display: block;
            width: 25px;
            height: 3px;
            margin: 5px 0;
            background: var(--light-text);
            border-radius: 3px;
            transition: all var(--transition-fast);
        }

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

        nav a {
            color: var(--light-text);
            text-decoration: none;
            font-size: 1.1rem; 
            font-weight: 600;
            transition: all var(--transition-fast);
            position: relative;
            padding: 0.5rem 0;
        }

        nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-color);
            transition: width var(--transition-fast);
        }

        nav a:hover, nav a:focus {
            color: var(--primary-color);
        }

        nav a:hover::after, nav a:focus::after {
            width: 100%;
        }

        .hero {
            min-height: calc(var(--vh, 1vh) * 100);
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: url('https://github.com/SAPH1TE/Bo-Wiltse-Site/blob/main/art_3d/bowiltse%20blue%20and%20brown%20rendered%20.png?raw=true') no-repeat center center/cover;
            position: relative;
            overflow: hidden;
            padding-top: 70px;
        }


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

        .hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 3.5rem;
            margin-bottom: 1rem;
            color: var(--light-text);
            text-shadow: 0 2px 5px rgba(0,0,0,0.2);
            animation: glow 3s infinite alternate;
        }

        @keyframes glow { /* Subtle glow */
            0% { text-shadow: 0 0 8px rgba(0, 0, 0, 0.1); }
            100% { text-shadow: 0 0 15px rgba(0, 0, 0, 0.2); }
        }

        section {
            padding: 100px 0;
        }

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

        .section-title {
            text-align: center;
            font-size: 2.5rem;
            margin-bottom: 3rem;
            font-family: 'Playfair Display', serif;
            position: relative;
            color: var(--light-text);
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -15px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 3px;
        }

        .about {
            position: relative;
            background-color: white;
        }

        .about::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            z-index: 0;
        }

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

        .about-image {
            flex: 1;
            max-width: 400px;
            position: relative;
            border-radius: 50%;
            overflow: hidden;
            box-shadow: var(--box-shadow);
            border: 5px solid white;
        }

        .about-image::after {
            content: '';
            position: absolute;
            top: -5px;
            left: -5px;
            right: -5px;
            bottom: -5px;
            border: 2px solid var(--primary-color);
            border-radius: 50%;
            animation: pulse 3s infinite;
        }

        @keyframes pulse {
            0% { transform: scale(1); opacity: 1; }
            50% { transform: scale(1.05); opacity: 0.7; }
            100% { transform: scale(1); opacity: 1; }
        }

        .about-image img {
            width: 100%;
            height: auto;
            aspect-ratio: 1 / 1;
            object-fit: cover;
            transition: transform var(--transition-medium);
            display: block;
        }

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

        .about-text {
            flex: 2;
        }

        .about-text p {
            font-size: 1.1rem;
            color: var(--gray-text);
            line-height: 1.8;
            margin-bottom: 1.5rem;
        }

        .about-text p:last-child {
            margin-bottom: 0;
        }

        .highlight {
            color: var(--primary-color);
            font-weight: 600;
        }

        .services {
            background-color: white;
            position: relative;
            overflow: hidden;
        }

        .services::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            z-index: 0;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            position: relative;
            z-index: 1;
        }

        .service-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: transform var(--transition-fast), box-shadow var(--transition-fast);
            position: relative;
            height: 450px;
            display: flex;
            flex-direction: column;
            text-decoration: none;
            color: var(--light-text);
        }

        .service-card:hover, .service-card:focus-within {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .service-image {
            height: 250px;
            overflow: hidden;
            position: relative;
        }

        .service-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform var(--transition-medium);
        }

        .service-card:hover .service-image img,
        .service-card:focus-within .service-image img {
            transform: scale(1.1);
        }

        .service-video {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            opacity: 0;
            transition: opacity var(--transition-medium);
            z-index: 2;
        }

        .service-card:hover .service-video,
        .service-card:focus-within .service-video {
            opacity: 1;
        }

        .service-content {
            padding: 1.5rem;
            flex: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .service-title {
            font-size: 1.5rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: var(--light-text);
            position: relative;
        }

        .service-title::after {
            content: '';
            position: absolute;
            bottom: -7px;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary-color);
            transition: width var(--transition-fast);
        }

        .service-card:hover .service-title::after,
        .service-card:focus-within .service-title::after {
            width: 60px;
        }

        .service-description {
            color: var(--gray-text);
            margin-bottom: 1rem;
            line-height: 1.6;
        }

        .service-link {
            color: var(--primary-color);
            font-weight: 600;
            text-decoration: none;
            display: flex;
            align-items: center;
            margin-top: auto;
            transition: color var(--transition-fast);
        }

        .service-link:hover, .service-link:focus {
            color: var(--accent-color);
        }

        .service-link span {
            margin-left: 5px;
            transition: transform var(--transition-fast);
        }

        .service-link:hover span, .service-link:focus span {
            transform: translateX(5px);
        }

        .contact {
            background-color: white;
            position: relative;
        }

        .contact::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('https://github.com/SAPH1TE/Bo-Wiltse-Site/raw/main/ect/subtle-pattern.png') repeat;
            opacity: 0.05;
            z-index: 0;
        }

        .contact-container {
            display: flex;
            gap: 4rem;
            position: relative;
            z-index: 1;
        }

        .contact-info {
            flex: 1;
        }

        .contact-info .contact-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--light-text);
            font-family: 'Playfair Display', serif;
            position: relative;
        }

        .contact-info .contact-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--primary-color);
        }

        .contact-text {
            margin-bottom: 2rem;
            color: var(--gray-text);
            line-height: 1.8;
        }

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

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

        .contact-detail-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            margin-right: 1rem;
            color: white;
            font-size: 1.2rem;
        }

        .contact-detail-text {
            color: var(--gray-text);
        }

        .contact-detail-text a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color var(--transition-fast);
        }

        .contact-detail-text a:hover, .contact-detail-text a:focus {
            color: var(--accent-color);
            text-decoration: underline;
        }

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

        .social-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: var(--secondary-color);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: all var(--transition-fast);
            text-decoration: none;
            color: var(--gray-text);
            font-size: 1.2rem; /* Added for icon sizing, adjust if needed */
        }

        .social-icon:hover, .social-icon:focus {
            background: var(--primary-color);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(58, 134, 255, 0.3);
        }
        /* Optional: if you want finer control over icon size specifically */
        /*
        .social-icon i {
            font-size: 1.2rem;
        }
        */


        .contact-form-wrapper {
            flex: 1;
            background: var(--secondary-color);
            padding: 2rem;
            border-radius: var(--border-radius);
            box-shadow: var(--box-shadow);
        }
        .contact-form-wrapper .contact-title {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
            color: var(--light-text);
            font-family: 'Playfair Display', serif;
            position: relative;
        }
        .contact-form-wrapper .contact-title::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 50px;
            height: 2px;
            background: var(--primary-color);
        }


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

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

        .form-input {
            width: 100%;
            padding: 0.8rem 1rem;
            border: 1px solid #ddd;
            border-radius: 5px;
            font-size: 1rem;
            font-family: 'Raleway', sans-serif;
            transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
        }

        .form-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
        }

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

        .form-button {
            background: var(--primary-color);
            color: white;
            border: none;
            padding: 0.8rem 2rem;
            border-radius: 50px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition-fast);
            box-shadow: 0 4px 10px rgba(58, 134, 255, 0.3);
            display: inline-block;
        }

        .form-button:hover, .form-button:focus {
            background: var(--accent-color);
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(58, 134, 255, 0.4);
        }

        footer {
            background-color: whitesmoke;
            padding: 3rem 0 1rem;
            position: relative;
        }

        footer::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0.05;
            z-index: 0;
        }

        .footer-container {
            position: relative;
            z-index: 1;
        }

        .footer-top {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            margin-bottom: 3rem;
        }

        .footer-column {
            flex: 1;
            min-width: 200px;
            padding: 0 1rem;
            margin-bottom: 2rem;
        }

        .footer-logo {
            display: flex;
            align-items: center;
            margin-bottom: 1rem;
        }

        .footer-logo img {
            height: 50px;
            width: 50px;
            margin-right: 0.5rem;
            border-radius: 50%;
            object-fit: cover;
        }

        .footer-logo-text {
            font-family: 'Playfair Display', serif;
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--light-text);
        }

        .footer-about {
            margin-bottom: 1.5rem;
            color: var(--gray-text);
            line-height: 1.6;
        }

        .footer-heading {
            font-size: 1.2rem;
            margin-bottom: 1rem;
            color: var(--light-text);
            position: relative;
            padding-bottom: 0.5rem;
        }

        .footer-heading::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 40px;
            height: 2px;
            background: var(--primary-color);
        }

        .footer-links {
            list-style: none;
        }

        .footer-links li {
            margin-bottom: 0.5rem;
        }

        .footer-links a {
            color: var(--gray-text);
            text-decoration: none;
            transition: color var(--transition-fast), transform var(--transition-fast);
            display: inline-block;
        }

        .footer-links a:hover, .footer-links a:focus {
            color: var(--primary-color);
            transform: translateX(3px);
        }

        .footer-contact-item {
            display: flex;
            align-items: flex-start;
            margin-bottom: 1rem;
            color: var(--gray-text);
        }

        .footer-contact-icon {
            margin-right: 0.8rem;
            color: var(--primary-color);
        }

        .footer-social {
            display: flex;
            gap: 1rem;
            margin-top: 1.5rem;
            flex-wrap: wrap;
        }

        .footer-developer a {
            color: var(--primary-color);
            text-decoration: none;
        }

        .footer-developer a:hover, .footer-developer a:focus {
            text-decoration: underline;
        }

        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            background: var(--primary-color);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            opacity: 0;
            visibility: hidden;
            transition: all var(--transition-fast);
            z-index: 999;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            font-size: 1.5rem;
            border: none;
        }
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover, .back-to-top:focus {
            background: var(--accent-color);
            transform: translateY(-3px);
        }

        #loading-section {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 9999;
            transition: opacity 0.5s ease;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(58, 134, 255, 0.2);
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        .dev-banner {
            position: fixed;
            bottom: 25px;
            left: 25px;
            background: var(--primary-color);
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
            z-index: 9998;
            box-shadow: 0 4px 10px rgba(0,0,0,0.2);
            animation: slideIn 0.5s ease-out, fadeOut 0.5s 4.5s forwards;
        }

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

        @keyframes fadeOut {
            from { opacity: 1; }
            to { opacity: 0; visibility: hidden; }
        }

        @media (max-width: 1200px) {
            .footer-top {
                flex-wrap: wrap;
            }

            .footer-column {
                flex: 0 0 calc(50% - 2rem);
            }
        }

        @media (max-width: 992px) {
            .about-content {
                flex-direction: column;
                text-align: center;
            }

            .about-image {
                margin: 0 auto 2rem;
            }

            .section-title {
                font-size: 2.2rem;
            }

            .contact-container {
                flex-direction: column;
            }

            .contact-info {
                margin-bottom: 2rem;
                text-align: center;
            }
            .contact-info .contact-title::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .contact-social {
                justify-content: center;
            }


            .hero h1 {
                font-size: 3rem;
            }
        }

        @media (max-width: 768px) {
            .menu-toggle {
                display: block;
            }

            nav {
                position: fixed;
                top: 70px;
                left: 0;
                width: 100%;
                background: white;
                overflow-y: auto;
                max-height: 0;
                opacity: 0;
                visibility: hidden;
                transition: max-height var(--transition-fast), opacity var(--transition-fast), visibility var(--transition-fast);
                box-shadow: 0 5px 10px rgba(0,0,0,0.1);
                z-index: 999;
            }

            nav.open {
                max-height: calc(100vh - 70px);
                opacity: 1;
                visibility: visible;
            }


            nav ul {
                flex-direction: column;
                gap: 0;
                padding: 1rem 0;
            }

            nav li {
                width: 100%;
                text-align: center;
            }

            nav a {
                width: 100%;
                display: block;
                padding: 1rem 2rem;
            }
            nav a::after { display: none; }

            .hero h1 {
                font-size: 2.5rem;
            }

            .section-title {
                font-size: 2rem;
            }

            .footer-column {
                flex: 0 0 100%;
                text-align: center;
            }
            .footer-heading::after {
                left: 50%;
                transform: translateX(-50%);
            }
            .footer-social {
                justify-content: center;
            }


            .back-to-top {
                bottom: 20px;
                right: 20px;
                width: 40px;
                height: 40px;
                font-size: 1.2rem;
            }

            .menu-toggle.active span:nth-child(1) {
                transform: translateY(8px) rotate(45deg);
            }

            .menu-toggle.active span:nth-child(2) {
                opacity: 0;
            }

            .menu-toggle.active span:nth-child(3) {
                transform: translateY(-8px) rotate(-45deg);
            }
        }

        @media (max-width: 576px) {
            .header-container {
                padding: 0 1rem;
            }

            .container {
                padding: 0 1rem;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .section-title {
                font-size: 1.8rem;
            }

            .about-image {
                max-width: 250px;
            }

            .contact-form-wrapper {
                padding: 1.5rem;
            }
        }

        /* Fix for iOS Safari background-attachment: fixed issues */
        @supports (-webkit-touch-callout: none) {
            .hero {
                background-attachment: scroll;
            }
        }
