/* MGC Safety Nets - Main Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --accent-color: #00cc66;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header Styles */
.header {
    background: #ffffff;
    color: #1a1a2e;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.logo h1 {
    width: 180px;
    height: 48px;
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    text-indent: -9999px;
    overflow: hidden;
}

.tagline {
    display: none;
}

/* Quick Contact Form */
.quick-contact {
    background: var(--gradient-1);
    padding: 60px 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.quick-contact::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.quick-contact h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

.contact-form input:hover,
.contact-form select:hover,
.contact-form textarea:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: white;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 5px 25px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.8);
}

.submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #ff6600 0%, #ff3300 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 102, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(255, 102, 0, 0.5);
    background: linear-gradient(135deg, #ff7700 0%, #ff4400 100%);
}

.submit-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* Service page header */
.service-hero {
  padding: 48px 0 28px;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: #fff;
}
.service-hero .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}
.service-hero .breadcrumb a,
.service-hero .breadcrumb span {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255,255,255,0.3);
  color: #fff;
  text-decoration: none;
  transition: all 0.3s ease;
}
.service-hero .breadcrumb a:hover { 
  background: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Highlights Section */
.highlights {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.highlights h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.highlight-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.5s ease;
}

.highlight-card:hover::before {
    left: 100%;
}

.highlight-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px rgba(102, 126, 234, 0.25);
    border-color: rgba(102, 126, 234, 0.3);
}

.highlight-card .icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.highlight-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.highlight-card p {
    color: #666;
    line-height: 1.8;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.about-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #555;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.btn-primary {
    display: inline-block;
    padding: 15px 40px;
    background: var(--gradient-1);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 20px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: var(--light-color);
}

.services-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

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

.service-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

.service-card h3 {
    padding: 20px;
    font-size: 22px;
    color: var(--dark-color);
}

.service-card p {
    padding: 0 20px 20px;
    color: #666;
}

.btn-secondary {
    display: block;
    margin: 0 20px 20px;
    padding: 12px;
    background: var(--gradient-2);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(245, 87, 108, 0.4);
}

/* Gallery Preview */
.gallery-preview {
    padding: 80px 0;
    background: white;
}

.gallery-preview h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--dark-color);
}

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

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.gallery-preview .btn-primary {
    display: block;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
}

/* Reviews Section */
.reviews-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.reviews-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.reviews-section .container {
    position: relative;
    z-index: 1;
}

.reviews-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

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

.review-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.review-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

.stars {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.review-card p {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.8;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.review-card h4 {
    font-size: 20px;
    margin-bottom: 5px;
    font-weight: 700;
    color: white;
}

.review-card span {
    font-size: 14px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.8);
}

.reviews-section .btn-primary {
    display: block;
    text-align: center;
    max-width: 300px;
    margin: 0 auto;
    background: white;
    color: #1e3c72;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.reviews-section .btn-primary:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--dark-color);
    color: rgb(5, 48, 128);
}

.contact-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.contact-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    transition: var(--transition);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.contact-item h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background: #ffffff;
    color: #1a1a2e;
    padding: 50px 0 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

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

.footer-col h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

/* Replace first footer column heading with logo image */
.footer .footer-content .footer-col:first-child h3 {
    width: 180px;
    height: 48px;
    background-image: url('../img/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left center;
    text-indent: -9999px;
    overflow: hidden;
}

.footer-col p {
    line-height: 1.8;
    color: #555;
}

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

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: #555;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .quick-contact {
        padding: 40px 0;
    }
    
    .quick-contact h2 {
        font-size: 26px;
        margin-bottom: 25px;
    }
    
    .contact-form {
        padding: 25px 20px;
        max-width: 100%;
        border-radius: 15px;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 12px;
        font-size: 15px;
    }
    
    .contact-form textarea {
        min-height: 80px;
    }
    
    .submit-btn {
        padding: 14px;
        font-size: 16px;
    }
    
    .service-hero {
        padding: 30px 0 20px;
    }
    
    .service-hero .breadcrumb {
        gap: 4px;
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .service-hero .breadcrumb a,
    .service-hero .breadcrumb span {
        padding: 3px 8px;
        font-size: 11px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .services-grid,
    .highlight-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .header .container {
        flex-direction: initial;
        text-align: center;
    }
    
    .logo h1 {
        width: 150px;
        height: 44px;
    }
    
    .highlights h2,
    .about-section h2,
    .services-section h2,
    .gallery-preview h2,
    .reviews-section h2,
    .contact-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .quick-contact {
        padding: 30px 0;
    }
    
    .quick-contact h2 {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .contact-form {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    .submit-btn {
        padding: 12px;
        font-size: 15px;
    }
    
    .service-hero {
        padding: 25px 0 15px;
    }
    
    .service-hero .breadcrumb {
        gap: 3px;
        padding: 5px 6px;
        font-size: 11px;
    }
    
    .service-hero .breadcrumb a,
    .service-hero .breadcrumb span {
        padding: 2px 6px;
        font-size: 6px;
    }
    
    .highlights,
    .about-section,
    .services-section,
    .gallery-preview,
    .reviews-section,
    .contact-section {
        padding: 40px 0;
    }
    
    .highlights h2,
    .about-section h2,
    .services-section h2 {
        font-size: 24px;
    }
}