/* styles.css */
:root {
    --primary: #FF6B00;
    --primary-dark: #CC5500;
    --dark: #1A1A1A;
    --gray: #2A2A2A;
    --light-gray: #666666;
    --accent: #FFD700;
    --white: #FFFFFF;
    --border: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Header */
header {
    position: fixed;
    top: 0;
    top: 58px;
    left: 0;
    right: 0;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--border);
    z-index: 100;
    animation: slideDown 0.6s ease;
}

.header-top-bar {
    padding: 10px;
    text-align: center;
    background: var(--primary);
    z-index: 999999;
    width: 100%;
    position: sticky;
    top: 0;
    left: 0;
}

.header-top-bar a {
    text-align: center;
    color: var(--white);
}

.header-phone {
    font-size: 24px;
    background: var(--white);
    color: var(--primary);
    background: var(--primary);
    color: var(--white);
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 6px 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--primary);
    /*text-shadow: 2px 2px 0 var(--primary-dark);*/
    font-weight: bold;
}

.logo {
    margin-right: 10px;
}

.logo-img {
    margin-right: 10px;
}

.logo-img img {
    width: 100%;
    max-width: 60px;
    vertical-align: middle;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 90vh;
    margin-top: 80px;
    margin-top: 74px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray) 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    background-image: url('/img/roadassistplovdiv.png');
    background-color: #1c736f;
    background-position: center center;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1s ease;
    background: 
        radial-gradient(circle at 20% 50%, rgb(0 0 0 / 10%) 0%, #000000c2 50%), 
        radial-gradient(circle at 80% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 50%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: 3px;
    /*text-shadow: 3px 3px 0 var(--primary-dark);*/
    animation: fadeInUp 1s ease 0.2s both;
    font-weight: bold;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #CCCCCC;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-dark);
    transition: left 0.3s;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.4);
}

/* Services Section */
.services {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3.5rem;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--primary);
    animation: fadeIn 1s ease;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light-gray);
    margin-bottom: 4rem;
    animation: fadeIn 1s ease 0.2s both;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--gray);
    border: 2px solid var(--border);
    padding: 2rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease both;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 0, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 15px 40px rgba(255, 107, 0, 0.2);
}

.service-icon {
    width: 100%;
    height: 200px;
    background: var(--dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.service-card:hover .service-icon img {
    transform: scale(1.1);
}

.service-card h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
    letter-spacing: 1px;
}

.service-card p {
    color: #CCCCCC;
    line-height: 1.8;
}

/* Features Section */
.features {
    padding: 6rem 2rem;
    background: var(--gray);
    border-top: 2px solid var(--border);
    border-bottom: 2px solid var(--border);
}

.features-content {
    max-width: 1400px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.feature-item {
    text-align: center;
    animation: fadeInUp 0.8s ease both;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }
.feature-item:nth-child(4) { animation-delay: 0.4s; }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    padding: 1.5rem;
    background: var(--dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s;
}

.feature-item:hover .feature-icon {
    transform: rotate(360deg);
    background: var(--primary);
}

.feature-item h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.feature-item p {
    color: var(--light-gray);
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-content {
    /*display: grid;*/
    /*grid-template-columns: 1fr 1fr;*/
    gap: 4rem;
    align-items: center;
}

.contact-info h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--primary);
    letter-spacing: 2px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gray);
    border: 1px solid var(--border);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.contact-item-icon {
    font-size: 2rem;
    color: var(--primary);
    min-width: 50px;
}

.contact-item div h4 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.contact-item div p {
    color: var(--light-gray);
    font-size: 1.1rem;
}

.contact-image {
    width: 100%;
    /*height: 500px;*/
    background: var(--dark);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
footer {
    background: var(--dark);
    border-top: 2px solid var(--border);
    padding: 3rem 2rem;
    text-align: center;
}

footer p {
    color: var(--light-gray);
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

/* Responsive */
@media (max-width: 968px) {
    nav {
        padding: 10px 15px;
    }

    .logo {
        font-size: 16px;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }

    .services {
        padding: 40px 15px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .service-card h3 {
        font-size: 1.5rem;
    }

    .features {
        padding: 40px 15px;
    }

    .features-grid {
        gap: 30px;
    }

    .contact {
        padding: 40px 15px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-info h2 {
        font-size: 1.5rem;
    }

    .contact-item {
        padding: 15px;
        margin-bottom: 15px;
    }

    .contact-image {
        height: 300px;
    }

    .nav-links {
        display: none;
    }

    /* Mobile pricing section */
    div[style*="max-width: 1200px"] {
        padding: 20px 15px !important;
        margin: 20px auto !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .service-icon {
        height: 180px;
    }

    .feature-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 15px;
    }
}

@media (max-width: 380px) {
    .logo {
        font-size: 14px;
    }
}

.floating-phone-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.4), 0 0 0 0 rgba(255, 107, 0, 0.7);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    animation: pulse-ring 2s infinite;
    text-decoration: none;
}

.floating-phone-btn svg {
    color: white;
    animation: shake 1s ease-in-out infinite;
}

.floating-phone-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(255, 107, 10, 0.6);
}

.floating-phone-btn:active {
    transform: scale(0.95);
}

/* Pulse ring animation */
@keyframes pulse-ring {
    0% {
        box-shadow: 0 4px 20px rgba(255, 107, 10, 0.4), 
                    0 0 0 0 rgba(255, 107, 10, 0.7);
    }
    50% {
        box-shadow: 0 4px 20px rgba(255, 107, 10, 0.4), 
                    0 0 0 15px rgba(255, 107, 10, 0);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 107, 10, 0.4), 
                    0 0 0 0 rgba(255, 107, 10, 0);
    }
}

/* Phone shake animation */
@keyframes shake {
    0%, 100% { transform: rotate(0deg); }
    10%, 30%, 50%, 70%, 90% { transform: rotate(-10deg); }
    20%, 40%, 60%, 80% { transform: rotate(10deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .floating-phone-btn {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .floating-phone-btn svg {
        width: 24px;
        height: 24px;
    }
}
