/* Modern styling for the Enterprise Internal Developer Platform page */
body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 4rem 0;
    margin-bottom: 60px; /* 60px vertical gutters between sections */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: #222;
}

h2 {
    font-size: 2.5rem; /* Updated to 2.5rem per guidelines */
    color: #333;
    margin-bottom: 2rem;
    text-align: center;
}

/* Hero section styling */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #eaeaea;
    padding: 5rem 0;
    overflow: hidden;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #222;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #444;
    font-weight: 400;
    max-width: 90%;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Puzzle graphic styling */
.puzzle-graphic {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
    position: relative;
}

.puzzle-piece {
    background-color: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid #f0f0f0;
    width: 30%;
    position: relative;
    transition: all 0.3s ease;
}

.puzzle-piece.your-tools {
    border-color: #6c757d;
    z-index: 1;
}

.puzzle-piece.devopser-core {
    border-color: #ED166C;
    z-index: 3;
    transform: scale(1.1);
}

.puzzle-piece.your-customizations {
    border-color: #007bff;
    z-index: 2;
}

.puzzle-piece h4 {
    margin-top: 0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.puzzle-piece p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
}

.puzzle-connector {
    width: 40px;
    height: 2px;
    background-color: #ED166C;
    position: relative;
}

.puzzle-connector:before {
    content: '+';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ED166C;
    font-weight: bold;
    font-size: 1.2rem;
}

.puzzle-result {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    margin-top: 1.5rem;
    border: 2px solid #ED166C;
    font-weight: 600;
    color: #222;
}

.hero-benefits li:before {
    content: '✓';
    color: white;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ED166C;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.hero-benefits strong {
    color: #ED166C;
    font-weight: 600;
}

.hero-cta-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.btn-primary {
    background-color: #ED166C;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(237, 22, 108, 0.3);
    display: inline-block;
}

.btn-primary:hover {
    background-color: #d01460;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(237, 22, 108, 0.4);
}

.btn-secondary {
    background-color: white;
    color: #ED166C;
    border: 2px solid #ED166C;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: rgba(237, 22, 108, 0.1);
    transform: translateY(-2px);
}

.hero-dashboard-img {
    max-height: 380px; /* Reduced height while maintaining aspect ratio */
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #eaeaea;
}

.hero-dashboard-img:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Our Approach section */
.our-approach {
    margin: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.our-approach::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #ED166C;
}

.our-approach h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.approach-phases {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2.5rem;
    margin-top: 2.5rem;
}

.phase {
    padding: 2rem 1.5rem;
    background-color: white;
    border-radius: 12px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.phase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #ED166C;
}

.phase:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #ED166C;
}

.phase i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(237, 22, 108, 0.1);
    color: #ED166C;
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.phase:hover i {
    background-color: #ED166C;
    color: white;
}

.phase h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #222;
}

.phase p {
    color: #555;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Platform Your Way section */
.platform-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 4rem;
    position: relative;
}

.platform-option {
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    border-top: 4px solid #ED166C;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.platform-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ED166C;
}

.platform-option i {
    font-size: 2rem;
    color: #ED166C;
    background-color: rgba(237, 22, 108, 0.1);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.platform-option h3 {
    color: #222;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.platform-option ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.platform-option ul li {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 1rem;
}

.platform-option-cta {
    color: #ED166C;
    text-decoration: none;
    font-weight: 600;
    margin-top: auto;
    padding: 0.5rem 1rem;
    border: 1px solid #ED166C;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: inline-block;
}

.platform-option-cta:hover {
    background-color: #ED166C;
    color: white;
}

/* Features section */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    position: relative;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    border: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: #ED166C;
    z-index: -1;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #ED166C;
}

.feature-card i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background-color: rgba(237, 22, 108, 0.1);
    color: #ED166C;
    border-radius: 50%;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    background-color: #ED166C;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: #222;
}

.feature-card p {
    color: #555;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

.feature-card .highlight {
    color: #ED166C;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Responsive design for features */
@media (max-width: 992px) {
    .features-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
    }
}

/* Business Impact & ROI section */
.business-impact {
    display: flex;
    justify-content: space-around;
    margin: 3rem 0 5rem;
    text-align: center;
    flex-wrap: wrap;
}

.impact-stat {
    flex: 0 0 30%;
    padding: 2rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

.impact-stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #ED166C;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ED166C;
    display: block;
    margin-bottom: 1rem;
}

.impact-stat p {
    color: #555;
    font-size: 1.1rem;
    margin: 0;
}

/* Engagement Models section */
.engagement-models {
    margin: 6rem 0;
    padding: 4rem;
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.engagement-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.engagement-cards.single-card {
    grid-template-columns: minmax(auto, 500px);
    justify-content: center;
}

.engagement-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.engagement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    border-color: #ED166C;
}

.engagement-card h3 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #222;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.engagement-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.engagement-card ul li {
    padding: 0.8rem 0 0.8rem 2rem;
    position: relative;
    color: #555;
}

.engagement-card ul li:before {
    content: '•';
    color: #ED166C;
    position: absolute;
    left: 0.5rem;
    font-size: 1.2rem;
}

.engagement-card .btn {
    margin-top: auto;
    align-self: center;
}

/* Sticky CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    padding: 1rem 0;
    z-index: 100;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Add padding to footer to prevent it from being hidden by sticky CTA */
footer {
    padding-bottom: 80px;
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-text {
    margin-right: 1.5rem;
    font-weight: 600;
}

.sticky-cta .btn-primary {
    color: white !important; /* Ensure text is always white */
}

.sticky-cta .btn-primary:hover {
    color: white !important;
    font-weight: 700; /* Make text bold on hover */
}

.author-name {
    font-weight: 600;
    margin: 0;
    font-size: 1.1rem;
    color: #222;
}

.author-title {
    color: #666;
    margin: 0;
    font-size: 0.95rem;
}

/* CTA section */
.cta-section {
    margin: 5rem 0;
    padding: 3.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.cta-section h2 {
    text-align: center;
    margin-bottom: 2.5rem;
}

.cta-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.cta-benefits {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    background-color: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
}

.cta-benefits li {
    margin-bottom: 1rem;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}

.cta-benefits li:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.cta-benefits li:before {
    content: '✓';
    color: white;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ED166C;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

.cta-form {
    padding: 2.5rem;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.cta-form h3 {
    margin-top: 0;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #222;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* Responsive design updates */
@media (max-width: 1200px) {
    .platform-options {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .business-impact {
        flex-wrap: wrap;
    }
    
    .impact-stat {
        flex: 0 0 45%;
        margin-bottom: 1.5rem;
    }
    
    .engagement-cards {
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .platform-options {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .engagement-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .puzzle-graphic {
        flex-direction: column;
        align-items: center;
    }
    
    .puzzle-piece {
        width: 80%;
        margin-bottom: 1rem;
    }
    
    .puzzle-connector {
        width: 2px;
        height: 30px;
    }
    
    .puzzle-connector:before {
        transform: translate(-50%, -50%) rotate(90deg);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-image {
        order: -1;
        margin-bottom: 1rem;
    }
    
    .hero-dashboard-img {
        max-height: 300px;
    }
    
    .approach-phases {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .our-approach {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .platform-options {
        grid-template-columns: 1fr;
    }
    
    .business-impact {
        flex-direction: column;
    }
    
    .impact-stat {
        flex: 0 0 100%;
        margin-bottom: 1.5rem;
    }
    
    .puzzle-piece {
        width: 100%;
    }
    
    .sticky-cta {
        flex-direction: column;
        padding: 1rem;
    }
    
    .sticky-cta-text {
        margin-right: 0;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
        max-width: 100%;
    }
    
    .hero-dashboard-img {
        max-height: 250px;
    }
    
    .hero-cta-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .approach-phases {
        grid-template-columns: 1fr;
    }
    
    .phase {
        padding: 1.5rem 1rem;
    }
    
    .phase i {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

/* Tooltip styles */
.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 10px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}
