/* Global Styles */
:root {
    --primary-color: #c41e83;
    --secondary-color: #7b1fa2;
    --accent-color: #ffc107;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #e9ecef;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--text-dark);
}

.display-4 {
    font-weight: 700;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 12px 24px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-warning {
    background: var(--accent-color);
    border: none;
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

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

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.navbar-nav .nav-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    font-size: 0.9rem;
}

.tagline {
    font-size: 0.95rem;
}

/* Navigation */
.navbar {
    z-index: 9998;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 12px 20px !important;
    margin: 0 5px;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: var(--text-dark) !important;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(196, 30, 131, 0.3);
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10px;
    width: 4px;
    height: 0;
    background: var(--accent-color);
    border-radius: 2px;
    transition: height 0.3s ease;
    transform: translateY(-50%);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    height: 20px;
}

.navbar-toggler {
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(196, 30, 131, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Menu Styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 15px;
        margin-top: 15px;
        padding: 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .navbar-nav .nav-link {
        margin: 5px 0;
        text-align: center;
        border-radius: 15px;
    }
    
    .navbar-nav .nav-link::before {
        display: none;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 80px; /* Account for fixed navbar */
}

.hero-main-title {
    margin-bottom: 2rem;
}

.company-name {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.2rem;
    line-height: 1;
}

.company-subtitle {
    font-size: 2rem;
    font-weight: 400;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    letter-spacing: 0.3rem;
    line-height: 1;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.1rem;
    opacity: 0.95;
}

/* Feature Cards */
.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h5 {
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Hero Buttons */
.hero-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.hero-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.scroll-arrow {
    animation: bounce 2s infinite;
    cursor: pointer;
    font-size: 1.5rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .company-name {
        font-size: 2.5rem;
        letter-spacing: 0.1rem;
    }
    
    .company-subtitle {
        font-size: 1.3rem;
        letter-spacing: 0.1rem;
    }
    
    .hero-tagline {
        font-size: 1.2rem;
    }
    
    .feature-card {
        margin-bottom: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

@media (max-width: 576px) {
    .company-name {
        font-size: 2rem;
    }
    
    .company-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
}
    align-items: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-slider .owl-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

.hero-slider .owl-nav button {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-slider .owl-nav .owl-prev {
    left: 30px;
}

.hero-slider .owl-nav .owl-next {
    right: 30px;
}

.hero-slider .owl-nav button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.hero-slider .owl-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-slider .owl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-slider .owl-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Hero Content Positioning */
.hero-slide .container {
    position: relative;
    z-index: 10;
}

.hero-slide .row {
    position: relative;
    z-index: 10;
}

.hero-slide h1,
.hero-slide p,
.hero-slide .hero-buttons {
    position: relative;
    z-index: 15;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content-full {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    border-radius: 20px;
    padding: 4rem 3rem;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.hero-content-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .hero-content-full {
        padding: 2rem 1.5rem;
        margin: 1rem;
        max-width: none;
    }
    
    .hero-slide h1 {
        font-size: 2rem !important;
    }
    
    .hero-slide .lead {
        font-size: 1rem;
    }
    
    .hero-slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .hero-slider .owl-nav .owl-prev {
        left: 15px;
    }
    
    .hero-slider .owl-nav .owl-next {
        right: 15px;
    }
}

/* Page Headers */
.page-header {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.min-vh-50 {
    min-height: 50vh;
}

/* Cards */
.product-card,
.feature-card,
.value-card,
.research-card,
.team-card,
.category-card {
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
}

.product-card:hover,
.feature-card:hover,
.value-card:hover,
.research-card:hover,
.team-card:hover,
.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-card .product-image {
    overflow: hidden;
    position: relative;
}

.product-card .product-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 102, 204, 0.2));
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-image::before {
    opacity: 1;
}

/* Icons */
.feature-icon,
.value-icon,
.research-icon,
.facility-icon,
.contact-icon {
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon,
.value-card:hover .value-icon,
.research-card:hover .research-icon,
.facility-card:hover .facility-icon {
    transform: scale(1.1) rotateY(180deg);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    background: var(--primary-color);
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    position: relative;
    z-index: 2;
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.timeline-content {
    flex: 1;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 0 20px;
    transition: all 0.3s ease;
}

.timeline-content:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Process Steps */
.research-process {
    position: relative;
}

.process-step {
    position: relative;
}

.step-number {
    position: absolute;
    top: -10px;
    right: 20px;
    background: var(--accent-color);
    color: var(--text-dark);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 2;
}

/* Statistics Counter */
.counter {
    font-weight: 700;
    color: inherit;
}

/* Forms */
.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
}

/* Contact Form */
.contact-form {
    background: white;
    border-radius: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-icon {
    margin-right: 20px;
    flex-shrink: 0;
}

/* Map */
.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Utilities */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-warning {
    color: var(--accent-color) !important;
}

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

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

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

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInDown {
    animation: fadeInDown 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .hero-slider .owl-nav button {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .hero-slider .owl-nav .owl-prev {
        left: 15px;
    }
    
    .hero-slider .owl-nav .owl-next {
        right: 15px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
        padding-left: 60px;
    }
    
    .timeline-year {
        position: absolute;
        left: -25px;
        width: 60px;
        height: 60px;
        font-size: 14px;
    }
    
    .timeline-content {
        margin: 0;
    }
}

@media (max-width: 767.98px) {
    .display-4 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .hero-section {
        padding-top: 80px;
    }
    
    .page-header {
        padding: 100px 0 60px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .hero-slider .owl-nav button {
        display: none;
    }
    
    .timeline-item {
        padding-left: 50px;
    }
    
    .timeline-year {
        width: 50px;
        height: 50px;
        font-size: 12px;
        left: -20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-slider .owl-nav,
    .hero-slider .owl-dots,
    .btn,
    footer {
        display: none !important;
    }
    
    .hero-section {
        min-height: auto;
        padding: 50px 0;
    }
    
    .page-header {
        padding: 30px 0;
        background: none !important;
        color: var(--text-dark) !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* 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;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100000;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Focus indicators */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #000040;
        --text-dark: #000000;
        --text-light: #333333;
        --border-color: #666666;
    }
}

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