:root {
    --primary-color: #3b82f6;
    /* Blue 500 */
    --secondary-color: #2563eb;
    /* Blue 600 */
    --accent-color: #0ea5e9;
    /* Sky 500 */
    --accent-secondary: #06b6d4;
    /* Cyan 500 */
    --accent-tertiary: #8b5cf6;
    /* Violet 500 */
    --text-color: #f8fafc;
    /* White text */
    --light-text: #94a3b8;
    /* Light slate text */
    --background: #000000;
    /* True Black */
    --light-background: #0a0a0a;
    /* Subtle Black */
    --dark-background: #000000;
    /* True Black */
    --transition: all 0.3s ease;
    --transition-bounce: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
    font-family: 'Outfit', sans-serif;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--dark-background);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

/* Header - Fresh Build */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo Area */
.logo-area {
    display: flex;
    flex-direction: column;
}

.logo {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.logo a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--accent-color);
}

.tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.2rem;
    letter-spacing: -0.03em;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    border-left: 2px solid var(--accent-color);
    white-space: nowrap;
}

/* Navigation */
.site-nav {
    display: flex;
    gap: 2rem;
}

.site-nav a,
.site-nav a:link,
.site-nav a:visited {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:active {
    color: white;
}

/* LinkedIn Button */
.linkedin-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: white !important;
    /* Ensure text is white */
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.linkedin-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}

.linkedin-button span {
    color: white;
    /* Ensure span text is white */
}

.linkedin-icon {
    width: 20px;
    height: 20px;
    fill: white;
    /* Set icon color to white */
}

.about {
    padding: 8rem 0 4rem;
    margin-top: 1rem;
    /* Added to account for fixed header */
    background: linear-gradient(180deg, var(--dark-background) 0%, #050b14 100%);
    color: white;
    position: relative;
    overflow: hidden;
}


.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.2;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
    background: linear-gradient(315deg, #000000 0%, #000000 35%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.15);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    align-items: center;
    position: relative;
    overflow: hidden;
}

.profile-container {
    text-align: right;
    padding: 0;
    border-radius: 1rem;
    align-self: center;
}

.profile-image {
    width: 100%;
    max-width: 350px;
    margin-bottom: 0;
    position: absolute;
    right: 50px;
    bottom: 0;
    object-fit: cover;
}

/* Remove hover effects for desktop */
@media (min-width: 769px) {
    .profile-image {
        transition: none;
    }
}

.about-content {
    padding: 1rem 0;
}

.about-content h1 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-content .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.about-content .role {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-content p {
    font-size: 1.15rem;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

@media (max-width: 968px) {
    .about {
        padding: 6rem 0 4rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 2rem;
        margin-top: 2.5rem;
        /* Reduced from 4.5rem to 2.5rem */
    }

    .about-content {
        padding: 1rem;
        text-align: left;
        order: 2;
        /* Move content below the image on mobile */
    }

    .about-content h1 {
        font-size: 2.4rem;
        display: inline-flex;
        align-items: center;
        gap: 1rem;
        margin: 0;
    }

    .about-content h1::before {
        content: '';
        display: block;
        width: 80px;
        height: 80px;
        background-image: url('assets/images/headshot.png');
        background-size: cover;
        background-position: center;
        border-radius: 50%;
    }

    .profile-container {
        display: none;
        /* Hide the main image container */
    }

    .about-content p {
        margin-top: 1.5rem;
    }

    /* Add transition back for mobile hover effect */
    .profile-image {
        transition: all 0.3s ease;
    }
}

/* Responsive Header Styles */
@media (max-width: 1100px) {
    .header-inner {
        padding: 1rem 1.5rem;
    }

    .site-nav {
        gap: 1.5rem;
    }
}

@media (max-width: 968px) {
    .header-inner {
        padding: 0.9rem 1.2rem;
    }

    .site-nav {
        gap: 1.2rem;
    }

    .site-nav a {
        font-size: 0.9rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .tagline {
        font-size: 0.8rem;
    }

    .linkedin-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .linkedin-icon {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 4.5rem 0 3rem;
    }

    .header-inner {
        padding: 0.8rem 1rem;
    }

    .site-nav {
        display: none;
    }

    .logo {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.75rem;
    }

    .about-grid {
        padding: 1.5rem;
        margin-top: 2.5rem;
        /* Reduced from 4rem to 2.5rem */
    }
}

@media (max-width: 768px) {
    .about-content h1 {
        font-size: 2rem;
    }

    .about-content h1::before {
        width: 60px;
        height: 60px;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {

    /* Make LinkedIn button smaller */
    .linkedin-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.85rem;
    }

    .linkedin-icon {
        width: 16px;
        height: 16px;
    }

    .about {
        padding: 4rem 0 2.5rem;
    }

    .about-grid {
        padding: 1rem;
        margin-top: 4rem;
    }

    .about-content h1 {
        font-size: 1.8rem;
    }

    .about-content h1::before {
        width: 50px;
        height: 50px;
    }

    .tagline {
        font-size: 0.7rem;
    }

    .logo-section h1 {
        font-size: 1.4rem;
    }
}

/* Section Styling - Modern Tech Layout */
section {
    position: relative;
    padding: 8rem 0;
    overflow: hidden;
    transition: background 0.5s ease;
}

/* Clean section dividers - removed as we're using specific borders for each section */

/* Section title styling with gradient text effect */
section h2 {
    position: relative;
    font-size: 2.8rem;
    margin-bottom: 3.5rem;
    text-align: center;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    z-index: 2;
    display: inline-block;
    margin-left: auto;
    margin-right: auto;
    transform: translateY(0);
    transition: transform 0.3s ease;
    letter-spacing: -0.02em;
}

section h2:hover {
    transform: translateY(-5px);
}

/* Animated underline for section titles */
section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-tertiary));
    border-radius: 2px;
    transition: width 0.3s ease;
}

section h2:hover::after {
    width: 150px;
}

/* Services Section with Geometric Pattern */
.services {
    padding: 8rem 0;
    background-color: var(--dark-background);
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px, 40px 40px;
    background-position: 0 0, 10px 10px;
    position: relative;
    z-index: 0;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.services h2 {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 1200px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Only apply fancy effects on desktop */
@media (min-width: 769px) {
    .service-card {
        transition: var(--transition-bounce);
        backdrop-filter: blur(10px);
    }
}

/* Simplified for mobile */
@media (max-width: 768px) {
    .service-card {
        transition: none;
    }
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(14, 165, 233, 0.1);
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.05);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 1.2rem;
    border-radius: 1rem;
    transition: var(--transition-bounce);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 0 0 rgba(14, 165, 233, 0);
    color: white;
    position: relative;
    z-index: 1;
}

.service-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-tertiary));
    -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;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(14, 165, 233, 0.5);
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card h3 {
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg, white, rgba(255, 255, 255, 0.9));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-tertiary));
    transition: width 0.3s ease;
}

.service-card:hover h3::after {
    width: 100%;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
    font-size: 1.05rem;
}

@media (max-width: 968px) {
    .services {
        padding: 3rem 0;
    }

    .services h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Featured Project Section */
.featured-project {
    padding: 5rem 0;
    background: linear-gradient(165deg, var(--dark-background) 0%, #050b14 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.featured-project .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-project h2 {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color), var(--accent-tertiary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
}

.featured-project h2::after {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    height: 3px;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Only apply hover effects on desktop */
@media (min-width: 769px) {
    .project-content {
        transition: box-shadow 0.3s ease;
    }

    .project-content:hover {
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Simplified for mobile */
@media (max-width: 768px) {
    .project-content {
        transition: none;
    }
}

.project-image {
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Remove the hover background effect */
.project-image::after {
    content: none;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.project-content:hover .project-image img {
    opacity: 0.95;
}

.project-details {
    padding: 3.5rem 3rem;
    position: relative;
    z-index: 2;
}

.project-details h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    position: relative;
    color: white;
    font-weight: 700;
    transition: all 0.3s ease;
    padding-bottom: 0.5rem;
}

.project-details h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.project-content:hover .project-details h3::after {
    width: 100%;
}

.project-details h4 {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.feature-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0 0.5rem 1.8rem;
    position: relative;
    transition: transform 0.2s ease;
    color: rgba(255, 255, 255, 0.85);
}

/* Only apply hover effects on desktop */
@media (min-width: 769px) {
    .feature-list li {
        transition: transform 0.3s ease;
    }

    .feature-list li:hover {
        transform: translateX(5px);
    }
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    color: white !important;
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: 600;
    border: none;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Only apply fancy effects on desktop */
@media (min-width: 769px) {
    .cta-button {
        transition: var(--transition-bounce);
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }

    /* Add margin-top to the 'Let's Work Together' button in about section */
    .about-content .cta-button {
        margin-top: 1rem;
    }

    .cta-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
        z-index: -1;
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .cta-button:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 30px rgba(14, 165, 233, 0.3), 0 0 15px rgba(14, 165, 233, 0.5);
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    }

    .cta-button:hover::before {
        opacity: 1;
    }
}

/* Simplified for mobile */
@media (max-width: 768px) {
    .cta-button {
        transition: none;
    }
}

/* Background Shapes - Simplified and Optimized for Mobile */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    transform: translateZ(0);
    /* Force GPU acceleration */
}

.shape {
    position: absolute;
    opacity: 0.04;
    transform: translateZ(0);
    /* Prevent jittering */
}

/* Simplified shapes for mobile - no blur filter, no animations */
@media (max-width: 768px) {
    .shape {
        /* No blur on mobile for better performance */
        filter: none;
        /* No animations on mobile */
        animation: none !important;
    }
}

/* Desktop-only blur and animations */
@media (min-width: 769px) {
    .shape {
        filter: blur(8px);
    }
}

.shape-1 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    width: 700px;
    height: 700px;
    border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    top: -350px;
    right: -150px;
    animation: morph 30s ease-in-out infinite alternate;
}

.shape-2 {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    width: 500px;
    height: 500px;
    border-radius: 60% 40% 50% 50% / 50% 50% 50% 50%;
    bottom: -250px;
    left: -150px;
    animation: morph 25s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    width: 250px;
    height: 250px;
    border-radius: 40% 60% 50% 50% / 40% 50% 50% 60%;
    top: 40%;
    right: 10%;
    animation: float 20s ease-in-out infinite;
}

@keyframes morph {

    0%,
    100% {
        border-radius: 40% 60% 65% 35% / 40% 45% 55% 60%;
    }

    50% {
        border-radius: 60% 40% 35% 65% / 50% 60% 40% 50%;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) translateZ(0);
    }

    50% {
        transform: translateY(-15px) translateZ(0);
    }
}

/* Main content area */
main {
    flex: 1 0 auto;
    display: block;
}

/* Footer - Dark Theme */
.footer {
    background: var(--dark-background);
    color: rgba(255, 255, 255, 0.7);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    width: 100%;
}

.footer-quote {
    margin-bottom: 1.5rem;
}

.quote-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: white;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1rem;
}

.quote-mark {
    font-size: 1.8rem;
    display: inline-block;
    vertical-align: middle;
    position: relative;
}

.quote-mark.left {
    margin-right: 0.2rem;
    transform: translateY(-0.2rem);
    background: linear-gradient(135deg, var(--accent-tertiary), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-mark.right {
    margin-left: 0.2rem;
    transform: translateY(0.2rem);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quote-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform-origin: right;
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.quote-text:hover::before {
    transform-origin: left;
    transform: scaleX(1);
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsive styling for footer quote */
@media (max-width: 768px) {
    .quote-text {
        font-size: 1.2rem;
    }

    .quote-mark {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .quote-text {
        font-size: 1rem;
    }

    .quote-mark {
        font-size: 1.3rem;
    }
}

/* Scroll Progress Indicator - Hidden on Mobile */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--accent-tertiary));
    z-index: 2000;
    /* Remove transition for better performance */
}

/* Hide on mobile */
@media (max-width: 768px) {
    .scroll-progress {
        display: none;
    }
}

/* Ensure all external links have proper styling */
a[target="_blank"] {
    text-decoration: none;
    color: inherit;
}

.logo-link {
    text-decoration: none;
    color: white;
    transition: var(--transition);
}

.logo-link:hover {
    color: var(--accent-color);
}

@media (max-width: 968px) {

    /* General responsive adjustments */
    section {
        padding: 6rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    /* Featured project responsive styling */
    .featured-project {
        padding: 6rem 0;
    }

    .featured-project h2 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }

    .project-image {
        height: 300px;
        border-radius: 1.5rem 1.5rem 0 0;
    }

    .project-details {
        padding: 2.5rem 2rem;
        border-radius: 0 0 1.5rem 1.5rem;
    }

    .project-details h3 {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .project-details h4 {
        font-size: 1.3rem;
        margin-bottom: 1.8rem;
    }

    .feature-list {
        margin-bottom: 2.5rem;
        gap: 0.75rem 1.5rem;
    }

    .cta-button {
        padding: 1rem 1.5rem;
        width: 100%;
        justify-content: center;
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    /* Services section responsive adjustments */
    .services {
        padding: 6rem 0;
    }

    .services-grid {
        gap: 1.5rem;
    }
}

/* Small Screen Adjustments */
@media (max-width: 480px) {
    .header-inner {
        padding: 0.7rem 0.9rem;
    }

    .logo {
        font-size: 1.35rem;
    }

    .tagline {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }

    /* Make LinkedIn button smaller */
    .linkedin-button {
        padding: 0.7rem;
        font-size: 0.85rem;
    }

    .linkedin-button span {
        display: none;
    }

    .linkedin-icon {
        width: 18px;
        height: 18px;
        margin: 0;
    }

    /* Adjust about grid spacing */
    .about-grid {
        padding: 1rem;
        margin-top: 2rem;
        margin-right: .75rem;
        margin-left: .75rem;
        /* Reduced from 3rem to 2rem */
    }
}

@media (max-width: 375px) {
    .header-inner {
        padding: 0.6rem 0.8rem;
    }

    .logo {
        font-size: 1.3rem;
    }

    .tagline {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
        border-left-width: 1px;
    }

    /* Further reduce about grid spacing */
    .about-grid {
        padding: 0.8rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 640px) {
    .featured-project {
        padding: 5rem 0 5rem;
    }

    .project-image {
        height: 250px;
    }

    .project-details {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

    .project-details h3 {
        font-size: 1.6rem;
    }

    .project-details h4 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        margin-bottom: 2rem;
    }

    .feature-list li {
        font-size: 1rem;
    }
}

/* Project Slider Styles */
.project-slider {
    position: relative;
    width: 100%;
    margin: 2rem 0;
}

.slider-controls {
    display: flex;
    justify-content: space-between;
    position: absolute;
    top: 50%;
    left: -1rem;
    right: -1rem;
    transform: translateY(-50%);
    z-index: 10;
    pointer-events: none;
}

.slider-prev,
.slider-next {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.slider-prev:disabled,
.slider-next:disabled {
    opacity: 0.3;
    cursor: default;
}

.slider-container {
    overflow: hidden;
    position: relative;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.project-slide {
    flex: 0 0 100%;
    width: 100%;
}

.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    /* Base for pseudo-element */
}

/* Increase touch hit area without changing visual size */
.indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

.indicator.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Mobile Responsive Slider Styles */
@media (max-width: 768px) {
    .slider-controls {
        display: none;
        /* Hide arrows on mobile since swiping works */
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Mouse Tracking Glow Effect */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    /* Elevated to interact with dark backgrounds like Areas of Expertise */
    background: radial-gradient(400px circle at var(--mouse-x, 50vw) var(--mouse-y, 50vh),
            rgba(14, 165, 233, 0.05),
            transparent 80%);
    transition: opacity 0.5s ease;
}

/* Fallback hiding pseudo shapes */

/* Contact Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(165deg, var(--dark-background) 0%, #050b14 100%);
    margin: 10% auto;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: rgba(255, 255, 255, 0.6);
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover,
.close-modal:focus {
    color: #fff;
    text-decoration: none;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 1.5rem;
    transition: opacity 0.3s ease;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.submit-button {
    width: 100%;
    justify-content: center;
    margin-top: 1rem;
    transition: opacity 0.3s ease;
}

.form-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: none;
    font-size: 0.95rem;
}

.form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.button-loading span {
    display: none;
}

.button-loading::after {
    content: 'Sending...';
}

.button-loading i {
    display: none;
}