/* ============================================
   ITPhotoStudio.ink - Unique Cinematic Design
   Professional Location Scouting Platform
   ============================================ */

/* Импорт уникальных шрифтов Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700;900&family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ============================================
   RESET & BASE STYLES
   ============================================ */

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

:root {
    /* Уникальная цветовая палитра кинематографа */
    --color-primary: #E63946;
    --color-secondary: #1D3557;
    --color-accent: #457B9D;
    --color-light: #F1FAEE;
    --color-highlight: #A8DADC;
    --color-dark: #0A0E27;
    --color-gold: #FFD700;
    --color-silver: #C0C0C0;
    
    /* Градиенты */
    --gradient-hero: linear-gradient(135deg, #1D3557 0%, #457B9D 50%, #E63946 100%);
    --gradient-card: linear-gradient(180deg, rgba(29, 53, 87, 0.95) 0%, rgba(69, 123, 157, 0.85) 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(10, 14, 39, 0) 0%, rgba(10, 14, 39, 0.9) 100%);
    
    /* Шрифты */
    --font-heading: 'Cinzel', serif;
    --font-subheading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    --font-accent: 'Space Grotesk', sans-serif;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.25);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-cinematic: 0 0 50px rgba(230, 57, 70, 0.3);
    
    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Кинематографический фоновый эффект */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(230, 57, 70, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(69, 123, 157, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.5px;
    color: var(--color-light);
}

h1 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-light) 0%, var(--color-highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-family: var(--font-subheading);
    font-weight: 600;
}

p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.8;
    color: var(--color-highlight);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

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

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid rgba(230, 57, 70, 0.3);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(10, 14, 39, 0.98);
    box-shadow: var(--shadow-xl);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-light);
    transition: var(--transition-normal);
}

.logo img {
    height: 50px;
    width: auto;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5));
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-highlight);
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition-normal);
}

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

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

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

.nav-link.active {
    color: var(--color-light);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 0.5rem;
    background: transparent;
    border: none;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: var(--transition-normal);
}

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

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 4rem;
    background: var(--gradient-hero);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-cinematografico.svg') center/cover no-repeat;
    opacity: 0.15;
    animation: heroBackground 30s ease-in-out infinite;
}

@keyframes heroBackground {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-family: var(--font-subheading);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-style: italic;
    color: var(--color-highlight);
    margin-bottom: 3rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--color-light);
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

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

.btn {
    font-family: var(--font-accent);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: inline-block;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    z-index: -1;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-light);
    box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
}

.btn-primary:hover {
    background: #c72d3a;
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.6);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    color: var(--color-light);
    border: 2px solid var(--color-light);
    box-shadow: var(--shadow-md);
}

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

.btn-accent {
    background: var(--gradient-hero);
    color: var(--color-light);
    box-shadow: var(--shadow-cinematic);
}

.btn-accent:hover {
    box-shadow: 0 8px 40px rgba(230, 57, 70, 0.5);
    transform: translateY(-3px);
}

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

section {
    padding: 6rem 2rem;
    position: relative;
}

.section-dark {
    background: rgba(10, 14, 39, 0.5);
}

.section-light {
    background: rgba(29, 53, 87, 0.3);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.section-title {
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-hero);
    border-radius: 2px;
}

.section-subtitle {
    font-family: var(--font-subheading);
    font-size: 1.2rem;
    color: var(--color-highlight);
    margin-top: 1rem;
    font-style: italic;
}

/* ============================================
   CARDS & GRID
   ============================================ */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.card {
    background: var(--gradient-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border: 1px solid rgba(168, 218, 220, 0.2);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(230, 57, 70, 0.3);
}

.card:hover::before {
    opacity: 1;
}

.card-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    color: var(--color-light);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: var(--color-highlight);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.card-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.card-features li {
    padding: 0.5rem 0;
    color: var(--color-light);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.card-features li::before {
    content: '◆';
    color: var(--color-primary);
    font-size: 0.8rem;
}

/* ============================================
   LOCATION SHOWCASE
   ============================================ */

.location-showcase {
    padding: 6rem 2rem;
    background: rgba(10, 14, 39, 0.7);
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.location-card {
    position: relative;
    height: 500px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: var(--transition-normal);
    cursor: pointer;
}

.location-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: var(--gradient-overlay);
    transition: var(--transition-normal);
}

.location-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-cinematic);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.location-card:hover .location-image {
    transform: scale(1.1);
}

.location-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    z-index: 2;
    transform: translateY(0);
    transition: var(--transition-normal);
}

.location-tag {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--color-primary);
    color: var(--color-light);
    font-family: var(--font-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 20px;
    margin-bottom: 1rem;
}

.location-name {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-light);
    margin-bottom: 0.8rem;
}

.location-description {
    font-size: 1rem;
    color: var(--color-highlight);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: rgba(29, 53, 87, 0.5);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-hero);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.service-card:hover {
    border-color: var(--color-primary);
    background: rgba(29, 53, 87, 0.8);
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    transition: var(--transition-normal);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-title {
    font-size: 1.5rem;
    color: var(--color-light);
    margin-bottom: 1rem;
}

.service-description {
    font-size: 1rem;
    color: var(--color-highlight);
    line-height: 1.7;
}

/* ============================================
   CONTACT FORM - UNIQUE DESIGN
   ============================================ */

.contact-section {
    background: rgba(10, 14, 39, 0.8);
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--gradient-card);
    border-radius: 30px;
    padding: 4rem;
    box-shadow: var(--shadow-xl);
    border: 2px solid rgba(230, 57, 70, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.2) 0%, transparent 70%);
    animation: rotateGlow 20s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.contact-info {
    margin-bottom: 3rem;
    text-align: center;
}

.contact-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--color-light);
}

.contact-item a {
    color: var(--color-highlight);
    transition: var(--transition-normal);
}

.contact-item a:hover {
    color: var(--color-primary);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-light);
    margin-bottom: 0.8rem;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 1.2rem 1.5rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-light);
    background: rgba(10, 14, 39, 0.6);
    border: 2px solid rgba(168, 218, 220, 0.3);
    border-radius: 15px;
    transition: var(--transition-normal);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--color-primary);
    background: rgba(10, 14, 39, 0.8);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.form-submit {
    width: 100%;
    margin-top: 1rem;
}

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

footer {
    background: rgba(10, 14, 39, 0.95);
    padding: 4rem 2rem 2rem;
    border-top: 2px solid rgba(230, 57, 70, 0.3);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--color-highlight);
    font-size: 1rem;
    transition: var(--transition-normal);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(168, 218, 220, 0.2);
    text-align: center;
    color: var(--color-highlight);
    font-size: 0.95rem;
}

.footer-bottom a {
    color: var(--color-primary);
    font-weight: 600;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

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

@media (max-width: 1024px) {
    .nav-menu {
        gap: 1.5rem;
    }
    
    .location-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 3rem 2rem;
        gap: 2rem;
        transition: var(--transition-normal);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero {
        padding: 6rem 1.5rem 3rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .grid,
    .location-grid,
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        padding: 2.5rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    section {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        font-size: 14px;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .location-info {
        padding: 1.5rem;
    }
    
    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* ============================================
   ANIMATIONS & EFFECTS
   ============================================ */

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Loading state */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(230, 57, 70, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    transform: translate(-50%, -50%);
}

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

/* Cinematic border effect */
.cinematic-frame {
    position: relative;
    padding: 20px;
}

.cinematic-frame::before,
.cinematic-frame::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border: 3px solid var(--color-primary);
}

.cinematic-frame::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.cinematic-frame::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

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

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

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-highlight { color: var(--color-highlight); }

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