* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a3e6f;
    --secondary-color: #c41e3a;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    padding: 0 15px;
    margin: 0 auto;
}

/* Tablet and up */
@media (min-width: 768px) {
    .container {
        max-width: 750px;
        padding: 0 20px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 970px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Navigation - Mobile First */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* Mobile Logo */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .defence {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-text .solutions {
    font-size: 0.8rem;
    color: var(--secondary-color);
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Hamburger Menu */
.hamburger {
    display: block;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-color);
    z-index: 1001;
}

/* Mobile Menu */
.nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    list-style: none;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-menu.active {
    display: flex;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px 30px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover {
    background: var(--secondary-color);
    color: var(--white);
}

/* Hero Section - Mobile Optimized */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 100%;
}

.hero-content h1 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding: 0 10px;
}

.hero-content p {
    font-size: 1rem;
    margin-bottom: 2rem;
    padding: 0 20px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 20px;
}

.btn {
    display: block;
    padding: 1rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--white);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

/* Info Cards - Mobile Optimized */
.company-info {
    padding: 2rem 0;
    background: var(--light-bg);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 10px;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
}

.info-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
}

.info-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.info-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

/* Mission Vision - Mobile Optimized */
.mission-vision {
    padding: 2rem 0;
}

.mv-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 10px;
}

.mission, .vision {
    padding: 1.8rem;
    border-radius: 12px;
    color: var(--white);
}

.mission {
    background: var(--primary-color);
}

.vision {
    background: var(--secondary-color);
}

.mission h2, .vision h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.mission h2::after, .vision h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: rgba(255,255,255,0.5);
}

.mission p, .vision p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Services Section - Mobile Optimized */
.services-preview, .services-full {
    padding: 2rem 0;
}

.section-title {
    font-size: 1.8rem;
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding: 0 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 10px;
}

.service-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-3px);
    border-bottom-color: var(--secondary-color);
}

.service-card i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--primary-color);
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* Clients Page - Mobile Optimized */
.clients-list {
    padding: 2rem 0;
}

.clients-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 10px;
}

.client-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--secondary-color);
}

.client-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.client-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

.client-card i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Contact Page - Mobile Optimized */
.contact-section {
    padding: 2rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 10px;
}

.contact-info {
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 12px;
}

.contact-info h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: center;
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.3rem;
    color: var(--secondary-color);
    min-width: 30px;
}

.info-item h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.3rem;
}

.info-item p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.contact-form {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.contact-form .btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-size: 1rem;
    padding: 1rem;
}

/* Footer - Mobile Optimized */
footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 2rem 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 15px;
}

.footer-info h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-info p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    line-height: 1.5;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.95rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.footer-contact p {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    color: var(--secondary-color);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 15px 0;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.page-header h1 {
    font-size: 1.8rem;
    padding: 0 15px;
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tablet Styles (576px and up) */
@media (min-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .btn {
        min-width: 180px;
        display: inline-block;
    }
    
    .info-grid,
    .services-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
    
    .nav-menu {
        display: flex;
        position: static;
        height: auto;
        width: auto;
        background: transparent;
        flex-direction: row;
        gap: 1.5rem;
        animation: none;
    }
    
    .nav-menu a {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
    
    .nav-menu a:hover {
        background: transparent;
        color: var(--secondary-color);
    }
    
    .logo-img {
        height: 60px;
    }
    
    .logo-text .defence {
        font-size: 1.5rem;
    }
    
    .logo-text .solutions {
        font-size: 1.2rem;
    }
    
    .hero {
        padding: 5rem 0;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .info-grid,
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-grid {
        grid-template-columns: 1fr 2fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}