/* 
    Nadiad Tourism Website - Main Stylesheet
    Color Scheme: White, Orange, Sky Blue
    Created: 2025
*/

/* CSS Variables for consistent theming */
:root {
    --primary-orange: #FF6B35;
    --secondary-orange: #FFA500;
    --light-orange: #FFE5D9;
    --primary-blue: #87CEEB;
    --secondary-blue: #4A90E2;
    --light-blue: #E6F3FF;
    --dark-blue: #2C5282;
    --white: #FFFFFF;
    --off-white: #F9FAFB;
    --gray-light: #E5E7EB;
    --gray: #6B7280;
    --gray-dark: #374151;
    --black: #111827;
    --success: #10B981;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--gray-dark);
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 50%, var(--light-orange) 100%);
    background-attachment: fixed;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--black);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin: 2rem 0;
}

h2 {
    font-size: 2rem;
    color: var(--dark-blue);
    border-left: 4px solid var(--primary-orange);
    padding-left: 1rem;
    margin: 2rem 0 1rem;
}

h3 {
    font-size: 1.5rem;
    color: var(--secondary-blue);
    margin: 1.5rem 0 1rem;
}

h4 {
    font-size: 1.25rem;
    color: var(--gray-dark);
}

p {
    margin-bottom: 1rem;
    text-align: justify;
    line-height: 1.8;
    color: var(--gray-dark);
}

a {
    color: var(--secondary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-orange);
    text-decoration: underline;
}

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

/* Header Styles */
header {
    background: linear-gradient(135deg, var(--white) 0%, rgba(135, 206, 235, 0.1) 100%);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    padding: 1rem 0;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

nav li {
    position: relative;
}

nav a {
    color: var(--gray-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
}

nav a:hover, nav a.active {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

.content-section {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-light);
}

/* Image Styles */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin: 2rem 0;
    box-shadow: var(--shadow-xl);
}

.content-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    color: var(--white);
    padding: 1rem;
    text-align: center;
    font-weight: 500;
}

/* Cards and Features */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-blue) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-orange);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--white);
    font-size: 1.5rem;
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* Blockquotes */
blockquote {
    background: linear-gradient(135deg, var(--light-orange) 0%, var(--light-blue) 100%);
    border-left: 4px solid var(--primary-orange);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    font-style: italic;
    color: var(--gray-dark);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--white);
    box-shadow: var(--shadow-md);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%);
    color: var(--white);
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-light);
}

tr:hover {
    background: var(--light-blue);
}

/* Contact Form Styles */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

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

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

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-light);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

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

button, .btn {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--secondary-blue) 100%);
    color: var(--white);
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
}

button:hover, .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

button:active, .btn:active {
    transform: translateY(0);
}

/* Alert Messages */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    border: 1px solid;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--error);
    color: var(--error);
}

/* Footer Styles */
footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--gray-dark) 100%);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 3rem;
}

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

.footer-section h4 {
    color: var(--primary-orange);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--white);
    text-align: left;
}

.footer-section ul {
    list-style: none;
    margin-left: 0;
}

.footer-section a {
    color: var(--white);
    opacity: 0.9;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-orange);
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.footer-bottom p {
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-bottom a {
    color: var(--primary-orange);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-image {
        height: 250px;
    }
    
    .feature-grid,
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    header, footer, nav {
        display: none;
    }
    
    main {
        padding: 0;
    }
    
    .content-section {
        box-shadow: none;
        border: 1px solid #000;
    }
}