/* --- HERO SECTION --- */
.hero {
    background: var(--gradient);
    padding-top: 100px; /* Reduced for mobile */
    padding-bottom: 50px;
    position: relative;
    overflow: hidden; /* Prevent overflow from animations */
}

@media (min-width: 768px) {
    .hero {
        padding-top: 140px;
        padding-bottom: 80px;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 40px;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.hero-text {
    text-align: center;
}

@media (min-width: 900px) {
    .hero-text {
        text-align: left;
    }
}

.hero-text h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-text h1 {
        font-size: 3rem;
    }
}

@media (min-width: 1200px) {
    .hero-text h1 {
        font-size: 3.5rem;
    }
}

.hero-text h1 span {
    color: var(--primary);
    font-style: italic;
}

.hero-image-wrapper {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-wrapper img {
    border-radius: 20px;
    box-shadow: var(--shadow);
    transform: perspective(1000px) rotateY(-5deg); /* Subtle 3D effect */
    transition: 0.5s;
    width: 100%;
}

.hero-image-wrapper:hover img {
    transform: perspective(1000px) rotateY(0deg);
}

.promo-badge {
    position: absolute;
    top: -15px;
    right: -10px;
    background: #ff5252;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 5px 15px rgba(255, 82, 82, 0.4);
    animation: bounce 3s infinite;
    z-index: 2;
}

@media (min-width: 768px) {
    .promo-badge {
        width: 90px;
        height: 90px;
        font-size: 14px;
        top: -20px;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- HIGHLIGHTS --- */
.highlights {
    padding: 30px 0;
    background: white;
    margin-top: -30px; /* Overlap effect */
    position: relative;
    z-index: 2;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f0f0f0;
}

@media (min-width: 768px) {
    .highlights {
        padding: 40px 0;
        margin-top: -50px;
    }
}

.highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 2 columns on mobile */
    text-align: center;
    gap: 20px;
    padding: 0 20px;
}

@media (min-width: 900px) {
    .highlights-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0;
        padding: 0;
    }
}

.highlight-item {
    padding: 10px;
}

@media (min-width: 900px) {
    .highlight-item {
        border-right: 1px solid #eee;
        padding: 0;
    }

    .highlight-item:last-child {
        border-right: none;
    }
}

.highlight-item i {
    font-size: 24px;
    color: var(--primary);
    margin-bottom: 10px;
}

@media (min-width: 768px) {
    .highlight-item i {
        font-size: 28px;
    }
}

.highlight-item h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

@media (min-width: 768px) {
    .highlight-item h4 {
        font-size: 16px;
    }
}

/* --- FEATURES --- */
.feature-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 30px;
}

@media (min-width: 768px) {
    .feature-card {
        padding: 40px;
        margin-bottom: 60px;
    }
}

@media (min-width: 900px) {
    .feature-card {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

/* Reordering for mobile: Image always second for better flow, OR keep original. 
   Usually image top or bottom. Here we let normal flow happen, but on desktop we reverse. */

@media (min-width: 900px) {
    .feature-card.reverse .feature-content {
        order: 2;
    }

    .feature-card.reverse .feature-img {
        order: 1;
    }
}

.feature-img img {
    border-radius: 15px;
    box-shadow: var(--shadow);
    width: 100%;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--bg-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 20px;
}

/* --- CMS & SPECS --- */
.cms-section {
    background: linear-gradient(135deg, #0d47a1 0%, #1976d2 100%);
    color: white;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cms-section {
        padding: 80px 0;
    }
}

.cms-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cms-content h2 {
    color: white;
    margin-bottom: 15px;
    font-size: 2rem;
}

@media (min-width: 768px) {
    .cms-content h2 {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
}

.cms-content p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .cms-content p {
        font-size: 1.1rem;
    }
}

/* --- PORTFOLIO --- */
.portfolio-section {
    background: #f9fcff;
}

.portfolio-img {
    height: 200px;
    overflow: hidden;
}

.portfolio-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.portfolio-item:hover .portfolio-img img {
    transform: scale(1.1);
}

.tag {
    background: var(--bg-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* --- CTA & CLIENTS (Overrides) --- */
.cta-box h2 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

@media (min-width: 768px) {
    .cta-box h2 {
        font-size: 2.5rem;
    }
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}
