:root {
    /* Light Theme Colors */
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #818cf8;
    --dark-color: #1e1b4b;
    --light-color: #ffffff;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #64748b;
    --gray-800: #1f2937;
    --bg-primary: var(--light-color);
    --bg-secondary: var(--gray-100);
    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --card-bg: var(--light-color);
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --navbar-bg: rgba(255, 255, 255, 0.95);
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --card-bg: #1e293b;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #94a3b8;
    --navbar-bg: rgba(15, 23, 42, 0.95);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3);
}

/* Improve text contrast in various components */
.service-card p,
.portfolio-content p,
.insight-content p,
.contact-info p,
.footer-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.service-features li {
    color: var(--text-primary);
    font-size: 1.05rem;
}

.date {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-section ul a {
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-section ul a:hover {
    color: var(--primary-color);
}

/* Improve form placeholder contrast */
.form-group input::placeholder,
.form-group textarea::placeholder,
.newsletter-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.8;
}

/* Ensure theme toggle is always visible */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient);
    color: var(--light-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

/* Smooth transition for theme switching */
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Update existing styles to use new color variables */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background: var(--navbar-bg);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.nav-links a {
    color: var(--text-primary);
}

.service-card,
.portfolio-item,
.insight-card,
.contact-form {
    background: var(--card-bg);
}

.services,
.portfolio,
.contact {
    background: var(--bg-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--gray-200);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

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

html {
    scroll-behavior: smooth;
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-200);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.logo-accent {
    width: 8px;
    height: 8px;
    background: var(--gradient);
    border-radius: 50%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background: var(--gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--gradient);
    color: var(--light-color) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: transform 0.3s ease !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1002;
}

.menu-btn span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--text-primary);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.menu-btn span:nth-child(1) {
    top: 0px;
}

.menu-btn span:nth-child(2) {
    top: 9px;
}

.menu-btn span:nth-child(3) {
    top: 18px;
}

.menu-btn.open span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.menu-btn.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-btn.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

.hero {
    min-height: 100vh;
    padding-top: 80px;
    background: linear-gradient(rgba(30, 27, 75, 0.9), rgba(79, 70, 229, 0.8)),
                url('images/hero-bg.webp') center/cover;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    padding: 0 5%;
    color: var(--light-color);
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-text .subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.cta-button.primary {
    background: var(--gradient);
    color: var(--light-color);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-color);
    backdrop-filter: blur(10px);
}

.cta-button:hover {
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin-top: 4rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
}

.services {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--light-color);
}

.service-features {
    list-style: none;
    margin: 1.5rem 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.learn-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.about {
    padding: 8rem 5%;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.feature-list {
    display: grid;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: var(--primary-color);
}

.image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-container img {
    width: 100%;
    height: auto;
    display: block;
}

.portfolio {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

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

.portfolio-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.portfolio-content {
    padding: 2rem;
}

.portfolio-content h3 {
    margin-bottom: 1rem;
}

.tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: var(--gradient);
    color: var(--light-color);
    border-radius: 50px;
    font-size: 0.875rem;
    margin-top: 1rem;
}

.insights {
    padding: 8rem 5%;
}

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

.insight-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.insight-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.insight-content {
    padding: 2rem;
}

.date {
    color: var(--gray-500);
    font-size: 0.875rem;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 2rem;
}

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

.contact-item i {
    color: var(--primary-color);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-color);
}

.submit-button {
    width: 100%;
    padding: 1rem;
    background: var(--gradient);
    color: var(--light-color);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.submit-button:hover {
    transform: translateY(-2px);
}

.footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--gray-200);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4,
.footer-section p {
    color: var(--text-primary);
}

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

.social-links a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul a:hover {
    color: var(--light-color);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    background: transparent;
    color: var(--light-color);
}

.newsletter-form button {
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--secondary-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    text-align: center;
}

@media (max-width: 1024px) {
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        max-width: 400px;
        background: var(--card-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        transition: all 0.3s ease-in-out;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
    }
    
    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-cta {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }

    body.menu-open {
        overflow: hidden;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

[data-aos] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-content p,
.insight-content p,
.contact-info p {
    color: var(--text-secondary);
}

.service-features li {
    color: var(--text-secondary);
}

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--gray-200);
}

.footer-section ul a {
    color: var(--text-secondary);
}

.footer-section ul a:hover {
    color: var(--text-primary);
}

.newsletter-form input {
    background: var(--bg-primary);
    color: var(--text-primary);
    border-color: var(--gray-200);
}

.newsletter-form input::placeholder {
    color: var(--text-secondary);
}

.menu-btn__burger,
.menu-btn__burger::before,
.menu-btn__burger::after {
    background: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;
    }
    
    html[data-theme="light"] {
        color-scheme: light;
    }
}

/* Smooth transition for theme switching */
body * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
} 