/* ============================================
   HOME PAGE STYLES - SANTRIKODING LAYOUT
   ============================================ */

/* ===== HERO SECTION ===== */
.hero-section {
    background: var(--bg-main);
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 70vh;
    padding: 3rem 0;
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }
}

.hero-content {
    max-width: 600px;
}

@media (max-width: 992px) {
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Hero Title */
.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Tech Pills */
.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .tech-pills {
        justify-content: center;
    }
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    border-color: var(--pill-color, var(--primary));
    color: var(--pill-color, var(--primary));
    transform: translateY(-2px);
}

.tech-pill i {
    font-size: 1rem;
}

/* Hero Search */
.hero-search {
    max-width: 500px;
}

@media (max-width: 992px) {
    .hero-search {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Premium Glassmorphism Search */
.search-form {
    display: flex;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    padding: 0.5rem;
}

.search-form:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(1, 115, 92, 0.15);
    border-color: rgba(2, 163, 133, 0.3);
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    padding: 0.75rem 2rem;
    background: var(--gradient-premium);
    border: none;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(1, 115, 92, 0.2);
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(1, 115, 92, 0.3);
}

/* 3D Floating Icons */
.hero-visual {
    position: relative;
    height: 400px;
    perspective: 1000px;
}

.floating-icons {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.float-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.float-icon:hover {
    transform: scale(1.1) rotateX(10deg) rotateY(10deg) !important;
    z-index: 100;
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.float-icon i {
    font-size: 2rem;
    transform: translateZ(20px);
}

.icon-1 {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    top: 5%;
    left: 55%;
    animation-delay: 0.5s;
}

.icon-3 {
    top: 25%;
    left: 80%;
    animation-delay: 1s;
}

.icon-4 {
    top: 50%;
    left: 70%;
    animation-delay: 1.5s;
}

.icon-5 {
    top: 70%;
    left: 85%;
    animation-delay: 0.3s;
}

.icon-6 {
    top: 60%;
    left: 40%;
    animation-delay: 0.8s;
}

.icon-7 {
    top: 80%;
    left: 15%;
    animation-delay: 1.2s;
}

.icon-8 {
    top: 40%;
    left: 10%;
    animation-delay: 0.6s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Tech Banner - Sliding Animation */
.tech-banner {
    background: var(--gradient-primary);
    padding: 1.25rem 0;
    margin-top: 2rem;
    overflow: hidden;
}

.tech-banner-track {
    display: flex;
    animation: slide 25s linear infinite;
    width: fit-content;
}

.tech-banner-track:hover {
    animation-play-state: paused;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.tech-banner-scroll {
    display: flex;
    gap: 3rem;
    padding: 0 1.5rem;
    flex-shrink: 0;
}

.tech-banner-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    white-space: nowrap;
}

.tech-banner-item i {
    font-size: 2rem;
    opacity: 0.9;
}

.tech-banner-info {
    display: flex;
    flex-direction: column;
}

.tech-banner-info strong {
    font-size: 1rem;
    font-weight: 700;
}

.tech-banner-info span {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* ===== PROJECTS SECTION ===== */
.projects-section {
    padding: 5rem 0;
    background: var(--bg-main);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-label {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Project Card - New Design */
.project-card {
    background: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.project-card-link {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.project-card-image {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
}

.project-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder i {
    font-size: 4rem;
    color: white;
    opacity: 0.8;
}

.discount-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 0.375rem 0.875rem;
    background: #EF4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 5;
}

.project-card-body {
    padding: 1.25rem;
}

.project-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card-price {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.price-current {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.price-original {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

.project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
}

.project-meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.project-level {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 5rem 0;
    background: var(--bg-card);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(1, 115, 92, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== CATEGORIES SECTION ===== */
.categories-section {
    padding: 5rem 0;
    background: var(--bg-card);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(1, 115, 92, 0.15);
    border-color: var(--primary);
}

.category-icon {
    width: 50px;
    height: 50px;
    background: rgba(1, 115, 92, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon {
    background: var(--primary);
}

.category-icon i {
    font-size: 1.25rem;
    color: var(--primary);
    transition: color 0.3s ease;
}

.category-card:hover .category-icon i {
    color: white;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.category-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.category-arrow {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.category-card:hover .category-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials-section {
    padding: 5rem 0;
    background: var(--bg-main);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.testimonial-rating i {
    color: #F59E0B;
    font-size: 0.9rem;
}

.testimonial-text {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Color variations for testimonial avatars */
.testimonial-card:nth-child(4n+1) .author-avatar {
    background: var(--gradient-primary);
}

.testimonial-card:nth-child(4n+2) .author-avatar {
    background: var(--gradient-blue);
}

.testimonial-card:nth-child(4n+3) .author-avatar {
    background: var(--gradient-coral);
}

.testimonial-card:nth-child(4n+4) .author-avatar {
    background: var(--gradient-teal);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-info strong {
    color: var(--text-primary);
    font-size: 0.95rem;
}

.author-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #01735C 0%, #14B8A6 35%, #3B82F6 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='45' cy='45' r='3'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .tech-banner-scroll {
        gap: 2rem;
        padding: 0 1rem;
    }

    .section-header-row {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .cta-content h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding-top: 100px !important;
        padding-bottom: 2rem !important;
        overflow: hidden !important;
        /* Ensure no overflow */
    }

    .hero-title {
        font-size: 1.75rem !important;
        /* Smaller size for mobile */
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        margin-bottom: 1rem !important;
        line-height: 1.2 !important;
        width: 100% !important;
        /* Ensure it doesn't exceed container */
    }

    .text-gradient {
        display: inline !important;
        /* Allow wrapping */
        background-size: 100%;
        /* Ensure gradient works on inline */
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.6 !important;
        padding: 0 1rem;
        /* Add padding to prevent edge text */
    }

    .hero-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-grid {
        gap: 1.5rem !important;
        padding: 1rem 0 !important;
        min-height: auto !important;
        display: block !important;
        /* Force block to stack */
    }

    .hero-content {
        padding: 0 1rem;
        /* Ensure content has padding from edges */
        width: 100% !important;
    }

    .tech-pills {
        gap: 0.5rem !important;
        justify-content: center !important;
        margin-bottom: 1.5rem !important;
        flex-wrap: wrap !important;
        padding: 0 0.5rem;
    }

    .tech-pill {
        padding: 0.35rem 0.7rem !important;
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem;
    }

    .tech-pill i {
        font-size: 0.85rem !important;
    }

    .hero-search .search-input {
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }

    .hero-search .search-btn {
        padding: 0.75rem 1rem !important;
        width: 45px !important;
        /* Reduce button size on mobile */
        height: 45px !important;
    }

    .section-badge {
        font-size: 0.75rem !important;
        padding: 0.4rem 0.8rem !important;
    }

    .section-title {
        font-size: 1.5rem !important;
    }

    .section-subtitle {
        font-size: 0.9rem !important;
    }

    /* Footer responsiveness */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 0 1rem;
    }
}