/* Ultra Premium Dark Theme */
:root {
    --dark-bg: #0a0a0a;
    --darker-bg: #050505;
    --accent: #ff4d4d;
    --accent-dark: #cc3d3d;
    --accent-light: #ff6b6b;
    --text: #ffffff;
    --text-light: #aaaaaa;
    --card-bg: #151515;
    --card-hover: #1e1e1e;
    --heart-color: #ff4d4d;
    --orange: #f37413;
    --section-padding: 40px 0;
    --header-height: 90px;
    --header-shrink-height: 70px;
    --nav-width: 500px;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-speed: 0.6s;
    --blur-intensity: 25px;
}


/* Apply premium font combo */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
}

/* Use elegant serif just for headings */
h1,
h2,
h3,
h4,
h5 {
    font-family: 'Roboto', sans-serif;
    font-weight: 100;
    letter-spacing: 0.5px;
}

body {
    background: var(--dark-bg);
    position: relative;
    overflow-x: hidden;
    max-width: 100vw;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark-bg);
    z-index: -9999;
}

html {
    scroll-behavior: smooth;
}

/* Container for centering content */
.container {
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== MAIN ANIMATION CONTAINER ===== */
.premium-intro {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* ===== BOLD ORANGE TEXT ANIMATION ===== */
.logo-text {
    font-size: clamp(2rem, 6vw, 6rem);
    font-weight: 700;
    color: #FF5722;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
}

.logo-text span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterAppear 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes letterAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== STAGGER LETTER ANIMATION ===== */
.logo-text span:nth-child(1) {
    animation-delay: 0.1s;
}

.logo-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.logo-text span:nth-child(3) {
    animation-delay: 0.3s;
}

.logo-text span:nth-child(4) {
    animation-delay: 0.4s;
}

.logo-text span:nth-child(5) {
    animation-delay: 0.5s;
}

.logo-text span:nth-child(6) {
    animation-delay: 0.6s;
}

.logo-text span:nth-child(7) {
    animation-delay: 0.7s;
}

.logo-text span:nth-child(8) {
    animation-delay: 0.8s;
}

/* ===== SMOOTH FADE OUT ===== */
.premium-intro {
    animation: fadeOut 0.5s ease-in-out 2.5s forwards;
}

@keyframes fadeOut {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 20px;
}

.hide-header-elements .logo,
.hide-header-elements .menu-toggle {
    display: none !important;
}

/* === LARGE LOGO FOR ALL DEVICES === */
.logo {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 10px 0;
    z-index: 1010;
}

.logo-img {
    height: 100%;
    width: auto;
    max-height: 60px;
    min-width: 160px;
    object-fit: contain;
    transition: all 0.4s ease;
}

/* MENU TOGGLE STYLES */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* NAVIGATION PANEL */
nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1050;
}

nav.active {
    right: 0;
}

nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1.5rem 1rem;
    display: inline-block;
    position: relative;
    transition: all 0.4s ease;
}

/* === ANIMATIONS === */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: right 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1050;
}

nav.active {
    right: 0;
}

nav ul {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
    width: 100%;
    padding: 0 2rem;
    list-style: none;
}

nav ul li a {
    color: var(--text);
    text-decoration: none;
    font-size: 1.5rem;
    padding: 1.5rem 1rem;
    display: inline-block;
    position: relative;
    transition: all 0.4s ease;
}

nav ul li a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 0;
    background: #f37413;
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

nav ul li a:hover {
    color: white;
}

nav ul li a:hover::before {
    width: 100%;
}

@keyframes navItemFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.no-scroll {
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 1;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0) scale(1.0, 1.0);
    transform: translateZ(0);
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    display: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.animated-heading {
    font-family: 'Inter', 'Helvetica Now Display', 'Arial Narrow', sans-serif;
    font-weight: 500;
    font-size: clamp(2rem, 5vw, 4rem);
    color: white;
    text-align: center;
    letter-spacing: -0.01em;
    text-shadow: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 90%;
}

#changing-text {
    display: inline-block;
    opacity: 0;
    animation: fadeInOut 4s infinite;
    text-transform: none;
    line-height: 1.4;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0;
        transform: translateY(10px);
    }

    20%,
    80% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}

.mouse:before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateY(0) translateX(-50%);
    }

    100% {
        opacity: 0;
        transform: translateY(16px) translateX(-50%);
    }
}

.project-open {
    overflow: hidden;
}

/* Section */
.section {
    padding: var(--section-padding);
    position: relative;
    background: #000;
}

.dark-section {
    background-color: var(--darker-bg);
    padding-left: 0;
    padding-right: 0;
}

/* Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
    padding: 0 20px;
}

.section-header h2 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    padding-left: 1rem;
    font-weight: 700;
    margin-top: 20px;
    background-color: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.gallery-container {
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.gallery-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.3rem;
    width: 100%;
    max-width: 1920px;
    margin: auto;
    grid-auto-flow: dense;
}

.project-item {
    overflow: hidden;
    position: relative;
    height: 100%;
    min-height: 200px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    display: block;
}

.project-item:hover .thumbnail {
    transform: scale(1.1);
    filter: brightness(0.8);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    padding: 20px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.project-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-name {
    color: white;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    font-weight: 700;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Project Detail View */
.project-detail {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    padding: 80px 5% 60px;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.project-detail img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: zoom-in;
    transition: transform 0.3s;
}

.project-detail img:hover {
    transform: scale(1.02);
}

.close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #f37413;
}

/* Image Viewer */
.image-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.image-viewer.active {
    display: flex;
}

.viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.viewer-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.viewer-image.zoomed {
    cursor: zoom-out;
    transform: scale(2);
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.fullscreen-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Side Toolbar */
.side-toolbar {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 1002;
    background: rgba(0, 0, 0, 0.7);
    padding: 15px 10px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-open .side-toolbar {
    opacity: 1;
    visibility: visible;
}

.tool-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.tool-btn.blue {
    background: var(--orange);
    color: white;
}

.tool-btn.blue:hover {
    background: #f37413;
}

.tool-tip {
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 15px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.tool-tip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 5px solid rgba(0, 0, 0, 0.8);
}

.tool-btn:hover .tool-tip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.comments-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.comments-count {
    background: var(--orange);
    color: white;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.comment {
    margin-bottom: 25px;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.comment.reply {
    margin-left: 40px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 700;
    font-size: 15px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-light);
}

.comment-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 12px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
}

.comment-action:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--orange);
}

.comment-form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
}

.comment-form {
    display: flex;
    gap: 10px;
}

.comment-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
}

.comment-submit {
    background: var(--orange);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
}

/* Animation Gallery Section */
.salamviz-video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(445px, 1fr));
    gap: 0.3rem;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0;
    perspective: 1000px;
}

.salamviz-video-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    aspect-ratio: 16/9;
    transform-style: preserve-3d;
    will-change: transform;
    border-radius: 8px;
}

.salamviz-video-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(243, 116, 19, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
    transform: translateY(10px);
}

.salamviz-video-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(243, 116, 19, 0.3);
}

.salamviz-video-card:hover::before {
    opacity: 1;
    transform: translateY(0);
}

.salamviz-video-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.4, 1);
    transform: scale(1.03);
    will-change: transform;
    filter: brightness(0.95);
}

.salamviz-video-card:hover img {
    transform: scale(1.1);
    filter: brightness(0.7) contrast(1.1);
}

/* Title Overlay */
.salamviz-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1rem;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 10%, transparent 100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
    z-index: 2;
    clip-path: polygon(0 30%, 100% 30%, 100% 100%, 0 100%);
    text-align: center;
}

.salamviz-video-card:hover .salamviz-title-overlay {
    opacity: 1;
    height: 45%;
    padding-bottom: 1.5rem;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.salamviz-title-wrapper {
    text-align: center;
    width: 90%;
    margin: 0 auto;
    transform: translateZ(50px);
    padding: 0 10px;
}

.salamviz-title-line {
    display: block;
    color: white;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
    width: 100%;
}

.salamviz-title-line:first-child {
    transition-delay: 0.1s;
}

.salamviz-title-line:last-child {
    transition-delay: 0.2s;
}

.salamviz-video-card:hover .salamviz-title-line {
    transform: translateY(0);
    opacity: 1;
}

/* Play Button */
.salamviz-play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    font-size: 2rem;
    color: white;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.4, 1);
    z-index: 3;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(243, 116, 19, 0.9);
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    backdrop-filter: blur(2px);
}

.salamviz-video-card:hover .salamviz-play-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Lightbox Styles */
.salamviz-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s;
    display: flex;
}

.salamviz-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.salamviz-lightbox-content {
    width: 90%;
    max-width: 1400px;
    height: 80vh;
    position: relative;
}

.salamviz-lightbox iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    border: none;
    box-shadow: 0 0 40px rgba(243, 116, 19, 0.3);
    transform: scale(0.98);
    transition: transform 0.3s ease;
}

.salamviz-lightbox.active iframe {
    transform: scale(1);
}

.salamviz-video-title {
    color: white;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    margin: 1.5rem 0;
    text-align: center;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    font-weight: 500;
    letter-spacing: 1px;
}

.salamviz-close-btn {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.salamviz-close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

/* Team Section Styling */
#team {
    background-color: #0a0a0a;
    padding: 6rem 0;
    overflow: hidden;
    position: relative;
}

#team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 20%, rgba(243, 116, 19, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
    position: relative;
    z-index: 1;
}

[class*="col-"] {
    padding: 0 15px;
}

.col-lg-7 {
    width: 58.33%;
}

.col-lg-4 {
    width: 33.33%;
}

.col-lg-1 {
    width: 8.33%;
}

.hea {
    margin-bottom: 25px;
    margin-top: 2rem;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    text-transform: capitalize;
    position: relative;
    display: inline-block;
}

.hea::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, #f37413, transparent);
}

.hea2 {
    margin-top: 15px;
    margin-bottom: 30px;
    color: #f37413;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.hea2:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #f37413;
    transition: width 0.3s ease;
}

.hea2:hover:after {
    width: 80px;
}

.pra {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 60px;
    font-family: 'Poppins', Arial, sans-serif;
    font-size: 1.05rem;
    text-align: justify;
    line-height: 1.9;
    position: relative;
    z-index: 1;
}

.im {
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(243, 116, 19, 0.2);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.im:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(243, 116, 19, 0.3);
}

.section-header {
    text-align: center;
    margin: 5rem 0 3rem;
    position: relative;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: white;
    font-weight: 100;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #f37413, #ff0040);
}

/* Team Grid Improvements */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.team-member {
    background-color: rgba(20, 20, 20, 0.8);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(243, 116, 19, 0.1), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-member:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(243, 116, 19, 0.25);
    border-color: rgba(243, 116, 19, 0.3);
    background-color: rgba(30, 30, 30, 0.9);
}

.team-member:hover::before {
    opacity: 1;
}

.team-member-img {
    height: 380px;
    overflow: hidden;
    position: relative;
}

.team-member-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.9), transparent);
    z-index: 1;
}

.team-member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-member:hover .team-member-img img {
    transform: scale(1.1);
}

.team-member-info {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.team-member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #fff;
    transition: color 0.3s ease;
}

.team-member:hover .team-member-info h3 {
    color: #f37413;
}

.team-member-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    margin-top: 0.5rem;
    padding-bottom: 0;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.team-member:hover .team-member-info p {
    color: #fff;
}

/* Base Footer Styles */
footer {
    background-color: var(--darker-bg);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
    font-family: 'Poppins', sans-serif;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: gradientFlow 8s linear infinite;
    background-size: 200% 100%;
    z-index: 1;
}

footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    animation: gradientFlow 8s linear infinite reverse;
    background-size: 200% 100%;
    z-index: 1;
}

@keyframes gradientFlow {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Footer Content Grid */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    max-width: 1600px;
    margin: 0 auto 5rem;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

/* Footer Column Styles */
.footer-col {
    position: relative;
    z-index: 2;
}

.footer-col h3 {
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    position: relative;
    font-weight: 200;
    display: inline-block;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 0;
    background: linear-gradient(90deg, var(--orange), transparent);
    border-radius: 3px;
    transition: all 0.4s ease;
}

.footer-col h3:hover::after {
    width: 100%;
    background: linear-gradient(90deg, var(--orange), var(--accent-dark));
}

.footer-col p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    transition: all 0.3s ease;
    position: relative;
}

/* Footer Badge */
.footer-badge {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.footer-badge span {
    background: rgba(243, 116, 19, 0.15);
    color: var(--orange);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.footer-badge span:hover {
    background: var(--orange);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(243, 116, 19, 0.3);
}

/* Footer Links Enhanced */
.footer-links {
    list-style: none;
    padding-left: 0;
    position: relative;
}

.footer-links li {
    margin-bottom: 1.2rem;
    position: relative;
    overflow: hidden;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.5rem 0;
    letter-spacing: 0.5px;
}

.link-icon {
    margin-right: 10px;
    color: var(--orange);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.link-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.link-hover {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: all 0.4s ease;
    z-index: 1;
}

.footer-links li:hover .link-icon {
    opacity: 1;
    transform: translateX(0);
}

.footer-links li:hover .link-text {
    color: white;
    transform: translateX(15px);
}

.footer-links li:hover .link-hover {
    width: 100%;
}

/* Contact Info Styles */
.contact-info p {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-icon {
    margin-right: 15px;
    color: var(--orange);
    font-size: 1.2rem;
    min-width: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-link {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0.8rem 0;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text {
    position: relative;
    z-index: 2;
}

.contact-hover {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 100%;
    background: rgba(243, 116, 19, 0.1);
    z-index: 1;
    transition: all 0.4s ease;
    border-radius: 4px;
}

.contact-link:hover .contact-text {
    color: white;
}

.contact-link:hover .contact-hover {
    width: 100%;
}

.email-link .contact-icon {
    transition: all 0.3s ease;
}

.email-link:hover .contact-icon {
    color: #EA4335;
    transform: scale(1.2);
}

.whatsapp-link:hover .contact-icon {
    color: #25D366;
    transform: scale(1.2);
}

.contact-hours p {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 2rem;
}

/* Footer Bottom Section */
.footer-bottom {
    text-align: center;
    max-width: 100%;
    margin-top: 2rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.footer-logo-container {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.bottom-logo {
    max-width: 180px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(243, 116, 19, 0.4), transparent 70%);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 1;
}

.footer-logo-container:hover .bottom-logo {
    transform: rotateY(180deg) scale(1.1);
    filter: drop-shadow(0 5px 20px rgba(243, 116, 19, 0.4));
}

.footer-logo-container:hover .logo-glow {
    opacity: 1;
    width: 200px;
    height: 200px;
}

/* Social Icons Enhanced */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.social-icon {
    color: var(--text-light);
    font-size: 1.4rem;
    transition: all 0.4s ease;
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.social-icon i {
    position: relative;
    z-index: 3;
}

.social-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--orange);
    border-radius: 50%;
    z-index: 1;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.4s ease;
}

.social-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--orange);
    color: #000;
    padding: 0.3rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-tooltip::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--orange);
}

.social-icon:hover {
    color: #000;
    transform: translateY(-5px);
}

.social-icon:hover .social-pulse {
    opacity: 0.3;
    transform: scale(1.2);
}

.social-icon:hover .social-tooltip {
    opacity: 1;
    visibility: visible;
    top: -50px;
}

/* Copyright Section */
.copyright {
    color: var(--text-light);
    font-size: 1rem;
    margin-top: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.copyright::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.year {
    font-weight: 700;
    color: var(--orange);
}

.legal-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
}

.legal-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.legal-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--orange);
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: var(--orange);
}

.legal-links a:hover::after {
    width: 100%;
}

/* ==================== RESPONSIVE BREAKPOINTS ==================== */

/* Large screens (1920px and above) */
@media (min-width: 1920px) {
    .container {
        max-width: 1920px;
        padding: 0 40px;
    }

    .gallery-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Desktop (1200px to 1919px) */
@media (min-width: 1200px) and (max-width: 1919px) {
    .container {
        max-width: 1200px;
        padding: 0 30px;
    }

    .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    header {
        padding: 0 4rem;
    }

    .logo-img {
        height: 60px;
        min-width: 200px;
    }

    .menu-toggle {
        width: 35px;
        height: 25px;
    }

    nav {
        width: 50%;
        max-width: 500px;
    }

    .gallery-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .salamviz-video-gallery {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

/* Tablet Portrait (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    header {
        padding: 0 2rem;
    }

    .logo {
        height: 60px;
    }

    .logo-img {
        min-width: 180px;
    }

    nav {
        max-width: 100%;
    }

    .animated-heading {
        font-size: 2.5rem;
    }

    .gallery-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .col-lg-7,
    .col-lg-4 {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile Landscape (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    header {
        padding: 1.5rem 2rem;
    }

    .logo {
        height: 60px;
    }

    .logo-img {
        min-width: 160px;
    }

    nav.active {
        max-width: 100%;
    }

    .animated-heading {
        font-size: 2rem;
        white-space: normal;
    }

    #changing-text {
        white-space: normal;
        display: block;
    }

    .gallery-row {
        grid-template-columns: 1fr;
    }

    .project-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .project-name {
        font-size: 1.1rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .salamviz-video-gallery {
        grid-template-columns: 1fr;
    }

    .salamviz-lightbox-content {
        height: 50vh;
        width: 95%;
    }

    .salamviz-title-line {
        font-size: 1.3rem;
    }

    .salamviz-play-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }

    .salamviz-close-btn {
        top: 20px;
        right: 20px;
        font-size: 2rem;
    }
}

/* Mobile Portrait (320px to 575px) */
@media (max-width: 575px) {
    :root {
        --section-padding: 5rem 1.5rem;
    }

    header {
        padding: 1.2rem 1.5rem;
        flex-direction: column;
        gap: 1.5rem;
        height: auto;
        min-height: 70px;
    }

    header.scrolled {
        padding: 1rem 1.5rem;
    }

    .logo {
        height: 50px;
    }

    .logo-img {
        min-width: 140px;
        max-height: 50px;
    }

    .hero,
    .section,
    footer {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .animated-heading {
        font-size: 1.8rem;
        font-weight: 300;
        white-space: normal;
    }

    .hero::before {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .section-header h2 {
        padding-left: 0;
        font-size: 1.8rem;
    }

    .gallery-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .project-item {
        min-height: 250px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .team-member-img {
        height: 320px;
    }

    .team-member-info {
        padding: 1.5rem;
    }

    .team-member-info h3 {
        font-size: 1.3rem;
    }

    .team-member-info p {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .footer-col {
        text-align: center;
    }

    .footer-col h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .contact-info p {
        justify-content: center;
        text-align: center;
    }

    .footer-social {
        gap: 1rem;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .bottom-logo {
        max-width: 130px;
    }

    .legal-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .salamviz-title-overlay {
        height: 50%;
        align-items: center;
        padding-bottom: 0;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
        clip-path: none;
        text-align: center;
    }

    .salamviz-video-card:hover .salamviz-title-overlay {
        height: 50%;
        clip-path: none;
    }

    .salamviz-title-wrapper {
        width: 95%;
        padding: 0 10px;
    }

    .salamviz-title-line {
        font-size: 1.2rem;
        transform: translateY(10px);
    }

    .salamviz-lightbox-content {
        height: 40vh;
    }

    .salamviz-video-title {
        margin: 1rem 0;
    }

    .side-toolbar {
        flex-direction: row;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        padding: 10px 15px;
        border-radius: 30px;
    }

    .tool-btn {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .tool-tip {
        top: -40px;
        right: 50%;
        transform: translateX(50%);
        white-space: nowrap;
    }

    .tool-tip::after {
        right: 50%;
        top: 100%;
        transform: translateX(50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid rgba(0, 0, 0, 0.8);
    }

    .tool-btn:hover .tool-tip {
        right: 50%;
        top: -50px;
    }

    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .comment-form {
        flex-direction: column;
    }

    .comment-submit {
        width: 100%;
        justify-content: center;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    :root {
        --section-padding: 4rem 1rem;
    }

    header {
        padding: 1rem;
    }

    .logo-img {
        min-width: 120px;
    }

    .animated-heading {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .footer-social {
        gap: 0.5rem;
    }

    .social-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}