/* Case Studies page (/case-studies/). Taken from the old listing template (page 1) so the page looks the same. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #000000;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 60px;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 45px;
}

.nav-divider {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-links > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-links > a:hover,
.nav-links > a.active {
    color: #F5A623;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
}

.nav-dropdown > a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-dropdown > a:hover,
.nav-dropdown > a.active {
    color: #F5A623;
}

.nav-dropdown > a::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #ffffff;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.nav-dropdown:hover > a::after {
    border-top-color: #F5A623;
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, margin-top 0.3s ease;
    margin-top: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
}

.nav-dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    opacity: 1;
    visibility: visible;
    margin-top: 10px;
    pointer-events: auto;
}

.dropdown-menu a {
    display: block;
    padding: 12px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    pointer-events: auto;
}

.dropdown-menu a:hover {
    background: rgba(245, 166, 35, 0.1);
    color: #F5A623;
}

.dropdown-menu a.active {
    color: #F5A623;
    background: rgba(245, 166, 35, 0.05);
}

.nav-cta {
    background-color: #F5A623;
    color: #000000;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.nav-cta:hover {
    background-color: #e09515;
    transform: translateY(-2px);
}
/* Mobile Menu Hamburger Button */
.mobile-nav-right {
    display: none;
    align-items: center;
    gap: 15px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    position: absolute;
}

.mobile-menu-toggle span:nth-child(1) {
    transform: translateY(-8px);
}

.mobile-menu-toggle span:nth-child(2) {
    transform: translateY(0);
}

.mobile-menu-toggle span:nth-child(3) {
    transform: translateY(8px);
}

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

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

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Mobile Menu Panel */
.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: linear-gradient(180deg, #0a0a0a 0%, #111111 100%);
    z-index: 1000;
    overflow-y: auto;
    padding: 80px 30px 30px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-menu-links > a,
.mobile-menu-links > .mobile-dropdown > a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-menu-links > a:hover,
.mobile-menu-links > .mobile-dropdown > a:hover {
    color: #F5A623;
    padding-left: 10px;
}

.mobile-dropdown {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-dropdown > a {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    border-bottom: none !important;
}

.mobile-dropdown > a::after {
    content: '+';
    font-size: 20px;
    color: #F5A623;
    transition: transform 0.3s ease;
}

.mobile-dropdown.active > a::after {
    content: '−';
}

.mobile-dropdown-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -30px;
    padding: 0 30px;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    max-height: 300px;
}

.mobile-dropdown-menu a {
    display: block;
    color: #aaaaaa;
    text-decoration: none;
    font-size: 16px;
    padding: 14px 0 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.mobile-dropdown-menu a:last-child {
    border-bottom: none;
}

.mobile-dropdown-menu a:hover {
    color: #F5A623;
    padding-left: 30px;
}

.mobile-menu-cta {
    display: block;
    background-color: #F5A623;
    color: #000000;
    padding: 16px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.mobile-menu-cta:hover {
    background-color: #e09515;
    transform: translateY(-2px);
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    padding-top: 100px;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 80px 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 30px;
    position: relative;
    background: #1a1a1a;
    z-index: 1;
}

.hero-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50px;
    background: conic-gradient(from var(--angle), transparent 60%, #F5A623 80%, #FFBD00 100%, transparent 100%);
    z-index: -2;
    animation: rotateBorder 3s linear infinite;
}

.hero-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: #1a1a1a;
    z-index: -1;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: #ffffff;
    border-radius: 50%;
}

@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes rotateBorder {
    0% {
        --angle: 0deg;
        filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5));
    }
    50% {
        filter: drop-shadow(0 0 15px rgba(245, 166, 35, 0.8));
    }
    100% {
        --angle: 360deg;
        filter: drop-shadow(0 0 5px rgba(245, 166, 35, 0.5));
    }
}

.hero h1 {
    font-size: 64px;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Case Studies Section */
.case-studies-section {
    background: #000000;
    padding: 80px 60px 120px;
}

.case-studies-container {
    max-width: 1400px;
    margin: 0 auto;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-study-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-study-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border: 1px solid #222;
    transition: all 0.4s ease;
    cursor: pointer;
}

.case-study-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 22px;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 189, 0, 0.4) 0%,
        rgba(245, 166, 35, 0.2) 25%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.case-study-card:hover::before {
    opacity: 1;
}

.case-study-card:hover {
    border-color: rgba(255, 189, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(255, 189, 0, 0.15);
}

.case-study-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.case-study-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.case-study-content {
    padding: 30px;
}

.case-study-content h3 {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.case-study-card:hover .case-study-content h3 {
    color: #FFBD00;
}

.case-study-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 80px;
}

.pagination-item {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #333;
    color: #888;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-item:hover {
    border-color: #555;
    color: #ffffff;
}

.pagination-item.active {
    background: #F5A623;
    border-color: #F5A623;
    color: #000000;
    font-weight: 600;
}

.pagination-arrow {
    font-size: 18px;
}

/* CTA Section */
.cta-section {
    background: #000000;
    padding: 100px 60px;
}

.cta-header {
    max-width: 1400px;
    margin: 0 auto 60px;
    text-align: center;
}

.cta-header h2 {
    font-size: 80px;
    font-weight: 400;
    color: #ffc500;
    line-height: 1.1;
    margin-bottom: 30px;
}

.cta-header p {
    font-size: 18px;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.cta-container-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    z-index: 1;
}

.cta-container-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 22px;
    background: conic-gradient(from var(--angle), transparent 92%, #F5A623 96%, #FFBD00 100%, transparent 100%);
    z-index: 0;
    animation: rotateBorder 8s linear infinite;
}

.cta-container-wrapper::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 25px;
    background: conic-gradient(from var(--angle), transparent 92%, #F5A623 96%, #FFBD00 100%, transparent 100%);
    z-index: -1;
    animation: rotateBorder 8s linear infinite;
    filter: blur(15px);
    opacity: 0.7;
}

.cta-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 80px 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    z-index: 1;
}

.cta-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
}

.cta-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.cta-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 30%) var(--mouse-y, 50%), rgba(255, 189, 0, 0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
    border-radius: 20px;
}

.cta-container:hover::before {
    opacity: 1;
}

.cta-container > *:not(.cta-video-bg):not(.cta-video-overlay) {
    position: relative;
    z-index: 3;
}

.cta-content h3 {
    font-size: 42px;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 30px;
}

.cta-container-partners {
    margin-top: 20px;
}

.cta-container-partners img {
    height: 80px;
    width: auto;
}

.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: #ffffff;
    color: #000000;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cta-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Responsive */
@media (max-width: 1024px) {
    nav { padding: 20px 40px; }
    .hero-content { padding: 60px 40px; }
    .hero h1 { font-size: 48px; }
    .case-studies-section { padding: 60px 40px 100px; }
    .case-studies-grid { grid-template-columns: repeat(2, 1fr); gap: 25px; }
    .case-study-image { height: 220px; }
    .case-study-content { padding: 25px; }
    .case-study-content h3 { font-size: 22px; }
    .cta-section { padding: 100px 40px; }
    .cta-header h2 { font-size: 42px; }
    .cta-container { flex-direction: column; text-align: center; padding: 50px 40px; }
    .cta-content h3 { font-size: 32px; }
}

@media (max-width: 768px) {
    nav { padding: 15px 20px; }
    .nav-links, .nav-cta { display: none; }
    .mobile-nav-right { display: flex; }
    .mobile-menu-toggle { display: flex; }
    .mobile-menu-overlay, .mobile-menu { display: block; }
    .logo img { height: 38px; }
    .hero { padding-top: 80px; }
    .hero-content { padding: 40px 20px; }
    .hero h1 { font-size: 32px; }
    .case-studies-section { padding: 40px 20px 80px; }
    .case-studies-grid { grid-template-columns: 1fr; gap: 20px; }
    .case-study-image { height: 200px; }
    .case-study-content { padding: 25px; }
    .case-study-content h3 { font-size: 20px; }
    .pagination { margin-top: 50px; gap: 8px; }
    .pagination-item { width: 40px; height: 40px; font-size: 14px; }
    .cta-section { padding: 80px 20px; }
    .cta-header h2 { font-size: 32px; }
    .cta-container { padding: 40px 25px; min-height: auto; flex-direction: column; gap: 20px; }
    .cta-content h3 { font-size: 26px; margin-bottom: 10px; }
    .cta-button { width: 100%; text-align: center; margin-top: 5px; }
}

@media (max-width: 480px) {
    .footer-main { grid-template-columns: 1fr; }
    .footer-brand { grid-column: span 1; }
}
