/* Main CSS for GrammarAI Pro */

/* Color Variables */
:root {
    --primary-color: #644dfb;
    --primary-light: #7785fc;
    --primary-dark: #35268b;
    --secondary-color: #19bbde;
    --secondary-light: #57cbf0;
    --secondary-dark: #0698b0;
    --accent-color: #18b289;
    --accent-light: #69e4a3;
    --accent-dark: #019772;
    --neutral-color: #616881;
    --neutral-light: #dbdfec;
    --neutral-dark: #303543;
    --warning-color: #ed8500;
    --warning-light: #eca810;
    --warning-dark: #e47800;
    --success-color: #20c896;
    --error-color: #ff5758;
    --text-dark: #1d2a35;
    --text-light: #767d91;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-accent: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
    background-color: var(--bg-white);
    scroll-behavior: smooth;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 {
    font-size: 2.59rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.54rem;
    color: var(--text-light);
    font-weight: 400;
}

h4 {
    font-size: 1.30rem;
}

h5 {
    font-size: 1.19rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1rem;
}

/* Header Styles */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.56rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.navbar-brand:hover {
    color: var(--primary-dark);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
}

.nav-link:hover {
    color: var(--primary-color);
}

/* Hero Section */
#hero {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../DIG_images/hero-bg.webp') center/cover;
    opacity: 0.1;
    z-index: 1;
}

#hero .container {
    position: relative;
    z-index: 2;
}

#hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1.61rem;
}

#hero h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    margin-bottom: 1.60rem;
}

#hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.20rem;
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

/* Cards */
.feature-card, .service-card, .review-card, .case-card, .blog-card, .price-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    border: 1px solid var(--neutral-light);
}

.feature-card:hover, .service-card:hover, .review-card:hover, .case-card:hover, .blog-card:hover, .price-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.service-card img, .case-card img, .blog-card img {
    border-radius: 8px;
    margin-bottom: 1rem;
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-top: 1rem;
}

.price-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.price-card.featured .price {
    color: var(--secondary-color);
}

/* Team Section */
.team-member img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.54rem;
    font-weight: 700;
    margin: 0 auto 1rem;
}

/* Timeline */
.timeline-item {
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 0 8px 8px 0;
    box-shadow: var(--shadow-sm);
}

/* Career Items */
.career-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--neutral-light);
    transition: all 0.3s ease;
}

.career-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

/* Info Cards */
.info-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-3px);
}

.info-card i {
    color: var(--primary-color);
}

/* FAQ Accordion */
.accordion-button {
    background-color: var(--bg-white);
    border: 1px solid var(--neutral-light);
    font-weight: 500;
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary-light);
    color: white;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(77, 79, 250, 0.25);
}

/* Gallery */
#gallery img {
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

#gallery img:hover {
    transform: scale(1.05);
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.form-control {
    border: 2px solid var(--neutral-light);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(92, 66, 221, 0.25);
}

/* Buttons */
.btn {
    border-radius: 8px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--gradient-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: var(--neutral-light);
}

footer h5 {
    color: white;
    margin-bottom: 1.66rem;
}

footer a {
    color: var(--neutral-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-light);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    padding: 0;
}

.breadcrumb-item img {
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.breadcrumb-item img:hover {
    transform: scale(1.1);
}

/* Additional Page Specific Styles */
.strategy-item, .method-card, .scenario-box, .level-card, .metric-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.strategy-item:hover, .method-card:hover, .scenario-box:hover, .level-card:hover, .metric-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.method-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

.level-badge, .standard-badge {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.tech-card, .industry-card, .personalization-item, .standard-card, .integration-item {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.tech-card:hover, .industry-card:hover, .personalization-item:hover, .standard-card:hover, .integration-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.tech-card i, .integration-item i {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.industry-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
}

/* Utility Classes */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient {
    background: var(--gradient-primary);
}

/* Image Specifications */
img {
    max-width: 100%;
    height: auto;
}

/* Ensure images display correctly regardless of actual size */
.hero-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
}

.service-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.team-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --text-dark: #000000;
        --text-light: #000000;
        --bg-white: #ffffff;
        --bg-light: #ffffff;
    }
} 


/* Team Social Links - Elegant Style */
.team-social-links {
    margin-top: 24px;
    padding: 18px 0;
}

.social-icons-grid {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 17px;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    color: white;
}

.facebook-link {
    background: rgba(24, 119, 242, 0.9);
}

.facebook-link:hover {
    background: rgba(24, 119, 242, 1);
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.linkedin-link {
    background: rgba(10, 102, 194, 0.9);
}

.linkedin-link:hover {
    background: rgba(10, 102, 194, 1);
    box-shadow: 0 8px 30px rgba(10, 102, 194, 0.4);
}

.x-link {
    background: rgba(0, 0, 0, 0.9);
    position: relative;
}

.x-link::after {
    content: '𝕏';
    font-weight: bold;
    font-size: 19px;
    z-index: 2;
    position: relative;
}

.x-link:hover {
    background: rgba(0, 0, 0, 1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 15px;
    }
}
