/* 
   Eazitech Digital - Main Stylesheet
   Primary Colors: #F7941D (Orange) and #003366 (Navy Blue)
*/

/* ===== GLOBAL STYLES ===== */
:root {
    --primary-color: #F7941D;
    --secondary-color: #003366;
    --light-color: #ffffff;
    --dark-color: #222222;
    --gray-color: #f5f5f5;
    --text-color: #333333;
    --border-color: #e0e0e0;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: 15px;
}

a {
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 15px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--text-color);
}

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

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

.text-left {
    text-align: left;
}

.text-left h2::after {
    left: 0;
    transform: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Service card "Learn More" button styling */
.service-card .btn-sm {
    margin-top: 15px;
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card .btn-sm:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card .btn-sm:hover {
    color: var(--light-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.3);
}

.service-card .btn-sm:hover:before {
    width: 100%;
}

.dark-mode .service-card .btn-sm {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.dark-mode .service-card .btn-sm:hover {
    color: var(--dark-color);
}

section {
    padding: 100px 0;
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--secondary-color);
    box-shadow: var(--box-shadow);
    padding: 15px 0;
    transition: var(--transition);
}

header.sticky {
    padding: 10px 0;
    background-color: var(--secondary-color);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo img {
    height: 70px;
    animation: logoAnimation 1s ease-in-out forwards;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.company-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: var(--light-color);
    margin-left: 15px;
    letter-spacing: 1px;
}

.dark-mode .company-name {
    color: var(--light-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-links li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    color: var(--light-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:hover::before,
.nav-links li a.active::before {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

/* Add a fancy hover effect for nav items */
.nav-links li a::after {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
    opacity: 0;
}

.nav-links li a:hover::after,
.nav-links li a.active::after {
    width: 20px;
    opacity: 1;
}

/* Add a subtle glow effect to active nav item */
.nav-links li a.active {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(247, 148, 29, 0.3);
}

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn i {
    font-size: 24px;
    color: var(--dark-color);
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: var(--primary-color);
}

.mobile-menu-btn:hover i {
    color: var(--light-color);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    padding: 150px 0;
    background-color: var(--light-color);
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/christopher-gower-vjMgqUkS8q8-unsplash.jpg');
    background-size: cover;
    background-position: center;
    z-index: 0;
    transform: translateZ(0);
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 40, 80, 0.5) 0%, rgba(0, 50, 100, 0.45) 100%);
    z-index: 1;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-text {
    max-width: 800px;
    padding-right: 0;
    color: #fff;
}

.hero-text h1 {
    margin-bottom: 20px;
    min-height: 4.5rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-text .typing-text-container,
.hero-text .typing-text-placeholder,
.hero-text .typing-text {
    color: var(--primary-color);
    font-weight: 700;
}

.hero-text p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-image {
    flex: 1;
    text-align: right;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    animation: float 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

/* SVG Enhancement Elements */
.hero-svg-elements {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    z-index: 3;
    pointer-events: none;
}

.svg-element {
    position: absolute;
    opacity: 0.7;
}

.svg-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(1px);
}

.svg-square {
    width: 15px;
    height: 15px;
    background: var(--secondary-color);
    transform: rotate(45deg);
}

.svg-line {
    width: 50px;
    height: 3px;
    background: var(--primary-color);
}

.element-1 {
    top: 20%;
    left: 10%;
    animation: float 4s ease-in-out infinite;
}

.element-2 {
    top: 70%;
    left: 15%;
    animation: float 5s ease-in-out infinite 1s;
}

.element-3 {
    top: 30%;
    right: 10%;
    animation: float 3.5s ease-in-out infinite 0.5s;
}

.element-4 {
    top: 80%;
    right: 20%;
    animation: pulse 4s ease-in-out infinite;
}

.element-5 {
    top: 40%;
    left: 30%;
    animation: rotate 8s linear infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* Additional SVG Animation Effects */
.svg-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    opacity: 0.6;
    z-index: 1;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.dot:nth-child(1) { top: 10%; left: 10%; animation: blink 3s infinite 0.2s; }
.dot:nth-child(2) { top: 20%; left: 20%; animation: blink 3s infinite 0.4s; }
.dot:nth-child(3) { top: 30%; left: 30%; animation: blink 3s infinite 0.6s; }
.dot:nth-child(4) { top: 40%; left: 40%; animation: blink 3s infinite 0.8s; }
.dot:nth-child(5) { top: 50%; left: 50%; animation: blink 3s infinite 1.0s; }
.dot:nth-child(6) { top: 60%; left: 40%; animation: blink 3s infinite 1.2s; }
.dot:nth-child(7) { top: 70%; left: 30%; animation: blink 3s infinite 1.4s; }
.dot:nth-child(8) { top: 80%; left: 20%; animation: blink 3s infinite 1.6s; }
.dot:nth-child(9) { top: 90%; left: 10%; animation: blink 3s infinite 1.8s; }

.svg-wave {
    width: 100%;
    height: 100px;
    position: absolute;
    bottom: 0;
    left: 0;
}

@keyframes blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

.dark-mode .svg-circle {
    background: var(--primary-color);
}

.dark-mode .svg-square {
    background: var(--primary-color);
}

.dark-mode .svg-line {
    background: var(--primary-color);
}

.dark-mode .dot {
    background-color: var(--primary-color);
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: #f0f5ff;
    position: relative;
    overflow: hidden;
}

.dark-mode .services {
    background-color: #1a2035;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

@media screen and (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid .service-card:nth-child(5) {
        grid-column: 2 / 3;
    }
}

@media screen and (max-width: 991px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid .service-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 450px;
        margin: 0 auto;
    }
}

.service-card {
    background-color: var(--light-color);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.service-card:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(-10deg);
    box-shadow: 20px 20px 40px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(247, 148, 29, 0.1), rgba(0, 51, 102, 0.1));
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

.service-image {
    position: relative;
    height: 200px;
    margin: -30px -30px 20px;
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(20px);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(247, 148, 29, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    transition: all 0.5s ease;
    transform-style: preserve-3d;
    transform: translateZ(30px);
}

.service-card:hover .service-icon {
    transform: translateZ(50px) scale(1.1);
    background-color: var(--primary-color);
    color: var(--light-color);
}

.service-card h3 {
    position: relative;
    transform: translateZ(40px);
    transition: transform 0.5s ease;
}

.service-card:hover h3 {
    transform: translateZ(60px);
}

.service-card p {
    position: relative;
    transform: translateZ(30px);
    transition: transform 0.5s ease;
}

.service-card:hover p {
    transform: translateZ(45px);
}

.service-card .btn-sm {
    position: relative;
    transform: translateZ(40px);
    transition: all 0.5s ease;
}

.service-card:hover .btn-sm {
    transform: translateZ(60px);
}

.dark-mode .service-card {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .service-card::before {
    background: linear-gradient(45deg, rgba(247, 148, 29, 0.2), rgba(0, 51, 102, 0.2));
}

@media (max-width: 768px) {
    .service-card {
        transform-style: flat;
    }
    
    .service-card:hover {
        transform: translateY(-10px);
    }
    
    .service-icon,
    .service-card h3,
    .service-card p,
    .service-card .btn-sm {
        transform: none !important;
    }
}

.service-card h3 {
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-color);
}

/* Additional animation styles */
.service-card, .portfolio-item, .about-stats .stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.service-card.active, .portfolio-item.active, .about-stats .stat-item.active {
    opacity: 1;
    transform: translateY(0);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio {
    background-color: var(--light-color);
}

.portfolio-filter {
    display: none;
}

.filter-btn {
    display: none;
}

.filter-btn::before {
    display: none;
}

.filter-btn:hover::before {
    display: none;
}

.filter-btn.active,
.filter-btn:hover {
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.portfolio-item {
    position: relative;
    overflow: visible;
    margin-bottom: 40px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease, transform 0.4s ease;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.8) 50%, rgba(0, 51, 102, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
    transition: all 0.3s ease;
    height: 60%;
    top: auto;
    bottom: 0;
    padding-bottom: 20px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-info {
    text-align: center;
    padding: 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
    width: 100%;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
}

.portfolio-info h3 {
    color: var(--light-color);
    margin-bottom: 10px;
}

.portfolio-info p {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Add styles for mobile devices */
@media (max-width: 768px) {
    .portfolio-overlay {
        opacity: 1;
        background-color: rgba(0, 51, 102, 0.7);
        position: absolute;
        bottom: 0;
        top: auto;
        height: auto;
        padding: 10px 0;
    }
    
    .portfolio-info {
        transform: translateY(0);
        padding: 10px;
    }
    
    .portfolio-info h3 {
        font-size: 16px;
        margin-bottom: 5px;
    }
    
    .portfolio-info p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .portfolio-info .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    /* Improve portfolio grid layout on mobile */
    .portfolio-grid {
        gap: 25px;
        margin-top: 20px;
    }
    
    .portfolio-image img {
        height: 380px;
    }
    
    /* Make filter buttons more touch-friendly */
    .portfolio-filter {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .filter-btn {
        padding: 8px 15px;
        font-size: 14px;
        margin: 0;
    }
}

@media (max-width: 480px) {
    .portfolio-image img {
        height: 320px;
    }
}

/* ===== ABOUT SECTION ===== */
.about {
    background-color: var(--gray-color);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
}

.about-image img {
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease;
    width: 100%;
    display: block;
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(247, 148, 29, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(247, 148, 29, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter {
    display: inline-block;
    min-width: 60px;
}

.plus {
    margin-left: 5px;
    opacity: 0.8;
}

.stat-progress {
    width: 80%;
    height: 4px;
    background: rgba(247, 148, 29, 0.1);
    border-radius: 2px;
    margin: 0 auto 15px;
    overflow: hidden;
}

.progress-bar {
    width: 0;
    height: 100%;
    background: var(--primary-color);
    border-radius: 2px;
    transition: width 1.5s ease-in-out;
}

.stat-item.animated .progress-bar {
    width: 100%;
}

.stat-item p {
    color: var(--text-color);
    font-weight: 500;
    margin: 0;
}

.dark-mode .stat-item {
    background: rgba(247, 148, 29, 0.1);
}

.dark-mode .stat-number {
    color: var(--primary-color);
}

.dark-mode .stat-progress {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .stat-item p {
    color: var(--light-color);
}

@media screen and (max-width: 768px) {
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-item {
        padding: 15px;
        margin-bottom: 20px;
    }
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    padding-bottom: 120px;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text x="10" y="50" font-family="Arial" font-size="80" opacity="0.05" fill="%23F7941D">"</text></svg>') repeat;
    opacity: 0.1;
    z-index: 0;
}

.testimonial-container {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.testimonial-prev,
.testimonial-next {
    background-color: var(--secondary-color);
    color: var(--light-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: absolute;
}

.testimonial-prev {
    left: 0;
}

.testimonial-next {
    right: 0;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
    scrollbar-width: none;
    flex: 1;
    margin: 0 50px;
}

.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-item {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
    min-width: 300px;
}

.testimonial-content {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    position: relative;
    border-top: 3px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content::before {
    content: '"';
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 60px;
    color: rgba(247, 148, 29, 0.1);
    font-family: serif;
    line-height: 1;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.client-info h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.client-info p {
    font-size: 14px;
    margin-bottom: 0;
}

.testimonial-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.testimonial-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ddd;
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-indicator.active,
.testimonial-indicator:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
}

/* ===== CONTACT SECTION ===== */
.contact {
    background: linear-gradient(135deg, var(--gray-color) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23F7941D" opacity="0.05"/></svg>') repeat;
    opacity: 0.1;
    z-index: 0;
}

.contact-content {
    display: flex;
    gap: 50px;
    position: relative;
    z-index: 1;
}

.contact-info {
    flex: 1;
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding: 20px;
    border-radius: 15px;
    background: rgba(247, 148, 29, 0.05);
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(247, 148, 29, 0.1);
    transform: translateX(5px);
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(247, 148, 29, 0.3);
    transition: var(--transition);
}

.contact-item:hover .icon {
    transform: rotate(360deg);
}

.contact-item .text {
    flex: 1;
}

.contact-item .text h3 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.contact-item .text p {
    color: var(--text-color);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding: 0 20px;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light-color);
    font-size: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transform: translateY(100%);
    transition: var(--transition);
    z-index: 0;
}

.social-links a:hover::before {
    transform: translateY(0);
}

.social-links a i {
    position: relative;
    z-index: 1;
}

.social-links a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-form {
    flex: 1;
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 60%);
    opacity: 0.1;
    border-radius: 0 20px 0 100%;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.form-group {
    position: relative;
    margin-bottom: 25px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background: rgba(247, 148, 29, 0.02);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.1);
    background: var(--light-color);
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.form-group .error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.form-group.error .error-message {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-group.error input,
.form-group.error textarea {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.05);
}

.form-group.success input,
.form-group.success textarea {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.05);
}

.form-success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.2) 100%);
    border: 1px solid #28a745;
    color: #28a745;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: none;
    transform: translateY(-20px);
    opacity: 0;
    transition: var(--transition);
}

.form-success-message.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px 30px;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition);
    z-index: -1;
}

.contact-form .btn-primary:hover::before {
    width: 100%;
}

/* Dark mode adjustments */
.dark-mode .contact {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.dark-mode .contact-info,
.dark-mode .contact-form {
    background: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .contact-item {
    background: rgba(247, 148, 29, 0.1);
}

.dark-mode .contact-item:hover {
    background: rgba(247, 148, 29, 0.15);
}

.dark-mode .contact-item .text h3 {
    color: var(--light-color);
}

.dark-mode .contact-item .text p {
    color: var(--text-color);
}

.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.dark-mode .form-group input:focus,
.dark-mode .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.2);
}

.dark-mode .form-success-message {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.2) 0%, rgba(40, 167, 69, 0.3) 100%);
    border-color: rgba(40, 167, 69, 0.5);
}

/* Responsive styles */
@media screen and (max-width: 991px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 40px;
    }
}

@media screen and (max-width: 576px) {
    .contact-info,
    .contact-form {
        padding: 30px 20px;
    }
    
    .contact-item {
        padding: 15px;
    }
    
    .contact-item .icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding-top: 70px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 0;
}

.footer-logo a {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.footer-logo .company-name {
    color: var(--primary-color);
}

.dark-mode .footer-logo .company-name {
    color: var(--primary-color);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links h3,
.footer-services h3,
.footer-newsletter h3 {
    color: var(--light-color);
    margin-bottom: 20px;
    font-size: 18px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after,
.footer-services h3::after,
.footer-newsletter h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links ul li,
.footer-services ul li {
    margin-bottom: 10px;
}

.footer-links ul li a,
.footer-services ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-links ul li a i,
.footer-services ul li a i {
    margin-right: 8px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.footer-links ul li a:hover,
.footer-services ul li a:hover {
    color: var(--primary-color);
}

.footer-links ul li a:hover i,
.footer-services ul li a:hover i {
    transform: translateX(3px);
}

.footer-newsletter p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    position: relative;
}

.newsletter-form input {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 50px;
    font-family: 'Poppins', sans-serif;
}

.newsletter-form button {
    position: absolute;
    right: 5px;
    top: 5px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background-color: var(--dark-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
}

/* ===== RESPONSIVE STYLES ===== */
@media screen and (max-width: 991px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    section {
        padding: 80px 0;
    }
    
    .hero {
        padding-top: 150px;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-text {
        padding-right: 0;
        margin-bottom: 50px;
        text-align: center;
    }
    
    .hero-text p {
        margin: 0 auto 30px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-bottom: 40px;
        max-width: 100%;
    }
    
    .about-image::before {
        top: 10px;
        left: 10px;
    }
    
    .contact-content {
        flex-direction: column;
    }
    
    .contact-info {
        margin-bottom: 30px;
    }
    
    .testimonial-item {
        flex: 0 0 calc(100% - 20px);
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 15px 0;
    }
    
    .nav-links li a {
        font-size: 16px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(100%, 1fr));
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(100%, 1fr));
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .testimonial-item {
        flex: 0 0 100%;
    }
    
    .testimonial-slider {
        margin: 0 45px;
    }

    /* Disable animations on mobile for better performance */
    .reveal, .reveal-left, .reveal-right, 
    .service-card, .portfolio-item, .about-stats .stat-item {
        opacity: 1;
        transform: none;
        visibility: visible;
        transition: none;
    }
    
    .typing-text-container {
        min-width: 200px;
    }
    
    .hero-text h1 {
        min-height: 3.5rem;
    }
}

@media screen and (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .btn {
        padding: 10px 25px;
    }
} 

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed !important;
    bottom: 100px !important;
    right: 30px !important;
    width: 50px !important;
    height: 50px !important;
    background-color: var(--primary-color) !important;
    color: var(--light-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 9999 !important;
    opacity: 1 !important;
    visibility: visible !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.back-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.back-to-top i {
    font-size: 20px;
}

/* Dark mode adjustments */
.dark-mode .back-to-top {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.dark-mode .back-to-top:hover {
    background-color: var(--secondary-color);
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Add a subtle glow effect to the progress bar */
.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    filter: blur(5px);
    opacity: 0.5;
}

/* ===== LOGO ANIMATION ===== */
@keyframes logoAnimation {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== PAGE TRANSITIONS ===== */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary-color);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.page-transition.active {
    transform: translateY(0);
}

.page-transition.exit {
    transform: translateY(-100%);
}

/* Add initial animation to main content */
main {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.5s;
}

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

/* ===== DARK MODE TOGGLE ===== */
.dark-mode {
    --primary-color: #F7941D;
    --secondary-color: #004080;
    --light-color: #222222;
    --dark-color: #f5f5f5;
    --gray-color: #333333;
    --text-color: #f5f5f5;
    --border-color: #444444;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    align-items: center;
    margin-right: 20px;
    position: relative;
    z-index: 100;
}

.dark-mode-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.dark-mode .dark-mode-toggle {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.dark-mode .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.dark-mode-toggle .fa-sun {
    display: none;
    color: var(--primary-color);
}

.dark-mode-toggle .fa-moon {
    display: block;
    color: var(--primary-color);
}

.dark-mode .dark-mode-toggle .fa-sun {
    display: block;
    color: var(--primary-color);
}

.dark-mode .dark-mode-toggle .fa-moon {
    display: none;
}

/* Dark mode styles for various elements */
.dark-mode header {
    background-color: var(--light-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .nav-links li a {
    color: var(--dark-color);
}

.dark-mode .service-card,
.dark-mode .portfolio-item,
.dark-mode .testimonial-content,
.dark-mode .contact-form,
.dark-mode .form-group input,
.dark-mode .form-group textarea {
    background-color: var(--gray-color);
    color: var(--dark-color);
    border-color: var(--border-color);
}

.dark-mode .section-header h2,
.dark-mode h3,
.dark-mode .about-text h2 {
    color: var(--dark-color);
}

.dark-mode footer {
    background-color: #1a1a1a;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 15px 0;
    z-index: 9998;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.5s ease-in-out;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text p {
    margin-bottom: 0;
    font-size: 14px;
}

.cookie-text a {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

.cookie-btn {
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.accept-cookies {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.accept-cookies:hover {
    background-color: #e58012;
}

.decline-cookies {
    background-color: transparent;
    color: var(--light-color);
    border: 1px solid var(--light-color);
}

.decline-cookies:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Dark mode adjustments */
.dark-mode .cookie-consent {
    background-color: #1a1a1a;
    box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.3);
}

/* ===== CHAT WIDGET ===== */
.chat-widget {
    position: fixed;
    bottom: 170px;
    right: 30px;
    z-index: 998;
}

.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-button:hover {
    transform: scale(1.1);
    background-color: var(--secondary-color);
}

.chat-button i {
    color: var(--light-color);
    font-size: 24px;
    transition: all 0.3s ease;
}

.chat-button.active i {
    transform: rotate(45deg);
}

.chat-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background-color: var(--light-color);
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header h3 {
    margin: 0;
    color: var(--light-color);
    font-size: 18px;
}

.chat-header .close-chat {
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
}

.chat-header .close-chat:hover {
    color: var(--primary-color);
}

.chat-body {
    height: 300px;
    padding: 20px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.user {
    align-items: flex-end;
}

.chat-message.bot {
    align-items: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.user .message-content {
    background-color: var(--primary-color);
    color: var(--light-color);
    border-bottom-right-radius: 5px;
}

.bot .message-content {
    background-color: var(--gray-color);
    color: var(--dark-color);
    border-bottom-left-radius: 5px;
}

.message-time {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.chat-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 10px 15px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.send-message {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--light-color);
    border: none;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.send-message:hover {
    background-color: var(--secondary-color);
}

/* Dark mode adjustments */
.dark-mode .chat-popup {
    background-color: #222;
}

.dark-mode .chat-header {
    background-color: #1a1a1a;
}

.dark-mode .bot .message-content {
    background-color: #333;
    color: var(--light-color);
}

.dark-mode .chat-input {
    background-color: #333;
    color: var(--light-color);
    border-color: #444;
}

/* Responsive adjustments */
@media screen and (max-width: 576px) {
    .chat-popup {
        width: 300px;
        right: -15px;
    }
    
    .chat-body {
        height: 250px;
    }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader h2 {
    margin-top: 20px;
    color: var(--primary-color);
    font-size: 24px;
    letter-spacing: 1px;
}

.circular {
    width: 70px;
    height: 70px;
    animation: rotate 2s linear infinite;
}

.path {
    stroke: var(--primary-color);
    stroke-linecap: round;
    animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

/* Dark mode adjustments */
.dark-mode .preloader {
    background-color: var(--dark-color);
}

.dark-mode .loader h2 {
    color: var(--primary-color);
}

/* ===== REVEAL ANIMATIONS ===== */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease;
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.reveal-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 1s ease;
    visibility: hidden;
}

.reveal-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 1s ease;
    visibility: hidden;
}

.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
    visibility: visible;
}

.reveal-delay-1 {
    transition-delay: 0.2s;
}

.reveal-delay-2 {
    transition-delay: 0.4s;
}

.reveal-delay-3 {
    transition-delay: 0.6s;
}

.reveal-delay-4 {
    transition-delay: 0.8s;
}

/* ===== LIGHTBOX GALLERY ===== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 80%;
    max-height: 80vh;
    margin: auto;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    border: 3px solid var(--light-color);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    color: var(--light-color);
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: var(--light-color);
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: var(--light-color);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: var(--primary-color);
}

.typing-text-container {
    display: inline-block;
    position: relative;
    min-width: 300px; /* Adjust based on your longest text */
}

.typing-text {
    color: var(--primary-color);
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    padding-right: 5px;
    animation: blink-caret 0.75s step-end infinite;
}

/* Invisible text to maintain consistent height and width */
.typing-text-placeholder {
    visibility: hidden;
    color: transparent;
    white-space: nowrap;
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

.dark-mode .typing-text {
    color: var(--primary-color);
    border-right-color: var(--primary-color);
}

@keyframes blink-caret-dark {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary-color); }
}

@media screen and (max-width: 768px) {
    .typing-text-container {
        min-width: 200px;
    }
}

@media screen and (max-width: 576px) {
    .typing-text-container {
        min-width: 150px;
    }
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us {
    padding: 100px 0;
    background-color: var(--gray-color);
    position: relative;
    overflow: hidden;
}

.dark-mode .why-choose-us {
    background-color: #1a1a1a;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.why-choose-item {
    background-color: var(--light-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.dark-mode .why-choose-item {
    background-color: #2a2a2a;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.why-choose-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.why-choose-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(247, 148, 29, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-choose-icon i {
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.why-choose-item:hover .why-choose-icon {
    background-color: var(--primary-color);
}

.why-choose-item:hover .why-choose-icon i {
    color: var(--light-color);
}

.why-choose-item h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.why-choose-item p {
    color: #666;
    margin-bottom: 0;
}

.dark-mode .why-choose-item p {
    color: #aaa;
}

/* ===== SUB-HERO SECTION ===== */
.sub-hero {
    padding: 80px 0;
    background: url('../images/ca311a99-c361-4b0e-ba87-a2f598b3372a_large.webp') center/cover no-repeat;
    color: var(--light-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.sub-hero h2 {
    color: var(--light-color);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.sub-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.sub-hero .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.sub-hero .btn-primary {
    background-color: var(--light-color);
    color: var(--primary-color);
}

.sub-hero .btn-primary:hover {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

.sub-hero .btn-secondary {
    background-color: transparent;
    border: 2px solid var(--light-color);
    color: var(--light-color);
}

.sub-hero .btn-secondary:hover {
    background-color: var(--light-color);
    color: var(--primary-color);
}

@media screen and (max-width: 768px) {
    .why-choose-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
    
    .sub-hero h2 {
        font-size: 2rem;
    }
    
    .sub-hero p {
        font-size: 1rem;
    }
    
    .sub-hero .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .sub-hero .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 576px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
    
    .why-choose-icon {
        width: 70px;
        height: 70px;
    }
    
    .why-choose-icon i {
        font-size: 30px;
    }
    
    .sub-hero {
        padding: 60px 0;
    }
    
    .sub-hero h2 {
        font-size: 1.8rem;
    }
}

/* ===== SERVICES PAGE STYLES ===== */
.services-hero {
    position: relative;
    overflow: hidden;
    background-color: #002147; /* Dark blue background */
    padding: 130px 0 110px;
    text-align: center;
    color: var(--light-color);
}

/* Add a curved bottom edge to the hero section */
.services-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,0 C720,100 1440,0 1440,0 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    z-index: 3;
}

.dark-mode .services-hero {
    background-color: #001328;
}

.dark-mode .services-hero::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23121212' d='M0,0 C720,100 1440,0 1440,0 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E");
}

.services-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.services-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.services-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

.service-detail {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.service-detail.alt-bg {
    background-color: #f0f5ff;
}

.dark-mode .service-detail.alt-bg {
    background-color: #1a2035;
}

.service-detail-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.service-detail-content.reverse {
    flex-direction: row-reverse;
}

.service-detail-image {
    flex: 0 0 45%;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    height: 450px;
    position: relative;
    transition: var(--transition);
}

.service-detail-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.service-detail-image:hover img {
    transform: scale(1.05);
}

.service-detail-text {
    flex: 1;
    padding: 20px;
}

.service-detail-text .service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(247, 148, 29, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-detail-text .service-icon i {
    font-size: 36px;
    color: var(--primary-color);
}

.service-detail-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--dark-color);
}

.dark-mode .service-detail-text h2 {
    color: var(--light-color);
}

.service-detail-text p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.dark-mode .service-detail-text p {
    color: var(--text-color);
}

.service-detail-text h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.dark-mode .service-detail-text h3 {
    color: var(--light-color);
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.dark-mode .service-features li {
    color: var(--text-color);
}

.service-features li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.service-features li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1.1rem;
}

.services-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/ca311a99-c361-4b0e-ba87-a2f598b3372a_large.webp') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.dark-mode .services-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../images/ca311a99-c361-4b0e-ba87-a2f598b3372a_large.webp') center/cover no-repeat;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dots.png');
    opacity: 0.1;
    z-index: 0;
}

.services-cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.services-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.services-cta p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.services-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media screen and (max-width: 991px) {
    .service-detail {
        padding: 80px 0;
    }
    
    .service-detail-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .service-detail-content.reverse {
        flex-direction: column;
    }
    
    .service-detail-text h2 {
        font-size: 2rem;
    }
    
    .services-hero h1 {
        font-size: 3rem;
    }
}

@media screen and (max-width: 768px) {
    .services-hero {
        padding: 120px 0 80px;
    }
    
    .services-hero h1 {
        font-size: 2.5rem;
    }
    
    .services-hero p {
        font-size: 1rem;
    }
    
    .service-detail {
        padding: 60px 0;
    }
    
    .service-detail-text h2 {
        font-size: 1.8rem;
    }
    
    .service-detail-text h3 {
        font-size: 1.3rem;
    }
    
    .service-detail-text p {
        font-size: 1rem;
    }
    
    .services-cta {
        padding: 80px 0;
    }
    
    .services-cta h2 {
        font-size: 2rem;
    }
    
    .services-cta p {
        font-size: 1rem;
    }
    
    .services-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .services-cta .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media screen and (max-width: 576px) {
    .services-hero h1 {
        font-size: 2rem;
    }
    
    .service-detail-text .service-icon {
        width: 60px;
        height: 60px;
    }
    
    .service-detail-text .service-icon i {
        font-size: 28px;
    }
    
    .service-detail-text h2 {
        font-size: 1.6rem;
    }
    
    .services-cta h2 {
        font-size: 1.8rem;
    }
}

.dark-mode .service-card {
    background-color: var(--dark-card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .service-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(247, 148, 29, 0.3);
}

.dark-mode .service-image {
    background: linear-gradient(135deg, #1a2530 0%, #121a24 100%);
}

.dark-mode .service-image::after {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.dark-mode .service-card:hover .service-image::after {
    opacity: 1;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 0.25rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

/* Dark Mode Styles for Services Page */
.dark-mode .services-hero {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.dark-mode .services-hero h1 {
    color: var(--dark-heading);
}

.dark-mode .services-hero p {
    color: var(--dark-text);
}

.dark-mode .service-detail {
    background-color: var(--dark-bg);
    color: var(--dark-text);
}

.dark-mode .service-detail.alt-bg {
    background-color: var(--dark-bg-alt);
}

.dark-mode .service-detail-text h2 {
    color: var(--dark-heading);
}

.dark-mode .service-detail-text h3 {
    color: var(--dark-heading);
}

.dark-mode .service-detail-text p {
    color: var(--dark-text);
}

.dark-mode .service-features li {
    color: var(--dark-text);
}

.dark-mode .service-features li i {
    color: var(--primary-color);
}

.dark-mode .services-cta {
    background-color: var(--dark-bg-alt);
    color: var(--dark-text);
}

.dark-mode .services-cta h2 {
    color: var(--dark-heading);
}

.dark-mode .services-cta p {
    color: var(--dark-text);
}

/* ===== ABOUT PAGE STYLES ===== */
.about-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 120px 0 80px;
    text-align: center;
    color: var(--light-color);
}

.about-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.company-overview {
    padding: 80px 0;
}

.overview-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.overview-content h2 {
    color: var(--primary-color);
    margin-bottom: 30px;
}

.overview-content p {
    margin-bottom: 50px;
    line-height: 1.8;
}

.core-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.value-item {
    padding: 30px;
    background: var(--light-color);
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.value-item:hover {
    transform: translateY(-10px);
}

.value-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.value-item h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}

/* Team Section */
.team-section {
    padding: 80px 0;
    background: var(--gray-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.team-member {
    background: var(--light-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
}

.team-member img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.team-member h3 {
    color: var(--secondary-color);
    margin: 20px 0 5px;
    text-align: center;
}

.team-member p {
    color: var(--text-color);
    text-align: center;
    margin-bottom: 20px;
}

/* Dark Mode Styles */
.dark-mode .value-item {
    background: #2a2a2a;
}

.dark-mode .team-member {
    background: #2a2a2a;
}

.dark-mode .team-section {
    background: var(--dark-color);
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .core-values {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .core-values {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== ABOUT PAGE SECTION BACKGROUNDS ===== */
.our-story {
    background-color: var(--light-color);
    position: relative;
}

.mission-vision.alt-bg {
    background-color: #f0f5ff;
}

.our-values {
    background-color: var(--light-color);
    position: relative;
}

.our-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-light.png');
    opacity: 0.05;
    z-index: 0;
}

.company-stats.alt-bg {
    background-color: #f0f5ff;
}

.testimonials {
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    padding-bottom: 120px;
}

.services-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../images/ca311a99-c361-4b0e-ba87-a2f598b3372a_large.webp') center/cover no-repeat;
    padding: 100px 0;
    text-align: center;
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.dark-mode .services-cta {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)), url('../images/ca311a99-c361-4b0e-ba87-a2f598b3372a_large.webp') center/cover no-repeat;
}

.services-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-dots.png');
    opacity: 0.1;
    z-index: 0;
}

.services-cta-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Dark mode styles for about page sections */
.dark-mode .our-story {
    background-color: var(--dark-color);
}

.dark-mode .mission-vision.alt-bg {
    background-color: #1a2035;
}

.dark-mode .our-values {
    background-color: var(--dark-color);
}

.dark-mode .company-stats.alt-bg {
    background-color: #1a2035;
}

.dark-mode .testimonials {
    background-color: var(--dark-color);
}

.service-detail-image svg {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-image svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: drop-shadow(0 5px 15px rgba(0, 51, 102, 0.1));
    animation: float-svg 3s ease-in-out infinite;
}

.service-card:hover .service-image svg {
    transform: scale(1.05) translateY(0);
    filter: drop-shadow(0 8px 20px rgba(0, 51, 102, 0.2));
    animation-play-state: paused;
}

.service-card:hover .service-image svg {
    transform: scale(1.05) translateY(0);
    filter: drop-shadow(0 8px 20px rgba(0, 51, 102, 0.2));
    animation-play-state: paused;
}

@keyframes float-svg {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===== CONTACT PAGE STYLES ===== */
.contact-hero {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #001a33 100%);
    padding: 120px 0 80px;
    color: var(--light-color);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="%23F7941D" opacity="0.1"/></svg>') repeat;
    opacity: 0.1;
    z-index: 0;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.contact-hero p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.contact-page {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gray-color) 0%, #ffffff 100%);
}

.contact-page-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.contact-page-info {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 100px;
    height: fit-content;
}

.info-header {
    margin-bottom: 40px;
}

.info-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.business-hours {
    margin: 40px 0;
    padding: 30px;
    background: rgba(247, 148, 29, 0.05);
    border-radius: 15px;
}

.business-hours h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.business-hours ul li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: var(--text-color);
}

.business-hours ul li span {
    font-weight: 600;
    color: var(--dark-color);
}

.contact-page-form {
    background: var(--light-color);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.detailed-form .form-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.detailed-form .form-section:last-child {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.detailed-form .form-section h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.detailed-form .form-group {
    margin-bottom: 25px;
}

.detailed-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark-color);
}

.detailed-form input[type="text"],
.detailed-form input[type="email"],
.detailed-form input[type="tel"],
.detailed-form input[type="url"],
.detailed-form select,
.detailed-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: rgba(247, 148, 29, 0.02);
    transition: var(--transition);
}

.detailed-form select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="%23333"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

.detailed-form input:focus,
.detailed-form select:focus,
.detailed-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.1);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.map-section {
    padding: 0 0 100px;
    background: linear-gradient(135deg, var(--gray-color) 0%, #ffffff 100%);
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* Dark mode adjustments */
.dark-mode .contact-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
}

.dark-mode .contact-page {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.dark-mode .contact-page-info,
.dark-mode .contact-page-form {
    background: var(--dark-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .business-hours {
    background: rgba(247, 148, 29, 0.1);
}

.dark-mode .business-hours ul li span {
    color: var(--light-color);
}

.dark-mode .detailed-form label {
    color: var(--light-color);
}

.dark-mode .detailed-form input,
.dark-mode .detailed-form select,
.dark-mode .detailed-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
}

.dark-mode .detailed-form input:focus,
.dark-mode .detailed-form select:focus,
.dark-mode .detailed-form textarea:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 148, 29, 0.2);
}

.dark-mode .detailed-form .form-section {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
    .contact-page-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-page-info {
        position: static;
    }
}

@media screen and (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2.5rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-page-info,
    .contact-page-form {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2rem;
    }

    .info-header h2 {
        font-size: 2rem;
    }

    .business-hours {
        padding: 20px;
    }
}

/* Contact Hero Circles */
.hero-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.circle-element {
    position: absolute;
}

.circle-large {
    width: 200px;
    height: 200px;
    top: -50px;
    right: -30px;
}

.circle-medium {
    width: 150px;
    height: 150px;
    bottom: -30px;
    left: -20px;
}

.circle-small {
    width: 50px;
    height: 50px;
}

.circle-1 {
    top: 20%;
    right: 15%;
    animation: float 6s ease-in-out infinite;
}

.circle-2 {
    top: 60%;
    right: 35%;
    animation: float 8s ease-in-out infinite;
}

.circle-3 {
    top: 40%;
    left: 20%;
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Make sure the contact hero content is positioned properly */
.contact-hero {
    position: relative;
    overflow: hidden;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
}

.dark-mode .detailed-form input[type="text"],
.dark-mode .detailed-form input[type="email"],
.dark-mode .detailed-form input[type="tel"],
.dark-mode .detailed-form input[type="url"],
.dark-mode .detailed-form select,
.dark-mode .detailed-form textarea {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-color);
}

.dark-mode .detailed-form input:focus,
.dark-mode .detailed-form select:focus,
.dark-mode .detailed-form textarea:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.dark-mode .detailed-form label {
    color: var(--light-color);
}

.dark-mode .detailed-form select option {
    background-color: var(--dark-color);
    color: var(--light-color);
}

.dark-mode .detailed-form .form-section {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .detailed-form .form-section h3 {
    color: var(--primary-color);
}

.dark-mode .checkbox-group label {
    color: var(--light-color);
}

.dark-mode .form-success-message {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #98ff98;
}

.dark-mode .error-message {
    color: #ff6b6b;
}

/* Placeholder text color in dark mode */
.dark-mode .detailed-form input::placeholder,
.dark-mode .detailed-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Blog Section */
.blog {
    background-color: var(--gray-color);
    padding: 80px 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background: var(--light-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-content {
    padding: 20px;
}

.blog-meta {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 10px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-content p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Timeline Section */
.timeline-section {
    padding: 80px 0;
    background: var(--light-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--primary-color);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid var(--light-color);
}

.timeline-content {
    width: calc(50% - 40px);
    padding: 20px;
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    left: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    left: calc(50% + 40px);
}

.timeline-year {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.timeline-content p {
    color: #666;
    line-height: 1.6;
}

/* Technology Stack Section */
.tech-stack {
    padding: 80px 0;
    background: var(--gray-color);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tech-category {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.tech-category h3 {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 8px;
    background: var(--gray-color);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateX(10px);
    background: #f0f0f0;
}

.tech-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.tech-info {
    flex: 1;
}

.tech-name {
    font-weight: 500;
    margin-bottom: 5px;
}

.tech-level {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.level-bar {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Dark Mode Styles */
.dark-mode .blog {
    background-color: var(--dark-color);
}

.dark-mode .blog-card {
    background: #2a2a2a;
}

.dark-mode .blog-content h3 {
    color: var(--light-color);
}

.dark-mode .blog-content p,
.dark-mode .blog-meta {
    color: #aaa;
}

.dark-mode .timeline-section {
    background: var(--dark-color);
}

.dark-mode .timeline-content {
    background: #2a2a2a;
}

.dark-mode .timeline-content h3 {
    color: var(--light-color);
}

.dark-mode .timeline-content p {
    color: #aaa;
}

.dark-mode .tech-stack {
    background: var(--dark-color);
}

.dark-mode .tech-category {
    background: #2a2a2a;
}

.dark-mode .tech-category h3 {
    color: var(--light-color);
}

.dark-mode .tech-item {
    background: #333;
}

.dark-mode .tech-item:hover {
    background: #444;
}

.dark-mode .tech-name {
    color: var(--light-color);
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        left: 80px !important;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 576px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        left: 60px !important;
    }
}

/* Blog Page Styles */
.blog-hero {
    background: var(--secondary-color);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.blog-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--light-color);
}

.blog-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Blog Filters */
.blog-filters {
    padding: 40px 0;
    background: var(--gray-color);
}

.blog-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto 30px;
}

.blog-search input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    border: none;
    border-radius: 30px;
    background: var(--light-color);
    box-shadow: var(--box-shadow);
    font-size: 1rem;
}

.blog-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 10px 15px;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
}

.blog-search button:hover {
    color: var(--secondary-color);
}

.blog-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 8px 20px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    background: none;
    color: var(--primary-color);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--light-color);
}

/* Featured Article */
.featured-article {
    padding: 60px 0;
    background: var(--light-color);
}

.featured-article-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: var(--gray-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.featured-article-image {
    position: relative;
    height: 400px;
}

.featured-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-color);
    color: var(--light-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 500;
}

.featured-article-content {
    padding: 40px;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
}

.article-meta .category {
    color: var(--primary-color);
    font-weight: 500;
}

.featured-article-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.featured-article-content p {
    margin-bottom: 30px;
    line-height: 1.6;
    color: #666;
}

/* Blog Newsletter */
.blog-newsletter {
    padding: 80px 0;
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.blog-newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.3));
}

.newsletter-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--light-color);
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.newsletter-content p {
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 15px;
}

.newsletter-form input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
}

.newsletter-success {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    font-size: 1.2rem;
}

/* Dark Mode Styles */
.dark-mode .blog-filters {
    background: var(--dark-color);
}

.dark-mode .blog-search input {
    background: #2a2a2a;
    color: var(--light-color);
}

.dark-mode .featured-article {
    background: var(--dark-color);
}

.dark-mode .featured-article-card {
    background: #2a2a2a;
}

.dark-mode .featured-article-content h2 {
    color: var(--light-color);
}

.dark-mode .featured-article-content p {
    color: #aaa;
}

.dark-mode .article-meta span {
    color: #aaa;
}

/* Responsive Styles */
@media screen and (max-width: 991px) {
    .featured-article-card {
        grid-template-columns: 1fr;
    }

    .featured-article-image {
        height: 300px;
    }

    .blog-hero h1 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .blog-hero h1 {
        font-size: 2rem;
    }

    .blog-hero p {
        font-size: 1rem;
    }

    .featured-article-content {
        padding: 30px;
    }

    .featured-article-content h2 {
        font-size: 1.5rem;
    }

    .newsletter-content h2 {
        font-size: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

@media screen and (max-width: 576px) {
    .blog-categories {
        flex-direction: column;
        align-items: stretch;
    }

    .category-btn {
        text-align: center;
    }

    .featured-article-image {
        height: 200px;
    }
}

/* Analytics Section */
.analytics-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.analytics-card {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.analytics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.chart-container {
    height: 250px;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.satisfaction-meter {
    width: 200px;
    height: 200px;
    position: relative;
    margin: 0 auto;
}

.meter-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 8px solid #f0f0f0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: transparent;
}

.meter-circle::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border-radius: 50%;
    border: 8px solid;
    border-color: var(--primary-color) var(--primary-color) var(--primary-color) #f0f0f0;
    transform: rotate(-7deg);
}

.meter-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.meter-label {
    font-size: 1rem;
    color: var(--text-secondary);
}

.analytics-info {
    margin-top: 20px;
}

.analytics-info h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.analytics-info p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.dark-mode .analytics-section {
    background: var(--bg-dark);
}

.dark-mode .analytics-card {
    background: var(--bg-dark-secondary);
}

.dark-mode .meter-circle::before {
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .chart-container {
        height: 200px;
    }
    
    .satisfaction-meter {
        width: 150px;
        height: 150px;
    }
    
    .meter-value {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .meter-value {
        font-size: 1.8rem;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.tech-category:nth-child(1) .level-bar {
    background: #00ffcc;
}

.tech-category:nth-child(2) .level-bar {
    background: #9933ff;
}

.tech-category:nth-child(3) .level-bar {
    background: #ff3366;
}

.tech-category .tech-item[data-tech="React"] .level-bar {
    background: #61dafb;  /* Light blue */
}

.tech-category .tech-item[data-tech="Vue.js"] .level-bar {
    background: #00ff00;  /* Bright green */
}

.tech-category .tech-item[data-tech="Node.js"] .level-bar {
    background: #cc00ff;  /* Purple */
}

.tech-category .tech-item[data-tech="Python"] .level-bar {
    background: #0000ff;  /* Blue */
}

.tech-category .tech-item[data-tech="MongoDB"] .level-bar {
    background: #ff6600;  /* Orange */
}

.tech-category .tech-item[data-tech="PostgreSQL"] .level-bar {
    background: #003366;  /* Navy blue */
}

/* Remove the category-based colors */
.tech-category:nth-child(1) .level-bar,
.tech-category:nth-child(2) .level-bar,
.tech-category:nth-child(3) .level-bar {
    background: none;  /* Remove the category-based colors */
}

/* WhatsApp Chat Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-button i {
    font-size: 30px;
    color: #fff;
}

.whatsapp-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 480px) {
    .whatsapp-button {
        width: 50px;
        height: 50px;
        right: 20px;
        bottom: 20px;
    }
    
    .whatsapp-button i {
        font-size: 24px;
    }
}

/* Portfolio Hero Styles - Matching Contact Hero */
.portfolio-hero {
    position: relative;
    overflow: hidden;
    background-color: #002147; /* Dark blue background */
    padding: 180px 0 110px;
    color: white;
    margin-top: 0; /* Ensure no gap at the top */
}

/* Add a curved bottom edge to the hero section */
.portfolio-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23ffffff' d='M0,0 C720,100 1440,0 1440,0 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
    z-index: 3;
}

.portfolio-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.portfolio-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: white;
}

.portfolio-hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.9);
}

.portfolio-hero .highlight {
    color: #F7941D; /* Orange highlight color */
}

/* Dark Mode Adjustments */
@media (prefers-color-scheme: dark) {
    .portfolio-hero {
        background-color: #001328;
    }
    
    .portfolio-hero::after {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23121212' d='M0,0 C720,100 1440,0 1440,0 L1440,100 L0,100 Z'%3E%3C/path%3E%3C/svg%3E");
    }
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .portfolio-hero h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .portfolio-hero {
        padding: 80px 0 60px;
    }
    
    .portfolio-hero h1 {
        font-size: 2.5rem;
    }
    
    .portfolio-hero p {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .portfolio-hero h1 {
        font-size: 2rem;
    }
}

.portfolio-info .btn-sm {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(247, 148, 29, 0.3);
}

.portfolio-info .btn-sm:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: white;
    transition: all 0.3s ease;
    z-index: -1;
}

.portfolio-info .btn-sm:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(247, 148, 29, 0.4);
}

.portfolio-info .btn-sm:hover:before {
    width: 100%;
}

/* Portfolio Overlay - Visible by Default on All Devices */
.portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.95) 0%, rgba(0, 51, 102, 0.8) 50%, rgba(0, 51, 102, 0.1) 100%);
    height: 60%;
    top: auto;
    bottom: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 20px;
    transition: all 0.3s ease;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.08);
    filter: brightness(0.8);
}

/* Dark mode styles */
.dark-mode .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 25, 51, 0.95) 0%, rgba(0, 25, 51, 0.8) 50%, rgba(0, 25, 51, 0.1) 100%);
}

/* Responsive styles for portfolio items */
@media (max-width: 576px) {
    .portfolio-overlay {
        height: 60%;
    }
    
    .portfolio-info h3 {
        font-size: 16px;
    }
    
    .portfolio-info p {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .portfolio-info .btn-sm {
        padding: 5px 12px;
        font-size: 12px;
    }
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border: 2px solid var(--primary-color);
    border-top-width: 5px;
    border-left-width: 5px;
    border-radius: 15px;
    z-index: -1;
}

.portfolio-item::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    border-bottom: 5px solid var(--primary-color);
    border-right: 5px solid var(--primary-color);
    z-index: -1;
}

/* Responsive adjustments for portfolio decorative elements */
@media (max-width: 992px) {
    .portfolio-item::before,
    .portfolio-item::after {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 768px) {
    .portfolio-item::before,
    .portfolio-item::after {
        width: 50px;
        height: 50px;
    }
}