/* ======== Base Styles & Variables ======== */
:root {
    /* Primary Colors */
    --primary-color: #ff6b6b;
    --primary-dark: #e94057;
    --primary-light: #ff9a9e;
    
    /* Secondary Colors */
    --secondary-color: #4ecdc4;
    --secondary-dark: #2e8b84;
    --secondary-light: #a8e6cf;
    
    /* Neutral Colors */
    --dark-color: #333333;
    --light-color: #f8f9fa;
    --grey-color: #6c757d;
    
    /* Utility Colors */
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    --gradient-background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50%;
}

/* Typography */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

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

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

/* Utility Classes */
.divider {
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    margin: 1.5rem auto;
}

.divider.is-left {
    margin-left: 0;
}

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

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

.text-white {
    color: white !important;
}

.mb-0 {
    margin-bottom: 0 !important;
}

.mb-1 {
    margin-bottom: 0.5rem !important;
}

.mb-2 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: 1.5rem !important;
}

.mb-4 {
    margin-bottom: 2rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.mt-0 {
    margin-top: 0 !important;
}

.mt-1 {
    margin-top: 0.5rem !important;
}

.mt-2 {
    margin-top: 1rem !important;
}

.mt-3 {
    margin-top: 1.5rem !important;
}

.mt-4 {
    margin-top: 2rem !important;
}

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

.pb-5 {
    padding-bottom: 3rem !important;
}

.pt-5 {
    padding-top: 3rem !important;
}

/* Animation Classes */
.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-up {
    animation: slideUp 1s ease-in-out;
}

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

/* ======== Components ======== */

/* Buttons */
.button {
    transition: var(--transition-normal);
    border-radius: var(--radius-md);
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.button.is-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.button.is-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.button.is-secondary {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.button.is-secondary:hover {
    background: var(--secondary-dark);
    border-color: var(--secondary-dark);
}

.button.is-rounded {
    border-radius: 25px;
}

.button.is-outlined {
    background: transparent;
}

.button.is-outlined.is-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.button.is-outlined.is-primary:hover {
    background: var(--primary-color);
    color: white;
}

.button.is-outlined.is-light {
    color: var(--light-color);
    border-color: var(--light-color);
}

.button.is-outlined.is-light:hover {
    background: var(--light-color);
    color: var(--dark-color);
}

.button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: var(--radius-full);
    transform: scale(1, 1) translate(-50%, -50%);
    transform-origin: 50% 50%;
}

.button:hover::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

.pulse-btn {
    position: relative;
}

.pulse-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    background: var(--primary-color);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    70% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1.1);
        opacity: 0;
    }
}

/* Cards */
.card {
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-normal);
    margin-bottom: 1.5rem;
    height: 100%;
    /* display: flex; */
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: auto;
    transition: var(--transition-normal);
}

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

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.card-content p {
    color: var(--grey-color);
    flex: 1;
}

/* ======== Sections ======== */

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    transition: var(--transition-normal);
    background-color: transparent;
    box-shadow: none;
}

.navbar.is-scrolled {
    background-color: white;
    box-shadow: var(--shadow-md);
}

.navbar-item {
    font-weight: 500;
    transition: var(--transition-normal);
}

.navbar-item:hover {
    color: var(--primary-color) !important;
    background-color: transparent !important;
}

/* Hero Section */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-body {
    z-index: 2;
}

.hero.is-fullheight {
    display: flex;
    align-items: center;
}

.hero .title,
.hero .subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

/* Services Section */
.services-section {
    position: relative;
    background-color: var(--light-color);
}

.section-header {
    margin-bottom: 3rem;
}

.section-header .title {
    margin-bottom: 0.5rem;
}

.section-header .subtitle {
    color: var(--grey-color);
    margin-bottom: 1rem;
}

.service-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.service-card .card-content {
    text-align: center;
}

.service-card .description {
    color: var(--grey-color);
    margin-bottom: 1.5rem;
}

.price-tag {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: bold;
}

.price-tag .price {
    font-size: 1.25rem;
}

/* Projects Section */
.projects-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.project-card {
    background-color: white;
}

.project-card .location {
    color: var(--grey-color);
    margin-bottom: 1rem;
}

/* Process Section */
.process-section {
    position: relative;
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 4px;
    background: var(--secondary-light);
    z-index: 0;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    padding-left: 50px;
}

.timeline-marker {
    position: absolute;
    left: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1;
}

.timeline-content {
    padding: 1.5rem;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* Methodology Section */
.methodology-section {
    background-color: var(--light-color);
}

.methodology-item {
    display: flex;
    margin-bottom: 2rem;
}

.methodology-item .icon-box {
    flex: 0 0 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1.5rem;
}

.methodology-item .content {
    flex: 1;
}

/* Testimonials Section */
.testimonials-section {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.testimonial-card {
    text-align: center;
}

.testimonial-rating {
    color: var(--warning-color);
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    margin-right: 1rem;
}

.testimonial-author .author-info .name {
    font-weight: bold;
    margin-bottom: 0;
}

.testimonial-author .location {
    color: var(--grey-color);
}

/* Contact Section */
.contact-section {
    position: relative;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.contact-info {
    padding: 2rem;
    background: var(--light-color);
    border-radius: var(--radius-md);
}

.contact-item {
    display: flex;
    margin-bottom: 1.5rem;
}

.contact-item .icon {
    flex: 0 0 40px;
    height: 40px;
    background: var(--primary-light);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    margin-right: 1rem;
}

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

.contact-item h4 {
    margin-bottom: 0.25rem;
    font-weight: bold;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.25);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 1.5rem 2rem;
}

.footer h3 {
    color: white;
    margin-bottom: 1.5rem;
}

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

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-normal);
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.social-links {
    margin-top: 1.5rem;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 1rem;
    transition: var(--transition-normal);
}

.social-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem;
    z-index: 9999;
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.cookie-content p {
    margin-right: 2rem;
    margin-bottom: 0;
}

/* ======== Pages ======== */

/* About Page */
.mission-box,
.values-box {
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.values-list li {
    margin-bottom: 1rem;
}

.team-card {
    text-align: center;
}

.team-card img {
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--grey-color);
}

.certificate-box {
    display: flex;
    align-items: center;
    height: 100%;
}

/* Contacts Page */
.contact-card {
    text-align: center;
    height: 100%;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

.accordion-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-header {
    padding: 1rem;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9f9f9;
}

.accordion-content.is-active {
    max-height: 1000px;
    padding: 1rem;
}

.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

/* Success Page */
.success-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.success-icon {
    color: var(--success-color);
    font-size: 5rem;
    margin-bottom: 2rem;
}

.info-box {
    border-top: 4px solid var(--primary-color);
    padding: 2rem;
}

.steps li {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 50px;
}

.steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.steps li:nth-child(1)::before {
    content: '1';
}

.steps li:nth-child(2)::before {
    content: '2';
}

.steps li:nth-child(3)::before {
    content: '3';
}

.steps li:nth-child(4)::before {
    content: '4';
}

.contact-quick-item {
    padding: 1.5rem;
    border-radius: var(--radius-md);
    background: var(--light-color);
    height: 100%;
    transition: var(--transition-normal);
    text-align: center;
}

.contact-quick-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.contact-quick-item .icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Privacy & Terms Page */
.privacy-content,
.terms-content {
    max-width: 800px;
    margin: 0 auto;
    padding-top: 100px;
}

/* ======== Responsive Adjustments ======== */
@media screen and (max-width: 768px) {
    .timeline::before {
        left: 50px;
    }
    
    .timeline-item {
        padding-left: 80px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .methodology-item {
        flex-direction: column;
    }
    
    .methodology-item .icon-box {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.25rem;
    }
}

/* ======== Color Transitions ======== */
.color-transition {
    background: linear-gradient(-45deg, var(--primary-color), var(--secondary-color), var(--primary-dark), var(--secondary-dark));
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ======== Image Styling ======== */
.image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-image {
    /* display: flex; */
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.team-card .card-image,
.project-card .card-image,
.service-card .card-image {
    height: 250px;
}

.hero-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

/* ======== Read More Links ======== */
.read-more {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition-normal);
}

.read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.read-more i {
    margin-left: 0.5rem;
    transition: var(--transition-normal);
}

.read-more:hover i {
    transform: translateX(3px);
}

/* ======== CTA Sections ======== */
.cta-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 6rem 0;
    text-align: center;
}

.cta-section .title,
.cta-section .subtitle {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ======== Parallax Effect ======== */
.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* ======== Custom Checkbox & Radio ======== */
.custom-control {
    position: relative;
    display: block;
    min-height: 1.5rem;
    padding-left: 1.5rem;
}

.custom-control-input {
    position: absolute;
    z-index: -1;
    opacity: 0;
}

.custom-control-label {
    position: relative;
    margin-bottom: 0;
    vertical-align: top;
}

.custom-control-label::before {
    position: absolute;
    top: 0.25rem;
    left: -1.5rem;
    display: block;
    width: 1rem;
    height: 1rem;
    pointer-events: none;
    content: "";
    background-color: #fff;
    border: 1px solid #adb5bd;
    border-radius: 0.25rem;
}

.custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

/* ======== Glassmorphism Effect ======== */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 2rem;
}

/* ======== Hover Effects ======== */
.hover-zoom {
    transition: var(--transition-normal);
}

.hover-zoom:hover {
    transform: scale(1.05);
}

.hover-shadow {
    transition: var(--transition-normal);
}

.hover-shadow:hover {
    box-shadow: var(--shadow-lg);
}