/* styles.css - Protexxa-inspired Dark Theme */
:root {
    /* Updated Color Scheme */
    --primary: #6bd425;          /* Vibrant green */
    --primary-dark: #58b020;
    --secondary: #f8f9fa;        /* Light text */
    --accent: #4a6fa5;           /* Blue accent */
    --dark-bg: #0a0e17;          /* Deep navy background */
    --darker-bg: #070a12;        /* Darker sections */
    --card-bg: #131b2b;          /* Card background */
    --text: #e6e6e6;             /* Main text */
    --text-light: #b8b8b8;       /* Secondary text */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    
    /* Protexxa-style background with multiple layers */
    background-color: var(--dark-bg);
    background-image: 
        /* Subtle noise texture */
        url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjMDAwMDAwIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDBMNCA0Wk00IDBMMCA0WiIgc3Ryb2tlLXdpZHRoPSIwLjUiIHN0cm9rZT0iIzAwMDAwMCI+PC9wYXRoPgo8L3N2Zz4='),
        /* Radial gradients for depth */
        radial-gradient(circle at 20% 30%, rgba(29, 78, 137, 0.15) 0%, transparent 25%),
        radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 25%);
    background-attachment: fixed;
}

/* Remove all link underlines */
a {
    text-decoration: none !important;
}

.logo-img {
    height: 100px; /* Adjust based on your logo */
    width: auto;
    transition: all 0.3s ease;
}

.logo-img:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #0a0e17; /* Dark text on bright button */
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(107, 212, 37, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

a[href^="tel"] {
    color: inherit !important;
    text-decoration: none !important;
    cursor: default !important;
    pointer-events: none !important;
}

/* Sections */
.section {
    padding: 80px 0;
    background-color: rgba(10, 14, 23, 0.85);
    backdrop-filter: blur(8px);
    position: relative;
}

/* Add grid overlay to sections */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--secondary);
    margin-bottom: 15px;
    position: relative;
}

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

.section-title p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.bg-light {
    background-color: rgba(19, 27, 43, 0.85);
}

/* Header */
header {
    background-color: rgba(10, 14, 23, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    position: fixed;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

header.scrolled {
    padding: 10px 0;
}

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

.logo-text {
    display: none;
}

.logo-text h1 {
    font-size: 28px;
    color: var(--secondary);
}

.logo-text span {
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    padding: 210px 0 100px;
    background: linear-gradient(135deg, rgba(10, 14, 23, 0.95) 0%, rgba(19, 27, 43, 0.95) 100%),
                url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

/* Hero grid overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    position: relative;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--secondary);
}

.hero-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.about-features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.feature-item i {
    color: var(--primary);
    margin-right: 10px;
    font-size: 18px;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(107, 212, 37, 0.3);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(107, 212, 37, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    font-size: 30px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary);
    color: var(--dark-bg);
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--secondary);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Contact Section */
.contact-container {
    display: flex;
    gap: 40px;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary);
}

.info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary);
    margin-right: 15px;
    font-size: 20px;
    margin-top: 3px;
}

.contact-form {
    flex: 1;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-size: 16px;
    transition: all 0.3s ease;
    color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(107, 212, 37, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
}

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

/* Map link styling */
.map-link {
    color: var(--text) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
    cursor: pointer;
}

.map-link:hover {
    color: var(--primary) !important;
}

/* Prevent iOS from adding its own styling */
a[href^="https://maps"] {
    -webkit-tap-highlight-color: transparent;
}

.phone-number {
    color: var(--text) !important;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.phone-number.copied {
    color: var(--primary) !important;
    animation: flash 0.5s;
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.clickable-email {
    color: var(--text) !important;
    cursor: pointer;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.clickable-email.copied {
    color: var(--primary) !important;
    animation: flash 0.5s;
}

/* Email container styling */
.clickable-email {
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Copy/check icon styling */
.copy-icon {
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.clickable-email:hover .copy-icon {
    color: var(--primary);
}

/* Feedback states */
.clickable-email.copied {
    color: var(--primary);
}

.clickable-email.copied .copy-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.copy-item {
    color: var(--text);
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.copy-icon {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none; /* Prevents icon from blocking text clicks */
}

.copy-item:hover .copy-icon {
    opacity: 1;
    color: var(--primary);
}

/* Copied state */
.copy-item.copied {
    color: var(--primary);
}

.copy-item.copied .copy-icon {
    color: var(--primary);
    opacity: 1;
}

.copy-item {
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.copy-icon {
    font-size: 14px;
    color: var(--text-light);
    opacity: 0;
    transition: all 0.3s ease;
}

.copy-item:hover .copy-icon {
    opacity: 1;
    color: var(--primary);
}

/* Copied State */
.copy-item.copied {
    color: var(--primary);
}

.copy-item.copied .copy-icon {
    color: var(--primary);
    opacity: 1;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-about .logo-text h2 {
    color: white;
    margin-bottom: 15px;
}

.footer-about p {
    opacity: 0.8;
    margin-bottom: 20px;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.footer-links h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
    position: relative;
    padding-bottom: 10px;
}

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

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links ul li a i {
    margin-right: 8px;
    font-size: 14px;
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 5px;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    .contact-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 0;
    }
    
    .header-container {
        flex-direction: column;
    }
    
    nav {
        margin-top: 20px;
    }
    
    nav ul li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .hero {
        padding: 210px 0 80px;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-title h2 {
        font-size: 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 5px 10px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .btn {
        width: 100%;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Message Box Styles - Theme Matched */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 18px 25px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    color: var(--text);
    display: flex;
    align-items: center;
    z-index: 10000;
    transform: translateX(150%);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    max-width: 350px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.message-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
}

.message-box.show {
    transform: translateX(0);
}

.message-box.success {
    background-color: rgba(19, 27, 43, 0.9);
    border-left: 4px solid var(--primary);
}

.message-box.success::before {
    background: var(--primary);
}

.message-box.error {
    background-color: rgba(43, 15, 15, 0.9);
    border-left: 4px solid #ff4d4d;
}

.message-box.error::before {
    background: #ff4d4d;
}

.message-box i {
    margin-right: 15px;
    font-size: 22px;
}

.message-box.success i {
    color: var(--primary);
}

.message-box.error i {
    color: #ff4d4d;
}

.message-box .close-btn {
    margin-left: 20px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    font-size: 16px;
}

.message-box .close-btn:hover {
    opacity: 1;
}

/* Add the grid overlay effect to match other sections */
.message-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}
