/* ==========================================================================
   Epplicon Technologies - Components Stylesheet
   Reusable UI Components
   ========================================================================== */

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-image: linear-gradient(45deg, var(--primary-color) 0%, #0056b3 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px rgba(13, 110, 253, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn:focus {
    outline: 3px solid rgba(13, 110, 253, 0.5);
    outline-offset: 2px;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(1);
    transition: transform 0.8s, opacity 0.8s;
    z-index: -1;
}

.btn:active::after {
    transform: translate(-50%, -50%) scale(100);
    opacity: 1;
    transition: transform 0s, opacity 0s;
}

/* --- HEADER & NAVIGATION --- */
.main-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-fast);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header.header-scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--secondary-color);
    transition: var(--transition-fast);
}

.logo:hover,
.logo:focus {
    color: var(--primary-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Desktop Navigation */
.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav a {
    text-decoration: none;
    color: var(--text-primary);
    margin-left: 35px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.desktop-nav a:hover,
.desktop-nav a.active {
    color: var(--primary-color);
}

.desktop-nav a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 4px;
}

.desktop-nav .client-login-btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.desktop-nav .client-login-btn:hover {
    color: #fff;
    transform: scale(1.05);
    background-color: #1c2e4c;
}

.desktop-nav .client-portal-link {
    background-color: var(--success-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.desktop-nav .client-portal-link:hover {
    color: #fff;
    transform: scale(1.05);
    background-color: #146c43;
}

.desktop-nav .contact-btn {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 6px;
}

.desktop-nav .contact-btn:hover {
    color: #fff;
    transform: scale(1.05);
}

/* Mobile Navigation */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    position: relative;
}

.mobile-nav-toggle:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

.mobile-nav-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 5px 0;
    transition: var(--transition-smooth);
}

.mobile-nav-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-nav-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.mobile-nav-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(10, 25, 47, 0.95);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: left 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 500;
    margin: 1.5rem 0;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.mobile-nav .client-login-btn {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.mobile-nav .client-portal-link {
    background-color: rgba(25, 135, 84, 0.3);
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1.2rem;
}

.mobile-nav.active a {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.3s;
}

.mobile-nav a:focus {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: 160px;
    padding-bottom: 120px;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-text {
    flex-basis: 60%;
}

.hero-text .hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 1.5rem 0 2.5rem 0;
}

.hero-image-wrapper {
    flex-basis: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    width: clamp(280px, 80vw, 380px);
    height: clamp(280px, 80vw, 380px);
    background-image: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 8s ease-in-out infinite, rotate 20s linear infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: clamp(8rem, 25vw, 10rem);
    font-weight: 800;
}

/* Page Header (for About, Services, etc.) */
.page-header {
    text-align: center;
    padding-top: 160px;
    padding-bottom: 120px;
}

.page-header .hero-text {
    max-width: 800px;
    margin: 0 auto;
}

.page-header .subtitle {
    color: var(--primary-color);
    font-size: 19px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.5rem;
}

/* --- SERVICES SECTION --- */
#services {
    background-color: var(--surface-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--background-color);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid transparent;
    text-align: left;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.service-card .icon {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    background-image: linear-gradient(45deg, var(--primary-color), #0056b3);
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.service-card:hover .icon {
    transform: rotate(15deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
}

/* --- WORK/PORTFOLIO SECTION --- */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.work-card {
    background: var(--background-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}

.work-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.work-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.work-card-image {
    height: 250px;
    overflow: hidden;
}

.work-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-in-out;
}

.work-card:hover .work-card-image img {
    transform: scale(1.05);
}

.work-card-content {
    padding: 25px;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.work-tag {
    background: #e9ecef;
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.work-card:hover .work-tag {
    background-color: var(--primary-color);
    color: #fff;
}

/* --- ABOUT SECTION --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4rem;
}

.about-founder-image {
    text-align: center;
}

.about-founder-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 10px solid var(--background-color);
    box-shadow: var(--shadow-md);
}

.about-founder-image h4 {
    margin-top: 1.5rem;
    font-size: 1.5rem;
}

.about-founder-image p {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 60px;
}

/* Founder Bio Items (About Page) */
.founder-bio-item {
    display: grid;
    gap: 3rem;
    align-items: center;
    margin-bottom: 80px;
}

.founder-bio-item:last-child {
    margin-bottom: 0;
}

.founder-bio-item:nth-child(odd) {
    grid-template-columns: 1fr 300px;
}

.founder-bio-item:nth-child(odd) .founder-bio-image {
    grid-column: 2;
}

.founder-bio-item:nth-child(odd) .founder-bio-content {
    grid-column: 1;
    grid-row: 1;
}

.founder-bio-item:nth-child(even) {
    grid-template-columns: 300px 1fr;
}

.founder-bio-image img {
    width: 100%;
    max-width: 300px;
    border-radius: 50%;
    box-shadow: var(--shadow-md);
    border: 8px solid var(--surface-color);
}

.founder-bio-content .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Story Grid (About Page) */
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

/* Values Section (About Page) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 60px;
}

.value-card {
    background: var(--surface-color);
    border-radius: 16px;
    padding: 40px;
    text-align: left;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.value-card::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at center, rgba(13, 110, 253, 0.3), transparent 70%);
    filter: blur(40px);
    transform: translate(-45px, -45px);
    z-index: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.value-card.card-selected {
    border-color: var(--primary-color);
}

.value-card.card-selected::before {
    opacity: 0.8;
}

.value-card > * {
    position: relative;
    z-index: 1;
}

.value-card:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.value-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(13, 110, 253, 0.3);
    border-radius: 25%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    margin-bottom: 1.5rem;
}

.value-icon i {
    font-size: 2.5rem;
    color: #fff;
    transition: var(--transition-smooth);
}

.value-card.card-selected .value-icon {
    transform: rotate(15deg);
}

/* Social Links */
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- CALL TO ACTION --- */
.cta-section {
    background-image: linear-gradient(45deg, var(--secondary-color), #1c2e4c);
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: #fff;
}

.cta-section h2 {
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.8;
}

.cta-section .form-status {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cta-section .form-status.success {
    background: rgba(25, 135, 84, 0.2);
    color: #90ee90;
    border-color: rgba(25, 135, 84, 0.4);
}

.cta-section .form-status.error {
    background: rgba(220, 53, 69, 0.2);
    color: #ffb3b3;
    border-color: rgba(220, 53, 69, 0.4);
}

.cta-section .contact-form {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.cta-section .form-group label {
    color: #fff;
}

.cta-section .form-group input,
.cta-section .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.cta-section .form-group input::placeholder,
.cta-section .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.cta-section .form-group input:focus,
.cta-section .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

/* --- FOOTER --- */
.site-footer {
    background: var(--secondary-color);
    color: #fff;
    padding-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 2rem;
    padding-bottom: 40px;
}

.footer-grid h4 {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-grid a:hover {
    color: #fff;
}

.footer-grid a:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-grid ul {
    list-style: none;
}

.footer-grid li {
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 25px 0;
}

/* --- SERVICE DETAIL ITEMS (Services Page) --- */
.service-detail-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 100px;
}

.service-detail-item:last-child {
    margin-bottom: 0;
}

.service-detail-item:nth-child(even) .service-detail-image {
    order: 2;
}

.service-detail-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    object-fit: cover;
}

.service-detail-content h2 {
    margin-bottom: 1rem;
}

.service-detail-content ul {
    list-style: none;
    margin-top: 1.5rem;
}

.service-detail-content ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.service-detail-content ul li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px;
}

/* --- PRICING CARDS (Services Page) --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 60px;
}

.pricing-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.pricing-card:focus-within {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

.pricing-card.popular {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: -45px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
}

.pricing-header h3 {
    font-size: 1.8rem;
}

.pricing-price {
    margin: 2rem 0;
}

.pricing-price h4 {
    font-weight: 400;
    color: var(--text-secondary);
    font-size: 1rem;
}

.pricing-price span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.pricing-features li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.pricing-footer .btn {
    width: 100%;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .desktop-nav {
        display: none;
    }

    .mobile-nav-toggle {
        display: block;
    }

    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        order: 2;
    }

    .hero-image-wrapper {
        order: 1;
        margin-bottom: 3rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-founder-image {
        order: 1;
        margin-bottom: 3rem;
    }

    .about-text {
        order: 2;
    }

    .section-header,
    .about-text {
        text-align: center;
    }

    .story-grid {
        grid-template-columns: 1fr;
    }

    .story-image {
        order: -1;
        margin-bottom: 3rem;
    }

    .founder-bio-item,
    .founder-bio-item:nth-child(odd),
    .founder-bio-item:nth-child(even) {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-bio-image,
    .founder-bio-item:nth-child(odd) .founder-bio-image {
        order: 1;
        grid-column: 1;
        margin: 0 auto 2rem auto;
        max-width: 250px;
    }

    .founder-bio-content,
    .founder-bio-item:nth-child(odd) .founder-bio-content {
        order: 2;
        grid-column: 1;
        grid-row: auto;
    }

    .service-detail-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .service-detail-item:nth-child(even) .service-detail-image {
        order: 1;
    }

    .service-detail-image {
        margin-bottom: 2rem;
        order: 1;
    }

    .service-detail-content {
        order: 2;
    }

    .service-detail-content ul {
        text-align: left;
        display: inline-block;
    }

    .pricing-card.popular {
        transform: scale(1);
    }
}


/* --- WHY CHOOSE US SECTION --- */
.why-choose-section {
    padding: 100px 0;
    background-color: var(--surface-color);
}

/* --- INDUSTRIES SECTION --- */
.industries-section {
    padding: 100px 0;
    background-color: var(--surface-color);
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 0;
    background: var(--background-color);
}

.section-description {
    max-width: 700px;
    margin: 1rem auto 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* --- FORM STATUS --- */
.form-status {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 500;
}

.form-status.success {
    background: rgba(25, 135, 84, 0.1);
    color: #198754;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.form-status.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.form-submit {
    width: 100%;
    position: relative;
}

.form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .about-founder-image img {
        width: 240px;
        height: 240px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

}

