/* ==========================================
   InternJunction Home Page Styles
   ========================================== */

:root {
    --primary-color: #4569dc;    /* Brand Blue */
    --secondary-color: #565656;  /* Brand Grey */
    --accent-color: #4569dc;     /* Brand Blue */
    --dark-color: #565656;       /* Brand Grey */
    --light-color: #f5f5f5;
    --text-color: #333333;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    background: #fff;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* ==========================================
   HERO SECTION
   ========================================== */

.hero-section {
    background: linear-gradient(135deg, #E8F4FF 0%, #D4E9FF 50%, #B8DBFF 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
    margin: 0;
    color: #2D3748;
    min-height: 90vh;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

/* Decorative shapes */
.hero-section .shape-1 {
    position: absolute;
    top: 15%;
    right: 10%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
}

.hero-section .shape-2 {
    position: absolute;
    bottom: 20%;
    left: 8%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(74, 144, 226, 0.1);
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(10px); }
    100% { transform: translateY(0) translateX(0); }
}

/* Remove Bootstrap container padding inside hero */
.hero-section .container {
    padding-left: 0;
    padding-right: 0;
    margin: 0 auto;
    max-width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

.hero-image {
    position: relative;
    z-index: 2;
    animation: slideInRight 1s ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    animation: fadeInUp 1s ease 0.2s backwards;
    letter-spacing: -1px;
}

.hero-title .highlight {
    color: var(--primary-color);
    font-weight: 900;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

.btn-primary-custom {
    background: var(--primary-color);
    color: white;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(247, 117, 84, 0.3);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(247, 117, 84, 0.4);
    background: #e55a3a;
}

.btn-secondary-custom {
    background: transparent;
    color: white;
    padding: 16px 40px;
    border: 2px solid white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background: rgba(247, 117, 84, 0.9);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease 0.3s backwards;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* ==========================================
   FEATURES SECTION
   ========================================== */

.features-section {
    padding: 100px 0;
    background: white;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 50px;
    text-align: center;
    position: relative;
    animation: fadeInUp 1s ease;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 3px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 60px;
    line-height: 1.8;
    animation: fadeInUp 1s ease 0.2s backwards;
}

.feature-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 40px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    animation: fadeInUp 1s ease backwards;
    position: relative;
    overflow: hidden;
}

.feature-card:nth-child(1) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.4s; }
.feature-card:nth-child(3) { animation-delay: 0.6s; }

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(247, 117, 84, 0.2);
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card:hover .feature-icon {
    animation: none;
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==========================================
   HOW IT WORKS SECTION
   ========================================== */

.how-it-works-section {
    padding: 100px 0;
    background: var(--light-color);
    position: relative;
    overflow: hidden;
}

.how-it-works-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 117, 84, 0.03) 0%, transparent 70%);
    animation: rotateCircle 20s linear infinite;
}

@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.step-card {
    position: relative;
    animation: fadeInUp 1s ease backwards;
}

.step-card:nth-child(1) { animation-delay: 0.2s; }
.step-card:nth-child(2) { animation-delay: 0.4s; }
.step-card:nth-child(3) { animation-delay: 0.6s; }
.step-card:nth-child(4) { animation-delay: 0.8s; }

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #e55a3a);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(247, 117, 84, 0.3);
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: scale(1.1) rotateZ(10deg);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.step-description {
    color: var(--text-color);
    line-height: 1.8;
}

.step-arrow {
    position: absolute;
    top: 40px;
    right: -35px;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
}

.step-card:last-child .step-arrow {
    display: none;
}

/* ==========================================
   WHY CHOOSE US SECTION
   ========================================== */

.why-choose-section {
    padding: 100px 0;
    background: white;
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.benefit-item {
    padding: 40px;
    background: #f9f9f9;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 3px 15px rgba(247, 117, 84, 0.08);
}

.benefit-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(247, 117, 84, 0.15);
}

.benefit-item:nth-child(1) { animation-delay: 0.2s; }
.benefit-item:nth-child(2) { animation-delay: 0.4s; }
.benefit-item:nth-child(3) { animation-delay: 0.6s; }
.benefit-item:nth-child(4) { animation-delay: 0.8s; }

.benefit-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.benefit-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.benefit-text {
    color: var(--text-color);
    line-height: 1.7;
}

/* ==========================================
   DOMAINS SECTION
   ========================================== */

.domains-section {
    padding: 100px 0;
    background: var(--light-color);
}

.domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.domain-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 35px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(247, 117, 84, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
    animation: fadeInUp 1s ease backwards;
    position: relative;
    overflow: hidden;
}

.domain-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(247, 117, 84, 0.2);
    border-color: var(--primary-color);
}

.domain-card:nth-child(1) { animation-delay: 0.2s; }
.domain-card:nth-child(2) { animation-delay: 0.4s; }
.domain-card:nth-child(3) { animation-delay: 0.6s; }
.domain-card:nth-child(4) { animation-delay: 0.8s; }
.domain-card:nth-child(5) { animation-delay: 1s; }
.domain-card:nth-child(6) { animation-delay: 1.2s; }

.domain-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.domain-card:hover::after {
    left: 100%;
}

.domain-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.domain-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 12px;
}

.domain-description {
    color: var(--text-color);
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.domain-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.domain-link:hover {
    gap: 12px;
    color: var(--secondary-color);
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */

.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 35px;
    box-shadow: 0 5px 20px rgba(247, 117, 84, 0.08);
    transition: var(--transition);
    animation: fadeInUp 1s ease backwards;
    border: 1px solid rgba(247, 117, 84, 0.15);
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(247, 117, 84, 0.15);
}

.testimonial-card:nth-child(1) { animation-delay: 0.2s; }
.testimonial-card:nth-child(2) { animation-delay: 0.4s; }
.testimonial-card:nth-child(3) { animation-delay: 0.6s; }

.stars {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.testimonial-text {
    color: var(--text-color);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.testimonial-role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ==========================================
   STATS SECTION
   ========================================== */

.stats-section {
    padding: 80px 0;
    /* New Brand Blue Gradient */
    background: linear-gradient(135deg, #4569dc 0%, #2a4ec5 100%);
    position: relative;
    overflow: hidden;
}

/* Make the pattern more subtle so it doesn't clash */
.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4569dc 0%, #2a4ec5 100%);
    opacity: 0.3; /* Reduced opacity for cleaner look */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    animation: fadeInUp 1s ease backwards;
}

.stat-card:nth-child(1) { animation-delay: 0.2s; }
.stat-card:nth-child(2) { animation-delay: 0.4s; }
.stat-card:nth-child(3) { animation-delay: 0.6s; }
.stat-card:nth-child(4) { animation-delay: 0.8s; }

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    animation: countUp 2s ease-out forwards;
    opacity: 0;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.95;
    font-weight: 600;
}

/* ==========================================
   CTA SECTION
   ========================================== */

.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #0f4d4c 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(247, 117, 84, 0.1) 0%, transparent 70%);
    animation: float 20s linear infinite;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 25px;
    animation: slideInUp 1s ease;
    position: relative;
    z-index: 1;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    animation: slideInUp 1s ease 0.2s backwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideInUp 1s ease 0.4s backwards;
    position: relative;
    z-index: 1;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        justify-content: center;
    }

    .hero-image-placeholder {
        height: 300px;
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .feature-card {
        padding: 25px;
    }

    .step-arrow {
        display: none;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-card {
        padding: 20px;
    }

    .domain-grid,
    .benefit-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    animation: revealUp 0.8s ease forwards;
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
