:root {
    --primary-color: #8b5cf6; /* Violet 500 */
    --secondary-color: #0ea5e9; /* Sky Blue */
    --accent-color: #f43f5e; /* Rose */
    --bg-dark: #0f172a; 
    --bg-darker: #020617; 
    --bg-gradient: radial-gradient(circle at 50% 50%, #1e293b 0%, #020617 100%);
    --glass-bg: rgba(15, 23, 42, 0.85); /* Darker, more solid background for better text contrast */
    --glass-border: rgba(255, 255, 255, 0.15);
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0; /* Very bright secondary text */
    --text-muted: #94a3b8;
    --glow-shadow: 0 0 50px rgba(139, 92, 246, 0.2);
    --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Base Body Styles */
body {
    background: var(--bg-darker);
    background-image: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: 'Outfit', 'Poppins', sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Global Typography Consistency */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700;
}

p, span, li, a, input, textarea, button {
    font-family: 'Outfit', sans-serif !important;
}

/* Glassmorphism Classes */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: 0.5s;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.1);
    transform: translateY(-10px) scale(1.01);
}

/* Modern Typography */
.modern-title {
    font-size: 3.5rem !important; /* Unified heading size */
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(to right, #a78bfa, #22d3ee, #fb7185); 
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modern-subtitle {
    font-size: 1.15rem !important;
    line-height: 1.8 !important;
    color: var(--text-secondary);
    max-width: 780px;
}

/* Navigation Styles */
.header_bg {
    background: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    font-size: 0.95rem;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05);
}

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

/* Sections */
.layout_padding {
    padding: 50px 0;
}

.services_section, .portfolio_section, .blog_section_2, .contact_section {
    background: transparent !important;
}

.section_title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4rem;
}

/* Buttons */
.premium-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.premium-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
    filter: brightness(1.1);
}

.premium-btn-outline {
    background: transparent;
    color: white !important;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none !important;
}

.premium-btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Service Boxes */
.box_main {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 2rem !important;
}

.app_icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s ease;
}

.box_main:hover .app_icon {
    transform: scale(1.2) rotate(10deg);
}

/* Portfolio Items */
.portfolio_gallery_item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
}

.portfolio_gallery_item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio_gallery_item:hover img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transition: all 0.4s ease;
    transform: translateY(10px);
}

.portfolio_gallery_item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Form Inputs */
.premium-input {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid var(--glass-border) !important;
    color: #fff !important;
    border-radius: 12px !important;
    padding: 1rem 1.5rem !important;
    transition: all 0.3s ease !important;
}

.premium-input:focus {
    background: rgba(15, 23, 42, 0.8) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.2) !important;
    outline: none !important;
}

.premium-input::placeholder {
    color: var(--text-muted) !important;
    opacity: 0.8 !important;
}

/* Cursor (Premium Refinement) */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease-out;
}

.custom-cursor-follower {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05); /* Added subtle fill for better visibility */
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.25s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 1s forwards;
}
