/**
 * ThetaDynamics - Main Stylesheet
 * Modern, professional design for technology services company
 */

/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */
:root {
    --primary-color: #5194ee;
    --secondary-color: #7ab3ff;
    --dark-bg: #ffffff;
    --darker-bg: #f3f2f0;
    --text-light: #000000;
    --text-muted: #666666;
    --accent-color: #5194ee;
    --success-color: #00d084;
    --danger-color: #ff4757;
    --card-bg: #f3f2f0;
    --hover-color: #3d7ad6;
    --hover-transform: translateY(-5px);
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Ensure images are responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Better touch targets for mobile */
a, button, input, textarea, select {
    -webkit-tap-highlight-color: rgba(81, 148, 238, 0.2);
}

/* Override Bootstrap's text-muted class */
.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    padding: 0.5rem 0;
    background-color: var(--darker-bg) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
}

.navbar-brand {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-color) !important;
    transition: all var(--transition-speed) ease;
}

.navbar-brand img {
    height: 35px;
    transition: all var(--transition-speed) ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-name {
    background: linear-gradient(135deg, var(--primary-color), var(--hover-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.3rem;
    padding: 0.4rem 0.8rem !important;
    font-size: 0.95rem;
    position: relative;
    transition: all var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: all var(--transition-speed) ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color) !important;
}

/* Mobile navigation toggle */
.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.75rem;
    transition: all var(--transition-speed) ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(81, 148, 238, 0.25);
    outline: none;
}

.navbar-toggler:hover {
    background-color: rgba(81, 148, 238, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2881, 148, 238, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown menu improvements for mobile */
.dropdown-menu {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    color: var(--text-light);
    padding: 0.7rem 1.5rem;
    transition: all var(--transition-speed) ease;
}

.dropdown-item:hover,
.dropdown-item.active {
    background-color: rgba(81, 148, 238, 0.1);
    color: var(--primary-color);
}

/* ============================================
   HERO SECTION
   ============================================ */
/* ============================================
   HERO SECTION WITH CAROUSEL
   ============================================ */
.hero-section {
    position: relative;
    padding-top: 76px;
    overflow: hidden;
}

.hero-section .carousel {
    min-height: 100vh;
}

.hero-section .carousel-inner {
    min-height: 100vh;
}

.hero-section .carousel-item {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transform: none !important;
    animation: none !important;
}

.carousel-item {
    transform: none !important;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    transform: none !important;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-section .container {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    width: 100%;
    max-width: 1140px;
}

.carousel-caption-custom {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 1rem;
    width: 100%;
}

.carousel-caption-custom h1 {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.carousel-caption-custom p.lead {
    color: #ffffff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.carousel-indicators {
    margin-bottom: 2rem;
    z-index: 4;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(81, 148, 238, 0.5);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(81, 148, 238, 0.3);
    border-radius: 50%;
    padding: 1rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-light), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.cta-buttons {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
    position: relative;
    z-index: 5;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    color: #fff;
    text-decoration: none;
    display: inline-block;
    margin: 0.3rem;
    position: relative;
    z-index: 5;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 148, 238, 0.3);
    color: #fff;
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    transition: all var(--transition-speed) ease;
    text-decoration: none;
    display: inline-block;
    margin: 0.3rem;
    position: relative;
    z-index: 5;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(81, 148, 238, 0.3);
}

/* ============================================
   HIGHLIGHTS SECTION
   ============================================ */
.highlights-section {
    background: var(--card-bg);
    padding: 3rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.highlight-item {
    text-align: center;
    padding: 1rem;
}

.highlight-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.highlight-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.highlight-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

/* ============================================
   CARDS
   ============================================ */
.card-custom {
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 15px;
    padding: 2rem;
    height: 100%;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(81, 148, 238, 0.08), transparent);
    transition: all 0.5s ease;
}

.card-custom:hover::before {
    left: 100%;
}

.card-custom:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(81, 148, 238, 0.15);
    border-color: var(--accent-color);
}

.card-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.card-text {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(81, 148, 238, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.service-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    color: var(--text-light);
    position: relative;
    padding-left: 1.5rem;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--success-color);
}

/* ============================================
   TEAM CARDS
   ============================================ */
.team-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.team-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(81, 148, 238, 0.15);
}

.team-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-info {
    padding: 2rem;
    text-align: center;
}

.team-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-description {
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   PORTFOLIO CARDS
   ============================================ */
.portfolio-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 20px 50px rgba(81, 148, 238, 0.2);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--darker-bg), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(81, 148, 238, 0.1));
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: rgba(81, 148, 238, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(81, 148, 238, 0.25);
}

/* ============================================
   CAREERS PAGE
   ============================================ */
.job-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.job-card:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(81, 148, 238, 0.15);
    border-color: var(--primary-color);
}

.job-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.job-type {
    display: inline-block;
    background: rgba(81, 148, 238, 0.15);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.job-description {
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-section {
    background: var(--dark-bg);
}

.contact-form {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-control {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--text-light);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
}

.form-control:focus {
    background: #ffffff;
    border-color: var(--accent-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(81, 148, 238, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    color: var(--text-light);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    padding: 0.8rem 3rem;
    font-weight: 600;
    border-radius: 50px;
    color: #fff;
    transition: all var(--transition-speed) ease;
    width: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(81, 148, 238, 0.3);
}

.contact-info-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.contact-info-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-info-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-info-text {
    color: var(--text-light);
}

/* ============================================
   ALERT MESSAGES
   ============================================ */
.alert-custom {
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid;
}

.alert-success-custom {
    background: rgba(0, 208, 132, 0.1);
    border-color: var(--success-color);
    color: var(--success-color);
}

.alert-danger-custom {
    background: rgba(255, 71, 87, 0.1);
    border-color: var(--danger-color);
    color: var(--danger-color);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--darker-bg) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer h5 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer a {
    transition: all var(--transition-speed) ease;
}

.footer a:hover {
    color: var(--accent-color) !important;
    transform: translateX(5px);
}

.social-links a {
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    color: var(--accent-color) !important;
    transform: translateY(-3px);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 5px 15px rgba(81, 148, 238, 0.25);
}

.scroll-top-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(81, 148, 238, 0.35);
}

.scroll-top-btn.show {
    display: flex;
}

/* ============================================
   ABOUT PAGE SPECIFIC
   ============================================ */
.mission-vision-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2.5rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mission-vision-card:hover {
    transform: var(--hover-transform);
    box-shadow: 0 15px 40px rgba(81, 148, 238, 0.15);
}

.mission-vision-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.value-item {
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.value-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(81, 148, 238, 0.15);
}

.value-icon {
    color: var(--accent-color);
    margin-right: 1rem;
    font-size: 1.5rem;
}

.value-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.value-description {
    color: var(--text-muted);
}

/* ============================================
   VIDEO GALLERY (TALKS PAGE)
   ============================================ */
.video-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(81, 148, 238, 0.2);
    border-color: var(--primary-color);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-info {
    padding: 1.2rem;
    background: var(--card-bg);
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.video-info .text-muted {
    font-size: 0.85rem;
    margin-bottom: 0;
}

/* Talk image wrapper styling */
.talk-image-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.talk-image-wrapper img {
    transition: transform var(--transition-speed) ease;
}

.talk-image-wrapper:hover img {
    transform: scale(1.05);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Extra Large Devices (Large Desktops) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
    
    .section-title {
        font-size: 2.3rem;
    }
}

/* Large Devices (Desktops) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar-nav {
        padding: 1rem 0;
        background: var(--darker-bg);
        border-radius: 10px;
        margin-top: 1rem;
    }
    
    .nav-link {
        padding: 0.8rem 1rem !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .dropdown-menu {
        background: var(--card-bg);
        border: none;
        box-shadow: none;
        margin-left: 1rem;
    }
    
    .card-custom,
    .service-card,
    .team-card,
    .portfolio-card {
        margin-bottom: 1.5rem;
    }
    
    .video-card {
        margin-bottom: 1.5rem;
    }
}

/* Medium Devices (Tablets) */
@media (max-width: 768px) {
    .hero-section .carousel {
        min-height: 70vh;
    }
    
    .hero-section .carousel-inner {
        min-height: 70vh;
    }
    
    .hero-section .carousel-item {
        min-height: 70vh;
    }
    
    .hero-section .container {
        bottom: 40px;
    }
    
    .carousel-caption-custom h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .carousel-caption-custom p.lead {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .carousel-indicators {
        margin-bottom: 1rem;
    }
    
    .carousel-indicators button {
        width: 10px;
        height: 10px;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 0.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .highlights-section {
        padding: 2rem 0;
    }
    
    .highlight-item {
        margin-bottom: 2rem;
    }
    
    .highlight-icon {
        font-size: 2rem;
    }
    
    .highlight-title {
        font-size: 1.5rem;
    }
    
    .card-custom,
    .service-card,
    .mission-vision-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card-icon,
    .service-icon,
    .mission-vision-icon {
        font-size: 2.5rem;
    }
    
    .card-title,
    .service-title {
        font-size: 1.3rem;
    }
    
    .team-image {
        height: 250px;
    }
    
    .team-info {
        padding: 1.5rem;
    }
    
    .portfolio-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .portfolio-content {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 2rem;
    }
    
    .contact-info-card {
        margin-bottom: 1.5rem;
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
    
    .job-card {
        padding: 1.5rem;
    }
    
    .job-card:hover {
        transform: translateX(5px);
    }
    
    .value-item:hover {
        transform: translateX(5px);
    }
    
    .video-title {
        font-size: 1rem;
    }
    
    .video-info {
        padding: 1rem;
    }
}

/* Small Devices (Landscape Phones) */
@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .hero-section {
        padding-top: 60px;
    }
    
    .hero-section .carousel {
        min-height: 60vh;
    }
    
    .hero-section .carousel-inner {
        min-height: 60vh;
    }
    
    .hero-section .carousel-item {
        min-height: 60vh;
    }
    
    .hero-section .container {
        bottom: 20px;
        padding: 0 15px;
    }
    
    .carousel-caption-custom {
        padding: 0.5rem;
    }
    
    .carousel-caption-custom h1 {
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
    }
    
    .carousel-caption-custom p.lead {
        font-size: 0.8rem;
        margin-bottom: 0.8rem;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        margin: 0;
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
    
    .carousel-indicators {
        margin-bottom: 0.5rem;
    }
    
    .carousel-indicators button {
        width: 8px;
        height: 8px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 10%;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 2.5rem 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }
    
    .highlights-section {
        padding: 1.5rem 0;
    }
    
    .highlight-item {
        padding: 0.8rem;
        margin-bottom: 1.5rem;
    }
    
    .highlight-icon {
        font-size: 1.8rem;
    }
    
    .highlight-title {
        font-size: 1.3rem;
    }
    
    .highlight-text {
        font-size: 0.85rem;
    }
    
    .card-custom,
    .service-card,
    .mission-vision-card,
    .job-card {
        padding: 1.2rem;
        margin-bottom: 1.2rem;
    }
    
    .card-icon,
    .service-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
    }
    
    .card-title,
    .service-title,
    .job-title {
        font-size: 1.2rem;
    }
    
    .card-text,
    .service-description,
    .job-description {
        font-size: 0.9rem;
    }
    
    .team-image {
        height: 200px;
        font-size: 4rem;
    }
    
    .team-info {
        padding: 1.2rem;
    }
    
    .team-name {
        font-size: 1.3rem;
    }
    
    .team-description {
        font-size: 0.9rem;
    }
    
    .portfolio-image {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .portfolio-content {
        padding: 1.2rem;
    }
    
    .portfolio-title {
        font-size: 1.3rem;
    }
    
    .portfolio-description {
        font-size: 0.9rem;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-control {
        padding: 0.7rem 0.9rem;
        font-size: 0.9rem;
    }
    
    textarea.form-control {
        min-height: 120px;
    }
    
    .btn-submit {
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
    }
    
    .contact-info-card {
        padding: 1.5rem;
        margin-bottom: 1.2rem;
    }
    
    .contact-info-icon {
        font-size: 2rem;
    }
    
    .contact-info-title {
        font-size: 1.1rem;
    }
    
    .contact-info-text {
        font-size: 0.9rem;
    }
    
    .scroll-top-btn {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .mission-vision-icon {
        font-size: 2.5rem;
    }
    
    .value-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .value-icon {
        font-size: 1.3rem;
    }
    
    .value-title {
        font-size: 1.1rem;
    }
    
    .value-description {
        font-size: 0.9rem;
    }
    
    .service-list li {
        font-size: 0.9rem;
        padding: 0.4rem 0;
    }
    
    .video-title {
        font-size: 0.95rem;
    }
    
    .video-info {
        padding: 0.9rem;
    }
    
    .video-card {
        margin-bottom: 1.2rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer p,
    .footer a,
    .footer li {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (Portrait Phones) */
@media (max-width: 375px) {
    .carousel-caption-custom h1 {
        font-size: 1.1rem;
    }
    
    .carousel-caption-custom p.lead {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .highlight-title {
        font-size: 1.2rem;
    }
    
    .card-custom,
    .service-card {
        padding: 1rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Loading animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

/* ============================================
   MOBILE UTILITY CLASSES
   ============================================ */

/* Prevent horizontal scroll on mobile */
.row {
    margin-left: -15px;
    margin-right: -15px;
}

@media (max-width: 768px) {
    .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .col, [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Mobile text alignment */
    .text-md-center {
        text-align: center !important;
    }
    
    /* Mobile spacing utilities */
    .mb-md-3 {
        margin-bottom: 1rem !important;
    }
    
    .mb-md-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mt-md-3 {
        margin-top: 1rem !important;
    }
    
    .mt-md-4 {
        margin-top: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Hide elements on mobile */
    .hide-mobile {
        display: none !important;
    }
    
    /* Show only on mobile */
    .show-mobile {
        display: block !important;
    }
    
    /* Mobile padding utilities */
    .px-sm-2 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .py-sm-2 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
}

/* ============================================
   MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Reduce animations on mobile for better performance */
@media (max-width: 768px) {
    *, *::before, *::after {
        animation-duration: 0.5s !important;
        transition-duration: 0.2s !important;
    }
    
    /* Disable hover effects on touch devices */
    @media (hover: none) {
        .card-custom:hover,
        .service-card:hover,
        .team-card:hover,
        .portfolio-card:hover,
        .job-card:hover,
        .value-item:hover {
            transform: none;
        }
        
        .card-custom:hover::before {
            left: -100%;
        }
    }
}

/* Improve form usability on mobile */
@media (max-width: 576px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}
