/* 
===========================================
  Pothigai Softwares - Custom Styles
=========================================== 
*/

:root {
    --color-dark-bg: #0B1120;
    --color-dark-blue: #0F172A;
    --color-darker-blue: #080C17;
    --color-primary: #3B82F6;
    --color-secondary: #8B5CF6;
    --color-text: #F8FAFC;
    --color-text-muted: #94A3B8;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-dark-bg);
    color: var(--color-text);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

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

.bg-dark-blue {
    background-color: var(--color-dark-blue);
}

.bg-darker-blue {
    background-color: var(--color-darker-blue);
}

.bg-white {
    background-color: #ffffff !important;
}

.bg-light-gray {
    background-color: #F8FAFC !important;
}

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

.text-gradient {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)) !important;
}

.btn-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-primary-gradient:hover {
    background: linear-gradient(135deg, var(--color-secondary), var(--color-primary));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
    color: white;
}

/* Glassmorphism */
.glass-nav {
    background: transparent;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.glass-dropdown {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-dropdown .dropdown-item {
    color: var(--color-text);
    transition: all 0.2s;
}

.glass-dropdown .dropdown-item:hover {
    background: rgba(59, 130, 246, 0.2);
    color: white;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    transition: all 0.4s ease;
}

.border-gradient {
    position: relative;
}
.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(139, 92, 246, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.25);
    color: white;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
    transform: translateY(-2px);
}

/* Navbar */
.navbar-dark .navbar-nav .nav-link {
    color: var(--color-text);
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

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

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

/* Hero Section */
.hero {
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(11, 17, 32, 0.95), rgba(11, 17, 32, 0.7));
}

.badge-custom {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Background Effects */
.glow-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--color-primary);
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.bg-blur-circle {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: 0;
    opacity: 0.15;
}

.bg-blur-circle.top-right {
    top: -100px;
    right: -100px;
    background: var(--color-secondary);
}

.bg-blur-circle.bottom-left {
    bottom: -100px;
    left: -100px;
    background: var(--color-primary);
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 1.2s ease forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

.hover-up:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.3);
}

.hover-scale {
    transition: transform 0.5s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

.transform-scale-105 {
    transform: scale(1.05);
}

/* Components */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    transition: all 0.3s;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.hover-white:hover {
    color: white !important;
}

.blog-img-placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .transform-scale-105 {
        transform: scale(1);
    }
    
    .glass-nav {
        background: rgb(255, 255, 255)) !important;
        backdrop-filter: blur(10px);
    }
    
    .navbar-collapse {
        padding: 20px 0;
    }
}
