:root {
    --primary-color: #ba0200;
    --text-color: #000000;
    --light-text: #e2dbdb;
    --background: #464646;
    --accent: #1cfd188e;
    --border: rgba(144, 144, 144, 0.25);
    --spacing: 2rem;
    --transition: all 0.3s ease;
    --section-spacing: 4.0rem;
    --border-radius: 0.325rem;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0px;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: "Source Sans Pro", Helvetica, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--background);
    background: linear-gradient(to right, #2e2e2e79 50%, #dddddb 50%), url(../images/pattern1.svg);    
    background-attachment: fixed;
    overflow-x: hidden;
    padding-top: 0px; /* Added for fixed header */
}

/* Navigation Menu */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(70, 70, 70, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.main-nav.scrolled {
    padding: 0.7rem 0;
    background: rgba(70, 70, 70, 0.98);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: "Raleway", Helvetica, sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--light-text);
    text-decoration: none;
    letter-spacing: 0.175em;
    text-transform: uppercase;
}

.logo-image {
    height: 50px; /* Control logo height */
    width: auto; /* Maintain aspect ratio */
    display: block;
}

/* Optional: Add hover effect */
.logo-image:hover {
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.175em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
    border: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent);
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Raleway", Helvetica, sans-serif;
    font-weight: 600;
    letter-spacing: 0.175em;
    text-transform: uppercase;
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    text-transform: none;
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.8rem, 4vw, 1.25rem);
    font-weight: 800;
}

h3 {
    color: #000000;
    padding-top: 20px;
}

p {
    margin-bottom: var(--spacing);
    font-size: clamp(0.9rem, 2.5vw, 1rem);
}

a {
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 0px dotted;
    transition: var(--transition);
}

a:hover {
    border-bottom-color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
}


/* Dropdown Menu */
.has-dropdown {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: rgba(70, 70, 70, 0.95);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: var(--box-shadow);
  z-index: 999;
}

.dropdown li {
  position: relative;
}

.dropdown a {
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.175em;
    text-transform: uppercase;  
    display: block;
    padding: 0.5rem 1rem;
    color: var(--light-text);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown a:hover {
  background: rgba(255,255,255,0.1);
  color: var(--accent);
}

/* Submenu (nested dropdown) */
.submenu {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background: rgba(70, 70, 70, 0.95);
  list-style: none;
  padding: 0.5rem 0;
  min-width: 180px;
  box-shadow: var(--box-shadow);
}

.dropdown li:hover > .submenu {
  display: block;
}

/* Desktop hover */
.has-dropdown:hover > .dropdown {
  display: block;
}

/* Mobile adjustments */
@media (max-width: 868px) {
  .dropdown, .submenu {
    position: static;
    box-shadow: none;
    background: none;
  }
  .dropdown a, .submenu a {
    padding-left: 2rem;
    color: #fff;
  }
  .submenu a {
    padding-left: 3rem;
  }
}



/* Header */

header p {
    color: #e2dbdb; /* Your desired color */
    font-size: 20px;
}

.intro {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
}

.intro header {
    background: #44444400;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.intro .content {
    position: relative;
}

.intro .image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.intro .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sections */
section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin: var(--section-spacing) 0;
}

section header {
    padding: 0 3rem;
    text-align: right;
    background: #44444400;
    display: flex;
    flex-direction: column;
    justify-content: top;
}

section .content {
    padding: 0 3rem;
}

/* Feature Icons */
.feature-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    list-style: none;
    margin: 3rem 0;
}

.feature-icons li {
    position: relative;
    padding-left: 3.5rem;
    font-size: clamp(0.8rem, 2vw, 1rem);
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.gallery a {
    border-bottom: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gallery a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.gallery a.landscape {
    grid-column: 1 / -1;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery a:hover img {
    transform: scale(1.05);
}

/* Buttons */
.button {
    display: inline-block;
    padding: 0 2rem;
    height: 3rem;
    line-height: 3rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-family: "Raleway", Helvetica, sans-serif;
    font-size: clamp(0.5rem, 2vw, 0.6rem);
    font-weight: 600;
    letter-spacing: 0.175em;
    text-transform: uppercase;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    margin: 0.5rem;
}

.button:hover {
    border-color: #666666;
    color: #666666;
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-color);
}

.button.primary:hover {
    background: #93ffe7;
    transform: translateY(-3px);
}

/* Form */
form {
    margin-bottom: var(--spacing);
}

.fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: var(--spacing);
}

.field.full {
    grid-column: 1 / -1;
}

input, textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: inherit;
    transition: var(--transition);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(186, 2, 0, 0.1);
}

textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer .items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    list-style: none;
}

.items h3 {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.icons {
    display: flex;
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
}

.icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
    border: none;
}

.icons a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding: 2rem;
    color: rgba(0, 0, 0, 0.25);
    margin-top: 3rem;
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    background: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--box-shadow);
}

.mobile-nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: white;
    transition: var(--transition);
}

/* Responsive Design */
@media (max-width: 1024px) {
    :root {
        --spacing: 1.5rem;
        --section-spacing: 5rem;
    }
    
    .intro header,
    section header {
        padding: 3rem;
    }
    
    section .content {
        padding: 3rem;
    }
    
    .feature-icons {
        gap: 1.5rem;
    }
    
    .feature-icons li {
        padding-left: 2.5rem;
    }
    
    .feature-icons li::before {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 868px) {
:root {
    --spacing: 1.5rem;
    --section-spacing: 5rem;
}

/* Mobile-specific styling */
body {
    background: #dddddb;
    color: #000000;
}

h1, h2, h3, h4, h5, h6 {
    color: #000000;
}

.intro,
section {
    grid-template-columns: 1fr;
}

.intro header,
section header {
    text-align: left;
    padding: 3rem 2rem;
    background: #dddddb;
}

.intro header p {
    color: #000000;
}

section .content {
    padding: 2rem;
    background: #dddddb;
}

.feature-icons {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature-icons li {
    padding-left: 2.5rem;
}

.feature-icons li::before {
    width: 2rem;
    height: 2rem;
}

.fields {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.gallery {
    grid-template-columns: 1fr;
}

.button {
    width: 100%;
    margin: 0.5rem 0;
    border: 2px solid #000000;
    color: #000000;
}

.button:hover {
    border-color: #666666;
    color: #666666;
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #000000;
}

.button.primary:hover {
    background: #93ffe7;
    color: #000000;
    transform: translateY(-3px);
}

/* Mobile nav styles */
.nav-menu {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    background: rgba(70, 70, 70, 0.98);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
    gap: 0;
}

.nav-menu.active {
    right: 0;
}

.nav-item {
    margin: 1.5rem 0;
}

.mobile-nav-toggle {
    display: flex;
}

.mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Form elements */
input, textarea, select {
    background: #ffffff;
    border: 2px solid #cccccc;
    color: #000000;
}

input:focus, textarea:focus, select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(186, 2, 0, 0.1);
}

/* Links */
a {
    color: #000000;
    border-bottom: 0px dotted #000000;
}

a:hover {
    color: #ba0200;
    border-bottom-color: #ba0200;
}

/* Portfolio items */
.portfolio-item {
    background: #7e7c7c;
}

.portfolio-item-info h3 {
    color: var(--primary-color);
}

/* Footer remains dark for contrast */
footer.main-footer {
    background: rgba(70, 70, 70, 0.95);
    color: white;
}

footer.main-footer h3,
footer.main-footer a,
footer.main-footer span {
    color: white;
}
}

@media (max-width: 640px) {
:root {
    --spacing: 1rem;
    --section-spacing: 3rem;
}

.intro header,
section header {
    padding: 2rem 1.5rem;
}

section .content {
    padding: 1.5rem;
}

footer .items {
    grid-template-columns: 1fr;
}

.mobile-nav-toggle {
    display: flex;
}

.actions {
    display: flex;
    flex-direction: column;
}

/* Improve text readability */
p {
    font-size: 1rem;
    line-height: 1.6;
}
}

@media (max-width: 480px) {
h1 {
    font-size: 2.2rem;
    line-height: 1.2;
}

.intro header,
section header {
    padding: 1.5rem 1rem;
}

section .content {
    padding: 1rem;
}

.feature-icons li {
    padding-left: 2rem;
    font-size: 0.9rem;
}

.feature-icons li::before {
    width: 1.75rem;
    height: 1.75rem;
}

.gallery {
    gap: 1rem;
}
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate {
    animation: fadeIn 1s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.hidden {
    opacity: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    background: #930100;
}

/* Footer as separate section */

/* Footer Links Styling */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    padding-bottom: 2px;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--light-text);
    border-bottom-color: var(--accent);
}

footer.main-footer {
    background: rgba(70, 70, 70, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem 0;
    margin-top: 0;
    color: white; /* Add this line */
}

footer.main-footer .items {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing);
    color: white; /* Add this line */
}

footer.main-footer .items h3 {
    color: white; /* Change from var(--text-color) to white */
}

footer.main-footer .items a {
    color: white; /* Change from default to white */
    border-bottom: 1px dotted rgba(255, 255, 255, 0.5); /* Make border visible on white */
}

footer.main-footer .items a:hover {
    color: var(--accent); /* Keep accent color on hover */
    border-bottom-color: transparent;
}

footer.main-footer .copyright {
    margin-top: 2rem;
    padding: 1rem;
    color: white; /* Change from var(--light-text) to white */
}

/* Social Media Icon Hover Effects */
.icons a.social-facebook {
    background: var(--border);
    color: #3b5998; /* Facebook blue */
}

.icons a.social-facebook:hover {
    background: #3b5998; /* Facebook blue */
    color: white;
}

.icons a.social-linkedin {
    background: var(--border);
    color: #0077b5; /* LinkedIn blue */
}

.icons a.social-linkedin:hover {
    background: #0077b5; /* LinkedIn blue */
    color: white;
}

.icons a.social-instagram {
    background: var(--border);
    color: #833ab4; /* Instagram violet */
}

.icons a.social-instagram:hover {
    background: #833ab4; /* Instagram violet */
    color: white;
}

.icons a.social-twitter {
    background: var(--border);
    color: #1da1f2; /* Twitter blue */
}

.icons a.social-twitter:hover {
    background: #1da1f2; /* Twitter blue */
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.portfolio-item-info {
    padding: 2rem;
}

.portfolio-item-info h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-top: 0;
}

.portfolio-item-info strong {
    color: var(--text-color);
}

.portfolio-item-info p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.portfolio-item-info a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent);
    font-weight: 600;
    border-bottom: 1px solid var(--accent);
}

.portfolio-item-info a:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.industry-tag {
    display: inline-block;
    background: var(--accent);
    color: rgb(22, 22, 22);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (max-width: 868px) {
    .portfolio-item-info {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .portfolio-item-info {
        padding: 1rem;
    }
    
    .portfolio-item img {
        height: 250px;
    }
}

/* Style for the service dropdown */
select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: inherit;
    background-color: white;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(186, 2, 0, 0.1);
}

/* CAPTCHA styles */
.captcha-container {
    margin-bottom: 1rem;
}

.captcha-code {
    font-family: "Courier New", monospace;
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 0.5rem;
    background: #f0f0f0;
    padding: 0.5rem 1rem;
    margin: 0.5rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    user-select: none;
}

#refreshCaptcha {
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    height: auto;
}

.button.small {
    height: 2.5rem;
    line-height: 2.5rem;
    font-size: 0.7rem;
}

/* Form validation styles */
input:invalid, select:invalid, textarea:invalid {
    border-color: #ff3860;
}

input:valid, select:valid, textarea:valid {
    border-color: #23d160;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: #1bfd18;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 24px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Mobile responsiveness for the floating button */
@media (max-width: 868px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 2rem;
        left: 2rem;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 2rem;
        left: 2rem;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}


/* Form validation styles */
.field-error {
    color: var(--primary-color);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-message {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--border-radius);
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading state for button */
.button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.button:disabled:hover {
    transform: none;
}