/* Sanowa.net Website - Complete CSS Stylesheet */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

/* ============================================================================
   NAVIGATION STYLES
   ============================================================================ */

nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(to right, #1a3a52 0%, #2d5a7b 100%);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

nav .max-w-7xl {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

nav .flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

nav a.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

nav a.logo:hover {
    transform: scale(1.05);
}

nav a.logo img {
    height: 3rem;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #fbbf24;
}

nav a.active {
    color: #fbbf24;
    background-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   HERO SECTION
   ============================================================================ */

.hero-section {
    background: linear-gradient(135deg, #1a3a52 0%, #2d5a7b 50%, #1a3a52 100%);
    background-image: url('images/AI_Banner1.jpeg');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-section > div {
    position: relative;
    z-index: 10;
    max-width: 48rem;
    animation: fadeInUp 0.8s ease-out;
}

.hero-section h1 {
    font-size: 3.75rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    line-height: 1.6;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .button-group {
        flex-direction: row;
    }
}

/* ============================================================================
   BUTTONS
   ============================================================================ */

button, .btn {
    padding: 0.75rem 2.5rem;
    font-size: 1.125rem;
    font-weight: bold;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

button:active, .btn:active {
    transform: scale(0.95);
}

.btn-red {
    background-color: #ef4444;
    color: white;
}

.btn-red:hover {
    background-color: #dc2626;
}

.btn-blue {
    background-color: #3b82f6;
    color: white;
    border: 2px solid white;
}

.btn-blue:hover {
    background-color: #2563eb;
}

.btn-yellow {
    background-color: #eab308;
    color: #1f2937;
}

.btn-yellow:hover {
    background-color: #ca8a04;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

section {
    transition: opacity 0.5s ease;
}

.max-w-6xl {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.max-w-3xl {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Page Header Sections */
.page-header {
    background: linear-gradient(to right, #1a3a52 0%, #2d5a7b 100%);
    color: white;
    padding: 3rem 1rem;
}

.page-header h1 {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .page-header h1 {
        font-size: 3rem;
    }
}

.page-header p {
    font-size: 1.25rem;
}

/* ============================================================================
   GRID LAYOUTS
   ============================================================================ */

.grid {
    display: grid;
    gap: 2rem;
}

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

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

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

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

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

/* ============================================================================
   SERVICE CARDS
   ============================================================================ */

.service-card {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    height: 12rem;
    overflow: hidden;
    background-color: #f3f4f6;
}

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

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

.service-card-content {
    padding: 1.5rem;
    background-color: white;
}

.service-card-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.service-card-content p {
    color: #4b5563;
    line-height: 1.6;
}

/* Service Card Colors */
.card-orange {
    border-top: 4px solid #f97316;
}

.card-blue {
    border-top: 4px solid #3b82f6;
}

.card-teal {
    border-top: 4px solid #14b8a6;
}

.card-gray {
    border-top: 4px solid #374151;
}

.card-yellow {
    border-top: 4px solid #eab308;
}

/* ============================================================================
   FORMS
   ============================================================================ */

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

label {
    display: block;
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

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

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

.success-message {
    padding: 0.75rem;
    background-color: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
}

.success-message.hidden {
    display: none;
}

.error-message {
    padding: 0.75rem;
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    border-radius: 0.375rem;
    margin-bottom: 0.75rem;
}

.error-message.hidden {
    display: none;
}

/* ============================================================================
   CARDS AND BOXES
   ============================================================================ */

.card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card-header {
    background-color: #f3f4f6;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 1.5rem;
}

/* ============================================================================
   BACKGROUND COLORS
   ============================================================================ */

.bg-white {
    background-color: white;
}

.bg-gray-50 {
    background-color: #f9fafb;
}

.bg-gray-100 {
    background-color: #f3f4f6;
}

.bg-gray-900 {
    background-color: #111827;
}

/* ============================================================================
   TEXT STYLES
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    line-height: 1.2;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.text-white {
    color: white;
}

.text-gray-700 {
    color: #374151;
}

.text-gray-800 {
    color: #1f2937;
}

.text-blue-600 {
    color: #2563eb;
}

.leading-relaxed {
    line-height: 1.75;
}

/* ============================================================================
   SPACING
   ============================================================================ */

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.py-12 {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-12 {
    margin-top: 3rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-8 {
    gap: 2rem;
}

.gap-12 {
    gap: 3rem;
}

/* ============================================================================
   FLEX LAYOUTS
   ============================================================================ */

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

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

.justify-between {
    justify-content: space-between;
}

/* ============================================================================
   IMAGES
   ============================================================================ */

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

img[src*="multiple_offerings.png"]:hover {
    animation: slowRotate 2s ease-in-out forwards;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

footer {
    background-color: #111827;
    color: #9ca3af;
    text-align: center;
    padding: 2rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
}

/* ============================================================================
   ANIMATIONS
   ============================================================================ */

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

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

@keyframes slowRotate {
    from {
        transform: rotateY(0deg);
    }
    to {
        transform: rotateY(360deg);
    }
}

.animate-fade-in {
    animation: fadeInUp 0.8s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 1rem;
        min-height: 400px;
    }

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

    .hero-section p {
        font-size: 1rem;
    }

    nav .flex {
        height: 5.5rem;
    }

    nav ul {
        gap: 1rem;
        font-size: 0.875rem;
    }

    h1 {
        font-size: 1.875rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.w-full {
    width: 100%;
}

.max-w-full {
    max-width: 100%;
}

.h-auto {
    height: auto;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    nav, footer {
        display: none;
    }
}
