/* Custom styles for service cards */

/* Top Contact Bar */
.top-contact-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 0;
    font-size: 14px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
}

.top-contact-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

.contact-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.contact-bar-info {
    display: flex;
    gap: 20px;
}

.contact-bar-info a {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: opacity 0.3s ease;
}

.contact-bar-info a:hover {
    opacity: 0.8;
}

.contact-bar-info i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .top-contact-bar {
        padding: 10px 0;
        font-size: 12px;
    }
    
    .contact-bar-info {
        flex-direction: row;
        gap: 15px;
    }
    
    .contact-bar-info i {
        font-size: 16px; /* Increased icon size */
    }
    
    /* Hide email text on mobile, just show icon */
    .email-link .contact-text {
        display: none;
    }
    
    /* Make WhatsApp number shorter on mobile */
    .whatsapp-link .contact-text:before {
        content: "+27 61 317 5616";
        display: inline;
    }
    
    .whatsapp-link .contact-text {
        font-size: 0;
    }
    
    .contact-bar-content {
        justify-content: center;
    }
    
    /* Make header more compact on mobile */
    header {
        padding: 10px 0;
    }
    
    /* Adjust header position for mobile */
    header {
        top: 36px; /* Adjusted to remove gap */
    }
    
    /* Adjust main content padding for mobile */
    main {
        padding-top: 120px; /* Adjusted padding for mobile */
    }
    
    .hero {
        padding-top: 50px;
    }
    
    /* When contact bar is hidden on mobile, move header to top */
    .top-contact-bar.hidden + header {
        top: 0;
    }
}

/* Adjust header position for contact bar */
header {
    top: 36px; /* Height of contact bar + padding */
    z-index: 1000; /* Ensure it's below the contact bar */
}

header.sticky {
    top: 0;
}

/* Adjust main content padding to account for fixed header and contact bar */
main {
    padding-top: 100px;
    position: relative;
    z-index: 1;
    min-height: 100vh;
    overflow: visible;
}

/* Ensure all sections are visible */
section {
    position: relative;
    z-index: 1;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    overflow: visible;
}

/* Remove any animation classes that might affect visibility */
.animate__animated {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Ensure section content is always visible */
.section-content {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

/* Service card styling */
.service-card {
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Additional padding for hero section */
.hero {
    padding-top: 60px;
    position: relative;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(247, 148, 29, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover .service-image {
    border-bottom-color: rgba(247, 148, 29, 0.5);
    animation-play-state: paused;
}

/* Service image background with diagonal lines pattern */
.service-image {
    background-color: #e8f0f8;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(208, 224, 240, 0.9) 10px, rgba(208, 224, 240, 0.9) 12px),
        repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(208, 224, 240, 0.9) 10px, rgba(208, 224, 240, 0.9) 12px);
    background-size: 25px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pattern-shift 60s linear infinite;
    border-bottom: 2px solid rgba(247, 148, 29, 0.2);
    transition: border-color 0.3s ease;
}

/* Add a brand color version for one service card */
.service-card:nth-child(3) .service-image {
    background-color: #f8f0e8;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(247, 148, 29, 0.1) 10px, rgba(247, 148, 29, 0.1) 12px),
        repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(247, 148, 29, 0.1) 10px, rgba(247, 148, 29, 0.1) 12px);
}

@keyframes pattern-shift {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 50px 50px;
    }
}

/* Add subtle brand color accent */
.service-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(247, 148, 29, 0.05) 0%, rgba(0, 51, 102, 0.05) 100%);
    z-index: 1;
}

.service-image svg {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 51, 102, 0.1));
    animation: float-svg 3s ease-in-out infinite;
    transform-origin: center center;
}

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

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

/* Dark mode styles */
.dark-mode .service-card {
    border-color: rgba(255, 255, 255, 0.05);
}

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

.dark-mode .service-card:hover .service-image {
    border-bottom-color: rgba(247, 148, 29, 0.6);
}

/* Dark mode version of the diagonal lines pattern */
.dark-mode .service-image {
    background-color: #1a2530;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(12, 21, 32, 0.9) 10px, rgba(12, 21, 32, 0.9) 12px),
        repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(12, 21, 32, 0.9) 10px, rgba(12, 21, 32, 0.9) 12px);
    background-size: 25px 25px;
    border-bottom: 2px solid rgba(247, 148, 29, 0.3);
}

/* Dark mode brand color version */
.dark-mode .service-card:nth-child(3) .service-image {
    background-color: #302520;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(247, 148, 29, 0.15) 10px, rgba(247, 148, 29, 0.15) 12px),
        repeating-linear-gradient(135deg, transparent, transparent 10px, rgba(247, 148, 29, 0.15) 10px, rgba(247, 148, 29, 0.15) 12px);
}

/* Dark mode brand color accent */
.dark-mode .service-image::before {
    background: linear-gradient(135deg, rgba(247, 148, 29, 0.05) 0%, rgba(0, 51, 102, 0.05) 100%);
}

.dark-mode .service-card:hover .service-image svg {
    filter: drop-shadow(0 8px 20px rgba(0, 51, 102, 0.3)) drop-shadow(0 0 8px rgba(247, 148, 29, 0.3));
}

/* Remove duplicate rule - already defined above */
/* .top-contact-bar.hidden + header {
    top: 0;
} */

/* About section layout enhancement */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

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

.about-text {
    flex: 1;
}

/* Add decorative element to the about image */
.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100px;
    height: 100px;
    border-top: 5px solid var(--primary-color);
    border-left: 5px solid var(--primary-color);
    z-index: -1;
}

.about-image::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;
}

@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .about-image, .about-text {
        flex: none;
        width: 100%;
    }
}

/* About section image styling */
.about-image img {
    width: 100%;
    height: 500px; /* Make image taller on desktop */
    object-fit: cover; /* Maintain aspect ratio while filling the container */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-image img:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .about-image img {
        height: auto; /* Return to auto height on mobile */
        max-height: 350px; /* Limit maximum height on mobile */
    }
}

/* Rotating circle in about section */
.rotating-circle {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 120px;
    height: 120px;
    animation: rotate 20s linear infinite;
    z-index: 100;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

.rotating-circle svg {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 7px solid #fff;
    overflow: visible;
}

.rotating-circle svg circle {
    display: none; /* Remove the line under the text */
}

.rotating-circle svg text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
    fill: #fff; /* Make text white */
}

.rotating-circle svg textPath {
    font-size: 9px;
    fill: #fff;
}

.rotating-circle svg path {
    stroke: #fff; /* Make arrow white */
    stroke-width: 3; /* Make arrow bolder */
}

@keyframes rotate {
    from {
        transform: translateY(-50%) rotate(0deg);
    }
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}

@media (max-width: 768px) {
    .rotating-circle {
        top: auto;
        bottom: -60px;
        right: 50%;
        transform: translateX(50%);
    }
    
    @keyframes rotate {
        from {
            transform: translateX(50%) rotate(0deg);
        }
        to {
            transform: translateX(50%) rotate(360deg);
        }
    }
}

/* Center the section header for about section */
.about .section-header {
    text-align: center;
    margin-bottom: 50px;
}

.about .section-header p {
    font-size: 2rem;
    font-weight: 600;
    margin-top: 10px;
    color: var(--dark-color);
}

/* Mobile Menu Button Styling */
.mobile-menu-btn i {
    color: var(--primary-color);
    font-size: 26px;
}

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

.mobile-menu-btn:hover i {
    color: white;
}

/* Dark mode styling for mobile menu */
.dark-mode .mobile-menu-btn i {
    color: var(--primary-color);
}

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

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

/* Service Image Styling */
.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    transition: transform 0.5s ease;
}

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

/* Dark mode styling for service images */
.dark-mode .service-image img {
    filter: brightness(0.85);
}

/* Portfolio card enhancements */
.portfolio-item {
    position: relative;
    overflow: visible;
}

/* Add decorative corner elements to portfolio cards - visible by default */
.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;
    }
}

/* Portfolio Item Styling Enhancements */
.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-info {
    transform: translateY(0);
    padding: 20px;
    width: 100%;
}

/* Enhanced hover effect for desktop */
.portfolio-item:hover .portfolio-overlay {
    height: 65%;
    background: linear-gradient(to top, rgba(0, 51, 102, 0.98) 0%, rgba(0, 51, 102, 0.85) 60%, rgba(0, 51, 102, 0.2) 100%);
}

.portfolio-image img {
    transition: transform 0.5s ease, filter 0.5s ease;
    filter: brightness(0.9);
}

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

/* Mobile Portfolio Overlay Adjustments */
@media (max-width: 768px) {
    .portfolio-overlay {
        padding-bottom: 15px;
    }
    
    .portfolio-info {
        padding: 15px;
    }
    
    .portfolio-info h3 {
        font-size: 18px;
        margin-bottom: 5px;
    }
    
    .portfolio-info p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .portfolio-info .btn-sm {
        padding: 6px 14px;
        font-size: 13px;
    }
}

/* Dark Mode Adjustments for Portfolio */
.dark-mode .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 30, 60, 0.98) 0%, rgba(0, 30, 60, 0.85) 50%, rgba(0, 30, 60, 0.2) 100%);
}

.dark-mode .portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(to top, rgba(0, 30, 60, 1) 0%, rgba(0, 30, 60, 0.9) 60%, rgba(0, 30, 60, 0.3) 100%);
}

.dark-mode .portfolio-image img {
    filter: brightness(0.85);
}

.dark-mode .portfolio-item:hover .portfolio-image img {
    filter: brightness(0.8);
}

/* Dark mode button styles */
.dark-mode .portfolio-info .btn-sm {
    background-color: var(--primary-color);
    color: var(--dark-color);
    border-color: var(--primary-color);
}

.dark-mode .portfolio-info .btn-sm:hover {
    color: var(--primary-color);
    background-color: transparent;
}

.dark-mode .portfolio-info .btn-sm:before {
    background-color: var(--dark-color);
}

@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;
    }
}

/* Hero circles positioning */
.contact-hero {
    position: relative;
    overflow: hidden;
    background-color: #002147; /* Dark blue background to match the screenshot */
    padding: 100px 0 80px;
    color: white;
    margin-top: 0; /* Ensure no gap at the top */
}

/* Add a curved bottom edge to the hero section */
.contact-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;
}

.hero-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lower z-index to ensure it's behind the content */
    pointer-events: none; /* Allows clicks to pass through to elements below */
}

.contact-hero-content {
    position: relative;
    z-index: 2; /* Higher z-index to ensure it's above the circles */
    text-align: center;
}

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

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

.contact-hero .highlight {
    color: #F7941D; /* Orange color to match the screenshot */
}

.circle-element {
    position: absolute;
}

.circle-large {
    top: 10%;
    right: 5%;
    width: 300px;
    height: 300px;
}

.circle-medium {
    bottom: 15%;
    right: 20%;
    width: 200px;
    height: 200px;
}

.circle-small.circle-1 {
    top: 30%;
    left: 15%;
    width: 100px;
    height: 100px;
    animation: float 6s ease-in-out infinite;
}

.circle-small.circle-2 {
    bottom: 25%;
    left: 25%;
    width: 80px;
    height: 80px;
    animation: float 8s ease-in-out infinite reverse;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 0 60px;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-hero p {
        font-size: 1rem;
    }
    
    .circle-large {
        width: 200px;
        height: 200px;
        right: -50px;
    }
    
    .circle-medium {
        width: 150px;
        height: 150px;
        right: 10%;
    }
    
    .circle-small.circle-1,
    .circle-small.circle-2 {
        width: 60px;
        height: 60px;
    }
} 