@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* Navigation */
.active-nav {
    color: #06b6d4; /* teal-500 */
    font-weight: 600;
    position: relative;
}

.active-nav::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #06b6d4; /* teal-500 */
}

/* Hero Background */
.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('https://images.unsplash.com/photo-1518770660439-4636190af475?ixlib=rb-4.0.3');
    background-size: cover;
    background-position: center;
}

/* Service Icons */
.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: #06b6d4; /* teal-500 */
}

/* Timeline (in About section) */
.timeline-container {
    position: relative;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 23px; /* Adjust to align with center of marker */
    top: 12px; /* Adjust start position */
    height: calc(100% - 24px); /* Adjust height */
    width: 2px;
    background-color: #0891b2; /* teal-600 */
}

.timeline-item {
    position: relative;
    padding-left: 64px; /* space for marker */
    padding-bottom: 2rem; /* space between items */
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: 0;
    top: 0;
    /* Styles are applied via Tailwind in HTML */
}


/* Basic mobile nav link styling */
.nav-link-mobile {
    display: block;
    padding: 0.7rem 0; /* py-2 */
    transition: color 0.3s ease;
    color: #374151; /* text-gray-700 */
}

.nav-link-mobile:hover {
   color: #0891b2; /* text-teal-600 */
}

/* --- Page Section Styling & Transitions --- */
.page-section {
   /* Sections are visible by default, JS will hide them */
   display: block;
   opacity: 1;
   transition: opacity 0.5s ease-in-out; /* Standard transition */
}

.page-section.hidden {
   /* Styles for hidden sections */
   opacity: 0;
   position: absolute; /* Take out of flow */
   top: -9999px;      /* Move off-screen */
   left: -9999px;
   pointer-events: none; /* Prevent interaction when hidden */
   /* display: none; Alternative, but can interfere with transitions */
}

/* Fade-in Animation (Applied when section becomes visible) */
@keyframes fadeIn {
   from { opacity: 0; }
   to { opacity: 1; }
}
.fade-in-active {
   animation: fadeIn 0.5s ease-in-out forwards;
}

/* Optional: Fade-out (Can be applied before hiding if needed, JS handles timing) */
@keyframes fadeOut {
   from { opacity: 1; }
   to { opacity: 0; }
}
.fade-out-active {
    animation: fadeOut 0.5s ease-in-out forwards;
}

.solid-border {
    position: relative;
    border: 1px solid #e5e7eb; /* gray-200 */
    transition: border-color 0.3s ease;
}

.solid-border:hover {
    border-color: #06b6d4; /* teal-500 */
}

/* Form Styling */
#contactForm input:required:invalid,
#contactForm select:required:invalid,
#contactForm textarea:required:invalid {
    /* You can add subtle styles for invalid fields before submission attempt if needed */
    /* Example: border-color: #fecaca; */ /* light red */
}

#contactForm input.invalid,
#contactForm select.invalid,
#contactForm textarea.invalid {
   border-color: #ef4444; /* red-500 */
   /* background-color: #fee2e2; */ /* red-50 */
}

.form-error-message {
    display: none; /* Hidden by default */
}

.form-error-message.visible {
    display: block; /* Shown by JS */
}

#form-status p {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem; /* rounded-md */
    margin-top: 1rem;
}

#form-status .success {
    background-color: #d1fae5; /* green-100 */
    color: #065f46; /* green-800 */
    border: 1px solid #6ee7b7; /* green-300 */
}

#form-status .error {
     background-color: #fee2e2; /* red-100 */
    color: #991b1b; /* red-800 */
    border: 1px solid #fca5a5; /* red-300 */
}

/* Footer Social Icons */
.social-icon {
    background-color: #4b5563; /* gray-600 */
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 9999px; /* rounded-full */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}
.social-icon:hover {
    background-color: #06b6d4; /* teal-500 */
}

/* Scroll margin to account for sticky header */
section[id] {
    scroll-margin-top: 80px; /* Adjust as needed */
}