/* ===== CSS Variables ===== */
:root {
    --primary-color: #001F3F;
    --accent-color: #C8102E;
    --text-color: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-white: #FFFFFF;
    --border-color: #E9ECEF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1.0rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== Buttons ===== */
.btn-primary {
    background-color: var(--accent-color);
    color: rgb(255, 255, 255);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #A50D24;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    padding: 12px 24px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-white {
    background-color: white;
    color: var(--primary-color);
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-white:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background-color: transparent;
    color: white;
    padding: 12px 24px;
    border: 2px solid white;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.cta-button {
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* CTA Button Hover Fix */
.cta-button:hover {
    background-color: var(--accent-color) !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

/* ===== Navigation ===== */
.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: white;
    box-shadow: var(--shadow);
}
/* Make navigation non-sticky on mobile devices */
@media (max-width: 768px) {
    .sticky-nav {
        position: static;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
}
.nav {
    padding: 0rem 0;
    background-color: white;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 35px;
    height: 35px;
    border-radius: 4px; /* or 50% for circular */
    object-fit: cover;
    display: block !important;
    visibility: visible !important;
}

.logo-text {
    font-family: 'Mistral', cursive;
    font-size: 2rem;
    font-weight: 500;
    position: relative;
    display: inline-block;
}

.logo-text::before {
    content: 'Pen';
    position: absolute;
    left: 0;
    color: #000000;
}

.logo-text::after {
    content: 'Scriber';
    position: absolute;
    left: 37px;
    color: var(--accent-color);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 0rem 0rem;
}

.nav-link {
    color: var(--primary-color);
    font-weight: 400;
    transition: color 0.3s ease;
    transition: all 0.3s ease;
    padding: 5px 12px;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--accent-color);
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 300;
    font-size:medium;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0rem;
    transition: color 0.3s ease;
    transition: all 0.3s ease;
    padding: 9px 12px;
    border-radius: 6px;
}

.dropdown-btn:hover {
    color: var(--accent-color);
}

.arrow {
    font-size: 0.6rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-light);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background-color: white;
    color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.3);
    color: var(--accent-color);
    font-weight: 400;
    padding-left: 1.5rem;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: 0.3s;
}

.mobile-nav {
    display: none;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    margin-top: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 0;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--primary-color);
}

.mobile-cta {
    width: 100%;
    margin-top: 1rem;
}

/* ===== Hero Section ===== */
.hero {
    padding: 2rem 0 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.0rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 1s ease; 
    cursor: pointer;
}
        
    .hero-image:hover img {
    transform: scale(1.1); /* Zooms the image to 110% of its original size */
}

/* ===== Quick Services ===== */
.quick-services {
    padding: 2rem 0;
    background-color: rgb(255, 255, 255);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    background-color: #e3f2fd;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
    background-color: var(--primary-color);
    color: var(--accent-color);
}

.service-card:hover h3 {
    color: var(--accent-color);
}

.service-icon i {
  font-size: 3rem;
  color: #c7c9d4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-icon i:hover {
  color: #bac4ce;
  transform: scale(1.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
}

/* ===== About Section ===== */
.about {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    color: var(--primary-color);
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-image img {
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    transition: transform 1s ease; 
    cursor: pointer;
}
        
    /* When you hover over the image container, the image scales up */
    .hero-image:hover img {
    transform: scale(1.1); /* Zooms the image to 110% of its original size */
}

/* ===== Services Section ===== */
.services {
    padding: 2rem 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.25rem;
    max-width: 500px;
    margin: 2 auto;
}

.services-grid-detailed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card-detailed {
    background-color: white;
    background-color: #e3f2fd;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.service-card-detailed:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card-detailed:hover .btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

.service-card-detailed.featured {
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: white;
}

.service-card-detailed.featured h3,
.service-card-detailed.featured p {
    color: white;
}

.service-card-detailed.featured:hover .btn-white {
    background-color: var(--accent-color);
    color: white;
}

.service-icon-detailed {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-card-detailed h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-icon i {
  font-size: 1rem;
  color: #c7c9d4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.service-icon i:hover {
  color: #bac4ce;
  transform: scale(1.2);
}
.service-card-detailed li {
    padding: 0.5rem 0;
    color: var(--text-light);
}

/* ===== Why Choose Section ===== */
.why-choose {
    padding: 2rem 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center; 
}

.feature-icon {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feature p {
    color: var(--text-light);
}

/* ===== Testimonials Section ===== */
.testimonials {
    padding: 2rem 0;
    background-color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    height: 350px;
    margin-bottom: 3rem;
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: absolute;
    width: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.5s ease;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.stars {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0rem;
    margin-top: 1rem;
}

.author-role {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dot:hover {
    background-color: var(--accent-color);
    transform: scale(1.2);
    border-color: var(--accent-color);
}

.dot.active {
    background-color: var(--accent-color);
    transform: scale(1.1);
    border-color: var(--accent-color);
}

/* ===== Partners Section ===== */
.partners {
    padding: 2rem 0 1rem;
    background-color: var(--bg-light);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.partner-logo {
    background-color: white;
    background-color: #e3f2fd;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--primary-color);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    background-color: var(--accent-color);
    color:#001F3F;
}

/* ===== Blog Section ===== */
.blog {
    padding: 5rem 0;
    background-color: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 1.5rem;
}

.blog-category {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.blog-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.blog-card p {
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--accent-color);
}

.text-center {
    text-align: center;
}

/* ===== CTA Section ===== */
.cta {
    padding: 2rem 0;
    background: linear-gradient(135deg, var(--primary-color), #003366);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 2rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: white;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.footer-section p {
    color: #cccccc;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #cccccc;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: black;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.social-links a:hover {
    background: #1a1a1a;
    color: var(--accent-color);
    transform: translateY(-3px);
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.platform-links {
    display: flex;
    gap: 1rem;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: #cccccc;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid-detailed {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .services,
    .about,
    .why-choose,
    .testimonials,
    .blog {
        padding: 3rem 0;
    }
    
    .cta {
        padding: 3rem 0;
    }
    
    footer {
        padding: 3rem 0 2rem;
    }
    
    .service-card,
    .service-card-detailed {
        padding: 1.5rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
}