/* ============================================
   TELANGANA ASSOCIATION OF SURGEONS - STYLES
   ============================================ */

/* Root Color Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #3d6889;
    --accent-color: #ff6b35;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --border-radius: 12px;
    --transition-speed: 0.3s;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --box-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --deep-blue :#3d6889;
}

/* ============================================
   GLOBAL STYLES
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--dark-color);
}

.heading-lg {
    font-size: 3rem;
    line-height: 1.2;
}

.heading-md {
    font-size: 2rem;
    line-height: 1.3;
}

.heading-sm {
    font-size: 1.5rem;
    line-height: 1.4;
}

p {
    color: #555;
}

/* ============================================
   ANIMATIONS
   ============================================ */

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 102, 204, 0.3);
    }
    50% {
        box-shadow: 0 0 15px rgba(0, 102, 204, 0.6);
    }
}

/* Animation Classes */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */

.navbar {
    background: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    transition: all var(--transition-speed) ease;
}

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

.nav-link {
    color: #333 !important;
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color var(--transition-speed) ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,  rgb(61 104 137) 0%, rgba(0, 212, 255, 0.5) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-section .lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn-medical-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    text-decoration: none;
    display: inline-block;
}

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

.btn-medical-primary:active {
    transform: translateY(-1px);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
    padding: 10px 30px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all var(--transition-speed) ease;
}

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

/* ============================================
   CARDS
   ============================================ */

.card-medical {
    background: white;
    border-radius: var(--border-radius);
    padding: 24px;
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-medical:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-8px);
}

.card-medical h5,
.card-medical h6 {
    color: var(--dark-color);
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.hover-lift {
    transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

.hover-scale {
    transition: transform var(--transition-speed) ease;
}

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

.hover-link {
    transition: color var(--transition-speed) ease;
}

.hover-link:hover {
    color: var(--secondary-color) !important;
}

/* ============================================
   SECTIONS
   ============================================ */

.section-padding {
    padding: 60px 0;
}

.section-padding-lg {
    padding: 100px 0;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

#about {
    background: white;
}

#about img {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all var(--transition-speed) ease;
}

#about img:hover {
    box-shadow: var(--box-shadow-hover);
}

#about ul li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    transition: all var(--transition-speed) ease;
}

#about ul li:hover {
    transform: translateX(10px);
}

/* ============================================
   LEADERSHIP SECTION
   ============================================ */

#leadership {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f0f7 100%);
}

.leadership-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(0, 212, 255, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all var(--transition-speed) ease;
}

.card-medical:hover .leadership-avatar {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.2) 0%, rgba(0, 212, 255, 0.2) 100%);
    transform: scale(1.1);
}

/* ============================================
   SERVICES SECTION
   ============================================ */

#services {
    background: white;
}

.service-icon {
    transition: all var(--transition-speed) ease;
}

.card-medical:hover .service-icon {
    animation: float 3s ease-in-out infinite;
}

/* ============================================
   CONTACT SECTION
   ============================================ */

#contact {
    background: white;
}

.contact-icon {
    transition: all var(--transition-speed) ease;
}

.card-medical:hover .contact-icon {
    animation: glow 2s ease-in-out infinite;
}

.form-control {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 1rem;
    transition: all var(--transition-speed) ease;
}

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

#contactForm {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background: var(--dark-color);
    color: white;
    margin-top: 60px;
}

footer h5 {
    color: white;
    font-weight: 700;
}

footer p {
    color: #aaa;
}

footer a {
    transition: all var(--transition-speed) ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .heading-lg {
        font-size: 2rem;
    }

    .heading-md {
        font-size: 1.5rem;
    }

    .heading-sm {
        font-size: 1.25rem;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1rem;
    }

    .section-padding {
        padding: 40px 0;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .nav-link {
        margin: 5px 0;
    }

    .card-medical {
        padding: 20px;
    }

    .d-flex.gap-3 {
        flex-direction: column;
    }

    .btn-medical-primary,
    .btn-outline-light {
        width: 100%;
    }

    .row.g-4 > [class*='col-'] {
        margin-bottom: 20px;
    }

    .animate-slide-in-left,
    .animate-slide-in-right {
        animation: fadeInUp 0.6s ease-out;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.5rem;
    }

    .heading-md {
        font-size: 1.3rem;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .d-flex.gap-4 {
        gap: 1rem !important;
    }

    .card-medical {
        padding: 16px;
    }

    .form-control {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transition-smooth {
    transition: all var(--transition-speed) cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-slow {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.shadow-custom {
    box-shadow: var(--box-shadow);
}

.shadow-custom-hover:hover {
    box-shadow: var(--box-shadow-hover);
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar,
    footer,
    .btn-medical-primary,
    .btn-outline-light {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }
}
