/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    padding-top: 80px;
}

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

/* Header */
.header {
    background: #4a2c5e;
    padding: 20px 60px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

.nav {
    display: flex;
    gap: 35px;
    align-items: center;
}

.nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #a78bba;
}

.nav .phone {
    background: #a78bba;
    padding: 10px 25px;
    border-radius: 4px;
    color: #ffffff;
    font-weight: 600;
}

.nav .phone:hover {
    background: #8e6fa0;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(74, 44, 94, 0.6) 0%, rgba(94, 58, 120, 0.6) 100%), url('../images/solo-truck.avif');
    background-size: cover;
    background-position: center 75%;
    background-attachment: scroll;
    color: white;
    padding: 150px 60px 100px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero .container {
    padding-top: 30px;
    text-align: left;
    max-width: 1400px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 25px;
    line-height: 1.2;
}

.rotating-wrapper {
    display: inline-block;
    width: 420px;
    position: relative;
    height: 1.2em;
    vertical-align: bottom;
}

.rotating-text {
    color: #a78bba;
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
}

.rotating-text.slide-out {
    animation: slideOut 0.6s ease-out forwards;
}

.rotating-text.slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

@keyframes slideOut {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

@keyframes slideIn {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #a78bba;
    color: white;
}

.btn-primary:hover {
    background: #8e6fa0;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #4a2c5e;
}

/* Services Section */
.services {
    padding: 80px 60px;
    background: #f8f9fa;
}

.section-label {
    text-align: center;
    font-size: 0.9rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    color: #4a2c5e;
    font-weight: 700;
}

.section-intro {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 60px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #4a2c5e;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #555;
    line-height: 1.7;
}

/* Team Section */
.team {
    padding: 80px 60px;
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

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

.team-member a {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.team-member a:hover {
    transform: translateY(-5px);
}

.team-member a:hover .team-photo {
    box-shadow: 0 6px 20px rgba(74, 44, 94, 0.3);
}

.team-member a:hover h3 {
    color: #6b3d8a;
}

.team-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    background: #f0f0f0;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.2rem;
    color: #4a2c5e;
    margin-bottom: 12px;
    font-weight: 700;
}

.team-title {
    color: #666;
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 60px;
    background: #f8f9fa;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.contact-text {
    order: 1;
}

.contact-info {
    order: 2;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: #4a2c5e;
    margin-bottom: 20px;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.contact-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* Footer */
.footer {
    background: #4a2c5e;
    color: white;
    text-align: center;
    padding: 30px 60px;
}

.footer p {
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .header {
        padding: 15px 30px;
    }
    
    .logo {
        font-size: 0.95rem;
    }
    
    .nav {
        gap: 20px;
    }
    
    .nav a {
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 80px 30px 60px;
        min-height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .rotating-wrapper {
        width: 350px;
    }
    
    .hero-subtitle {
        font-size: 1.15rem;
    }
    
    .container {
        padding: 0 30px;
    }
    
    .services,
    .team,
    .contact {
        padding: 60px 30px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 30px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .logo {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav a {
        font-size: 0.85rem;
    }
    
    .nav .phone {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
    
    .hero {
        padding: 60px 20px 50px;
        min-height: 60vh;
    }
    
    .hero .container {
        padding-top: 10px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .rotating-wrapper {
        width: 280px;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .hero-buttons {
        gap: 15px;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .section-label {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-intro {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 80px;
    }
    
    .header {
        padding: 12px 20px;
    }
    
    .logo {
        font-size: 0.75rem;
        max-width: 280px;
        line-height: 1.3;
    }
    
    .nav {
        gap: 12px;
        font-size: 0.8rem;
    }
    
    .nav a {
        font-size: 0.8rem;
    }
    
    .nav .phone {
        padding: 7px 15px;
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 50px 15px 40px;
        min-height: 55vh;
        background-position: center center;
    }
    
    .hero .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    .rotating-wrapper {
        width: 200px;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 25px;
        max-width: 100%;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
        width: 100%;
        text-align: center;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .services,
    .team,
    .contact {
        padding: 40px 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .section-intro {
        font-size: 0.9rem;
        margin-bottom: 40px;
    }
    
    .service-card {
        padding: 25px 20px;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
    }
    
    .team-photo {
        width: 150px;
        height: 150px;
    }
    
    .team-member h3 {
        font-size: 1.1rem;
    }
    
    .team-title {
        font-size: 0.85rem;
    }
    
    .contact-text p {
        font-size: 0.95rem;
    }
    
    .contact-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .footer {
        padding: 25px 20px;
    }
    
    .footer p {
        font-size: 0.85rem;
    }
}
