.pattern-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0,0,0,0.05) 1px, transparent 1px);
    background-size: 1rem 1rem;
    z-index: -1;
}

.hero-shape-1 {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(50px);
    z-index: -1;
}

.hero-shape-2 {
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 120px;
    height: 120px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(50px);
    z-index: -1;
}

.clip-circle {
    clip-path: circle(50% at 50% 50%);
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(-1deg);
    }
}

@keyframes floatFast {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-25px) rotate(1deg);
    }
}

.hero-shape-3 {
    position: absolute;
    top: 15%;
    right: -10%;
    width: 280px;
    height: 280px;
    background-color: #005778;
    border-radius: 50%;
    opacity: 0.8;
    z-index: -2;
    animation: float 4s ease-in-out infinite;
}

.hero-shape-4 {
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 350px;
    height:350px;
    background-color: var(--color-primary);
    opacity: 0.3;
    border-radius: 50%;
    z-index: 0;
    animation: floatSlow 6s ease-in-out infinite;
}

.hero-shape-5 {
    position: absolute;
    bottom: 5%;
    left: 0%;
    width: 210px;
    height: 210px;
    background: repeating-linear-gradient(
        0deg,
        var(--color-subtle-light),
        var(--color-subtle-light) 4px,
        transparent 4px,
        transparent 8px
    );
    border-radius: 50%;
    z-index: -2;
    animation: floatFast 3s ease-in-out infinite;
}

/* Services Page Shapes - Same Design as Home Page */
.services-shape-1 {
    position: absolute;
    top: 10%;
    right: 15%;
    width: 150px;
    height: 150px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(50px);
}

.services-shape-2 {
    position: absolute;
    bottom: 10%;
    left: 15%;
    width: 120px;
    height: 120px;
    background-color: var(--color-primary);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(50px);
}

.services-shape-3 {
    position: absolute;
    top: 15%;
    right: -10%;
    width: 280px;
    height: 280px;
    background-color: #005778;
    border-radius: 50%;
    opacity: 0.8;
    animation: float 4s ease-in-out infinite;
}

.services-shape-4 {
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 250px;
    height: 250px;
    background-color: var(--color-primary);
    opacity: 0.3;
    border-radius: 50%;
    animation: floatSlow 6s ease-in-out infinite;
}

/* .career .services-shape-4 {
    position: absolute;
    bottom: -20%;
    right: -5%;
    width: 250px;
    height: 250px;
    background-color: var(--color-primary);
    opacity: 0.3;
    border-radius: 50%;
    animation: floatSlow 6s ease-in-out infinite;
} */

.services-shape-5 {
    position: absolute;
    bottom: 5%;
    left: 0%;
    width: 210px;
    height: 210px;
    background: repeating-linear-gradient(
        0deg,
        var(--color-subtle-light),
        var(--color-subtle-light) 4px,
        transparent 4px,
        transparent 8px
    );
    border-radius: 50%;
    animation: floatFast 3s ease-in-out infinite;
}

/* Mobile Menu Styles */
#mobile-drawer {
    backdrop-filter: blur(4px);
}

#drawer-panel {
    box-shadow: -10px 0 25px -5px rgba(0, 0, 0, 0.1), -4px 0 6px -2px rgba(0, 0, 0, 0.05);
}

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

/* Ensure header and sticky navigation stay fixed */
header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
}

/* Ensure sticky alphabet navigation stays visible */
section[class*="sticky"] {
    position: sticky !important;
    z-index: 40 !important;
}

/* Ensure main element allows sticky positioning */
/* main {
    position: relative;
} */

/* Resources Dropdown Menu */
nav .group:hover .group-hover\:opacity-100 {
    opacity: 1;
}

nav .group:hover .group-hover\:visible {
    visibility: visible;
}

/* Custom width for step images */
.w-18 {
    width: 4.5rem;
}

/* Ensure header doesn't overlap content */
#main-header {
    min-height: 60px;
}

@media (min-width: 640px) {
    #main-header {
        min-height: 70px;
    }
}

@media (min-width: 768px) {
    #main-header {
        min-height: 90px;
    }
}

@media (min-width: 1024px) {
    #main-header {
        min-height: 100px;
    }
}

@media (min-width: 1280px) {
    #main-header {
        min-height: 120px;
    }
}

/* Add scroll margin for anchor links */
section[id],
section[id$="-hero"],
section#home {
    scroll-margin-top: 5rem;
}

@media (min-width: 640px) {
    section[id],
    section[id$="-hero"],
    section#home {
        scroll-margin-top: 6rem;
    }
}

@media (min-width: 768px) {
    section[id],
    section[id$="-hero"],
    section#home {
        scroll-margin-top: 7rem;
    }
}

@media (min-width: 1024px) {
    section[id],
    section[id$="-hero"],
    section#home {
        scroll-margin-top: 8rem;
    }
}

/* Responsive improvements */
@media (max-width: 640px) {
    /* Ensure images don't overflow on mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better button spacing on mobile */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Improve text readability on small screens */
    body {
        font-size: 16px;
        line-height: 1.6;
    }
    
    /* Hero Shapes - Mobile Responsive */
    .hero-shape-1 {
        width: 50px;
        height: 50px;
        top: 8%;
        right: 8%;
        opacity: 0.1;
        filter: blur(30px);
    }
    
    .hero-shape-2 {
        width: 40px;
        height: 40px;
        bottom: 8%;
        left: 8%;
        opacity: 0.1;
        filter: blur(30px);
    }
    
    /* Hide larger hero shapes on mobile to reduce clutter */
    .hero-shape-3,
    .hero-shape-4,
    .hero-shape-5 {
        display: none;
    }
    
    /* Services Shapes - Mobile Responsive */
    .services-shape-1 {
        width: 50px;
        height: 50px;
        top: 8%;
        right: 8%;
        opacity: 0.1;
        filter: blur(30px);
    }
    
    .services-shape-2 {
        width: 40px;
        height: 40px;
        bottom: 8%;
        left: 8%;
        opacity: 0.1;
        filter: blur(30px);
    }
    
    /* Hide larger services shapes on mobile to reduce clutter */
    .services-shape-3,
    .services-shape-4,
    .services-shape-5 {
        display: none;
    }
    
    /* Ensure hero sections have enough top padding on mobile */
    section[id$="-hero"],
    section#home {
        padding-top: 7rem !important;
    }
}

/* Tablet View - Hero and Services Shapes */
@media (min-width: 641px) and (max-width: 1024px) {
    /* Hero Shapes - Tablet */
    .hero-shape-1 {
        width: 90px;
        height: 90px;
        top: 8%;
        right: 12%;
        opacity: 0.18;
    }
    
    .hero-shape-2 {
        width: 70px;
        height: 70px;
        bottom: 8%;
        left: 12%;
        opacity: 0.18;
    }
    
    .hero-shape-3 {
        width: 180px;
        height: 180px;
        top: 12%;
        right: -8%;
        opacity: 0.6;
    }
    
    .hero-shape-4 {
        width: 220px;
        height: 220px;
        bottom: -25%;
        right: -4%;
        opacity: 0.25;
    }
    
    .hero-shape-5 {
        width: 130px;
        height: 130px;
        bottom: 6%;
        left: -2%;
    }
    
    /* Services Shapes - Tablet */
    .services-shape-1 {
        width: 90px;
        height: 90px;
        top: 8%;
        right: 12%;
        opacity: 0.18;
    }
    
    .services-shape-2 {
        width: 70px;
        height: 70px;
        bottom: 8%;
        left: 12%;
        opacity: 0.18;
    }
    
    .services-shape-3 {
        width: 180px;
        height: 180px;
        top: 12%;
        right: -8%;
        opacity: 0.6;
    }
    
    .services-shape-4 {
        width: 180px;
        height: 180px;
        bottom: -18%;
        right: -4%;
        opacity: 0.25;
    }
    
    .services-shape-5 {
        width: 130px;
        height: 130px;
        bottom: 6%;
        left: -2%;
    }
}

/* Small Mobile Devices (up to 480px) - Extra Small Screens */
@media (max-width: 480px) {
    /* Hero Shapes - Extra Small Mobile */
    .hero-shape-1 {
        width: 40px;
        height: 40px;
        top: 6%;
        right: 5%;
        opacity: 0.08;
        filter: blur(25px);
    }
    
    .hero-shape-2 {
        width: 35px;
        height: 35px;
        bottom: 6%;
        left: 5%;
        opacity: 0.08;
        filter: blur(25px);
    }
    
    /* Services Shapes - Extra Small Mobile */
    .services-shape-1 {
        width: 40px;
        height: 40px;
        top: 6%;
        right: 5%;
        opacity: 0.08;
        filter: blur(25px);
    }
    
    .services-shape-2 {
        width: 35px;
        height: 35px;
        bottom: 6%;
        left: 5%;
        opacity: 0.08;
        filter: blur(25px);
    }
}

/* Medium Mobile Devices (481px to 640px) */
@media (min-width: 481px) and (max-width: 640px) {
    /* Hero Shapes - Medium Mobile */
    .hero-shape-1 {
        width: 60px;
        height: 60px;
        top: 7%;
        right: 8%;
        opacity: 0.12;
        filter: blur(35px);
    }
    
    .hero-shape-2 {
        width: 50px;
        height: 50px;
        bottom: 7%;
        left: 8%;
        opacity: 0.12;
        filter: blur(35px);
    }
    
    /* Services Shapes - Medium Mobile */
    .services-shape-1 {
        width: 60px;
        height: 60px;
        top: 7%;
        right: 8%;
        opacity: 0.12;
        filter: blur(35px);
    }
    
    .services-shape-2 {
        width: 50px;
        height: 50px;
        bottom: 7%;
        left: 8%;
        opacity: 0.12;
        filter: blur(35px);
    }
}

/* Ensure proper spacing on all screen sizes */
@media (max-width: 768px) {
    .gap-16 {
        gap: 2rem;
    }
    
    /* Better image constraints on mobile */
    img[class*="max-w"] {
        width: 100%;
    }
    
    /* Improve button sizing on mobile */
    a[class*="bg-primary"][class*="py-3"] {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Tablet optimizations */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    /* Further adjust hero shapes for larger tablets */
    .hero-shape-3 {
        width: 240px;
        height: 240px;
    }
    
    .hero-shape-4 {
        width: 300px;
        height: 300px;
    }
    
    .services-shape-3 {
        width: 240px;
        height: 240px;
    }
    
    .services-shape-4 {
        width: 220px;
        height: 220px;
    }
}

/* Ensure tables are scrollable on mobile */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* Keyboard accessibility improvements */
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-radius: 0.375rem;
}

/* Ensure mobile menu button is always focusable */
#mobile-menu-button:focus,
#close-drawer:focus,
#mobile-resources-toggle:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Skip to main content link for keyboard users */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-main:focus {
    top: 0;
}

/* Contact Form Enhancements */
input[type="email"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 87, 120, 0.1);
}

/* File upload area hover effect */
input[type="file"] + label:hover {
    background-color: rgba(0, 87, 120, 0.05);
}

/* Form input transitions */
input, textarea {
    transition: all 0.2s ease-in-out;
}

input:hover, textarea:hover {
    border-color: var(--color-primary);
}

/* Button hover effect */
button[type="submit"]:hover {
    background-color: var(--color-primary-dark);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* Prevent body scroll when drawer is open */
body.drawer-open {
    overflow: hidden;
}

/* Services Page Styles */
.service-list-item {
    transition: all 0.3s ease;
}

.service-list-item:hover {
    transform: translateX(8px);
}

.service-list-item .material-icons-outlined {
    transition: all 0.3s ease;
}

.service-list-item:hover .material-icons-outlined {
    transform: scale(1.1);
}

/* Plus Sign Animation */
.plus-divider {
    animation: pulse 2s ease-in-out infinite;
}

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

/* Service Section Background Patterns */
.services-bg-pattern {
    background-image: radial-gradient(circle, rgba(58, 123, 185, 0.1) 1px, transparent 1px);
    background-size: 2rem 2rem;
}

/* FAQ Accordion Styles */
.faq-toggle {
    cursor: pointer;
    outline: none;
    border: none;
    background: transparent;
}

.faq-toggle:focus {
    outline: 0 !important;
    outline-offset: 0 !important;
    border-radius: 0 !important;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
    padding-bottom: 0;
}

.faq-content.open {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* FAQ Card Enhancements */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

#mobile-menu-button:focus, #close-drawer:focus, #mobile-resources-toggle:focus {
    outline: 0 !important;
    outline-offset: 0 !important;
    border: 0 !important;
    --tw-ring-offset-width: 0px !important;
    --tw-ring-color: transparent !important;
}

.secondary-text {
    color: #55b5e7;
}

/* Additional responsive utilities */
@media (max-width: 640px) {
    /* Ensure proper text wrapping */
    h1, h2, h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Better spacing for mobile cards */
    .rounded-xl {
        border-radius: 0.75rem;
    }
    
    /* Improve touch targets on mobile */
    button, a[class*="bg-primary"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Ensure images maintain aspect ratio */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    font-size: clamp(12px, 1.5vw, 16px);
}

/* Responsive typography - Base styles */
h1 {
    font-size: 1.875rem; /* 30px */
    line-height: 1.2;
}

h2 {
    font-size: 1.5rem; /* 24px */
    line-height: 1.3;
}

h3 {
    font-size: 1.25rem; /* 20px */
    line-height: 1.4;
}

h4 {
    font-size: 1.125rem; /* 18px */
    line-height: 1.4;
}

h5 {
    font-size: 1rem; /* 16px */
    line-height: 1.5;
}

h6 {
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
}

p {
    font-size: 0.875rem; /* 14px */
    line-height: 1.6;
}

span {
    font-size: inherit;
}

/* Responsive typography - Tablet and up */
@media (min-width: 640px) {
    h1 {
        font-size: 2.25rem; /* 36px */
    }
    
    h2 {
        font-size: 1.875rem; /* 30px */
    }
    
    h3 {
        font-size: 1.5rem; /* 24px */
    }
    
    h4 {
        font-size: 1.25rem; /* 20px */
    }
    
    p {
        font-size: 1rem; /* 16px */
    }
}

@media (min-width: 768px) {
    h1 {
        font-size: 3rem; /* 48px */
    }
    
    h2 {
        font-size: 2.25rem; /* 36px */
    }
    
    h3 {
        font-size: 1.875rem; /* 30px */
    }
    
    h4 {
        font-size: 1.5rem; /* 24px */
    }
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.75rem; /* 60px */
    }
    
    h2 {
        font-size: 3rem; /* 48px */
    }
    
    h3 {
        font-size: 2.25rem; /* 36px */
    }
    
    h4 {
        font-size: 1.875rem; /* 30px */
    }
    
    p {
        font-size: 1.125rem; /* 18px */
    }
}

/* Responsive buttons */
button,
a[class*="bg-primary"],
a[class*="bg-surface"] {
    font-size: 0.875rem; /* 14px */
    padding: 0.5rem 1rem; /* py-2 px-4 */
}

@media (min-width: 640px) {
    button,
    a[class*="bg-primary"],
    a[class*="bg-surface"] {
        font-size: 0.9375rem; /* 15px */
        padding: 0.625rem 1.25rem; /* py-2.5 px-5 */
    }
}

@media (min-width: 768px) {
    button,
    a[class*="bg-primary"],
    a[class*="bg-surface"] {
        font-size: 1rem; /* 16px */
        padding: 0.75rem 1.5rem; /* py-3 px-6 */
    }
}

@media (min-width: 1024px) {
    button,
    a[class*="bg-primary"],
    a[class*="bg-surface"] {
        font-size: 1rem; /* 16px */
        padding: 0.45rem 1rem; /* py-3 px-8 */
    }
}

/* Ensure proper image scaling */
/* img[src*="assets/"] {
    width: 100%;
    height: auto;
} */

/* Responsive button improvements */
@media (max-width: 640px) {
    a[class*="bg-primary"][class*="py-3"] {
        width: 100%;
        text-align: center;
    }
}

/* Better grid spacing on mobile */
@media (max-width: 768px) {
    .grid {
        gap: 1rem;
    }
}