/*
Theme Name: Safram Engineering
Theme URI: https://saframengineeringlimited.com
Author: Safram Engineering Limited
Author URI: https://saframengineeringlimited.com
Description: A modern WordPress theme for Safram Engineering Limited featuring integrated engineering and technology solutions.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: safram
Tags: business, corporate, engineering, technology, custom-header, custom-menu, featured-images
*/

:root {
    --background: 210 40% 98%;
    --foreground: 222 47% 11%;
    --primary: 222 47% 20%;
    --primary-foreground: 210 40% 98%;
    --secondary: 217 33% 17%;
    --accent: 217 91% 60%;
    --accent-glow: 217 91% 70%;
    --muted: 215 20% 65%;
    --muted-foreground: 215 16% 47%;
    --border: 214 32% 91%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    overflow-x: hidden;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.gradient-bg {
    background: linear-gradient(135deg, hsl(222 47% 15%) 0%, hsl(222 47% 20%) 50%, hsl(217 33% 17%) 100%);
}

.grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 4rem 4rem;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.3); opacity: 0.5; }
}

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

.animate-float {
    animation: float 8s ease-in-out infinite;
}

.animate-float-delay {
    animation: float 10s ease-in-out infinite 2s;
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

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

.logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
}

@media (min-width: 768px) {
    .logo-img {
        height: 3.5rem;
    }
}

.nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .nav {
        display: flex;
    }
}

.nav-link {
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: hsl(var(--primary));
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: hsl(var(--accent));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--primary));
    font-weight: 600;
    font-size: 0.875rem;
}

.mobile-menu-btn {
    display: flex;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: hsl(var(--foreground));
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid hsl(var(--border));
}

.mobile-nav.active {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 5rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url('https://images.unsplash.com/photo-1518770660439-4636190af475?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, hsla(222, 47%, 15%, 0.85) 0%, hsla(222, 47%, 20%, 0.8) 50%, hsla(217, 33%, 17%, 0.85) 100%);
}

.hero-bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
}

.hero-bg-circle-1 {
    top: 5rem;
    right: 5%;
    width: 20rem;
    height: 20rem;
    background: hsla(217, 91%, 60%, 0.2);
}

.hero-bg-circle-2 {
    bottom: 5rem;
    left: 5%;
    width: 25rem;
    height: 25rem;
    background: hsla(217, 91%, 50%, 0.15);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: hsla(217, 91%, 85%, 0.9);
    margin-bottom: 2.5rem;
    max-width: 48rem;
    line-height: 1.6;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: white;
    color: hsl(var(--primary));
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.btn-primary:hover {
    background: hsl(var(--background));
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.4);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Section Styles */
.section {
    padding: 5rem 0;
}

.section-gray {
    background: hsl(210 40% 96%);
}

.section-white {
    background: white;
}

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

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

.section-title-light {
    color: white;
}

.section-description {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
    max-width: 48rem;
    margin: 0 auto;
}

.section-description-light {
    color: hsla(217, 91%, 85%, 0.9);
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.about-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid hsl(var(--border));
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px hsla(217, 91%, 60%, 0.25);
    border-color: hsl(var(--accent));
}

.about-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.about-card:hover .about-icon {
    transform: rotate(5deg) scale(1.1);
}

.about-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.about-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.about-card-text {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid hsl(var(--border));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px hsla(217, 91%, 60%, 0.25);
}

.service-image {
    position: relative;
    height: 12rem;
    overflow: hidden;
}

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

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

.service-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, hsla(222, 47%, 15%, 0.9) 0%, transparent 100%);
}

.service-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, hsl(var(--accent)), hsl(var(--accent-glow)));
}

.service-content {
    padding: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 1rem;
}

.service-list {
    list-style: none;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
    margin-bottom: 0.5rem;
}

.service-list li::before {
    content: '•';
    color: hsl(var(--accent));
    font-weight: bold;
}

/* Approach Section */
/* Approach Section with Background Image */
.approach-section {
    position: relative;
    background-image: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=1920&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.approach-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: hsla(222, 47%, 15%, 0.85);
}

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

.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

@media (min-width: 1024px) {
    .approach-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.approach-icon {
    width: 5rem;
    height: 5rem;
    background: hsla(217, 91%, 60%, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid hsla(217, 91%, 60%, 0.3);
}

.approach-item:hover .approach-icon {
    transform: scale(1.1);
    background: hsla(217, 91%, 60%, 0.3);
}

.approach-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: hsl(var(--accent-glow));
}

.approach-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.75rem;
}

.approach-text {
    color: hsla(217, 91%, 85%, 0.8);
}

/* Industries Grid */
.industries-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.industry-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.industry-card:hover {
    transform: translateX(8px);
    border-left-color: hsl(var(--accent));
    box-shadow: 0 10px 25px -10px hsla(217, 91%, 60%, 0.2);
}

.industry-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.1), hsla(217, 91%, 60%, 0.2));
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.industry-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--primary));
}

.industry-title {
    font-weight: 600;
    color: hsl(var(--foreground));
}

/* Why Choose Us */
.why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.why-item:hover {
    background: hsla(217, 91%, 60%, 0.05);
}

.why-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: hsl(var(--accent));
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.why-text {
    font-size: 1.125rem;
    color: hsl(var(--muted-foreground));
}

.why-item-full {
    grid-column: 1 / -1;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.3);
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    background: linear-gradient(135deg, hsla(217, 91%, 60%, 0.1), hsla(217, 91%, 60%, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1);
}

.contact-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: hsl(var(--primary));
}

.contact-title {
    font-weight: 700;
    color: hsl(var(--foreground));
    margin-bottom: 0.5rem;
}

.contact-link {
    color: hsl(var(--primary));
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.contact-link:hover {
    color: hsl(var(--accent));
    text-decoration: underline;
}

/* Footer */
.footer {
    background: hsl(222 47% 11%);
    color: hsl(215 20% 65%);
    padding: 3rem 0 1.5rem;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-heading {
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

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

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

.footer-links a {
    color: hsl(215 20% 65%);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    border-top: 1px solid hsla(215, 20%, 65%, 0.2);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Dot Pattern */
.dot-pattern {
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
}
