:root {
    --primary-color: #1a1225; /* Dark Purple */
    --secondary-color: #6e3bff; /* Bright Purple */
    --accent-color: #9d71ff; /* Light Purple */
    --light-color: #ffffff; /* White */
    --dark-color: #120c1a; /* Darker Purple */
    --supporting-color: #231831; /* Medium Dark Purple */
    --text-color: #ffffff; /* White text */
    --matrix-color: #00ff2b; /* Matrix green */
    --heading-font: 'Space Grotesk', sans-serif;
    --body-font: 'Space Grotesk', sans-serif;
    --ui-font: 'Space Grotesk', sans-serif;
    --matrix-font: 'Courier New', monospace;
}

body {
    font-family: var(--body-font);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    color: var(--light-color);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

.navbar {
    padding: 1rem 0;
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(110, 59, 255, 0.1);
    font-family: var(--ui-font);
    border-bottom: 1px solid rgba(110, 59, 255, 0.2);
    background-color: rgba(18, 12, 26, 0.85);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--light-color);
}

.nav-link {
    font-weight: 500;
    color: var(--light-color) !important;
    opacity: 0.8;
}

.nav-link:hover {
    color: var(--secondary-color) !important;
    opacity: 1;
}

.hero-section {
    padding: 9rem 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
    background-color: rgba(18, 12, 26, 0.85);
    backdrop-filter: blur(10px);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(110, 59, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

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

.hero-section p {
    font-family: var(--body-font);
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

.btn {
    font-family: var(--ui-font);
    border-radius: 6px;
    padding: 0.625rem 1.75rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(157, 113, 255, 0.3);
}

.btn-light {
    background-color: var(--light-color);
    border-color: var(--light-color);
    color: var(--primary-color);
}

.btn-light:hover {
    background-color: #fff;
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.section-title {
    position: relative;
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: var(--light-color);
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -12px;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title.text-center:after {
    left: 50%;
    transform: translateX(-50%);
}

.card {
    border: 1px solid rgba(110, 59, 255, 0.2);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(110, 59, 255, 0.1);
    background-color: var(--supporting-color);
    color: var(--light-color);
    background-color: rgba(18, 12, 26, 0.85);
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 30px rgba(110, 59, 255, 0.2);
    border-color: var(--secondary-color);
}

.card-body {
    padding: 1.75rem;
}

.book-card .card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.bg-light {
    background-color: rgba(18, 12, 26, 0.85) !important;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--supporting-color);
    color: var(--light-color);
    margin-right: 10px;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(110, 59, 255, 0.1);
}

.social-links a:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(110, 59, 255, 0.3);
}

.contact-section {
    background-color: var(--dark-color);
}

.form-control {
    font-family: var(--ui-font);
    border: 1px solid rgba(110, 59, 255, 0.2);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    background-color: var(--supporting-color);
    color: var(--light-color);
}

.form-control:focus {
    box-shadow: 0 0 0 3px rgba(110, 59, 255, 0.2);
    border-color: var(--secondary-color);
    background-color: var(--supporting-color);
    color: var(--light-color);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-label {
    font-weight: 500;
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(110, 59, 255, 0.2);
    background-color: rgba(18, 12, 26, 0.85);
    backdrop-filter: blur(10px);
}

.footer-title {
    font-family: var(--heading-font);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

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

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

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

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

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 3rem;
    font-family: var(--ui-font);
    font-size: 0.9rem;
}

/* Service card icon styling */
.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    background-color: rgba(110, 59, 255, 0.1);
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(110, 59, 255, 0.2);
}

.card:hover .service-icon {
    background-color: var(--secondary-color);
    color: white;
    transform: scale(1.1);
}

/* Section spacing */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.py-md-7 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

/* Add a subtle tech pattern to supporting color backgrounds */
.bg-light {
    background-image: linear-gradient(to right, rgba(110, 59, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(110, 59, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Work experience section */
.experience-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-item h4 {
    color: var(--light-color);
    margin-bottom: 0.5rem;
}

strong {
    font-weight: 700;
    color: var(--matrix-color);
    text-shadow: 0 0 1px rgba(0, 255, 43, 0.3),
                 0 0 2px rgba(0, 255, 43, 0.3),
                 0 0 5px rgba(0, 255, 43, 0.2);
    font-family: var(--matrix-font);
    letter-spacing: 0.5px;
    font-size: 0.95em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
}

.card ul li {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-toggler {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.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(255, 255, 255, 0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

.text-primary {
    color: var(--accent-color) !important;
}

/* Make sure all text in cards is visible */
.card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Update button hover states for better visibility */
.btn-outline-light:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}

/* Ensure form placeholder text is visible */
.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Make section titles more visible */
.section-title {
    color: var(--light-color);
}

/* Update expertise section icons */
.d-flex i {
    color: var(--accent-color);
}

/* Make sure links in cards are visible */
.card a {
    color: var(--accent-color);
}

.card a:hover {
    color: var(--light-color);
}

/* Update any remaining dark text */
p strong {
    color: var(--accent-color);
}

.lead {
    color: var(--light-color);
    opacity: 0.9;
}

/* Matrix Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-color);
    z-index: -2;
}

.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.4; /* Increased opacity */
}

.matrix-column {
    position: absolute;
    width: 20px;
    font-family: var(--matrix-font);
    font-size: 14px;
    color: var(--matrix-color);
    text-shadow: 0 0 5px var(--matrix-color);
    animation: matrix-rain 20s linear infinite;
    transform-origin: top;
    line-height: 1.2;
}

.matrix-column > div {
    margin-bottom: 5px;
    transform: translateY(0);
    animation: matrix-flicker 3s linear infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes matrix-flicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Convergence effect on scroll */
.matrix-convergence {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.matrix-convergence::before {
    content: '01';
    font-family: var(--matrix-font);
    font-size: 20vw;
    color: var(--matrix-color);
    text-shadow: 0 0 10px var(--matrix-color);
    animation: pulse 2s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Base background settings for all major sections */
.hero-section, .navbar, .card, footer, .contact-section, section {
    background-color: rgba(18, 12, 26, 0.75) !important;
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

/* Remove any solid background colors */
.hero-section {
    background: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(110, 59, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Adjust bg-light sections */
.bg-light {
    background-color: rgba(18, 12, 26, 0.75) !important;
    background-image: none;
}

/* Ensure matrix effect is visible */
.matrix-bg {
    opacity: 0.4; /* Increased opacity */
}

/* Make cards more transparent */
.card {
    background-color: rgba(18, 12, 26, 0.75) !important;
    border: 1px solid rgba(110, 59, 255, 0.3);
}

/* Adjust form controls for consistency */
.form-control {
    background-color: rgba(35, 24, 49, 0.75);
}

/* Remove duplicate background declarations */
.navbar, .hero-section, footer {
    background: none;
}

/* Ensure section backgrounds don't stack opacity */
section {
    background: none;
}

section > * {
    position: relative;
    z-index: 2;
}

/* Add subtle gradient overlay to sections */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 12, 26, 0.65);
    z-index: 1;
    backdrop-filter: blur(5px);
}

/* Update other background colors to be more transparent */
.supporting-color {
    background-color: rgba(35, 24, 49, 0.85);
}

/* Add subtle glow to text */
h1, h2, h3, h4, h5, h6 {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Add matrix effect to strong elements */
strong {
    color: var(--matrix-color);
    text-shadow: 0 0 1px rgba(0, 255, 43, 0.3),
                 0 0 2px rgba(0, 255, 43, 0.3),
                 0 0 5px rgba(0, 255, 43, 0.2);
    font-family: var(--matrix-font);
    font-weight: bold;
} 