/* ===================================
   UZPHARMCONSULTING - Corporate Style
   Regulatory Consulting Website
   =================================== */

/* CSS Variables */
:root {
    --primary-blue: #1E3A8A;
    --dark-gray: #374151;
    --medium-gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
    --overlay-dark: rgba(30, 58, 138, 0.85);
    --overlay-medium: rgba(30, 58, 138, 0.7);
    
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-headings: 'Roboto', sans-serif;
    
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

main {
    padding-top: 80px;
}

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

.section {
    padding: 80px 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark-gray);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid #E5E7EB;
    z-index: 1000;
    transition: var(--transition);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-blue);
    letter-spacing: -0.5px;
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 200px;
    display: block;
    transition: var(--transition);
    object-fit: contain;
}

.logo-img:hover {
    opacity: 0.8;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -28px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-blue);
}

.language-switcher {
    display: flex;
    gap: 8px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #E5E7EB;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: var(--dark-gray);
    transition: var(--transition);
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background: var(--dark-gray);
    transition: var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dropdown Menu */
.nav-item {
    position: relative;
}

.nav-item.has-dropdown .nav-link::after {
    content: '▾';
    margin-left: 6px;
    font-size: 12px;
    transition: transform 0.2s;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 20px);
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 20px;
    min-width: 550px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 1000;
}

.dropdown-menu.show {
    opacity: 1;
    visibility: visible;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dropdown-column h3 {
    font-size: 11px;
    font-weight: 600;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.dropdown-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-column ul li {
    margin-bottom: 4px;
}

.dropdown-column ul li a {
    display: block;
    padding: 8px 12px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.15s;
}

.dropdown-column ul li a:hover {
    background: #F3F4F6;
    color: #1E3A8A;
    padding-left: 16px;
}

.dropdown-column ul li a.overview {
    font-weight: 600;
    color: #1E3A8A;
}

@media (max-width: 1024px) {
    .nav {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 280px;
        height: calc(100vh - 76px);
        background: white;
        transition: left 0.3s;
        overflow-y: auto;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .nav-link {
        display: block;
        padding: 14px 24px;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        border: none;
        border-top: 1px solid #E5E7EB;
        border-radius: 0;
        box-shadow: none;
        background: #F9FAFB;
        padding: 16px 24px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s, padding 0.3s;
    }
    
    .dropdown-menu.show {
        max-height: 500px;
        padding: 16px 24px;
    }
    
    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    margin-top: 76px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.92), rgba(55, 65, 81, 0.88));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 900px;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    line-height: 1.8;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: #1e40af;
    border-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    border-color: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.3);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
    border-color: var(--white);
}

.btn-white:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline-white:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-large {
    padding: 18px 48px;
    font-size: 16px;
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-gray);
}

.section-text {
    font-size: 1.125rem;
    color: var(--medium-gray);
    line-height: 1.8;
}

/* Key Directions Section */
.key-directions {
    background: var(--light-gray);
}

.directions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.direction-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: 4px;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid #E5E7EB;
    position: relative;
}

.direction-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.direction-number {
    font-size: 0.875rem;
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 12px;
}

.direction-title {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.direction-arrow {
    font-size: 1.5rem;
    color: var(--primary-blue);
    position: absolute;
    bottom: 24px;
    right: 24px;
    transition: var(--transition);
}

.direction-card:hover .direction-arrow {
    transform: translateX(4px);
}

/* Content Blocks with Background */
.registration-section,
.certification-section,
.pharmacovigilance-section {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-medium);
}

.content-block {
    position: relative;
    z-index: 2;
    max-width: 600px;
    color: var(--white);
}

.content-block-right {
    margin-left: auto;
}

.block-title {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
}

.block-text {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0.95;
}

.block-list {
    list-style: none;
    margin-bottom: 2rem;
}

.block-list li {
    padding: 12px 0;
    padding-left: 32px;
    font-size: 1.125rem;
    position: relative;
}

.block-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--white);
    font-weight: bold;
    font-size: 1.25rem;
}

.block-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Why Section */
.why-section {
    background: var(--white);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.why-item {
    padding: 32px 24px;
    border-left: 3px solid var(--primary-blue);
    background: var(--light-gray);
}

.why-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 16px;
}

.why-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.why-text {
    font-size: 1rem;
    color: var(--medium-gray);
    line-height: 1.7;
}

/* CTA Section */
.cta-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding: 100px 0;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(55, 65, 81, 0.85));
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.cta-text {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo .logo-img {
    height: 45px;
    width: auto;
    max-width: 180px;
    filter: brightness(0) invert(1);
    object-fit: contain;
}

.footer-title {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--white);
}

.footer-text,
.footer-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
}

.footer-heading {
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--white);
    font-weight: 600;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9375rem;
}

.footer-contact i {
    color: var(--primary-blue);
    width: 16px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* Floating Contact Buttons */
.floating-contact,
.floating-buttons {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn,
.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: var(--transition);
}

.float-btn:hover,
.floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.telegram-btn,
.floating-btn-telegram {
    background: #0088cc;
}

.whatsapp-btn,
.floating-btn-whatsapp {
    background: #25D366;
}

.phone-btn,
.floating-btn-phone {
    background: var(--primary-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 76px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 76px);
        background: var(--white);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        padding: 20px;
        overflow-y: auto;
    }
    
    .nav.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid #E5E7EB;
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
    }
    
    .nav-link.active::after {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero {
        height: auto;
        min-height: 500px;
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .directions-grid {
        grid-template-columns: 1fr;
    }
    
    .block-title {
        font-size: 1.75rem;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .cta-title {
        font-size: 1.75rem;
    }
    
    .floating-contact,
    .floating-buttons {
        right: 15px;
        bottom: 15px;
    }
    
    .float-btn,
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}