:root {
    --primary-color: #1a73e8;
    --secondary-color: #0d47a1;
    --accent-color: #00bcd4;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-color: #334155;
    --heading-color: #1e293b;
    --gradient-primary: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    --gradient-secondary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Light mode variables */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --text-muted: #64748b;
    --navbar-bg: rgba(255, 255, 255, 0.95);
    --card-bg: #ffffff;
    --input-bg: #ffffff;
    --footer-bg: #1e293b;
    --footer-text: #94a3b8;
}

[data-theme="dark"] {
    --primary-color: #3b82f6;
    --secondary-color: #1d4ed8;
    --accent-color: #06b6d4;
    --text-color: #e2e8f0;
    --heading-color: #f1f5f9;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    
    /* Dark mode variables */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --border-color: #334155;
    --border-light: #475569;
    --text-muted: #94a3b8;
    --navbar-bg: rgba(15, 23, 42, 0.98);
    --card-bg: #1e293b;
    --input-bg: #334155;
    --footer-bg: #0f172a;
    --footer-text: #64748b;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    color: var(--heading-color);
    font-weight: 600;
}

.container-fluid {
    max-width: 1400px;
}

/* Navbar Styles */
.navbar {
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    padding: 1rem 0;
    z-index: 1000;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
}

/* Custom navbar toggler */
.navbar-toggler {
    border: 2px solid var(--border-color);
    outline: none;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    background: var(--bg-secondary);
    transition: var(--transition);
}

.navbar-toggler:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dark mode hamburger icon */
[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28241, 245, 249, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme="dark"] .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color) !important;
    letter-spacing: -0.5px;
}

.navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    margin: 0 1rem;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Mobile navbar styling */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--navbar-bg) !important;
        border-radius: 0 0 15px 15px !important;
        margin-top: 1rem !important;
        padding: 1rem !important;
        box-shadow: var(--shadow-md) !important;
        border: 1px solid var(--border-color) !important;
        border-top: none !important;
        backdrop-filter: blur(10px);
    }
    
    .navbar-collapse.show {
        animation: slideDown 0.3s ease-out;
        background: var(--navbar-bg) !important;
    }
    
    .navbar-collapse.collapsing {
        background: var(--navbar-bg) !important;
        transition: height 0.3s ease;
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 8px !important;
        transition: var(--transition) !important;
        color: var(--text-color) !important;
    }
    
    .navbar-nav .nav-link:hover {
        background: var(--bg-secondary) !important;
        color: var(--primary-color) !important;
    }
    
    .navbar-nav .nav-link::after {
        display: none !important;
    }
    
    .dark-mode-toggle {
        margin: 1rem 0 0 0;
        align-self: flex-start;
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-color);
    margin-left: 1rem;
}

.dark-mode-toggle:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.dark-mode-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.2);
}

.toggle-icon {
    font-size: 1.1rem;
    transition: var(--transition);
}

.dark-mode-toggle:hover .toggle-icon {
    transform: rotate(15deg);
}

/* Dark mode specific adjustments */
[data-theme="dark"] .platform-status {
    background: rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .tech-item:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .service-card:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .platform-card:hover {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .portfolio-card:hover {
    background: var(--bg-tertiary);
}

/* Improved contrast for dark mode */
[data-theme="dark"] .form-control::placeholder,
[data-theme="dark"] .form-select::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

/* Ensure good contrast for links */
[data-theme="dark"] a {
    color: var(--accent-color);
}

[data-theme="dark"] a:hover {
    color: var(--primary-color);
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--bg-secondary);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    transition: var(--transition);
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
}

.btn-primary-custom {
    background: var(--gradient-primary);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    color: white;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    transition: var(--transition);
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Section Styles */
.section {
    padding: 5rem 0;
    transition: var(--transition);
}

.section:nth-child(even) {
    background: var(--bg-primary);
}

.section:nth-child(odd) {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Service Cards */
.service-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    height: 100%;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Technology Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.tech-item {
    background: var(--card-bg);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.tech-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.tech-icon {
    font-size: 1.5rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    height: 250px;
    background: var(--gradient-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-badge {
    background: rgba(26, 115, 232, 0.1);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Section */
.about-stat-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.about-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.about-stat-card h3 {
    color: var(--primary-color);
}

.about-stat-card p {
    color: var(--text-color);
}

.company-info-card {
    background: var(--gradient-primary);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

[data-theme="dark"] .company-info-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Override Bootstrap classes for dark mode */
[data-theme="dark"] .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-white {
    background-color: var(--card-bg) !important;
}

[data-theme="dark"] .text-dark {
    color: var(--text-color) !important;
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

/* Dark mode mobile navbar specific overrides */
@media (max-width: 991px) {
    [data-theme="dark"] .navbar-collapse,
    [data-theme="dark"] .navbar-collapse.show,
    [data-theme="dark"] .navbar-collapse.collapsing {
        background-color: #1e293b !important;
        background: #1e293b !important;
        background-image: none !important;
    }
    
    [data-theme="dark"] .navbar-nav {
        background-color: transparent !important;
    }
    
    [data-theme="dark"] .navbar-nav .nav-link {
        color: #e2e8f0 !important;
        background-color: transparent !important;
        background: transparent !important;
    }
    
    [data-theme="dark"] .navbar-nav .nav-link:hover,
    [data-theme="dark"] .navbar-nav .nav-link:focus {
        background-color: #334155 !important;
        background: #334155 !important;
        color: #3b82f6 !important;
    }
    
    [data-theme="dark"] .navbar-nav .nav-link:active {
        background-color: #334155 !important;
        color: #3b82f6 !important;
    }
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: white;
}

.contact-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.contact-form {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.form-control,
.form-select {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--input-bg);
    color: var(--text-color);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 115, 232, 0.25);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: white;
    padding: 3rem 0 1.5rem;
    transition: var(--transition);
}

.footer-content {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
}

.footer-brand {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer h5 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.footer p {
    color: var(--footer-text);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

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

/* Responsive */
@media (max-width: 991px) {
    .container-fluid {
        padding: 0 1rem;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        padding: 1rem;
        border-radius: 10px;
        margin-top: 1rem;
        box-shadow: var(--shadow-md);
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem;
        text-align: center;
        border-radius: 8px;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(26, 115, 232, 0.1);
    }
    
    .navbar-nav .nav-link::after {
        display: none;
    }
    
    .hero-section {
        padding: 2rem 0;
        min-height: calc(100vh - 60px);
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.5;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .btn-primary-custom,
    .btn-outline-custom {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .tech-item {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .portfolio-card {
        margin-bottom: 1.5rem;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Touch-friendly spacing */
    .form-control,
    .form-select {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better mobile navigation */
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Stack buttons on mobile */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* Mobile-first utility classes */
@media (max-width: 768px) {
    .text-md-start {
        text-align: center !important;
    }
    
    .mt-md-0 {
        margin-top: 1rem !important;
    }
}

/* Prevent horizontal scroll on mobile */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    
    .container,
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Ensure all sections respect viewport */
    .hero-section,
    .section {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Better touch targets */
    a, button, .btn {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Fix mobile hero spacing */
    .hero-section {
        padding-top: 80px;
    }
    
    /* Mobile-optimized cards */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col, [class*="col-"] {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Platforms Section */
.platforms {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.platform-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-primary);
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.platform-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    font-size: 40px;
    color: white;
}

.platform-illustration {
    width: 100%;
    height: 200px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.tech-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

.tech-svg {
    width: 100%;
    max-width: 600px;
    height: 100%;
    object-fit: contain;
}

.platform-card h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.platform-status {
    display: inline-block;
    background: var(--bg-tertiary);
    color: var(--primary-color);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid var(--border-light);
}

.platform-card p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.platform-features {
    margin-bottom: 30px;
}

.platform-features h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--heading-color);
}

.platform-features ul {
    list-style: none;
    padding: 0;
}

.platform-features li {
    padding: 8px 0;
    color: var(--text-color);
    display: flex;
    align-items: center;
}

.platform-features li i {
    color: var(--accent-color);
    margin-right: 12px;
    font-size: 14px;
}

.platform-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.platform-link:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.platform-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.platform-link:hover i {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .platforms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .platforms-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .platform-card {
        padding: 35px 25px;
    }
}

@media (max-width: 575px) {
    .platforms {
        padding: 60px 0;
    }
    
    .platforms-grid {
        gap: 20px;
    }
    
    .platform-card {
        padding: 30px 20px;
    }
    
    .platform-icon {
        width: 60px;
        height: 60px;
        font-size: 30px;
        margin-bottom: 20px;
    }
    
    .platform-card h3 {
        font-size: 1.4rem;
    }
}

/* Policy Pages */
.policy-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.policy-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--heading-color);
    font-weight: 600;
}

.policy-content h3 {
    font-size: 1.3rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-weight: 500;
}

.policy-content p {
    margin-bottom: 1.2rem;
}

.policy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
}

.policy-content .contact-box {
    margin-top: 2rem;
    border-left: 4px solid var(--primary-color);
}

.policy-content .alert {
    border-radius: 10px;
    padding: 1.5rem;
}

.policy-content .alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}

.policy-content .alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}