/* Professional Corporate Stylesheet - JetCore Engineering */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.01em;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    line-height: 1.7;
}

/* Navigation */
nav {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

/* Navigation horizontal scroll on mobile */
nav .overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: #1a2942 transparent;
}

nav .overflow-x-auto::-webkit-scrollbar {
    height: 3px;
}

nav .overflow-x-auto::-webkit-scrollbar-track {
    background: transparent;
}

nav .overflow-x-auto::-webkit-scrollbar-thumb {
    background: #1a2942;
    border-radius: 2px;
}

nav .overflow-x-auto::-webkit-scrollbar-thumb:hover {
    background: #2a3952;
}

/* Buttons and Links */
a {
    transition: all 0.2s ease;
}

button {
    transition: all 0.2s ease;
    cursor: pointer;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Form Elements */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

input,
textarea,
select {
    transition: all 0.2s ease;
}

/* Hover Effects */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* Loading State */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.8s linear infinite;
}

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

/* Fade In Animation */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Mobile Menu */
#mobile-menu {
    transition: max-height 0.3s ease-in-out;
}

/* Professional Card Hover */
.card-professional {
    transition: all 0.3s ease;
}

.card-professional:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Subtle Divider */
.divider-subtle {
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

/* Text Selection */
::selection {
    background: #1a2942;
    color: #ffffff;
}

::-moz-selection {
    background: #1a2942;
    color: #ffffff;
}

/* Scrollbar Styling (Webkit) */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f7fafc;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Image Loading */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    nav,
    footer,
    #mobile-menu-btn {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: #000;
    }
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #1a2942;
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
