/* Custom Styles for PRC IT Solutions */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* =============================================
   COLOR VARIABLES — LIGHT MODE (Default)
   ============================================= */
:root {
    --bg-primary:    #f0f4fa;
    --bg-secondary:  #ffffff;
    --bg-card:       rgba(255, 255, 255, 0.82);
    --bg-glass:      rgba(240, 244, 250, 0.85);

    --accent-cyan:   #0ea5e9;
    --accent-blue:   #2563eb;
    --accent-purple: #7c3aed;

    --text-primary:   #0f172a;
    --text-secondary: #475569;
    --text-muted:     #94a3b8;

    --border-color:  rgba(15, 23, 42, 0.10);
    --border-glow:   rgba(14, 165, 233, 0.30);

    --hero-card-bg:  rgba(255, 255, 255, 0.92);
    --hero-title:    #0f172a;
    --hero-sub:      #334155;
    --hero-circle-1: rgba(14, 165, 233, 0.20);
    --hero-circle-2: rgba(124, 58, 237, 0.15);

    --footer-bg:     #0f172a;
    --footer-text:   #94a3b8;

    --font-primary:      'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);

    --radial-glow-1: radial-gradient(circle, rgba(14,165,233,0.07) 0%, transparent 70%);
    --radial-glow-2: radial-gradient(circle, rgba(124,58,237,0.05)  0%, transparent 70%);
}

/* =============================================
   COLOR VARIABLES — DARK MODE
   ============================================= */
[data-theme="dark"] {
    --bg-primary:    #080b11;
    --bg-secondary:  #0f1624;
    --bg-card:       rgba(22, 30, 49, 0.72);
    --bg-glass:      rgba(15, 22, 36, 0.80);

    --accent-cyan:   #00f2fe;
    --accent-blue:   #4facfe;
    --accent-purple: #9b51e0;

    --text-primary:   #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;

    --border-color:  rgba(255, 255, 255, 0.08);
    --border-glow:   rgba(0, 242, 254, 0.25);

    --hero-card-bg:  rgba(15, 22, 36, 0.90);
    --hero-title:    #f8fafc;
    --hero-sub:      #94a3b8;
    --hero-circle-1: rgba(0, 242, 254, 0.15);
    --hero-circle-2: rgba(155, 81, 224, 0.18);

    --footer-bg:     #04060a;
    --footer-text:   #64748b;

    --radial-glow-1: radial-gradient(circle, rgba(0,242,254,0.08) 0%, transparent 70%);
    --radial-glow-2: radial-gradient(circle, rgba(155,81,224,0.06) 0%, transparent 70%);
}

/* =============================================
   GLOBAL
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.35s ease, color 0.35s ease;
}

body::before {
    content: '';
    position: fixed;
    top: 5%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: var(--radial-glow-1);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: 10%;
    right: -15%;
    width: 700px;
    height: 700px;
    background: var(--radial-glow-2);
    z-index: -1;
    pointer-events: none;
}

::-webkit-scrollbar            { width: 9px; }
::-webkit-scrollbar-track      { background: var(--bg-primary); }
::-webkit-scrollbar-thumb      { background: #334155; border-radius: 5px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

::selection { background: rgba(14,165,233,0.28); color: var(--text-primary); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
p { color: var(--text-secondary); font-weight: 300; line-height: 1.72; }
a { text-decoration: none; }

/* =============================================
   TYPOGRAPHY HELPERS
   ============================================= */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* =============================================
   NAVBAR
   ============================================= */
.glass-nav {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.glass-nav.scrolled {
    background: var(--bg-primary);
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.15);
}

[data-theme="dark"] .glass-nav.scrolled {
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.55);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary) !important;
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.1rem !important;
    transition: var(--transition-smooth);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

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

/* Theme Toggle */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1rem;
}

.theme-toggle-btn:hover {
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
    transform: rotate(15deg);
    box-shadow: 0 4px 12px rgba(14,165,233,0.15);
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-custom {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    color: #fff !important;
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(14,165,233,0.25);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-custom::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(14,165,233,0.38);
    color: #fff !important;
}

.btn-custom:hover::after { opacity: 1; }

.btn-custom-outline {
    background: transparent;
    color: var(--text-primary) !important;
    font-weight: 600;
    padding: 0.73rem 2rem;
    border-radius: 30px;
    border: 1.5px solid var(--border-color);
    transition: var(--transition-smooth);
}

.btn-custom-outline:hover {
    border-color: var(--accent-cyan);
    background: rgba(14,165,233,0.06);
    transform: translateY(-2px);
    color: var(--text-primary) !important;
}

/* =============================================
   GLASS CARD
   ============================================= */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero-section {
    min-height: 88vh;
    padding-top: 140px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section h1 { color: var(--hero-title); }
.hero-section > .container > .row > .col-lg-6:first-child p { color: var(--hero-sub); }

.hero-graphics {
    position: relative;
    width: 100%;
    height: 450px;
}

/* Rotating dashed ring */
.hero-circle-1 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 350px; height: 350px;
    border: 2px dashed var(--hero-circle-1);
    border-radius: 50%;
    animation: rotate-dashed 40s linear infinite;
}

/* Inner solid ring */
.hero-circle-2 {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 270px; height: 270px;
    border: 1.5px solid var(--hero-circle-2);
    border-radius: 50%;
}

/* Floating info cards (hero) */
.hero-card-floating {
    position: absolute;
    background: var(--hero-card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 1.3rem;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .hero-card-floating {
    box-shadow: 0 20px 40px rgba(0,0,0,0.50);
}

.hero-card-floating .card-label-main {
    display: block;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.hero-card-floating .card-label-sub {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.h-card-1 { top: 12%; left: 8%; animation: float 6s ease-in-out infinite; }
.h-card-2 { bottom: 18%; right: 4%; animation: float 8s ease-in-out infinite 1s; }
.h-card-3 { top: 48%; right: 44%; animation: float 7s ease-in-out infinite 2s; }

.h-card-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(14,165,233,0.15), rgba(79,172,254,0.15));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
}

/* =============================================
   PAGE HEADER (inner pages)
   ============================================= */
.page-header {
    padding-top: 160px;
    padding-bottom: 64px;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border-bottom: 1px solid var(--border-color);
}

/* =============================================
   STATS
   ============================================= */
.stats-section {
    position: relative;
    z-index: 10;
    margin-top: -30px;
    margin-bottom: 50px;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 600;
}

/* =============================================
   SERVICE CARDS
   ============================================= */
.service-card { height: 100%; padding: 2.5rem 2rem; }

.service-icon-box {
    width: 60px; height: 60px;
    border-radius: 12px;
    background: rgba(14,165,233,0.06);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.6rem;
    color: var(--accent-cyan);
    font-size: 1.65rem;
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 18px 40px -10px rgba(14,165,233,0.18);
}

.service-card:hover .service-icon-box {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    box-shadow: 0 6px 18px rgba(14,165,233,0.35);
}

.service-card h4 { margin-bottom: 0.9rem; font-size: 1.3rem; }

/* =============================================
   HIGHLIGHT BADGE
   ============================================= */
.highlight-badge {
    background: rgba(14,165,233,0.10);
    color: var(--accent-cyan);
    padding: 0.4rem 1.1rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

/* =============================================
   ABOUT
   ============================================= */
.about-image-wrapper { position: relative; border-radius: 20px; overflow: hidden; }

.about-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 55%, var(--bg-primary) 100%);
    z-index: 1;
}

.about-image {
    width: 100%; height: 480px;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.about-experience-badge { position: absolute; bottom: 25px; left: 25px; z-index: 2; }

/* =============================================
   CORE VALUES (About page)
   ============================================= */
.value-card { padding: 2rem; text-align: center; }

.value-icon {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(14,165,233,0.10);
    color: var(--accent-cyan);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

/* =============================================
   SERVICE DETAIL (Services page)
   ============================================= */
.service-detail-block { margin-bottom: 6rem; }
.service-detail-block:last-child { margin-bottom: 2rem; }

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
}

.feature-list-item i { color: var(--accent-cyan); font-size: 1.15rem; margin-top: 2px; }
.feature-list-item h6 { margin-bottom: 0.2rem; color: var(--text-primary); }

/* Partner Callout */
.partner-callout {
    background: var(--bg-card);
    border: 1.5px solid var(--border-glow);
    border-radius: 14px;
    padding: 1.75rem 2rem;
    margin-top: 2rem;
}

.partner-callout h6 { color: var(--text-primary); margin-bottom: 0.4rem; font-size: 1rem; }
.partner-callout p  { font-size: 0.9rem; margin-bottom: 0; }

/* =============================================
   PORTFOLIO / PROJECTS
   ============================================= */
.portfolio-filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.48rem 1.4rem;
    border-radius: 30px;
    margin: 0.25rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(14,165,233,0.22);
}

.portfolio-item { transition: var(--transition-smooth); }

.portfolio-card {
    height: 350px;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.portfolio-img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8,11,17,0.94) 0%, rgba(8,11,17,0.35) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 2;
}

.portfolio-card:hover .portfolio-img { transform: scale(1.1); }
.portfolio-card:hover .portfolio-overlay { opacity: 1; transform: translateY(0); }

.portfolio-category {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonial-card {
    padding: 3rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.testimonial-quote {
    font-size: 1.35rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-quote::before {
    content: '\201C';
    font-size: 5rem;
    color: rgba(14,165,233,0.12);
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: serif;
}

[data-theme="dark"] .testimonial-quote::before { color: rgba(0,242,254,0.10); }

.testimonial-avatar {
    width: 64px; height: 64px;
    border-radius: 50%;
    border: 2px solid var(--accent-cyan);
    object-fit: cover;
    margin-bottom: 1rem;
}

.testimonial-author { font-weight: 700; color: var(--text-primary); margin-bottom: 0.1rem; }
.testimonial-role { font-size: 0.84rem; color: var(--text-muted); }

.carousel-indicators [data-bs-target] {
    background-color: var(--text-muted);
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    margin: 0 5px;
    transition: var(--transition-smooth);
}

.carousel-indicators .active {
    background-color: var(--accent-cyan);
    width: 26px;
    border-radius: 5px;
}

/* =============================================
   CONTACT
   ============================================= */
.contact-info-item { display: flex; gap: 14px; margin-bottom: 1.5rem; }

.contact-info-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: rgba(14,165,233,0.10);
    color: var(--accent-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.form-control {
    background-color: var(--bg-primary) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    padding: 0.85rem 1.2rem;
    border-radius: 10px;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--accent-cyan) !important;
    box-shadow: 0 0 16px rgba(14,165,233,0.18) !important;
    background-color: var(--bg-secondary) !important;
}

.form-control::placeholder { color: var(--text-muted); }

.map-wrapper {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 270px;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
    background-color: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer-link {
    color: var(--footer-text);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-block;
    padding: 0.22rem 0;
}

.footer-link:hover { color: var(--accent-cyan); transform: translateX(3px); }

.social-icons a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);
    color: var(--footer-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.45rem;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.social-icons a:hover {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: #fff;
    border-color: transparent;
    transform: translateY(-3px);
}

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem 3rem;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* =============================================
   KEYFRAMES
   ============================================= */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-12px); }
}

@keyframes rotate-dashed {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 991.98px) {
    .hero-section { min-height: auto; padding-top: 120px; padding-bottom: 60px; }
    .hero-graphics { height: 350px; margin-top: 3rem; }
    .hero-circle-1 { width: 280px; height: 280px; }
    .hero-circle-2 { width: 215px; height: 215px; }
    .h-card-1 { left: 4%; }
    .h-card-2 { right: 0; }
    .h-card-3 { display: none; }
}

@media (max-width: 575.98px) {
    .stat-number { font-size: 2.2rem; }
    .hero-graphics { display: none; }
    .btn-custom, .btn-custom-outline { width: 100%; text-align: center; margin-bottom: 0.75rem; }
    .cta-banner { padding: 2.5rem 1.5rem; }
}
