/* ===========================================
   3D PRINT & ENGRAVE PRO - MAIN STYLESHEET
   Color Scheme: Dark Blue (#1a2a4a), Silver (#c0c0c0), Red (#dc3545)

   IMAGE OPTIMIZATION TIPS:
   - Use WebP format for best compression (fallback to JPG/PNG)
   - Gallery images: 800x600px for thumbnails, 1920x1080px for full size
   - Hero images: 1920x1080px minimum
   - Use srcset for responsive images
   - Compress images with tools like TinyPNG or Squoosh
   - Consider lazy loading for gallery images (loading="lazy")
   =========================================== */

/* CSS Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #1a2a4a;
    --primary-darker: #0f1a2e;
    --silver: #c0c0c0;
    --silver-light: #e8e8e8;
    --red: #dc3545;
    --red-dark: #b02a37;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* ===========================================
   HEADER & NAVIGATION
   =========================================== */
header {
    background: var(--primary-dark);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 700;
}

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

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--red), var(--silver));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-image {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--silver-light);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: var(--red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: var(--transition);
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(192,192,192,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text h1 span {
    color: var(--red);
}

.hero-text p {
    font-size: 1.25rem;
    color: var(--silver);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--silver);
}

.btn-secondary:hover {
    background: var(--silver);
    color: var(--primary-dark);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--silver) 0%, var(--silver-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '3D';
    position: absolute;
    font-size: 8rem;
    font-weight: 900;
    color: rgba(26, 42, 74, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Floating badges */
.floating-badge {
    position: absolute;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.floating-badge.badge-1 {
    top: -20px;
    right: -20px;
    animation-delay: 0s;
}

.floating-badge.badge-2 {
    bottom: -20px;
    left: -20px;
    animation-delay: 1.5s;
}

.floating-badge.badge-3 {
    bottom: -20px;
    right: -20px;
    animation-delay: 3s;
}

.floating-badge h4 {
    color: var(--primary-dark);
    font-size: 0.9rem;
}

.floating-badge p {
    color: var(--red);
    font-weight: 700;
}

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

/* ===========================================
   SECTIONS - GENERAL
   =========================================== */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

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

.section-header .underline {
    width: 80px;
    height: 4px;
    background: var(--red);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===========================================
   SERVICES PREVIEW (Homepage)
   =========================================== */
.services-preview {
    background: var(--silver-light);
}

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

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

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

.service-card-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--silver);
    position: relative;
    overflow: hidden;
}

.service-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(26, 42, 74, 0.8), transparent);
}

.service-card-content {
    padding: 2rem;
}

.service-card-content h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-card-content p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-card-content .btn {
    width: 100%;
    text-align: center;
}

/* ===========================================
   FEATURES SECTION
   =========================================== */
.features {
    background: var(--primary-dark);
    color: var(--white);
}

.features .section-header h2 {
    color: var(--white);
}

.features .section-header p {
    color: var(--silver);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

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

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--silver);
    font-size: 0.95rem;
}

/* ===========================================
   GALLERY PAGE STYLES
   =========================================== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-darker), var(--primary-dark));
    padding: 8rem 0 4rem;
    text-align: center;
    color: var(--white);
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.page-hero p {
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto;
}

/* Gallery Filter Buttons */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--primary-dark);
    background: transparent;
    color: var(--primary-dark);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-dark);
    color: var(--white);
}

/* Gallery Subcategory Filters */
.gallery-subfilters {
    margin-bottom: 2rem;
}

.subfilter-group {
    display: none; /* Hidden by default, shown via JavaScript */
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem;
    background: rgba(26, 42, 74, 0.05);
    border-radius: 10px;
    margin-bottom: 1rem;
}

.subfilter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--silver);
    background: var(--white);
    color: var(--text-dark);
    border-radius: 20px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    transition: var(--transition);
}

.subfilter-btn:hover {
    background: var(--silver-light);
    border-color: var(--primary-dark);
}

.subfilter-btn.active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* Gallery Grid
   TO UPDATE GALLERY:
   1. Add new images to the /images folder
   2. Copy a gallery-item div and update the src, alt, and data-category
   3. Categories: "3d-printing", "fiber-laser", "furniture", "custom"
   4. Subcategories are defined in data-subcategory attribute
*/
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 42, 74, 0.9), transparent);
    opacity: 0;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.gallery-overlay p {
    color: var(--silver);
    font-size: 0.9rem;
}

/* Placeholder image style */
.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--silver-light) 0%, var(--silver) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.placeholder-image .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    opacity: 0.5;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 1rem;
}

/* ===========================================
   SERVICES PAGE STYLES
   =========================================== */
.service-detail {
    padding: 4rem 0;
}

.service-detail:nth-child(even) {
    background: var(--silver-light);
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-detail:nth-child(even) .service-detail-content {
    direction: rtl;
}

.service-detail:nth-child(even) .service-detail-content > * {
    direction: ltr;
}

.service-detail-text h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.service-detail-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-detail-text ul {
    margin-bottom: 1.5rem;
}

.service-detail-text li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-dark);
}

.service-detail-text li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

.service-image {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--silver);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Pricing Cards */
.pricing-section {
    background: var(--primary-dark);
    padding: 4rem 0;
}

.pricing-section .section-header h2 {
    color: var(--white);
}

.pricing-section .section-header p {
    color: var(--silver);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 3px solid var(--red);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card h3 {
    color: var(--primary-dark);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.pricing-card .price {
    font-size: 2.5rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card .price span {
    font-size: 1rem;
    color: var(--text-light);
}

.pricing-card ul {
    margin-bottom: 1.5rem;
    text-align: left;
}

.pricing-card li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--silver-light);
    color: var(--text-dark);
}

/* ===========================================
   ABOUT PAGE STYLES
   =========================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    height: 500px;
    background: linear-gradient(135deg, var(--silver-light), var(--silver));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
    color: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

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

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--silver-light);
    border-radius: 10px;
}

.stat-item h3 {
    font-size: 2rem;
    color: var(--red);
}

.stat-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Team Section */
.team-section {
    background: var(--silver-light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.team-member-image {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--silver);
}

.team-member-info {
    padding: 1.5rem;
}

.team-member-info h3 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.team-member-info p {
    color: var(--red);
    font-weight: 500;
}

/* ===========================================
   CONTACT PAGE STYLES
   =========================================== */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-size: 2rem;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.contact-info > p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-dark);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--white);
    flex-shrink: 0;
}

.contact-item-text h4 {
    color: var(--primary-dark);
    margin-bottom: 0.25rem;
}

.contact-item-text p {
    color: var(--text-light);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: var(--silver-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--red);
    color: var(--white);
}

/* Contact Form */
.contact-form-container {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.contact-form h3 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--silver-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-submit {
    width: 100%;
    padding: 1rem 2rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
}

.form-submit:disabled {
    background: var(--silver);
    cursor: not-allowed;
    transform: none;
}

.form-message {
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: none;
}

.form-message.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Map placeholder */
.map-section {
    background: var(--silver-light);
    padding: 0;
}

.map-placeholder {
    height: 400px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--silver);
    font-size: 1.25rem;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-section .btn-secondary {
    border-color: var(--white);
}

.cta-section .btn-secondary:hover {
    background: var(--white);
    color: var(--red);
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    background: var(--primary-darker);
    color: var(--silver);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand h3 span {
    color: var(--red);
}

.footer-brand p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.footer-column h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

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

.footer-column ul li a:hover {
    color: var(--red);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.9rem;
}

/* ===========================================
   RESPONSIVE DESIGN
   =========================================== */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .service-detail-content,
    .about-content,
    .contact-section {
        grid-template-columns: 1fr;
    }

    .service-detail:nth-child(even) .service-detail-content {
        direction: ltr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile logo optimization */
    .logo-image {
        height: 50px;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-header h2,
    .page-hero h1 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    nav {
        padding: 1rem;
    }

    .hero {
        padding-top: 70px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* ===========================================
   TOOLS PAGE
   =========================================== */
.tools-section {
    padding: 4rem 0;
    background: var(--white);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.tool-card-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tool-card-header h2 {
    color: var(--white);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.tool-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tool-card-body {
    padding: 2rem;
    flex-grow: 1;
}

.tool-description {
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.tool-card-body h4 {
    color: var(--primary-dark);
    margin: 1.5rem 0 1rem 0;
    font-size: 1rem;
}

.tool-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tool-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text);
}

.tool-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: bold;
}

.tool-card-footer {
    padding: 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    text-align: center;
}

.tool-card-footer .btn {
    width: 100%;
    margin-bottom: 1rem;
}

.tool-tech {
    font-size: 0.85rem;
    color: var(--text);
    opacity: 0.7;
    margin: 0;
}

.tools-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.info-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.info-card h3 {
    color: var(--white);
    margin: 0 0 1rem 0;
    font-size: 1.25rem;
}

.info-card p {
    margin: 0;
    line-height: 1.7;
    opacity: 0.95;
}

/* Responsive adjustments for tools page */
@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .tools-info {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.text-center { text-align: center; }
.text-red { color: var(--red); }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.hidden { display: none; }
