/* Creative Tech Solutions - Design System */

:root {
    --primary-orange: #f7931f;
    --primary-purple: #4c4285;
    --bg-light: #ffffff;
    --bg-gray: #f8f9fa;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 40px rgba(76, 66, 133, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Inter', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    color: var(--primary-purple);
    font-weight: 700;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(247, 147, 31, 0.3);
}

.btn-outline-purple {
    background: transparent;
    border-color: var(--primary-purple);
    color: var(--primary-purple);
}

.btn-outline-purple:hover {
    background: var(--primary-purple);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Header & Nav */
.main-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: white;
    padding: 15px 0;
    z-index: 2000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu ul li a {
    text-decoration: none;
    color: var(--primary-purple);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.nav-menu ul li a:hover {
    color: var(--primary-orange);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 220px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 10px 0;
    flex-direction: column;
}

.dropdown-content li a {
    padding: 10px 20px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(76, 66, 133, 0.8), rgba(76, 66, 133, 0.4)), 
                url('hero_bg_new.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    color: white;
    text-align: left;
}

.hero-content {
    max-width: 700px;
}

.hero h1 {
    font-size: 4rem;
    color: white;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero .cta-group {
    display: flex;
    gap: 20px;
}

.btn-ghost-white {
    border-color: white;
    color: white;
}

.btn-ghost-white:hover {
    background: white;
    color: var(--primary-purple);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, min-minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

/* Fallback for min-minmax typo and better grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .services-grid { grid-template-columns: 1fr; }
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
    border-bottom: 4px solid transparent;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom: 4px solid var(--primary-orange);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-purple);
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-top: auto;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.service-list li i {
    font-size: 0.8rem;
    color: var(--primary-orange);
    margin-top: 4px;
}

/* Government Section */
.gov-section {
    background: var(--light-gray);
    padding: 100px 0;
}

.gov-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gov-feature {
    background: white;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.gov-feature i {
    font-size: 1.8rem;
    color: var(--primary-purple);
    background: rgba(76, 66, 133, 0.1);
    padding: 15px;
    border-radius: 12px;
}

.gov-feature h4 {
    margin-bottom: 10px;
    color: var(--primary-purple);
}

.gov-feature p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* About & CEO */
.split-layout {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-layout > div {
    flex: 1;
}

@media (max-width: 900px) {
    .split-layout { flex-direction: column; gap: 40px; }
}

.ceo-image {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

.quote-box {
    position: relative;
    padding-left: 40px;
    border-left: 4px solid var(--primary-orange);
}

.quote-box blockquote {
    font-size: 1.5rem;
    font-style: italic;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

/* Tabs */
.tabs-container {
    margin-top: 40px;
}

.tabs-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: var(--bg-gray);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.tab-btn.active {
    background: var(--primary-purple);
    color: white;
}

.tab-content {
    display: none;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Portfolio Filter & Grid */
.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary-purple);
    background: transparent;
    color: var(--primary-purple);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-purple);
    color: white;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

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

.category-tag {
    display: inline-block;
    background: rgba(76, 66, 133, 0.1);
    color: var(--primary-purple);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 15px;
}

.video-link-preview {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.play-btn-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(247, 147, 31, 0.9); /* Primary Orange */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 2;
}

.video-link-preview:hover .play-btn-overlay {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-purple);
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    text-align: left;
    font-weight: 600;
}

@media (max-width: 768px) {
    .portfolio-grid { grid-template-columns: 1fr; }
}

/* Sticky Action Bar */
.sticky-action-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 3000;
    width: 90%;
    max-width: 800px;
}

.bar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.bar-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 30px;
    color: white;
    flex: 1;
}

.bar-btn-purple { background: var(--primary-purple); }
.bar-btn-green { background: #25d366; }
.bar-btn-orange { background: var(--primary-orange); }

.bar-text {
    display: flex;
    flex-direction: column;
}

.bar-label { font-size: 0.8rem; font-weight: 800; }
.bar-sub { font-size: 0.7rem; opacity: 0.8; }

.bar-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.small-link { font-size: 0.75rem; opacity: 0.7; }

/* Desktop-only: hide sticky bar */
.sticky-action-bar { display: flex; }
@media (min-width: 769px) {
    .sticky-action-bar.mobile-only { display: none; }
}

/* Enhanced Footer */
.footer-enhanced {
    background: var(--primary-purple);
    color: white;
    padding: 80px 0 20px;
}

.footer-grid-5 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr 1.3fr;
    gap: 30px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--primary-orange);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-brief {
    margin: 20px 0;
    opacity: 0.8;
    max-width: 300px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icons a:hover {
    background: var(--primary-orange);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links li a {
    color: white;
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition-smooth);
}

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

.contact-details p {
    margin-bottom: 15px;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .footer-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
    .footer-grid-5 { grid-template-columns: 1fr; }
    .sticky-action-bar { bottom: 10px; padding: 10px; width: 95%; }
    .bar-text { display: none; }
    .bar-btn { justify-content: center; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sticky Footer */
.sticky-footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid #eee;
    padding: 15px 0;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-purple);
    text-decoration: none;
    font-weight: 600;
}

.whatsapp-fab {
    position: fixed;
    bottom: 80px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 1001;
    transition: var(--transition-smooth);
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

/* Scrolling Bar for Values */
.values-scroll {
    overflow: hidden;
    white-space: nowrap;
    padding: 40px 0;
    background: var(--primary-purple);
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
}

.scroll-content {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

.scroll-content span {
    margin-right: 100px;
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ===========================
   CLICKABLE CARDS & MODALS
   =========================== */

.clickable-card {
    cursor: pointer;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(76, 66, 133, 0.15);
}

.card-learn-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    color: var(--primary-orange);
    font-weight: 700;
    font-size: 0.95rem;
    transition: gap 0.3s ease;
}

.clickable-card:hover .card-learn-more {
    gap: 14px;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(10, 8, 30, 0.85);
    backdrop-filter: blur(6px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeInOverlay 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

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

/* Modal Content Box */
.modal-content {
    background: white;
    border-radius: 24px;
    max-width: 780px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    position: relative;
    animation: slideUpModal 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

@keyframes slideUpModal {
    from { opacity: 0; transform: translateY(40px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Close Button */
.modal-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(76, 66, 133, 0.1);
    border: none;
    border-radius: 50%;
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    color: var(--primary-purple);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-purple);
    color: white;
    transform: rotate(90deg);
}

/* Modal Header */
.modal-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, #3a316b 100%);
    color: white;
    padding: 50px 40px 40px;
    border-radius: 24px 24px 0 0;
    text-align: center;
}

.modal-header i {
    font-size: 3rem;
    color: var(--primary-orange);
    margin-bottom: 15px;
    display: block;
}

.modal-header h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 12px;
}

.modal-header p {
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    font-size: 1rem;
}

/* Modal Body */
.modal-body {
    padding: 35px 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-service-item {
    background: #f8f7ff;
    border-radius: 14px;
    padding: 22px;
    border-left: 4px solid var(--primary-orange);
    transition: all 0.2s ease;
}

.modal-service-item:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(76, 66, 133, 0.1);
}

.modal-service-item h4 {
    color: var(--primary-purple);
    font-size: 1rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-service-item h4 i {
    color: var(--primary-orange);
    font-size: 1rem;
}

.modal-service-item p {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

/* Modal Footer */
.modal-footer {
    padding: 20px 40px 35px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

/* Responsive Modal */
@media (max-width: 640px) {
    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .modal-header {
        padding: 40px 20px 30px;
    }
    .modal-footer {
        padding: 15px 20px 25px;
    }
}

/* ===========================
   NEW HIGH-END UI STYLES
   =========================== */

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 4px solid var(--primary-orange);
}

.glass-card-hero {
    background: rgba(10, 8, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* Geometric Pattern Background */
.glass-bg-pattern {
    background-color: var(--bg-gray);
    background-image: radial-gradient(rgba(76, 66, 133, 0.05) 1.5px, transparent 1.5px), radial-gradient(rgba(76, 66, 133, 0.05) 1.5px, #f8f9fa 1.5px);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
}

/* 3-Column Layout */
.layout-3-col {
    grid-template-columns: repeat(3, 1fr) !important;
}

@media (max-width: 1024px) {
    .layout-3-col { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
    .layout-3-col { grid-template-columns: 1fr !important; }
}

/* 4-Column Footer */
.footer-grid-4 {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr;
    gap: 30px;
    margin-bottom: 50px;
}

@media (max-width: 1024px) {
    .footer-grid-4 { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 600px) {
    .footer-grid-4 { grid-template-columns: 1fr; }
}

/* Elegant Image Styling */
.ceo-image-container {
    position: relative;
    padding: 20px;
}
.ceo-image-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--primary-orange);
    border-radius: 30px;
    transform: translate(-15px, 15px);
    z-index: -1;
    opacity: 0.3;
}
.image-elegant {
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border: 3px solid white;
}

/* ===========================
   MOBILE RESPONSIVENESS
   =========================== */
@media (max-width: 900px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        padding: 20px 0;
        flex-direction: column;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
        width: 100%;
    }
    .hamburger {
        display: block !important;
    }
    .header-cta {
        display: none !important;
    }
    .hero h1 {
        font-size: 2.3rem;
        line-height: 1.2;
    }
    .hero p {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }
    .cta-group {
        flex-direction: column;
        width: 100%;
    }
    .cta-group .btn {
        text-align: center;
        width: 100%;
    }
    .quote-form > div {
        grid-template-columns: 1fr !important;
    }
    .split-layout {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }
    .portfolio-grid {
        grid-template-columns: 1fr !important;
    }
}
