/* ====================================================
   ROOT VARIABLES - THEME COLORS AND BASE STYLING
   ==================================================== */
:root {
    /* Primary Colors */
    --primary: #1a5f7a;
    --primary-light: #57c5e5;
    --primary-dark: #0a3f5a;
    
    /* Secondary Colors */
    --secondary: #2a9d8f;
    --secondary-light: #8aeadb;
    --secondary-dark: #1a6d60;
    
    /* Accent Colors */
    --accent: #e76f51;
    --accent-light: #f4a281;
    --accent-dark: #c74c30;
    
    /* Neutral Colors */
    --white: #ffffff;
    --off-white: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #adb5bd;
    --dark-gray: #495057;
    --black: #212529;
    
    /* Alert Colors */
    --success: #28a745;
    --warning: #ffc107;
    --danger: #dc3545;
    --info: #17a2b8;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary), var(--primary-dark));
    --secondary-gradient: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-dark));
    --hero-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5));
    
    /* Typography */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Source Sans Pro', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

/* ====================================================
   BASE STYLES
   ==================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    font-family: var(--body-font);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    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: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Read more link styling */
.read-more {
    display: inline-block;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    position: relative;
    transition: color var(--transition-medium);
    padding-right: 1.2rem;
}

.read-more:after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--transition-medium);
}

.read-more:hover {
    color: var(--primary-dark);
}

.read-more:hover:after {
    transform: translate(5px, -50%);
}

@media(max-width:768px){
    .fffa{
        flex-direction: column;
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

/* ====================================================
   BUTTON STYLES (GLOBAL)
   ==================================================== */
.btn,
button,
input[type="submit"] {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    user-select: none;
    border: 2px solid transparent;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-medium);
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

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

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

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

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

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.25rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ====================================================
   NAVIGATION
   ==================================================== */
.navbar {
    padding: 1rem 0;
    transition: all var(--transition-medium);
}

.navbar-brand img {
    max-height: 50px;
    transition: all var(--transition-medium);
}

.nav-link {
    color: var(--white) !important;
    font-weight: 600;
    padding: 0.5rem 1rem !important;
    transition: all var(--transition-medium);
    position: relative;
}

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

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

/* Scrolled navbar */
.navbar.scrolled {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 0;
}

.navbar.scrolled .navbar-brand img {
    max-height: 40px;
}

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

.navbar.scrolled .nav-link:after {
    background-color: var(--primary);
}

/* ====================================================
   HERO SECTION
   ==================================================== */
#hero {
    position: relative;
    overflow: hidden;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: var(--white);
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

#hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: backwards;
}

#hero .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: backwards;
}

/* ====================================================
   FEATURES SECTION
   ==================================================== */
#caracteristici {
    padding: var(--spacing-xl) 0;
}

.card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.card-image {
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card-image img {
    transition: transform var(--transition-medium);
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

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

.card-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--dark-gray);
    flex-grow: 1;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    border-radius: var(--radius-md);
    transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

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

.stat-card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.progress {
    height: 0.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar {
    transition: width 1s ease;
}

/* ====================================================
   SERVICES SECTION
   ==================================================== */
#servicii {
    padding: var(--spacing-xl) 0;
}

/* ====================================================
   PRICES SECTION
   ==================================================== */
#preturi {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.price-card {
    height: 100%;
}

.price-card .card-header {
    background-color: var(--primary);
    color: var(--white);
    text-align: center;
    padding: 1.5rem;
    position: relative;
}

.price-card .badge {
    position: absolute;
    top: 0;
    right: 1rem;
    transform: translateY(-50%);
}

.price-card .display-4 {
    font-size: 2.5rem;
    font-weight: 700;
}

.list-group-item {
    display: flex;
    align-items: center;
}

.list-group-item i {
    margin-right: 0.5rem;
    color: var(--primary);
}

/* ====================================================
   RESOURCES SECTION
   ==================================================== */
#resurse {
    padding: var(--spacing-xl) 0;
}

/* ====================================================
   WORKSHOPS SECTION
   ==================================================== */
#ateliere {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

/* ====================================================
   HISTORY SECTION
   ==================================================== */
#istorie {
    padding: var(--spacing-xl) 0;
}

.timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary);
    z-index: 1;
}

.timeline-item:after {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 1.5rem;
    bottom: -2rem;
    width: 2px;
    background-color: var(--primary-light);
}

.timeline-item:last-child:after {
    display: none;
}

.timeline-item h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ====================================================
   CAREERS SECTION
   ==================================================== */
#cariere {
    padding: var(--spacing-xl) 0;
    background-color: var(--light-gray);
}

.job-listing {
    padding: 1.5rem;
    border-bottom: 1px solid var(--medium-gray);
}

.job-listing:last-child {
    border-bottom: none;
}

.job-listing h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* ====================================================
   CONTACT & BOOKING SECTION
   ==================================================== */
#programare {
    padding: var(--spacing-xl) 0;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
}

.form-control {
    padding: 0.75rem;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(26, 95, 122, 0.25);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* ====================================================
   FOOTER
   ==================================================== */
footer {
    padding-top: var(--spacing-xl);
    background-color: var(--black);
    color: var(--white);
}

footer h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

footer p {
    color: var(--medium-gray);
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

footer a {
    color: var(--white) !important;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary-light) !important;
    text-decoration: none;
}

/* Social Links */
.social-links a {
    color: var(--white);
    margin-right: 1rem;
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-light);
}

/* ====================================================
   SUCCESS PAGE
   ==================================================== */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
}

.success-icon {
    margin-bottom: 2rem;
    animation: pulse 2s infinite;
}

/* ====================================================
   PRIVACY & TERMS PAGES
   ==================================================== */
.page-content {
    padding-top: 100px;
    min-height: 100vh;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* ====================================================
   MEDIA QUERIES
   ==================================================== */
@media (max-width: 992px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    #hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    :root {
        --spacing-xl: 3rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    #hero h1 {
        font-size: 2rem;
    }
    
    #hero p {
        font-size: 1rem;
    }
    
    .navbar-collapse {
        background-color: var(--primary-dark);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
    }
    
    .navbar.scrolled .navbar-collapse {
        background-color: var(--white);
    }
}

@media (max-width: 576px) {
    :root {
        --spacing-xl: 2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
    }
    
    #hero h1 {
        font-size: 1.75rem;
    }
    
    .card-image img {
        height: 200px;
    }
}

/* ====================================================
   UTILITY CLASSES
   ==================================================== */
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

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

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

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

.shadow {
    box-shadow: var(--shadow-md) !important;
}

.rounded {
    border-radius: var(--radius-md) !important;
}

/* Parallax effect */
.parallax {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Auto-adjust animation delay for children */
.stagger-fade > * {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

.stagger-fade > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-fade > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-fade > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-fade > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-fade > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-fade > *:nth-child(6) { animation-delay: 0.6s; }
.stagger-fade > *:nth-child(7) { animation-delay: 0.7s; }
.stagger-fade > *:nth-child(8) { animation-delay: 0.8s; }
.stagger-fade > *:nth-child(9) { animation-delay: 0.9s; }
.stagger-fade > *:nth-child(10) { animation-delay: 1s; }