@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");
@import "variables.css";

/* ========================================
   BASE STYLES
======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 400;
    font-style: normal;
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.6;
    letter-spacing: -0.011em;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    pointer-events: auto;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ========================================
   CONTAINER ADJUSTMENTS
======================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 576px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 992px) {
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   BUTTON STYLES
======================================== */
.btn {
    font-weight: 600;
    letter-spacing: 0;
    transition: all 0.3s ease;
    padding: 0.75rem 1.75rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: white !important;
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 102, 175, 0.35);
}

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

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

.btn-light {
    background: white;
    color: var(--primary-color) !important;
    border-color: white;
}

.btn-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-dark) !important;
    transform: translateY(-2px);
}

/* ========================================
   MAIN CONTENT STYLES
======================================== */
.main {
    min-height: 100vh;
    position: relative;
}

.main-section {
    min-height: 80vh;
    margin-top: 6rem;
    margin-bottom: 2rem;
}

/* ========================================
   CARD & SECTION STYLES
======================================== */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    overflow: hidden;
}

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

.card-body {
    padding: 1.75rem;
}

.section-heading {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.section-heading h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-heading h6 {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

/* Divider Styles */
.divider {
    height: 3px;
    width: 60px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    border-radius: 3px;
    margin: 0.5rem 0 1.5rem;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 20px;
    height: 5px;
    background-color: var(--primary-color);
    border-radius: 3px;
}

/* ========================================
   ANIMATION CLASSES
======================================== */
.fade-in {
    animation: fadeIn 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeIn {
    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);
    }
}

.fade-in-left {
    animation: fadeInLeft 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-right {
    animation: fadeInRight 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

.bounce-out-on-hover {
    display: inline-block;
    vertical-align: middle;
    transform: perspective(1px) translateZ(0);
    box-shadow: 0 0 1px rgba(0, 0, 0, 0);
    transition-duration: 0.5s;
}

.bounce-out-on-hover:hover,
.bounce-out-on-hover:focus,
.bounce-out-on-hover:active {
    transform: scale(0.9);
    transition-timing-function: cubic-bezier(0.47, 2.02, 0.31, -0.36);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
======================================== */
@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    h5 { font-size: 1.125rem; }
    
    .section-heading h2 {
        font-size: 1.875rem;
    }
    
    .btn {
        padding: 0.625rem 1.5rem;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.375rem; }
    h4 { font-size: 1.125rem; }
    
    .section-heading h2 {
        font-size: 1.625rem;
    }
    
    p {
        margin-bottom: 1.25rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
}

@media (max-width: 575px) {
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.375rem; }
    h3 { font-size: 1.25rem; }
    
    .section-heading h2 {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.9375rem;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ========================================
   UTILITY CLASSES
======================================== */
.text-center-mobile {
    text-align: inherit;
}

@media (max-width: 767px) {
    .text-center-mobile {
        text-align: center !important;
    }
}

/* Spacing utilities for mobile */
@media (max-width: 767px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .py-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .mt-5 {
        margin-top: 2rem !important;
    }
}

@media (max-width: 575px) {
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}
