:root {
    --bg-main: #050505; /* Slightly darker for better contrast */
    --bg-surface: #111111; /* More elegant dark surface */
    --text-main: #F8FAFC;
    --text-muted: #A1A1AA;
    --accent: #0066FF; /* New Nexora Blue */
    --accent-hover: #0052CC; /* Darker blue for hover state */
    --accent-light: rgba(0, 102, 255, 0.15); /* Soft blue for backgrounds */
    --border-color: rgba(255, 255, 255, 0.08);
    
    --font-primary: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    color: var(--text-main);
    font-family: var(--font-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--accent);
}

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

/* Navbar */
.navbar-custom {
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-custom .nav-link {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0 10px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--text-main);
}

.navbar-brand-logo {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-image {
    height: 35px; /* Adjust height based on actual logo proportion */
    width: auto;
    object-fit: contain;
}

/* Buttons */
.btn-primary-custom {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 102, 255, 0.4), 0 0 15px rgba(0, 102, 255, 0.2);
}

.btn-outline-custom {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 10px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    border-color: var(--text-main);
    background-color: rgba(255,255,255,0.05);
    color: var(--text-main);
}

/* Sections */
.section-padding {
    padding: 100px 0;
}

/* Cards (Services, Portfolio) */
.card-custom {
    background: linear-gradient(145deg, var(--bg-surface), rgba(17, 17, 17, 0.7));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, transparent, rgba(0, 102, 255, 0.03));
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none; /* FIX: Prevents blocking clicks on form inputs inside the card */
}

.card-custom:hover::before {
    opacity: 1;
}

.card-custom:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.3);
}

.card-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.portfolio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,102,255,0.18) 0%, rgba(5,5,5,0) 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    pointer-events: none;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #A1A1AA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
}

.footer-link {
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--accent);
}

/* Form inputs */
.form-control-custom {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 6px;
    padding: 0.75rem 1rem;
}

.form-control-custom:focus {
    background: rgba(30, 30, 30, 0.9);
    color: var(--text-main);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.25rem rgba(0, 102, 255, 0.25);
}
