/* ============================================
   Shreeji Web Solutions - Custom Styles
   Best Digital Marketing Agency in Dehradun
   ============================================ */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --warning-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Premium Navigation */
.premium-navbar {
    background: linear-gradient(135deg, rgba(20, 25, 35, 0.98) 0%, rgba(30, 35, 45, 0.98) 100%) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.premium-navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.navbar-brand {
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.logo-wrapper {
    position: relative;
    display: inline-block;
    padding: 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.logo-wrapper:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.logo-img {
    height: 55px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.logo-wrapper:hover .logo-glow {
    opacity: 1;
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.brand-text-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    position: relative;
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.25s ease;
}
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
    height: auto;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-graphic {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
    z-index: 3;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

.hero-video {
    width: 100%;
    height: auto;
    max-width: 600px;
    aspect-ratio: 16/9;
    object-fit: contain;
    z-index: 3;
    border-radius: 24px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
    display: block;
}
.device-frame {
    position: relative;
    padding: 20px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(22,26,34,0.96), rgba(38,43,58,0.96));
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 48px rgba(0,0,0,0.35);
    display: inline-block;
    overflow: visible;
}
.device-frame::before {
    content: "";
    position: absolute;
    inset: -12px;
    border-radius: 48px;
    background: radial-gradient(120px 120px at 20% 0%, rgba(102,126,234,0.25), transparent 60%), radial-gradient(160px 160px at 80% 100%, rgba(118,75,162,0.25), transparent 60%);
    filter: blur(12px);
    z-index: 0;
}
.device-screen {
    border-radius: 28px;
    overflow: hidden;
    background: #000;
    box-shadow: inset 0 10px 20px rgba(255,255,255,0.04), inset 0 -10px 20px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.05);
}
.device-notch {
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 14px;
    background: linear-gradient(180deg, #1a1e26 0%, #0e0f14 100%);
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.35);
    z-index: 4;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: pulse 4s ease-in-out infinite;
}

.graphic-circle-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.graphic-circle-2 {
    width: 150px;
    height: 150px;
    bottom: 20%;
    right: 15%;
    animation-delay: 1s;
}

.graphic-circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.6);
    animation: floatIcon 5s ease-in-out infinite;
}

.icon-1 {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.icon-2 {
    bottom: 30%;
    left: 15%;
    animation-delay: 1.5s;
}

.icon-3 {
    top: 60%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 1;
    }
}

.trust-badges .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Service Cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

.service-card i {
    transition: transform 0.3s ease;
}

.service-card:hover i {
    transform: scale(1.1);
}

/* Section Spacing */
/* Image gallery utility */
.gallery-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
@media (max-width: 575.98px) {
    .hero-image { height: auto; min-height: 300px; }
    .hero-video { max-width: 360px; }
    section { padding: 60px 0; }
    .gallery-img { height: 140px; }
    .device-frame { padding: 14px; border-radius: 30px; }
    .device-screen { border-radius: 24px; }
    .device-notch { width: 90px; height: 10px; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .hero-image { height: auto; min-height: 360px; }
    .hero-video { max-width: 480px; }
    .gallery-img { height: 180px; }
    .device-frame { padding: 18px; border-radius: 36px; }
    .device-screen { border-radius: 26px; }
    .device-notch { width: 110px; height: 12px; }
}
@media (min-width: 992px) {
    .hero-image { height: auto; min-height: 420px; }
    .hero-video { max-width: 600px; }
    .gallery-img { height: 220px; }
    .device-frame { padding: 20px; border-radius: 40px; }
    .device-screen { border-radius: 28px; }
    .device-notch { width: 140px; height: 14px; }
}
section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border-radius: 15px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

/* Why Choose Us Section */
#why-us {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#why-us i {
    transition: transform 0.3s ease;
}

#why-us .col-md-6:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Testimonials */
#testimonials .card {
    border-left: 4px solid var(--primary-color);
}

/* Map Container */
.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Contact Form */
#contact .card {
    border: none;
}

#contact .form-control {
    border-radius: 10px;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

#contact .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Premium Footer */
.premium-footer {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
    position: relative;
    overflow: hidden;
}

.premium-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
}

.footer-top {
    position: relative;
    z-index: 1;
}

.footer-brand {
    position: relative;
}

.footer-logo-wrapper {
    position: relative;
    display: inline-block;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.footer-logo {
    max-width: 240px;
    height: 68px;
    object-fit: contain;
    display: block;
    position: relative;
    z-index: 2;
    filter: brightness(1.25) contrast(1.15) drop-shadow(0 4px 14px rgba(0, 0, 0, 0.35));
    transition: all 0.3s ease;
}

.footer-logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.25) 0%, transparent 70%);
    border-radius: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.footer-logo-wrapper:hover .footer-logo-glow {
    opacity: 1;
}

.footer-logo-wrapper:hover .footer-logo {
    transform: scale(1.05);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-size: 0.95rem;
    position: relative;
    padding-left: 0;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #667eea;
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 20px;
    transform: translateX(5px);
}

.footer-links a:hover::before {
    opacity: 1;
    left: 0;
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.footer-contact li i {
    color: #667eea;
    margin-right: 12px;
    margin-top: 4px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.footer-contact li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact li a:hover {
    color: #ffffff;
}

.social-links-premium {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-link-premium {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.social-link-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: translate(-50%, -50%);
    transition: width 0.4s, height 0.4s;
    z-index: 0;
}

.social-link-premium:hover::before {
    width: 100px;
    height: 100px;
}

.social-link-premium i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.social-link-premium:hover {
    color: #ffffff;
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.social-link-premium:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
@media (max-width: 576px) {
    .footer-logo { height: 56px; max-width: 200px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 100px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .logo-img {
        height: 40px;
    }
    
    .brand-text {
        font-size: 1.1rem;
    }
    
    .hero-image {
        height: 300px;
    }
    
    .hero-logo {
        max-width: 200px;
    }
    
    .graphic-circle {
        display: none;
    }
    
    .floating-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-direction: column;
    }
    
    .d-flex.gap-3 .btn {
        width: 100%;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
}

.scroll-to-top.show {
    display: flex;
}

/* Utility Classes */
.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Blog Section */
#blog {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
}

.blog-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.blog-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.blog-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image-placeholder {
    transform: scale(1.1);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.bg-gradient-danger {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.bg-gradient-dark {
    background: linear-gradient(135deg, #434343 0%, #000000 100%);
}

.blog-category {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-meta {
    font-size: 0.85rem;
}

.blog-card h3 a {
    transition: color 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color) !important;
}

/* Enhanced Service Cards */
.service-card {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.service-card:hover::before {
    left: 100%;
}

.service-card i {
    background: linear-gradient(135deg, var(--primary-color), #667eea);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer Logo (override for visibility) */
.footer-logo {
    filter: none;
    opacity: 0.98;
    transition: opacity 0.3s ease;
}

.footer-logo:hover { opacity: 1; }

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

/* Section Headers */
section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* Enhanced Cards */
.card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

/* Gradient Backgrounds */
.bg-gradient-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.bg-gradient-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn,
    #contact {
        display: none;
    }
}
/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 10px;
    background: #000;
    color: #fff;
    padding: 8px 12px;
    border-radius: 6px;
    z-index: 10000;
}

/* Footer polish */
.premium-footer .footer-brand { display:flex; flex-direction:column; align-items:flex-start; }
.premium-footer .footer-brand .footer-logo-wrapper { margin-bottom:12px; }
.premium-footer .footer-bottom .row { align-items:center; }
.premium-footer .footer-bottom p { margin:0; }
@media (max-width: 576px) {
  .premium-footer .footer-brand { align-items:center; text-align:center; }
  .social-links-premium { justify-content:center; }
}

/* Community section styles */
.community-card { border-radius:16px; overflow:hidden; border:1px solid #e9ecef; }
.community-image { width:100%; height:180px; object-fit:cover; display:block; }
.comment-form .input-group input[name="name"] { max-width:160px; }
@media (max-width: 576px) {
  .community-image { height:140px; }
  .comment-form .input-group { flex-direction:column; gap:8px; }
  .comment-form .input-group .btn { width:100%; }
}
@media (min-width: 576px) and (max-width: 991.98px) {
  .community-image { height:160px; }
}

.skip-link:focus {
    top: 10px;
}
