/* Custom CSS for Pengefix Website */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content wrapper to push footer to bottom */
.main-content {
    flex: 1;
}

/* Navigation Styles */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background-color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background-color: #fff !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d2832 !important;
}

.navbar-nav .nav-link {
    color: #1d2832 !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: #1d2832;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 10px 0 0 0; /* Base padding for mobile devices */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="b" cx="50%" cy="50%" r="50%"><stop offset="0%" stop-color="white" stop-opacity="0.1"/><stop offset="100%" stop-color="white" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23b)"/></svg>'); */
    opacity: 0.1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 40%;
    height: 200%;
    background: transparent 50%;
    transform: rotate(15deg);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding-left: 2rem;
}

.hero-title {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-title .text-warning {
    display: inline-block;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.2;
    color: #ecf0f1;
    margin-bottom: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@keyframes shimmer {
    0% {
        transform: scaleX(0);
        transform-origin: left;
    }
    50% {
        transform: scaleX(1);
        transform-origin: left;
    }
    100% {
        transform: scaleX(0);
        transform-origin: right;
    }
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #2c3e50;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    border: 2px solid #fff;
    color: #fff;
}

.btn-outline-light:hover {
    background-color: #fff;
    color: #2c3e50;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.hero-image {
    position: relative;
    z-index: 2;
    text-align: center;
    height: 100%;
    align-items: center;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 1100px;
    height: auto;
    object-fit: cover;
    display: block;
    height: 100%;
}

/* About Section */
.about-section {
    background-color: #fff;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #ffc107;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    max-width: 90%;
}

/* Features Section */
.features-section {
    background-color: #f8f9fa;
}

.features-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
}

.feature-card {
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.feature-card-standard {
    border: 1px solid #e0e0e0;
    background: #fff;
}

.feature-card-highlighted {
    border: 2px solid #8b5cf6;
    background: #fff;
    position: relative;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.15);
}

.feature-card-highlighted::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    border-radius: 17px;
    z-index: -1;
}

.feature-card-highlighted .feature-icon {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffc107, #e0a800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: #fff;
}

.feature-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

.coming-soon {
    font-size: 0.75rem;
    color: #666;
    font-weight: 400;
    font-style: italic;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
}

.contact-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-section p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: #1a252f !important;
}

/* Download App Section */
.download-section {
    background: linear-gradient(180deg, #fef9e7 0%, #f5f4f1 50%, #ffffff 100%);
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 3rem;
}

.download-card {
    background: transparent;
    padding: 2rem 1rem;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.download-card:hover {
    transform: translateY(-5px);
}

.app-store-image {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
}

.store-badge {
    width: 180px;
    height: 60px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

.download-card:hover .store-badge {
    opacity: 0.8;
}

.coming-soon-text {
    font-size: 0.9rem;
    color: #666;
    font-style: bold;
    margin: 0;
}

/* Main Footer */
.main-footer {
    background: #1d2832;
    color: #fff;
    padding: 2rem 0 1.5rem 0;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.footer-links {
    margin: 1rem 0;
}

.footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #ffc107;
}

.footer-copyright {
    font-size: 0.9rem;
    color: #ecf0f1;
}

/* Ripple Effect */
.btn {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Gradient text effect */
.text-gradient {
    background: linear-gradient(135deg, #ffc107, #e0a800);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating animation for hero elements */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #ffc107;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e0a800;
}

/* Mobile App Showcase Section */
.mobile-app-section {
    background: linear-gradient(180deg, #ffffff 0%, #fce655 70%, #fdfae7 90%);
}

.mobile-screens-container {
    position: relative;
}

.mobile-screen-simple {
    text-align: center;
    position: relative;
}

.mobile-image-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
}

.mobile-screenshot {
    width: 280px;
    height: 560px;
    object-fit: cover;
    background-color: transparent;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Target only the middle (dashboard) screenshot */
.mobile-screens-container .row .col-md-4:nth-child(2) .mobile-screenshot {
    width: 320px;
    height: 640px;
}

.mobile-screenshot:hover {
    transform: translateY(-5px);
}

/* Screen Descriptions */
.screen-description {
    text-align: center;
}

.screen-description h5 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.screen-description p {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
}

/* Mobile Screenshot Responsive */

@media (max-width: 768px) {
    .mobile-image-container {
        min-height: 500px;
    }
    
    .mobile-screenshot {
        width: 250px;
        height: 500px;
    }
    
    /* Target only the middle (dashboard) screenshot on tablets */
    .mobile-screens-container .row .col-md-4:nth-child(2) .mobile-screenshot {
        width: 290px;
        height: 580px;
    }
    
    .mobile-screen-simple {
        margin-bottom: 3rem;
    }
    
    .screen-description h5 {
        font-size: 1.1rem;
    }
    
    .screen-description p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .mobile-image-container {
        min-height: 450px;
    }
    
    .mobile-screenshot {
        width: 220px;
        height: 440px;
    }
    
    /* Target only the middle (dashboard) screenshot on mobile */
    .mobile-screens-container .row .col-md-4:nth-child(2) .mobile-screenshot {
        width: 250px;
        height: 500px;
    }
}

/* Responsive Design */
/* For medium-sized screens and larger */
@media (min-width: 768px) {
    .hero-section {
        padding-top: 10px 0 0 0; /* Increased padding for tablets and small desktops */
    }
}

/* For larger screens */
@media (min-width: 992px) {
    .hero-section {
        padding-top: 20px 0 0 0; /* Even more padding for desktops */
    }
}

/* For extra large screens */
@media (min-width: 1200px) {
    .hero-section {
        padding-top: 30px 0 0 0; /* Maximum padding for large desktops */
    }
    .hero-image{
        max-width: 1300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-content {
        padding-left: 1rem;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-image img {
        max-width: 450px;
        width: 100%;
    }
    
    .hero-image::before {
        width: 100%;
        height: 100%;
    }
    
    .hero-image::after {
        width: 110%;
        height: 110%;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-image img {
        max-width: 350px;
        width: 100%;
    }
}

/* Additional Modern Effects */
.hero-image .floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-image .floating-elements::before {
    content: '💰';
    position: absolute;
    top: 20%;
    left: 10%;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    opacity: 0.6;
}

.hero-image .floating-elements::after {
    content: '📊';
    position: absolute;
    bottom: 20%;
    right: 10%;
    font-size: 2rem;
    animation: float 3s ease-in-out infinite 1.5s;
    opacity: 0.6;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Animation */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-section .container {
    animation: fadeInUp 1.2s ease-out 0.3s both;
}
