:root {
    --primary: #050C1A;
    --dark-bg: #030814;
    --surface: #09142b;
    --card-bg: #102549;
    --accent: #FF6B12;
    --accent-hover: #dd5708;
    --text-light: #F5F8FF;
    --text-dim: #A8B3CC;
    --border-soft: rgba(255, 255, 255, 0.12);

    --font-heading: 'Rajdhani', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --container-width: 1200px;
    --header-offset: 82px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--primary);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.heading-lg {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.heading-md {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.text-accent {
    color: var(--accent);
}

.text-dim {
    color: var(--text-dim);
}

.text-center {
    text-align: center;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--accent);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: var(--font-heading);
    letter-spacing: 1px;
    transition: var(--transition);
    border: 1px solid var(--accent);
}

.btn:hover {
    background-color: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 18, 0.3);
}

.section-padding {
    padding: 5rem 0;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    background: rgba(5, 12, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

header .container {
    max-width: 1200px;
    padding-left: 1rem;
    padding-right: 1rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.logo img {
    height: 50px;
    width: auto;
    transition: height 0.25s ease;
}

.logo-text {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 1.35rem;
    line-height: 1;
    transition: font-size 0.25s ease;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: gap 0.25s ease;
}

.nav-links > a,
.nav-dropdown-toggle {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: font-size 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nav-links > a::after,
.nav-dropdown-toggle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links > a:hover::after,
.nav-dropdown-toggle:hover::after,
.nav-dropdown-toggle.active::after {
    width: 100%;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.nav-dropdown-icon {
    font-size: 0.66rem;
    transition: transform 0.2s ease;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #071529;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    padding: 0.4rem;
    display: grid;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1015;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-dropdown:hover .nav-dropdown-icon,
.nav-dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown-menu a {
    display: block;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.3;
}

.nav-dropdown-menu a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-search-toggle {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-search-toggle:hover {
    border-color: var(--accent);
    background: var(--accent);
}

header.header-compact {
    padding: 0.6rem 0;
}

header.header-compact .logo img {
    height: 42px;
}

header.header-compact .logo-text {
    font-size: 1.2rem;
}

header.header-compact .nav-links {
    gap: 1.1rem;
}

header.header-compact .nav-links > a,
header.header-compact .nav-dropdown-toggle {
    font-size: 1rem;
}

header.header-compact .nav-search-toggle {
    width: 34px;
    height: 34px;
    font-size: 0.82rem;
}

body.search-modal-open {
    overflow: hidden;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 8, 20, 0.78);
    backdrop-filter: blur(3px);
}

.search-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    padding: 1.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, #0e1f41 0%, #081229 100%);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.search-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.search-modal-close:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.search-modal-dialog h3 {
    margin-bottom: 0.85rem;
    font-size: 1.4rem;
}

.search-modal-form {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

.search-modal-form input {
    flex: 1;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    padding: 0.82rem 0.95rem;
}

.search-modal-form input::placeholder {
    color: var(--text-dim);
}

.search-modal-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 18, 0.18);
}

.search-modal-form button {
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    padding: 0.78rem 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.search-modal-form button:hover {
    background: var(--accent-hover);
}

/* Hero Slider */
.hero {
    position: relative;
    margin-top: var(--header-offset);
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    max-height: calc(100vh - var(--header-offset));
    min-height: 260px;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-slider {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: var(--dark-bg);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 12, 26, 0.45), rgba(5, 12, 26, 0.05));
    pointer-events: none;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    gap: 0.7rem;
    z-index: 3;
}

.hero-dots button {
    width: 12px;
    height: 12px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition);
}

.hero-dots button.active {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.12);
}

/* Services */
.services {
    background-color: var(--dark-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    padding: 2.2rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 107, 18, 0.45);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
}

.service-icon {
    font-size: 2.3rem;
    color: var(--accent);
    margin-bottom: 1.3rem;
}

.service-icon-graphic {
    width: 2.4rem;
    height: 2.4rem;
    margin-bottom: 1.3rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.service-icon-graphic svg,
.service-icon-graphic img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.service-media {
    width: 84px;
    height: 84px;
    margin-bottom: 1.3rem;
}

.service-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    margin-bottom: 0.9rem;
    font-size: 1.5rem;
}

.service-card p {
    color: var(--text-dim);
}

/* Process Steps */
.process-steps {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-card {
    text-align: center;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.5rem 1rem;
}

.step-media {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.step-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.step-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 2.1rem;
}

.step-card h4 {
    font-size: 1.1rem;
    letter-spacing: 0.8px;
}

/* Portfolio */
.portfolio-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.portfolio-category-item {
    appearance: none;
    font: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    transition: var(--transition);
    cursor: pointer;
}

.portfolio-category-item:hover,
.portfolio-category-item.active {
    border-color: rgba(255, 107, 18, 0.6);
    background: rgba(255, 107, 18, 0.08);
}

.portfolio-category-item img {
    width: clamp(104px, 58%, 168px);
    height: clamp(104px, 58%, 168px);
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.portfolio-category-placeholder {
    width: clamp(104px, 58%, 168px);
    height: clamp(104px, 58%, 168px);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    text-align: center;
    padding: 0.4rem;
}

.portfolio-category-item span {
    font-family: var(--font-heading);
    letter-spacing: 0.8px;
    font-size: 0.94rem;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.home-portfolio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 0;
}

.home-portfolio-grid .portfolio-item {
    height: 360px;
}

.home-portfolio-grid .portfolio-item:nth-child(n+10) {
    display: none;
}

.portfolio-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 400px;
    cursor: pointer;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    text-align: center;
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(5, 12, 26, 0.96), transparent);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-empty {
    margin-top: 1.5rem;
    padding: 1rem;
    text-align: center;
    color: var(--text-dim);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    display: none;
}

.portfolio-empty.show {
    display: block;
}

.portfolio-tag {
    background: var(--accent);
    color: #fff;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

/* Featured Articles */
.featured-articles-section {
    background: linear-gradient(180deg, rgba(3, 8, 20, 0.35) 0%, rgba(3, 8, 20, 0) 100%);
}

.featured-articles-slider {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.featured-articles-viewport {
    width: 100%;
    overflow: hidden;
}

.featured-articles-track {
    display: flex;
    gap: 1rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

.featured-article-card {
    flex: 0 0 calc((100% - 2rem) / 3);
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.featured-article-thumb {
    width: 100%;
    height: 210px;
    background: rgba(255, 255, 255, 0.06);
}

.featured-article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.featured-article-content {
    padding: 1rem 1.05rem 1.15rem;
}

.featured-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-bottom: 0.45rem;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.featured-article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-article-meta i {
    color: var(--accent);
}

.featured-article-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.45rem;
}

.featured-article-content p {
    color: var(--text-dim);
    font-size: 0.92rem;
    margin-bottom: 0.8rem;
}

.featured-article-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-article-link:hover {
    color: #fff;
}

.featured-articles-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
    flex: 0 0 auto;
    display: none;
}

.featured-articles-nav:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.featured-articles-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.16);
}

/* Home YouTube */
.home-youtube-section {
    background: linear-gradient(180deg, rgba(4, 10, 24, 0.38) 0%, rgba(4, 10, 24, 0) 100%);
}

.youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.youtube-card {
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.youtube-frame {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: rgba(255, 255, 255, 0.04);
}

.youtube-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.youtube-card h3 {
    padding: 0.85rem 0.95rem 1rem;
    font-size: 1.08rem;
    line-height: 1.3;
}

.youtube-empty {
    margin-top: 1rem;
    padding: 1rem;
    text-align: center;
    color: var(--text-dim);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 8px;
}

/* Articles */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.article-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 107, 18, 0.45);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.article-thumb {
    height: 210px;
    background: rgba(255, 255, 255, 0.04);
}

.article-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.article-content {
    padding: 1.2rem;
}

.article-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.75rem;
    margin-bottom: 0.65rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

.article-meta-line span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.article-meta-line i {
    color: var(--accent);
}

.article-content h3 {
    margin-bottom: 0.6rem;
    font-size: 1.45rem;
}

.article-content p {
    color: var(--text-dim);
    margin-bottom: 0.9rem;
}

.article-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.article-read-more:hover {
    color: #fff;
}

/* Article Detail */
.article-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text-dim);
    margin-bottom: 1.1rem;
}

.article-detail-back:hover {
    color: #fff;
}

.article-detail-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
}

.article-detail-cover {
    width: 100%;
    max-height: 460px;
}

.article-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-detail-header {
    padding: 1.5rem 1.5rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.article-detail-header h2 {
    margin-bottom: 0.7rem;
    font-size: 2.1rem;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.95rem;
    color: var(--text-dim);
    font-size: 0.92rem;
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.article-detail-meta i {
    color: var(--accent);
}

.article-detail-body {
    padding: 1.4rem 1.5rem 1.8rem;
    font-size: 1.06rem;
}

.article-detail-body h2,
.article-detail-body h3 {
    margin: 1.15rem 0 0.55rem;
}

.article-detail-body p,
.article-detail-body ul,
.article-detail-body ol,
.article-detail-body blockquote {
    margin: 0.7rem 0;
}

.article-detail-body ul,
.article-detail-body ol {
    padding-left: 1.3rem;
}

.article-detail-body blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 0.8rem;
    color: var(--text-dim);
}

.article-detail-body a {
    color: var(--accent);
    text-decoration: underline;
}

.article-related-section {
    margin-top: 2.2rem;
}

.article-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.article-related-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.article-related-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 18, 0.45);
}

.article-related-thumb {
    height: 150px;
    background: rgba(255, 255, 255, 0.05);
}

.article-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-related-thumb-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
}

.article-related-content {
    padding: 0.9rem 1rem 1rem;
}

.article-related-content h4 {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
}

.article-related-content span {
    color: var(--accent);
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

/* Contact */
.contact-section {
    background: var(--dark-bg);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info ul {
    list-style: none;
    margin: 2rem 0;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.contact-info i {
    color: var(--accent);
    font-size: 1.2rem;
}

.contact-form {
    background: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1rem;
    color: var(--text-light);
    border-radius: 4px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 107, 18, 0.15);
}

/* Footer */
.site-footer {
    background: radial-gradient(circle at top left, #0c1f44 0%, #030814 62%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 2rem;
}

.footer-top {
    padding: 3.2rem 0 2.2rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    gap: 2rem;
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.footer-brand-link img {
    height: 46px;
    width: auto;
}

.footer-brand-link span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.footer-brand p {
    color: var(--text-dim);
    margin-bottom: 1rem;
    max-width: 420px;
}

.footer-brand .wa-btn {
    background: #25D366;
    border-color: #25D366;
    color: #fff;
}

.footer-brand .wa-btn:hover {
    background: #1fa955;
    border-color: #1fa955;
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.2rem;
}

.footer-column a,
.footer-column p {
    display: block;
    color: var(--text-dim);
    margin-bottom: 0.55rem;
    transition: var(--transition);
}

.footer-column a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-socials {
    display: flex;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.footer-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
}

.footer-socials a:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.footer-bottom {
    padding: 1rem 0 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition);
}

.floating-wa:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Page Headers */
.page-hero {
    background: linear-gradient(180deg, rgba(7, 15, 33, 0.96) 0%, rgba(4, 10, 24, 0.96) 100%);
    padding: 8rem 0 4rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.hero-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-dim);
    padding: 1.5rem;
}

/* About Page */
.about-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-media-frame {
    width: 100%;
    height: 400px;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.quote-box {
    background: rgba(255, 107, 18, 0.12);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
    font-size: 1.1rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.value-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.size-media-grid {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
}

.sizechart-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.size-media-item {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--surface);
}

.size-media-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.size-media-item .caption {
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    color: var(--text-dim);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sizechart-grid .size-media-item {
    background: var(--card-bg);
}

.sizechart-grid .size-media-item img {
    height: auto;
    min-height: 0;
    object-fit: initial;
    background: transparent;
}

.sizechart-grid .size-media-item .caption {
    color: #fff;
    font-weight: 600;
    text-align: center;
}

.search-page-form {
    max-width: 680px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
}

.search-page-form input {
    flex: 1;
    border: none;
    padding: 0.9rem 1rem;
    background: transparent;
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 1rem;
}

.search-page-form input:focus {
    outline: none;
}

.search-page-form button {
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 0 1.2rem;
    height: 100%;
    cursor: pointer;
    transition: var(--transition);
}

.search-page-form button:hover {
    background: var(--accent-hover);
}

.search-results-section {
    margin-bottom: 1.5rem;
}

.search-results-section h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.search-results-grid {
    display: grid;
    gap: 0.9rem;
}

.search-result-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1rem 1.1rem;
}

.search-result-meta {
    color: var(--accent);
    font-family: var(--font-heading);
    letter-spacing: 0.6px;
    font-size: 0.78rem;
    margin-bottom: 0.2rem;
    text-transform: uppercase;
}

.search-result-card h4 {
    margin-bottom: 0.4rem;
    font-size: 1.15rem;
}

.search-result-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
}

/* Responsive */
@media (max-width: 1100px) {
    .footer-top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 992px) {
    .heading-lg {
        font-size: 3rem;
    }

    .logo-text {
        font-size: 1.15rem;
    }

    .home-portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-portfolio-grid .portfolio-item:nth-child(n+9) {
        display: none;
    }

    .featured-article-card {
        flex-basis: calc((100% - 1rem) / 2);
    }

    .youtube-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-articles-nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 70px;
    }

    header .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 76%;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav-dropdown {
        width: 100%;
        max-width: 290px;
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown-toggle {
        width: 100%;
        justify-content: center;
    }

    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        transform: none;
        box-shadow: none;
        margin-top: 0.3rem;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.12);
        padding: 0.45rem;
        display: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown.open .nav-dropdown-menu {
        display: grid;
    }

    .nav-dropdown-menu a {
        text-align: center;
        color: var(--text-light);
        font-size: 0.92rem;
    }

    .nav-toggle {
        display: block;
        z-index: 1000;
    }

    .nav-toggle.active i::before {
        content: "\f00d";
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-search-toggle {
        width: 44px;
        height: 44px;
        margin-top: 0.45rem;
    }

    .hero {
        min-height: 220px;
        max-height: none;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-section {
        background: var(--dark-bg);
    }

    .contact-form {
        padding: 2rem;
    }

    .heading-lg {
        font-size: 2.35rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-media-frame {
        height: 320px;
    }

    .page-hero {
        padding: 6rem 0 3rem 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .home-portfolio-grid .portfolio-item {
        height: 320px;
    }

    .home-portfolio-grid .portfolio-item:nth-child(n+7) {
        display: none;
    }

    .featured-article-card {
        flex-basis: 100%;
    }

    .youtube-grid {
        grid-template-columns: 1fr;
    }

    .article-related-grid {
        grid-template-columns: 1fr;
    }

    .article-detail-header h2 {
        font-size: 1.6rem;
    }

    .article-detail-body {
        font-size: 1rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .search-page-form {
        margin-bottom: 1.5rem;
    }

    .search-page-form button {
        padding: 0 1rem;
    }

    .search-modal-dialog {
        padding: 1.05rem;
    }

    .search-modal-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-modal-form button {
        width: 100%;
    }

    .floating-wa {
        width: 54px;
        height: 54px;
        font-size: 1.7rem;
        right: 18px;
        bottom: 18px;
    }
}

@media (max-width: 560px) {
    .services-grid,
    .values-grid,
    .portfolio-categories,
    .process-steps {
        grid-template-columns: 1fr;
    }

    .section-padding {
        padding: 4rem 0;
    }
}
