/* ===========================================
   HEADER & NAVIGATION
   =========================================== */

.header-container {
   width: 100%;
   position: sticky;
   top: 0;
   z-index: var(--z-sticky);
   box-shadow: var(--shadow-md);
   /* Performance optimization for sticky positioning */
   will-change: transform;
   transform: translateZ(0);
   background-color: var(--color-bg-light);
}

.top-bar {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.2rem 2rem;
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
   width: 100%;
   color: #ffffff;
   font-size: 1.3rem;
   font-weight: 600;
   letter-spacing: 0.3px;
   line-height: 1.4;
}

.top-bar p {
   margin: 0;
   flex: 1;
}

.top-bar .social {
   margin-left: 2rem;
}

.top-bar .social a {
   color: #ffffff;
   font-weight: 600;
   padding: 0.6rem 1.4rem;
   background-color: rgba(255, 255, 255, 0.15);
   border-radius: var(--radius-round);
   transition: all var(--transition-normal);
   display: inline-block;
}

.top-bar .social a:hover,
.top-bar .social a:focus {
   background-color: rgba(255, 255, 255, 0.25);
   transform: translateY(-2px);
   box-shadow: var(--shadow-sm);
}

header {
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 1.5rem 3rem;
   margin: 0 auto;
   background: var(--color-bg-light);
   max-width: 1400px;
   gap: 3rem;
}

.logo-container {
   flex-shrink: 0;
}

.dcs-logo {
   max-height: 8rem;
   height: auto;
   width: auto;
   transition: transform var(--transition-normal);
}

.dcs-logo:hover {
   transform: scale(1.02);
}

nav {
   display: flex;
   align-items: center;
   flex: 1;
   justify-content: flex-end;
}

nav ul {
   list-style: none;
   display: flex;
   gap: 0.5rem;
   align-items: center;
   flex-wrap: wrap;
}

nav li {
   position: relative;
}

.nav-links {
   display: inline-block;
   text-decoration: none;
   color: var(--color-text-primary);
   font-weight: 600;
   font-size: 1.7rem;
   padding: 1rem 1.8rem;
   border-radius: var(--radius-md);
   transition: all var(--transition-normal);
   position: relative;
}

/* Modern underline effect */
.nav-links::after {
   content: "";
   position: absolute;
   bottom: 0.6rem;
   left: 1.8rem;
   right: 1.8rem;
   height: 2px;
   background: var(--color-primary);
   transform: scaleX(0);
   transform-origin: right;
   transition: transform var(--transition-normal);
   border-radius: 2px;
}

.nav-links:hover,
.nav-links:focus {
   color: var(--color-primary);
   background-color: rgba(47, 60, 105, 0.05);
}

.nav-links:hover::after,
.nav-links:focus::after {
   transform: scaleX(1);
   transform-origin: left;
}

.nav-links:active {
   transform: translateY(1px);
}

/* ===========================================
   HERO VIDEO SECTION
   =========================================== */

.hero-video {
   position: relative;
   overflow: hidden;
   background: linear-gradient(135deg, rgba(249, 249, 251, 0.8) 0%, rgba(232, 236, 245, 0.75) 100%);
   min-height: 50vh;
}

.hero-video video {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   object-fit: cover;
   z-index: -1;
   /* Performance optimization */
   will-change: transform;
   transform: translateZ(0);
   /* Improve mobile performance */
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
   /* Smooth rendering */
   image-rendering: auto;
   -webkit-transform: translate3d(0, 0, 0);
}

/* ===========================================
   FEATURED CONTENT SECTION
   =========================================== */

.featured-content {
   position: relative;
   z-index: 1;
   background-color: rgba(255, 255, 255, 0.95);
   backdrop-filter: blur(10px);
   -webkit-backdrop-filter: blur(10px);
   min-height: 40vh;
   margin: 4rem auto;
   max-width: 1200px;
   padding: 5rem 4rem;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-xl);
   border: 1px solid rgba(255, 255, 255, 0.8);
}

.featured-content > div {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.featured-content h1 {
   font-size: clamp(2.4rem, 4vw, 3.6rem);
   color: var(--color-primary);
   line-height: 1.2;
   font-weight: 700;
   letter-spacing: -0.5px;
   margin: 0;
}

.featured-content p {
   font-size: 1.7rem;
   color: var(--color-text-secondary);
   line-height: 1.8;
   margin: 0;
}

.featured-content .highlight {
   color: var(--color-primary);
   font-weight: 700;
   background: linear-gradient(120deg, rgba(47, 60, 105, 0.1) 0%, rgba(106, 140, 188, 0.1) 100%);
   padding: 0.2rem 0.6rem;
   border-radius: var(--radius-sm);
}

.featured-content img {
   width: 100%;
   height: auto;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-lg);
   transition: transform var(--transition-slow);
   object-fit: cover;
}

.featured-content img:hover {
   transform: scale(1.02);
}

.learn-more-cta {
   display: inline-flex;
   align-items: center;
   gap: 0.8rem;
   text-decoration: none;
   color: #ffffff;
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
   padding: 1.4rem 3rem;
   border-radius: var(--radius-md);
   font-size: 1.7rem;
   font-weight: 600;
   transition: all var(--transition-normal);
   box-shadow: var(--shadow-md);
   align-self: flex-start;
   position: relative;
   overflow: hidden;
}

.learn-more-cta::before {
   content: "";
   position: absolute;
   top: 0;
   left: -100%;
   width: 100%;
   height: 100%;
   background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
   transition: left var(--transition-slow);
}

.learn-more-cta:hover::before,
.learn-more-cta:focus::before {
   left: 100%;
}

.learn-more-cta:hover,
.learn-more-cta:focus {
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.learn-more-cta:active {
   transform: translateY(0);
   box-shadow: var(--shadow-sm);
}

/* ===========================================
   CALL TO ACTION SECTION
   =========================================== */

.call-out {
   background: linear-gradient(135deg, rgba(106, 140, 188, 0.95) 0%, rgba(74, 90, 138, 0.9) 100%);
   margin: 4rem auto;
   max-width: 1200px;
   padding: 4rem 4rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   gap: 3rem;
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-xl);
   position: relative;
   overflow: hidden;
}

/* Subtle pattern overlay */
.call-out::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-image: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
   pointer-events: none;
}

.call-out h2 {
   font-size: clamp(2rem, 3vw, 2.8rem);
   color: #ffffff;
   text-align: center;
   font-weight: 700;
   line-height: 1.4;
   letter-spacing: 0.5px;
   max-width: 900px;
   position: relative;
   z-index: 1;
   text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.call-out a {
   display: inline-block;
   text-decoration: none;
   color: #ffffff;
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary-darker) 100%);
   padding: 2rem 4rem;
   border-radius: var(--radius-lg);
   font-size: 2.2rem;
   font-weight: 700;
   transition: all var(--transition-normal);
   box-shadow: var(--shadow-lg);
   position: relative;
   z-index: 1;
   border: 2px solid rgba(255, 255, 255, 0.2);
}

.call-out a:hover,
.call-out a:focus {
   transform: translateY(-3px) scale(1.02);
   box-shadow: var(--shadow-xl);
   background: linear-gradient(135deg, var(--color-primary-darker) 0%, #0f1425 100%);
   border-color: rgba(255, 255, 255, 0.3);
}

.call-out a:active {
   transform: translateY(-1px) scale(1);
}

/* ===========================================
   FOOTER SECTION
   =========================================== */

footer {
   margin-top: auto;
   background: linear-gradient(to bottom, var(--color-bg-light) 0%, var(--color-bg-dark) 100%);
   border-top: 1px solid rgba(47, 60, 105, 0.1);
}

.footer-content {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
   gap: 4rem;
   padding: 6rem 4rem 4rem;
   max-width: 1400px;
   margin: 0 auto;
}

.footer-content section {
   display: flex;
   flex-direction: column;
   gap: 1.2rem;
}

.footer-content h3 {
   font-size: 1.9rem;
   color: var(--color-primary);
   margin-bottom: 0.5rem;
   font-weight: 700;
   letter-spacing: 0.3px;
}

.footer-content p {
   font-size: 1.5rem;
   color: var(--color-text-secondary);
   line-height: 1.7;
   margin: 0;
}

.footer-content a {
   text-decoration: none;
   color: var(--color-primary);
   font-size: 1.5rem;
   font-weight: 600;
   transition: all var(--transition-normal);
   width: fit-content;
   position: relative;
}

.footer-content a::after {
   content: "";
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 0;
   height: 2px;
   background-color: var(--color-secondary);
   transition: width var(--transition-normal);
}

.footer-content a:hover,
.footer-content a:focus {
   color: var(--color-secondary);
}

.footer-content a:hover::after,
.footer-content a:focus::after {
   width: 100%;
}

.footer-content img {
   max-width: 150px;
   height: auto;
   margin-top: 1rem;
   border-radius: var(--radius-md);
   transition: transform var(--transition-normal);
}

.footer-content img:hover {
   transform: scale(1.05);
}

.footer-content iframe {
   border-radius: var(--radius-md);
   box-shadow: var(--shadow-md);
   margin-top: 1rem;
}

.footer-bottom {
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
   display: flex;
   justify-content: space-between;
   align-items: center;
   padding: 2rem 4rem;
   flex-wrap: wrap;
   gap: 2rem;
}

.footer-bottom p {
   color: #ffffff;
   margin: 0;
   font-size: 1.4rem;
   line-height: 1.6;
}

.footer-nav {
   flex: 1;
   display: flex;
   justify-content: center;
}

.footer-nav ul {
   display: flex;
   gap: 0.5rem;
   list-style: none;
   flex-wrap: wrap;
   justify-content: center;
}

.footer-nav li {
   margin: 0;
}

.footer-nav a {
   display: inline-block;
   text-decoration: none;
   color: #ffffff;
   font-size: 1.4rem;
   font-weight: 600;
   padding: 0.6rem 1.2rem;
   border-radius: var(--radius-md);
   transition: all var(--transition-normal);
}

.footer-nav a:hover,
.footer-nav a:focus {
   background-color: rgba(255, 255, 255, 0.15);
   transform: translateY(-2px);
}

.footer-bottom .social {
   margin-left: auto;
}

.footer-bottom .social a {
   color: #ffffff;
   font-weight: 600;
   padding: 0.8rem 1.6rem;
   background-color: rgba(255, 255, 255, 0.15);
   border-radius: var(--radius-round);
   transition: all var(--transition-normal);
   display: inline-block;
   font-size: 1.4rem;
}

.footer-bottom .social a:hover,
.footer-bottom .social a:focus {
   background-color: rgba(255, 255, 255, 0.25);
   transform: translateY(-2px);
}

/* ===========================================
   ABOUT PAGE
   =========================================== */

.about-hero {
   max-width: 1200px;
   margin: 4rem auto;
   padding: 4rem;
   background: var(--color-bg-lighter);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
}

.about-hero h1 {
   font-size: clamp(2.8rem, 4vw, 4rem);
   color: var(--color-primary);
   margin-bottom: 2rem;
   line-height: 1.2;
   font-weight: 700;
   letter-spacing: -0.5px;
}

.about-hero p {
   font-size: 1.7rem;
   color: var(--color-text-secondary);
   line-height: 1.8;
   margin: 0;
}

.about-featured-content {
   max-width: 1200px;
   margin: 4rem auto;
   padding: 4rem;
   font-size: 1.7rem;
   color: var(--color-text-secondary);
   line-height: 1.8;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: center;
   background: var(--color-bg-lighter);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
}

.about-featured-content > div {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.about-featured-content h1 {
   font-size: clamp(2.4rem, 3.5vw, 3.2rem);
   color: var(--color-primary);
   line-height: 1.2;
   font-weight: 700;
   letter-spacing: -0.5px;
   margin: 0;
}

.about-featured-content p {
   margin: 0;
}

.about-featured-content .highlight {
   color: var(--color-primary);
   font-weight: 700;
   background: linear-gradient(120deg, rgba(47, 60, 105, 0.1) 0%, rgba(106, 140, 188, 0.1) 100%);
   padding: 0.2rem 0.6rem;
   border-radius: var(--radius-sm);
}

.about-featured-content img {
   width: 100%;
   height: auto;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-lg);
   transition: transform var(--transition-slow);
   object-fit: cover;
}

.about-featured-content img:hover {
   transform: scale(1.02);
}

/* ===========================================
   SERVICES PAGE
   =========================================== */

.services-hero {
   max-width: 1200px;
   margin: 4rem auto;
   padding: 4rem;
   background: var(--color-bg-lighter);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
}

.services-hero h1 {
   font-size: clamp(2.8rem, 4vw, 4rem);
   color: var(--color-primary);
   margin-bottom: 2rem;
   line-height: 1.2;
   font-weight: 700;
   letter-spacing: -0.5px;
}

.services-hero p {
   font-size: 1.7rem;
   color: var(--color-text-secondary);
   line-height: 1.8;
   margin: 0;
}

.services-featured-content {
   max-width: 1200px;
   margin: 4rem auto;
   padding: 4rem;
   font-size: 1.7rem;
   color: var(--color-text-secondary);
   line-height: 1.8;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 4rem;
   align-items: start;
   background: var(--color-bg-lighter);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
}

.services-featured-content > div {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.services-featured-content h2 {
   font-size: clamp(2.4rem, 3.5vw, 3.2rem);
   color: var(--color-primary);
   line-height: 1.2;
   font-weight: 700;
   letter-spacing: -0.5px;
   margin: 0;
}

.services-featured-content img {
   width: 100%;
   height: auto;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-lg);
   transition: transform var(--transition-slow);
   object-fit: cover;
   align-self: start;
}

.services-featured-content img:hover {
   transform: scale(1.02);
}

.services-featured-content p {
   margin: 0;
   font-weight: 500;
   line-height: 1.8;
}

.services-featured-content ul {
   list-style: none;
   margin: 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   gap: 1.2rem;
}

.services-featured-content li {
   position: relative;
   padding-left: 3rem;
   color: var(--color-text-primary);
   font-weight: 500;
   font-size: 1.6rem;
   line-height: 1.6;
}

/* Custom checkmark bullets */
.services-featured-content li::before {
   content: "✓";
   position: absolute;
   left: 0;
   top: 0;
   width: 2.4rem;
   height: 2.4rem;
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
   color: #ffffff;
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   font-weight: 700;
   font-size: 1.4rem;
   box-shadow: var(--shadow-sm);
}

/* ===========================================
   CONTACT PAGE
   =========================================== */

.contact-hero {
   max-width: 1200px;
   margin: 4rem auto;
   padding: 4rem;
   background: var(--color-bg-lighter);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
}

.contact-hero h1 {
   font-size: clamp(2.8rem, 4vw, 4rem);
   color: var(--color-primary);
   margin-bottom: 2rem;
   line-height: 1.2;
   font-weight: 700;
   letter-spacing: -0.5px;
}

.contact-hero p {
   font-size: 1.7rem;
   color: var(--color-text-secondary);
   line-height: 1.8;
   margin: 0;
}

.contact-container {
   max-width: 1200px;
   display: grid;
   grid-template-columns: 1.5fr 1fr;
   gap: 5rem;
   margin: 4rem auto;
   padding: 4rem;
   background: var(--color-bg-lighter);
   border-radius: var(--radius-xl);
   box-shadow: var(--shadow-md);
}

.contact-form {
   display: flex;
   flex-direction: column;
   gap: 0.8rem;
}

.contact-form h2 {
   font-size: 2.6rem;
   color: var(--color-primary);
   margin-bottom: 1.5rem;
   line-height: 1.2;
   font-weight: 700;
}

.contact-form form {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.contact-form label {
   font-size: 1.5rem;
   color: var(--color-text-primary);
   font-weight: 600;
   margin-bottom: 0.6rem;
   display: block;
}

.contact-form input,
.contact-form textarea {
   padding: 1.4rem 1.6rem;
   border: 2px solid var(--color-bg-dark);
   border-radius: var(--radius-md);
   font-size: 1.6rem;
   font-family: inherit;
   resize: vertical;
   transition: all var(--transition-normal);
   background-color: var(--color-bg-light);
   color: var(--color-text-primary);
   width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
   color: var(--color-text-tertiary);
}

.contact-form input:focus,
.contact-form textarea:focus {
   outline: none;
   border-color: var(--color-primary);
   box-shadow: 0 0 0 3px rgba(47, 60, 105, 0.1);
   background-color: var(--color-bg-lighter);
}

.contact-form input:hover:not(:focus),
.contact-form textarea:hover:not(:focus) {
   border-color: var(--color-accent);
}

.contact-form textarea {
   min-height: 150px;
}

.contact-form button {
   padding: 1.6rem 3.2rem;
   border: none;
   border-radius: var(--radius-md);
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
   color: #ffffff;
   font-size: 1.7rem;
   font-weight: 700;
   cursor: pointer;
   transition: all var(--transition-normal);
   box-shadow: var(--shadow-md);
   align-self: flex-start;
}

.contact-form button:hover,
.contact-form button:focus {
   transform: translateY(-2px);
   box-shadow: var(--shadow-lg);
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.contact-form button:active {
   transform: translateY(0);
   box-shadow: var(--shadow-sm);
}

.contact-info {
   display: flex;
   flex-direction: column;
   gap: 2rem;
   padding: 3rem;
   background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-dark) 100%);
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-sm);
}

.contact-info h2 {
   font-size: 2.4rem;
   color: var(--color-primary);
   margin: 0 0 1rem 0;
   line-height: 1.2;
   font-weight: 700;
}

.contact-info p {
   font-size: 1.6rem;
   color: var(--color-text-secondary);
   line-height: 1.7;
   margin: 0;
}

.contact-info a {
   text-decoration: none;
   color: var(--color-primary);
   font-size: 1.6rem;
   font-weight: 600;
   transition: all var(--transition-normal);
   width: fit-content;
   position: relative;
}

.contact-info a::after {
   content: "";
   position: absolute;
   bottom: -2px;
   left: 0;
   width: 0;
   height: 2px;
   background-color: var(--color-secondary);
   transition: width var(--transition-normal);
}

.contact-info a:hover,
.contact-info a:focus {
   color: var(--color-secondary);
}

.contact-info a:hover::after,
.contact-info a:focus::after {
   width: 100%;
}

/* ===========================================
   PERFORMANCE OPTIMIZATIONS
   =========================================== */

/* GPU acceleration for animated elements */
.nav-links,
.learn-more-cta,
.call-out a,
.contact-form button,
.dcs-logo,
.featured-content img,
.about-featured-content img,
.services-featured-content img {
   will-change: transform;
   transform: translateZ(0);
}

/* Optimize images for better loading */
img {
   image-rendering: -webkit-optimize-contrast;
   image-rendering: crisp-edges;
}

/* ===========================================
   LOADING STATES & ANIMATIONS
   =========================================== */

/* Smooth fade-in for page load */
@keyframes fadeIn {
   from {
      opacity: 0;
      transform: translateY(20px);
   }
   to {
      opacity: 1;
      transform: translateY(0);
   }
}

.featured-content,
.about-featured-content,
.services-featured-content,
.call-out,
.contact-container {
   animation: fadeIn 0.6s ease-out;
}

/* Subtle pulse animation for CTA */
@keyframes pulse {
   0%,
   100% {
      box-shadow: 0 0 0 0 rgba(47, 60, 105, 0.4);
   }
   50% {
      box-shadow: 0 0 0 10px rgba(47, 60, 105, 0);
   }
}

.call-out a:hover {
   animation: pulse 1.5s infinite;
}

/* Loading skeleton (optional for future use) */
.skeleton {
   background: linear-gradient(90deg, var(--color-bg-dark) 25%, var(--color-bg-light) 50%, var(--color-bg-dark) 75%);
   background-size: 200% 100%;
   animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
   0% {
      background-position: 200% 0;
   }
   100% {
      background-position: -200% 0;
   }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */

/* Text utilities */
.text-center {
   text-align: center;
}

.text-primary {
   color: var(--color-primary);
}

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

/* Spacing utilities */
.mt-1 {
   margin-top: 1rem;
}
.mt-2 {
   margin-top: 2rem;
}
.mt-3 {
   margin-top: 3rem;
}
.mt-4 {
   margin-top: 4rem;
}

.mb-1 {
   margin-bottom: 1rem;
}
.mb-2 {
   margin-bottom: 2rem;
}
.mb-3 {
   margin-bottom: 3rem;
}
.mb-4 {
   margin-bottom: 4rem;
}

/* Display utilities */
.hidden {
   display: none;
}

.visible {
   display: block;
}

/* Hover effect for interactive elements */
.hover-lift {
   transition: transform var(--transition-normal);
}

.hover-lift:hover {
   transform: translateY(-4px);
}

/* ===========================================
   ACCESSIBILITY ENHANCEMENTS
   =========================================== */

/* Better focus indicators for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
   outline: 3px solid var(--color-accent);
   outline-offset: 3px;
}

/* Ensure sufficient contrast for text */
::selection {
   background-color: var(--color-primary);
   color: #ffffff;
}

/* High visibility for keyboard navigation */
:focus-visible {
   outline-style: solid;
   outline-width: 3px;
   outline-color: var(--color-accent);
}

/* ===========================================
   SEO & SEMANTIC ENHANCEMENTS
   =========================================== */

/* Ensure proper heading hierarchy display */
h1 {
   font-size: clamp(2.8rem, 4vw, 4.2rem);
}
h2 {
   font-size: clamp(2.4rem, 3.5vw, 3.6rem);
}
h3 {
   font-size: clamp(2rem, 3vw, 2.8rem);
}
h4 {
   font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}
h5 {
   font-size: clamp(1.6rem, 2vw, 2rem);
}
h6 {
   font-size: clamp(1.4rem, 1.5vw, 1.8rem);
}

/* Improve readability for long-form content */
article,
.content-block {
   max-width: 70ch;
   line-height: 1.8;
}

/* ===========================================
   ENHANCED INTERACTIVE ELEMENTS
   =========================================== */

/* Smooth scroll for anchor links */
html {
   scroll-padding-top: 10rem; /* Account for sticky header */
}

/* Better button defaults */
button,
.btn {
   -webkit-tap-highlight-color: transparent;
   user-select: none;
}

/* Disabled state */
button:disabled,
.btn:disabled {
   opacity: 0.6;
   cursor: not-allowed;
   pointer-events: none;
}

/* Link focus states */
a[href^="tel:"],
a[href^="mailto:"] {
   word-break: break-all;
}

/* ===========================================
   SOCIAL MEDIA & EXTERNAL LINKS
   =========================================== */

/* External link indicator (optional) */
a[target="_blank"]::after {
   content: none; /* Can be customized if needed */
}

/* Social media icons hover effect */
.social a {
   position: relative;
   overflow: hidden;
}

.social a::before {
   content: "";
   position: absolute;
   top: 50%;
   left: 50%;
   width: 0;
   height: 0;
   background: rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   transform: translate(-50%, -50%);
   transition: width var(--transition-normal), height var(--transition-normal);
}

.social a:hover::before,
.social a:focus::before {
   width: 100%;
   height: 100%;
}

/* ===========================================
   FORM VALIDATION STATES (Enhanced)
   =========================================== */

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
   border-color: #c62828;
}

input:valid:not(:placeholder-shown),
textarea:valid:not(:placeholder-shown) {
   border-color: #2e7d32;
}

/* Custom validation messages */
input:invalid:not(:placeholder-shown) + .error-message {
   display: block;
   color: #c62828;
   font-size: 1.3rem;
   margin-top: 0.5rem;
}

.error-message {
   display: none;
}

/* ===========================================
   JAVASCRIPT-ENHANCED FEATURES
   =========================================== */

/* ==================== NOTIFICATION SYSTEM ==================== */
.notification {
   position: fixed;
   top: -100px;
   left: 50%;
   transform: translateX(-50%);
   max-width: 500px;
   width: 90%;
   padding: 1.6rem 5rem 1.6rem 2rem;
   border-radius: var(--radius-lg);
   box-shadow: var(--shadow-xl);
   z-index: var(--z-tooltip);
   transition: top var(--transition-normal), opacity var(--transition-normal);
   opacity: 0;
   font-size: 1.6rem;
   font-weight: 500;
   line-height: 1.5;
}

.notification.show {
   top: 2rem;
   opacity: 1;
}

.notification-success {
   background: linear-gradient(135deg, #2e7d32 0%, #43a047 100%);
   color: #ffffff;
}

.notification-error {
   background: linear-gradient(135deg, #c62828 0%, #e53935 100%);
   color: #ffffff;
}

.notification-info {
   background: linear-gradient(135deg, #1976d2 0%, #2196f3 100%);
   color: #ffffff;
}

.notification-message {
   display: block;
}

.notification-close {
   position: absolute;
   top: 50%;
   right: 1.5rem;
   transform: translateY(-50%);
   background: none;
   border: none;
   color: inherit;
   font-size: 2.4rem;
   cursor: pointer;
   padding: 0;
   width: 3rem;
   height: 3rem;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   transition: background-color var(--transition-fast);
}

.notification-close:hover,
.notification-close:focus {
   background-color: rgba(255, 255, 255, 0.2);
}

/* ==================== BACK TO TOP BUTTON ==================== */
.back-to-top {
   position: fixed;
   bottom: -60px;
   right: 2rem;
   width: 5rem;
   height: 5rem;
   background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
   color: #ffffff;
   border: none;
   border-radius: 50%;
   font-size: 2.4rem;
   cursor: pointer;
   box-shadow: var(--shadow-lg);
   transition: all var(--transition-normal);
   z-index: var(--z-fixed);
   display: flex;
   align-items: center;
   justify-content: center;
   opacity: 0;
   pointer-events: none;
}

.back-to-top.show {
   bottom: 2rem;
   opacity: 1;
   pointer-events: auto;
}

.back-to-top:hover,
.back-to-top:focus {
   transform: translateY(-4px);
   box-shadow: var(--shadow-xl);
   background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

.back-to-top:active {
   transform: translateY(-2px);
}

/* ==================== HEADER SCROLL EFFECTS ==================== */
.header-container.scrolled {
   box-shadow: var(--shadow-lg);
}

.header-container {
   transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.header-container.header-hidden {
   transform: translateY(-100%);
}

/* ==================== LAZY LOADING IMAGES ==================== */
img {
   transition: opacity var(--transition-slow), filter var(--transition-slow);
}

img[data-src] {
   opacity: 0;
}

img.loaded {
   opacity: 1;
   filter: blur(0);
}

/* Progressive loading blur-up effect */
img.loading-blur {
   filter: blur(20px);
   transform: scale(1.05); /* Slight scale to hide blur edges */
   opacity: 1; /* Show the low-res placeholder */
}

/* Smooth transition as high-res loads */
img.loading-blur.loaded {
   filter: blur(0);
   transform: scale(1);
}

/* Legacy support for images without placeholder */
img[data-src]:not(.loaded):not(.loading-blur) {
   opacity: 0;
}

/* ==================== SCROLL ANIMATIONS ==================== */
.animate-in {
   animation: fadeInUp 0.8s ease-out forwards;
}

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

/* ==================== FORM LOADING STATE ==================== */
button.loading {
   position: relative;
   color: transparent;
   pointer-events: none;
}

button.loading::after {
   content: "";
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   width: 2rem;
   height: 2rem;
   border: 3px solid rgba(255, 255, 255, 0.3);
   border-top-color: #ffffff;
   border-radius: 50%;
   animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
   to {
      transform: translate(-50%, -50%) rotate(360deg);
   }
}

/* ==================== FORM VALIDATION STATES ==================== */
input.valid,
textarea.valid {
   border-color: #2e7d32 !important;
}

input.invalid,
textarea.invalid {
   border-color: #c62828 !important;
}

input.valid:focus,
textarea.valid:focus {
   box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1) !important;
}

input.invalid:focus,
textarea.invalid:focus {
   box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1) !important;
}

/* ==================== SKIP TO MAIN CONTENT ==================== */
.skip-to-main {
   position: absolute;
   top: -100px;
   left: 1rem;
   background: var(--color-primary);
   color: #ffffff;
   padding: 1rem 2rem;
   text-decoration: none;
   z-index: var(--z-tooltip);
   border-radius: var(--radius-md);
   font-weight: 600;
   font-size: 1.6rem;
   transition: top var(--transition-fast);
}

.skip-to-main:focus {
   top: 1rem;
}

/* ==================== FOCUS STYLES FOR JS INTERACTIONS ==================== */
.js-focus-visible :focus:not(.focus-visible) {
   outline: none;
}

.js-focus-visible .focus-visible {
   outline: 3px solid var(--color-accent);
   outline-offset: 3px;
}

/* ==================== VIDEO OPTIMIZATION ==================== */
video {
   /* Optimize video rendering */
   object-fit: cover;
   will-change: transform;
   /* Improve performance on all devices */
   backface-visibility: hidden;
   -webkit-backface-visibility: hidden;
   /* Force hardware acceleration */
   transform: translate3d(0, 0, 0);
   -webkit-transform: translate3d(0, 0, 0);
}

/* ==================== SMOOTH SCROLL BEHAVIOR ==================== */
html:not(.reduced-motion) {
   scroll-behavior: smooth;
}

html.reduced-motion * {
   animation-duration: 0.01ms !important;
   animation-iteration-count: 1 !important;
   transition-duration: 0.01ms !important;
}

/* ==================== LOADING SKELETON (for future use) ==================== */
.skeleton-loading {
   background: linear-gradient(90deg, var(--color-bg-dark) 25%, var(--color-bg-light) 50%, var(--color-bg-dark) 75%);
   background-size: 200% 100%;
   animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
   0% {
      background-position: 200% 0;
   }
   100% {
      background-position: -200% 0;
   }
}

/* ==================== OFFLINE INDICATOR ==================== */
body.offline::before {
   content: "You are currently offline";
   position: fixed;
   top: 0;
   left: 0;
   right: 0;
   background: #f57c00;
   color: white;
   text-align: center;
   padding: 0.8rem;
   font-size: 1.4rem;
   font-weight: 600;
   z-index: var(--z-tooltip);
}

/* ==================== MOBILE OPTIMIZATIONS ==================== */
@media (max-width: 768px) {
   .notification {
      width: calc(100% - 2rem);
      padding: 1.4rem 4.5rem 1.4rem 1.6rem;
   }

   .back-to-top {
      width: 4.5rem;
      height: 4.5rem;
      font-size: 2rem;
      right: 1.5rem;
   }

   .back-to-top.show {
      bottom: 1.5rem;
   }
}

/* ==================== PRINT OPTIMIZATIONS ==================== */
@media print {
   .notification,
   .back-to-top,
   .skip-to-main {
      display: none !important;
   }
}

/* ==================== HIGH CONTRAST MODE ==================== */
@media (prefers-contrast: high) {
   .notification {
      border: 2px solid currentColor;
   }

   .back-to-top {
      border: 2px solid #ffffff;
   }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
   .notification,
   .back-to-top,
   .header-container,
   img {
      transition: none !important;
   }

   .animate-in {
      animation: none !important;
      opacity: 1 !important;
      transform: none !important;
   }
}
