* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only content - for accessibility and SEO */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: Arial, sans-serif;
    background-color: #FFFFFF;
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/cam3.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(1px) brightness(0.6);
    opacity: 0.2;
    z-index: 0;
    transition: opacity 0.5s ease;
}

body:hover::before {
    opacity: 0.25;
}

/* Navigation Bar */
nav {
    background-color: #000000;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: none;
    border-bottom: 3px solid #FFFF00;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: auto;
    height: 65px;
    max-width: 190px;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.logo img:hover {
    transform: scale(1.08) rotate(2deg);
    filter: brightness(1.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 18px;
    flex: 1;
    justify-content: center;
}

.nav-links li a {
    color: #FFFFFF;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 12px;
    border-radius: 0;
    transition: all 0.4s ease;
    position: relative;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.nav-links li a:hover {
    background-color: transparent;
    color: #FFFF00;
    border-bottom: 2px solid #FFFF00;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
}

.nav-links li a.active {
    background-color: transparent;
    color: #FFFF00;
    border-bottom: 2px solid #FFFF00;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background-color: transparent;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #FFFF00;
    margin: 3px 0;
    transition: 0.3s;
}

/* Responsive Design */
@media (max-width: 1024px) {
    nav {
        padding: 9px 20px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links li a {
        font-size: 11px;
        padding: 9px 11px;
        letter-spacing: 0.8px;
    }

    .hero {
        margin-top: 100px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 8px 16px;
        flex-wrap: nowrap;
        min-height: auto;
        height: 64px;
    }

    .logo img {
        width: auto;
        height: 40px;
        max-width: 128px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 64px;
        margin-top: 0;
        flex-direction: column;
        background-color: #000000;
        width: 100%;
        text-align: center;
        transition: right 0.3s ease;
        padding: 15px 0;
        gap: 0;
        border-top: 3px solid #FFFF00;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        flex: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 8px 0;
    }

    .nav-links li a {
        font-size: 12px;
        padding: 11px 14px;
        display: block;
        letter-spacing: 1px;
    }

    .hero {
        margin-top: 80px;
    }

    .hero-content {
        padding: 40px 20px 20px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 7px 14px;
        height: 58px;
    }

    .logo img {
        width: auto;
        height: 32px;
        max-width: 104px;
    }

    .nav-links {
        top: 58px;
        max-height: calc(100vh - 58px);
    }

    .nav-links li a {
        font-size: 12px;
        padding: 10px 12px;
    }

    .menu-toggle span {
        width: 22px;
        height: 2.5px;
        margin: 2.5px 0;
    }

    .hero {
        margin-top: 70px;
    }

    .hero-content {
        padding: 30px 15px 15px 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin: 0 0 30px 0;
    }

    .hero-cta {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .hero-phones {
        font-size: 0.9rem;
    }

    .hero-email {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Main Content */
main {
    margin-top: 0;
    position: relative;
    z-index: 1;
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in {
    opacity: 0;
    transition: opacity 1s ease;
}

.fade-in.animate {
    opacity: 1;
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.animate {
    opacity: 1;
    transform: scale(1);
}

.slide-down {
    opacity: 0;
    transform: translateY(-100%);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-down.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar specific animation */
nav.fade-in {
    opacity: 0;
    transform: translateY(-20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

nav.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
section {
    padding: 60px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/cam3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #FFFFFF;
    transition: transform 0.1s ease-out, opacity 0.3s ease;
    will-change: transform, opacity;
    margin-top: 0;
}

@media (max-width: 1024px), (max-height: 700px) {
    .hero {
        background-attachment: scroll;
    }
}

@media (max-aspect-ratio: 4/3) {
    .hero-content {
        padding: 45px 20px 25px 20px;
    }

    .hero-content h1 {
        font-size: clamp(2.2rem, 6vw, 3.4rem);
        letter-spacing: 5px;
        margin-bottom: 32px;
    }
}

@media (min-aspect-ratio: 21/9) {
    .hero {
        background-position: center top;
    }

    .hero-content h1 {
        font-size: clamp(3.4rem, 3vw, 4.6rem);
        letter-spacing: 7px;
    }
}

@media (max-aspect-ratio: 4 / 3) {
    .hero-content {
        padding: 40px 20px 24px 20px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3.3rem);
        letter-spacing: clamp(3px, 0.7vw, 7px);
        margin-bottom: 28px;
    }

    .hero-cta {
        font-size: clamp(1.2rem, 2.6vw, 1.7rem);
    }

    .hero-phones,
    .hero-email {
        font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    }
}

@media (min-aspect-ratio: 16 / 10) and (max-aspect-ratio: 21 / 9) {
    .hero-content {
        max-width: min(1000px, 88vw);
    }

    .hero-content h1 {
        font-size: clamp(2.5rem, 4.2vw, 4rem);
        letter-spacing: clamp(4px, 0.45vw, 8px);
    }
}

@media (min-aspect-ratio: 21 / 9) {
    .hero-content {
        max-width: min(1150px, 78vw);
    }

    .hero-content h1 {
        font-size: clamp(3rem, 3.4vw, 4.6rem);
        letter-spacing: clamp(5px, 0.35vw, 8px);
    }
}

.hero-content {
    padding: 60px 30px 30px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100%;
}

.hero-content h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 4rem;
    font-weight: 400;
    text-shadow: none;
    margin: 0 0 50px 0;
    padding: 0;
    letter-spacing: 8px;
    line-height: 1.3;
}

.hero-contact {
    margin-top: 20px;
}

.hero-cta {
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFF00;
    margin-bottom: 25px;
    text-shadow: 0 0 10px rgba(255, 255, 0, 0.5);
    letter-spacing: 2px;
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 0, 0.5), 0 0 20px rgba(255, 255, 0, 0.3);
        transform: scale(1);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 0, 0.8), 0 0 30px rgba(255, 255, 0, 0.5), 0 0 40px rgba(255, 255, 0, 0.3);
        transform: scale(1.05);
    }
}

.hero-phones {
    font-size: 1.4rem;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: none;
    letter-spacing: 1px;
}

.hero-phones a {
    color: #FFFF00;
    text-decoration: none;
    transition: all 0.4s ease;
    padding: 8px 16px;
    border-radius: 0;
    border: 1px solid #FFFF00;
    margin: 0 5px;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 255, 0, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 15px 5px rgba(255, 255, 0, 0);
    }
}

.hero-phones a:hover {
    background-color: #FFFF00;
    color: #000000;
    text-shadow: none;
    transform: scale(1.1);
    animation: none;
    font-weight: 700;
    border-color: #000000;
}

.hero-email {
    font-size: 1.2rem;
    font-weight: 400;
    color: #FFFFFF;
    text-shadow: none;
    margin-top: 20px;
    letter-spacing: 1px;
}

.hero-email a {
    color: #FFFF00;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 0;
    border: 1px solid #FFFF00;
    display: inline-block;
    margin-top: 10px;
}

.hero-email a:hover {
    background-color: #FFFF00;
    color: #000000;
    text-shadow: none;
    font-weight: 700;
    border-color: #000000;
}

/* Legal Content Section */
.legal-content {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 80px 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
    background: linear-gradient(135deg, #FFFF00 0%, #FFD700 100%);
    padding: 30px 20px;
    border-radius: 10px;
    word-wrap: break-word;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .legal-content {
        padding: 100px 15px 40px 15px;
    }
    
    .legal-content h1 {
        font-size: 1.8rem;
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 90px 10px 30px 10px;
    }
    
    .legal-content h1 {
        font-size: 1.5rem;
        padding: 15px 10px;
    }
}

.legal-content h2 {
    font-size: 1.8rem;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.legal-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 15px;
    text-align: justify;
}

.legal-content a {
    color: #000000;
    font-weight: 700;
    text-decoration: underline;
}

.legal-content a:hover {
    color: #FFFF00;
}

.legal-content ul {
    margin: 15px 0 15px 30px;
}

.legal-content li {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

.legal-content h3 {
    font-size: 1.4rem;
    color: #000000;
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Intro Section */
.intro {
    background-color: transparent;
    text-align: center;
    padding: 80px 20px;
}

.intro .container {
    max-width: 900px;
    padding: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #EEEEEE;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.intro h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #000000;
    background: linear-gradient(135deg, #FFFF00 0%, #FFD700 100%);
    padding: 25px 40px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    border: 3px solid #000000;
    box-shadow: 0 5px 20px rgba(255, 255, 0, 0.4);
}

/* General h1 styling for all sections */
.about h1,
.services h1,
.contact h1,
.info h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #000000;
    background: linear-gradient(135deg, #FFFF00 0%, #FFD700 100%);
    padding: 25px 40px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    border: 3px solid #000000;
    box-shadow: 0 5px 20px rgba(255, 255, 0, 0.4);
}

.intro p {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 30px;
    color: #000000;
    font-weight: 500;
}

.intro .highlight {
    color: #000000;
    background-color: #000000;
    color: #FFFF00;
    padding: 30px 40px;
    margin: 40px 0 0 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 0;
    letter-spacing: 2px;
    border: 3px solid #FFFF00;
}

/* About Section */
.about {
    background-color: transparent;
    padding: 80px 20px;
}

.about .container {
    max-width: 1100px;
    padding: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #EEEEEE;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.about h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 60px;
    color: #000000;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-content p {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 25px;
    color: #333;
    text-align: left;
    font-weight: 300;
}

.image-content img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #EEEEEE;
}

/* Info Section */
.info {
    background-color: transparent;
    padding: 80px 20px;
}

.info .container {
    max-width: 1200px;
    padding: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 1px solid #EEEEEE;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
}

.info h2 {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 40px;
    color: #000000;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.info p {
    font-size: 1rem;
    line-height: 2;
    margin-bottom: 25px;
    color: #333;
    text-align: left;
    font-weight: 300;
}

.map-container {
    margin-top: 30px;
    border: 1px solid #EEEEEE;
    overflow: hidden;
    width: 100%;
    height: clamp(240px, 45vw, 500px);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: auto;
}

@media (max-width: 768px) {
    .map-container {
        height: clamp(220px, 60vw, 360px);
    }
}

@media (max-width: 480px) {
    .map-container {
        height: clamp(200px, 65vw, 300px);
    }
}

@media (min-width: 1920px) {
    .map-container {
        height: clamp(320px, 30vw, 520px);
    }
}

@media (max-height: 700px) and (orientation: landscape) {
    .map-container {
        height: clamp(200px, 34vh, 360px);
    }
}

@media (orientation: landscape) and (max-height: 820px) {
    .hero-content {
        padding-top: 30px;
        padding-bottom: 18px;
    }

    .hero-content h1 {
        margin-bottom: 22px;
        font-size: clamp(1.9rem, 4vw, 3.2rem);
    }

    .hero-cta {
        margin-bottom: 18px;
    }

    .map-container {
        height: clamp(210px, 38vh, 380px);
    }
}

/* Gallery Section */
.gallery {
    background-color: transparent;
    padding: 80px 20px;
}

.gallery .container {
    max-width: 1200px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    border: 1px solid #EEEEEE;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    filter: grayscale(20%);
}

.gallery-grid img:hover {
    transform: translateY(-10px) scale(1.05);
    border: 2px solid #FFFF00;
    box-shadow: 0 15px 35px rgba(255, 255, 0, 0.4);
    filter: grayscale(0%);
    z-index: 10;
}

/* CTA Section */
.cta {
    background-color: transparent;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.cta .container {
    max-width: 900px;
    padding: 60px;
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid #000000;
}

.cta h2 {
    color: #000000;
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background-color: #000000;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid #000000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: #FFFF00;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    color: #000000;
    border: 2px solid #000000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.cta-button span {
    position: relative;
    z-index: 1;
}

.cta-button.secondary {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
}

.cta-button.secondary:hover {
    background-color: #FFFF00;
    color: #000000;
    border-color: #000000;
}

/* EU Funding Section */
.eu-funding {
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 40px 20px;
}

.eu-funding p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #333;
}

.eu-logos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.eu-logos img {
    width: auto;
    height: 80px;
    display: block;
    object-fit: contain;
}

/* Footer */
footer {
    background-color: #000000;
    color: #FFFFFF;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    z-index: 10;
    border-top: 2px solid #FFFF00;
}

footer .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    text-align: center;
}

footer .footer-media-left,
footer .footer-media-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
}

footer .footer-media-left img,
footer .footer-media-right img {
    display: block;
    width: min(320px, 100%);
    max-width: 320px;
    height: auto;
    object-fit: contain;
}

footer .footer-photo-sub {
    flex: 0 1 260px;
}

footer .footer-cam1-wrap {
    background-color: #FFFFFF;
    padding: 12px;
    border-radius: 8px;
    flex: 0 1 260px;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .footer-cam1-wrap img {
    max-width: 260px;
}

footer .footer-content {
    flex: 1;
    min-width: 0;
    text-align: center;
}

footer h3 {
    color: #FFFF00;
    font-size: 1.3rem;
    margin-bottom: 20px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
}

footer p, footer address {
    font-style: normal;
    line-height: 2;
    margin: 15px 0;
    font-weight: 300;
    font-size: 0.95rem;
}

.social-links {
    margin: 20px 0;
    position: relative;
    z-index: 10;
}

.social-links a {
    color: #FFFFFF;
    transition: color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.social-links a:hover {
    color: #FFFF00;
}

.footer-links {
    margin-top: 20px;
    position: relative;
    z-index: 10;
}

.footer-links a {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.footer-links a:hover {
    color: #FFFF00;
}

@media (max-width: 768px) {
    footer .footer-inner {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    footer .footer-media-left,
    footer .footer-media-right {
        flex-direction: column;
    }

    footer .footer-photo-sub,
    footer .footer-cam1-wrap {
        width: min(280px, 100%);
        flex-basis: auto;
    }

    footer .footer-media-left img,
    footer .footer-media-right img {
        width: min(280px, 100%);
        max-width: 280px;
    }

    footer .footer-content {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        margin-top: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero {
        margin-top: 0;
    }

    .hero-content {
        padding: 40px 20px 20px 20px;
    }

    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section {
        padding: 40px 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        margin-top: 0;
    }

    .hero-content {
        padding: 30px 15px 15px 15px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        letter-spacing: 2px;
        margin: 0 0 30px 0;
    }

    .hero-cta {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .hero-phones {
        font-size: 0.9rem;
    }

    .hero-email {
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: auto;
    animation: fadeIn 0.3s;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    animation: zoomIn 0.3s;
    border-radius: 0;
    box-shadow: none;
    border: 2px solid #FFFF00;
}

@keyframes zoomIn {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #FFFF00;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #FFFFFF;
    transform: scale(1.2);
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #FFFFFF;
    font-size: 1.2rem;
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
}

.gallery-img {
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.gallery-img:hover {
    transform: translateY(-5px);
    border: 1px solid #FFFF00;
}

/* Services and Contact Specific Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.service-card {
    padding: 40px;
    background-color: #FFFFFF;
    border: 2px solid #FFFF00;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
    transform: scale(0);
}

.service-card:hover::before {
    transform: scale(1);
}

.service-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 255, 0, 0.5);
    border-color: #FFD700;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #000000;
    font-weight: 700;
    letter-spacing: 2px;
}

.service-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
    font-weight: 400;
}

.service-card ul {
    list-style: none;
    padding: 0;
}

.service-card li {
    padding: 10px 0;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
    border-bottom: 2px solid rgba(255, 255, 0, 0.3);
    position: relative;
    padding-left: 25px;
}

.service-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #FFFF00;
    font-weight: bold;
    font-size: 1.2rem;
}

.service-card li:last-child {
    border-bottom: none;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.sector-item {
    padding: 40px;
    background-color: #000000;
    border: 3px solid #FFFF00;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.sector-item::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #FFFF00, transparent);
    transition: bottom 0.5s ease;
}

.sector-item:hover::after {
    bottom: 0;
}

.sector-item:hover {
    transform: translateY(-10px) rotate(-1deg);
    background-color: #FFFF00;
    box-shadow: 0 10px 30px rgba(255, 255, 0, 0.6);
}

.sector-item h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #FFFF00;
    font-weight: 700;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: none;
}

.sector-item:hover h3 {
    color: #000000;
}

.sector-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #FFFFFF;
    font-weight: 400;
    transition: color 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.sector-item:hover p {
    color: #000000;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
}

.value-item {
    padding: 40px;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 3px solid #FFFF00;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.value-item:before {
    content: "";
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.1) 0%, transparent 70%);
    transition: transform 0.6s ease;
}

.value-item:hover:before {
    transform: translate(-25%, -25%);
}

.value-item:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
}

.value-item h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #FFFF00;
    font-weight: 600;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.value-item p {
    font-size: 1rem;
    line-height: 1.8;
    color: #FFFFFF;
    font-weight: 300;
    position: relative;
    z-index: 1;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.contact-card {
    padding: 35px;
    background-color: #FFFFFF;
    border: 2px solid #FFFF00;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 255, 0, 0.5);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #000000;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
}

.contact-card a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.contact-card a:hover {
    color: #FFFF00;
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-align: left;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #EEEEEE;
    background-color: #FFFFFF;
    font-size: 0.95rem;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border: 2px solid #FFFF00;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.3);
    transform: translateY(-2px);
}

.form-group input.filled,
.form-group textarea.filled {
    border-color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.05);
}

.form-group.focused label {
    color: #FFFF00;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    margin: 20px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    font-weight: 400;
    margin-bottom: 0;
    cursor: pointer;
}

.checkbox-group label a {
    color: #000000;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.checkbox-group label a:hover {
    color: #FFFF00;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-submit:hover {
    background-color: #FFFF00;
    color: #000000;
    border: 2px solid #000000;
}

.form-submit:disabled {
    background-color: #CCCCCC;
    border-color: #CCCCCC;
    cursor: not-allowed;
}

/* Responsive adjustments */

/* Tablets y pantallas medianas (768px - 1024px) */
@media (max-width: 1024px) {
    nav {
        padding: 15px 30px;
    }
    
    main {
        margin-top: 180px;
    }
    
    .intro .container,
    .about .container,
    .info .container,
    .cta .container {
        max-width: 90%;
        padding: 40px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .intro h1,
    .about h1,
    .services h1,
    .contact h1,
    .info h1 {
        font-size: 2rem;
        padding: 20px 30px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
}

/* Móviles grandes y tablets pequeñas (481px - 768px) */
@media (max-width: 768px) {
    nav {
        padding: 15px 20px;
    }
    
    main {
        margin-top: 140px;
    }
    
    .logo img {
        width: auto;
        height: 52px;
    }
    
    .intro .container,
    .about .container,
    .info .container,
    .cta .container {
        padding: 30px 20px;
    }
    
    .services-grid,
    .sectors-grid,
    .values-grid,
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .service-card,
    .sector-item,
    .value-item,
    .contact-card {
        padding: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .intro h1,
    .about h1,
    .services h1,
    .contact h1,
    .info h1 {
        font-size: 1.8rem;
        padding: 18px 25px;
        letter-spacing: 2px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-cta {
        font-size: 1.4rem;
    }
    
    .hero-phones {
        font-size: 1.1rem;
    }
    
    .hero-email {
        font-size: 1rem;
    }
    
    section {
        padding: 40px 15px;
    }
    
    .about h2,
    .info h2 {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }
    
    .cta h2 {
        font-size: 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-button {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-form {
        max-width: 100%;
    }
}

/* Móviles pequeños (hasta 480px) */
@media (max-width: 480px) {
    nav {
        padding: 12px 15px;
        min-height: 90px;
    }
    
    main {
        margin-top: 100px;
    }
    
    .logo img {
        width: auto;
        height: 46px;
    }
    
    .intro .container,
    .about .container,
    .info .container,
    .cta .container {
        padding: 25px 15px;
    }
    
    .service-card,
    .sector-item,
    .value-item,
    .contact-card {
        padding: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .intro h1,
    .about h1,
    .services h1,
    .contact h1,
    .info h1 {
        font-size: 1.5rem;
        padding: 15px 20px;
        letter-spacing: 1px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        letter-spacing: 4px;
    }
    
    .hero-cta {
        font-size: 1.2rem;
    }
    
    .hero-phones {
        font-size: 1rem;
    }
    
    .hero-phones a {
        display: block;
        margin: 10px 0;
    }
    
    .hero-email {
        font-size: 0.9rem;
    }
    
    section {
        padding: 30px 10px;
    }
    
    .about h2,
    .info h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .cta h2 {
        font-size: 1.3rem;
    }
    
    .intro p,
    .text-content p,
    .info p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .service-card h3,
    .sector-item h3,
    .value-item h3,
    .contact-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p,
    .sector-item p,
    .value-item p,
    .contact-card p {
        font-size: 0.9rem;
    }
    
    .eu-logos {
        flex-direction: column;
        gap: 15px;
    }
    
    .eu-logos img {
        max-width: 150px;
    }
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    color: #ffffff;
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 3px solid #FFFF00;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.cookie-content a {
    color: #FFFF00;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-content a:hover {
    color: #FFD700;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cookie-btn.accept {
    background: linear-gradient(135deg, #FFFF00 0%, #FFD700 100%);
    color: #000000;
}

.cookie-btn.accept:hover {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 0, 0.4);
}

.cookie-btn.reject {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #FFFF00;
    color: #FFFF00;
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
}

/* Modal de confirmación de teléfono */
.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.confirm-modal.show {
    display: flex;
    opacity: 1;
}

.confirm-modal-content {
    background: #000;
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.confirm-modal-content h3 {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confirm-phone {
    color: #FFA500;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    padding: 15px;
    background: #1a1a1a;
    border-radius: 10px;
    border: 2px solid #FFD700;
}

.confirm-message {
    color: #ddd;
    font-size: 1rem;
    line-height: 1.6;
    margin: 20px 0 30px;
}

.confirm-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.confirm-btn {
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.confirm-yes {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.confirm-yes:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

.confirm-no {
    background: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.confirm-no:hover {
    background: #1a1a1a;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    .confirm-modal-content {
        padding: 30px 20px;
    }
    
    .confirm-modal-content h3 {
        font-size: 1.2rem;
    }
    
    .confirm-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .confirm-btn {
        width: 100%;
    }
}

/* Alerta personalizada para validación */
.custom-alert {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-alert.show {
    display: flex;
    opacity: 1;
}

.custom-alert-content {
    background: #000;
    border: 3px solid #FFD700;
    border-radius: 20px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.4);
    animation: modalSlideIn 0.3s ease;
}

@keyframes alertPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.custom-alert-content h3 {
    color: #FFA500;
    font-size: 1.4rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.custom-alert-content p {
    color: #ddd;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px 0 30px;
}

.alert-btn {
    background: linear-gradient(45deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.5);
}

.alert-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(255, 215, 0, 0.7);
}

@media (max-width: 768px) {
    .custom-alert-content {
        padding: 30px 20px;
    }
    
    .custom-alert-content h3 {
        font-size: 1.2rem;
    }
    
    .custom-alert-content p {
        font-size: 1rem;
    }
}
