/* ============================================
   DevStack Innovations - Premium Portfolio CSS
   ============================================ */

/* CSS Variables */
:root {
    --navy-dark: #061B4E;
    --navy-royal: #0D2D7A;
    --orange: #F04A00;
    --orange-light: #FF7026;
    --orange-glow: rgba(240, 74, 0, 0.4);
    --white: #FFFFFF;
    --gray-light: #F5F7FA;
    --gray-muted: #8B9CB8;
    --glass-bg: rgba(13, 45, 122, 0.15);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --gradient-primary: linear-gradient(135deg, var(--orange) 0%, var(--orange-light) 100%);
    --gradient-text: #F04A00;
    --gradient-dark: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy-royal) 100%);
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --navbar-height: 80px;
    --section-padding: 120px;
    --border-radius: 16px;
    --border-radius-lg: 24px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--navbar-height);
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    background: var(--navy-dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--orange);
    color: var(--white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--navy-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--orange), var(--navy-royal));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--orange);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.text-orange { color: var(--orange); }

.gradient-text {
    color: var(--orange);
    opacity: 1;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: currentColor;
    background-clip: unset;
}

.section-padding {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(240, 74, 0, 0.1);
    border: 1px solid rgba(240, 74, 0, 0.3);
    border-radius: 50px;
    color: var(--orange);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
}

.section-desc {
    color: var(--gray-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Loading Screen
   ============================================ */
.loader-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--navy-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    text-align: center;
}

.loader-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.loader-icon {
    font-size: 2.5rem;
    color: var(--orange);
    animation: pulse 1.5s ease infinite;
}

.loader-text {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
}

.loader-bar {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 auto 15px;
}

.loader-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 10px;
    animation: loadProgress 1.8s ease forwards;
}

.loader-tagline {
    color: var(--gray-muted);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes loadProgress {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ============================================
   Scroll Progress
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ============================================
   Gradient Blobs
   ============================================ */
.gradient-blobs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    transition: transform 0.8s ease;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--orange);
    top: -10%;
    right: -5%;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--navy-royal);
    bottom: 20%;
    left: -10%;
}

.blob-3 {
    width: 350px;
    height: 350px;
    background: var(--orange-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================
   Particles Canvas
   ============================================ */
#particles-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Page Transition
   ============================================ */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--navy-dark);
    z-index: 9998;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

/* ============================================
   Glass Card Utility
   ============================================ */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.glass-card:hover {
    background: rgba(13, 45, 122, 0.25);
    border-color: rgba(240, 74, 0, 0.2);
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow), 0 0 30px rgba(240, 74, 0, 0.1);
}

.gradient-border {
    position: relative;
    overflow: hidden;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(240, 74, 0, 0.3), transparent 50%, rgba(240, 74, 0, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gradient-border:hover::before {
    opacity: 1;
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    color: var(--white);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-light), var(--orange));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--orange-glow);
    color: var(--white);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary i {
    position: relative;
    z-index: 1;
}

.btn-glow {
    box-shadow: 0 4px 20px rgba(240, 74, 0, 0.3);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 50px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.btn-outline-light:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(240, 74, 0, 0.05);
    transform: translateY(-2px);
}

/* ============================================
   Navbar
   ============================================ */
.glass-navbar {
    padding: 15px 0;
    transition: var(--transition);
    z-index: 1000;
}

.glass-navbar.scrolled {
    background: rgba(6, 27, 78, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white) !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    padding: 8px 18px !important;
    position: relative;
    font-size: 0.95rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white) !important;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-cta {
    padding: 10px 24px !important;
    font-size: 0.9rem;
}

.navbar-toggler {
    border: none;
    padding: 0;
    width: 30px;
    height: 24px;
    position: relative;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.toggler-icon {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toggler-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(13, 45, 122, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(240, 74, 0, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(13, 45, 122, 0.3) 0%, transparent 50%),
        var(--navy-dark);
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.floating-shapes .shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 20s ease-in-out infinite;
}

.shape-1 { width: 300px; height: 300px; background: var(--orange); top: 10%; right: 10%; animation-delay: 0s; }
.shape-2 { width: 200px; height: 200px; background: var(--navy-royal); bottom: 20%; left: 5%; animation-delay: -5s; }
.shape-3 { width: 150px; height: 150px; background: var(--orange-light); top: 60%; right: 30%; animation-delay: -10s; }
.shape-4 { width: 100px; height: 100px; background: var(--white); top: 30%; left: 20%; animation-delay: -15s; }
.shape-5 { width: 250px; height: 250px; background: var(--navy-royal); bottom: 10%; right: 20%; animation-delay: -8s; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    background: rgba(240, 74, 0, 0.1);
    border: 1px solid rgba(240, 74, 0, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--orange);
    margin-bottom: 25px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    animation: blink 2s ease infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 25px;
    line-height: 1.1;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--gray-muted);
    margin-bottom: 15px;
    max-width: 500px;
}

.hero-typed {
    font-size: 1.2rem;
    color: var(--orange);
    font-weight: 600;
    min-height: 30px;
    margin-bottom: 35px;
    font-family: var(--font-display);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 50px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 30px;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.hero-stat .stat-suffix {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--orange);
}

.hero-stat .stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-muted);
    margin-top: 5px;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    height: 500px;
}

.hero-card-stack {
    position: relative;
    z-index: 2;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    transition: var(--transition);
}

.hero-card:hover {
    transform: translateX(-10px);
    border-color: rgba(240, 74, 0, 0.3);
}

.hero-card .card-icon {
    width: 50px;
    height: 50px;
    background: rgba(240, 74, 0, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--orange);
    font-size: 1.3rem;
}

.hero-card .card-title {
    display: block;
    font-weight: 600;
    font-size: 1rem;
}

.hero-card .card-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-muted);
}

.hero-card-1 { margin-left: 0; }
.hero-card-2 { margin-left: 30px; }
.hero-card-3 { margin-left: 60px; }

.hero-orbit {
    position: absolute;
    top: 50%;
    right: -20px;
    transform: translateY(-50%);
    width: 200px;
    height: 200px;
}

.orbit-ring {
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(240, 74, 0, 0.2);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.orbit-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--orange);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--orange-glow);
    animation: rotate 20s linear infinite;
    transform-origin: 50% 106px;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-down {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--gray-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transition);
}

.scroll-down:hover {
    color: var(--orange);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--orange);
    border-radius: 4px;
    animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(12px); opacity: 0; }
}

/* ============================================
   About Section
   ============================================ */
.about-section {
    position: relative;
    z-index: 1;
}

.about-visual {
    position: relative;
}

.about-image-wrapper {
    position: relative;
}

.about-image-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(240, 74, 0, 0.15), transparent 70%);
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.code-window {
    background: rgba(6, 27, 78, 0.8);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.window-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--glass-border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA41; }

.window-title {
    margin-left: 10px;
    font-size: 0.8rem;
    color: var(--gray-muted);
}

.window-body {
    padding: 25px;
}

.window-body pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-keyword { color: #C678DD; }
.code-var { color: #E5C07B; }
.code-prop { color: #61AFEF; }
.code-string { color: #98C379; }

.about-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    animation: floatCard 4s ease-in-out infinite;
}

.about-float-card i {
    color: var(--orange);
}

.float-card-1 { top: -15px; right: -15px; animation-delay: 0s; }
.float-card-2 { bottom: -15px; left: -15px; animation-delay: -2s; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.about-heading {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-text {
    color: var(--gray-muted);
    margin-bottom: 30px;
}

.counter-card {
    padding: 25px;
    text-align: center;
}

.counter-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
}

.counter-suffix {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--orange);
}

.counter-label {
    display: block;
    font-size: 0.85rem;
    color: var(--gray-muted);
    margin-top: 5px;
}

.mission-card {
    padding: 35px;
    height: 100%;
}

.mission-card .card-icon-wrap {
    width: 60px;
    height: 60px;
    background: rgba(240, 74, 0, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--orange);
    margin-bottom: 20px;
}

.mission-card h4 {
    margin-bottom: 15px;
}

.mission-card p {
    color: var(--gray-muted);
    margin: 0;
}

.why-mini-card {
    padding: 30px;
    text-align: center;
    height: 100%;
}

.why-mini-card i {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 15px;
}

.why-mini-card h5 {
    margin-bottom: 10px;
}

.why-mini-card p {
    color: var(--gray-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(13, 45, 122, 0.1), transparent);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.service-card {
    padding: 40px 35px;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(240, 74, 0, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--orange);
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--orange);
    color: var(--white);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 30px var(--orange-glow);
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.service-list {
    list-style: none;
    margin-bottom: 25px;
}

.service-list li {
    padding: 8px 0;
    color: var(--gray-muted);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-list li i {
    color: var(--orange);
    font-size: 0.75rem;
}

.service-link {
    color: var(--orange);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-link:hover {
    gap: 12px;
    color: var(--orange-light);
}

.service-glow {
    position: absolute;
    bottom: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(240, 74, 0, 0.1), transparent 70%);
    transition: var(--transition);
    pointer-events: none;
}

.service-card:hover .service-glow {
    bottom: -20%;
    right: -20%;
}

/* ============================================
   Technologies Section
   ============================================ */
.technologies-section {
    position: relative;
    z-index: 1;
}

.tech-category {
    margin-bottom: 40px;
}

.tech-category-title {
    font-size: 1.1rem;
    color: var(--orange);
    margin-bottom: 20px;
    padding-left: 15px;
    border-left: 3px solid var(--orange);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.tech-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    cursor: default;
}

.tech-card:hover {
    border-color: var(--tech-color);
    box-shadow: 0 0 20px rgba(240, 74, 0, 0.1);
}

.tech-icon {
    font-size: 1.5rem;
    color: var(--tech-color);
    transition: var(--transition);
}

.tech-card:hover .tech-icon {
    transform: scale(1.2);
}

.tech-name {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(13, 45, 122, 0.08), transparent);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    position: relative;
}

.process-step {
    position: relative;
    text-align: center;
    padding: 0 10px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(240, 74, 0, 0.15);
    margin-bottom: 15px;
    line-height: 1;
}

.step-content {
    padding: 30px 20px;
    height: 100%;
}

.step-icon {
    width: 55px;
    height: 55px;
    background: rgba(240, 74, 0, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--orange);
    margin: 0 auto 15px;
    transition: var(--transition);
}

.step-content:hover .step-icon {
    background: var(--orange);
    color: var(--white);
    transform: rotateY(180deg);
}

.step-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.step-content p {
    font-size: 0.85rem;
    color: var(--gray-muted);
    margin: 0;
}

.step-connector {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    z-index: 2;
    display: none;
}

.connector-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--orange), transparent);
}

.connector-dot {
    width: 8px;
    height: 8px;
    background: var(--orange);
    border-radius: 50%;
    position: absolute;
    right: 0;
    top: -3px;
    box-shadow: 0 0 10px var(--orange-glow);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-section {
    position: relative;
    z-index: 1;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: var(--gray-muted);
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: rgba(240, 74, 0, 0.15);
    border-color: var(--orange);
    color: var(--orange);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.portfolio-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-8px);
}

.portfolio-image {
    position: relative;
    height: 280px;
    background: linear-gradient(135deg, var(--project-color), var(--navy-dark));
    overflow: hidden;
}

.portfolio-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.portfolio-card:hover .portfolio-placeholder {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 27, 78, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 30px;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}

.portfolio-card:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-category {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(240, 74, 0, 0.2);
    border-radius: 50px;
    color: var(--orange);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.overlay-content h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.overlay-content p {
    color: var(--gray-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.portfolio-link {
    color: var(--orange);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.portfolio-link:hover {
    color: var(--orange-light);
}

.portfolio-info {
    padding: 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.portfolio-info h5 {
    margin-bottom: 5px;
}

.portfolio-info span {
    color: var(--gray-muted);
    font-size: 0.85rem;
}

.portfolio-item.hidden {
    display: none;
}

/* ============================================
   Statistics Section
   ============================================ */
.statistics-section {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.stats-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(240, 74, 0, 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(13, 45, 122, 0.2), transparent);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-card {
    padding: 40px 30px;
    text-align: center;
}

.stat-card .stat-icon {
    font-size: 2rem;
    color: var(--orange);
    margin-bottom: 15px;
}

.stat-number-wrap {
    margin-bottom: 10px;
}

.stat-card .stat-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
}

.stat-card .stat-suffix {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 800;
    color: var(--orange);
}

.stat-card .stat-label {
    color: var(--gray-muted);
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(13, 45, 122, 0.08), transparent);
}

.testimonial-card {
    padding: 40px;
    position: relative;
    height: auto;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.testimonial-rating {
    margin-bottom: 20px;
}

.testimonial-rating i {
    color: var(--orange);
    font-size: 0.9rem;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    flex: 1;
    margin-bottom: 25px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.85rem;
    color: var(--gray-muted);
}

.quote-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 2rem;
    color: rgba(240, 74, 0, 0.15);
}

.testimonials-pagination {
    margin-top: 30px !important;
}

.testimonials-pagination .swiper-pagination-bullet {
    width: 30px;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transition: var(--transition);
}

.testimonials-pagination .swiper-pagination-bullet-active {
    background: var(--orange);
    width: 50px;
}

/* ============================================
   Why Choose Section
   ============================================ */
.why-choose-section {
    position: relative;
    z-index: 1;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

.why-card {
    padding: 35px;
    text-align: center;
    height: 100%;
}

.why-icon {
    width: 70px;
    height: 70px;
    background: rgba(240, 74, 0, 0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--orange);
    margin: 0 auto 20px;
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--orange);
    color: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--orange-glow);
}

.why-card h4 {
    margin-bottom: 12px;
}

.why-card p {
    color: var(--gray-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-section {
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(13, 45, 122, 0.08), transparent);
}

.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border) !important;
    border-radius: var(--border-radius) !important;
    margin-bottom: 15px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(240, 74, 0, 0.2) !important;
}

.faq-item .accordion-button {
    background: transparent;
    color: var(--white);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 22px 25px;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-item .accordion-button:not(.collapsed) {
    background: rgba(240, 74, 0, 0.05);
    color: var(--orange);
}

.faq-item .accordion-button::after {
    filter: invert(1);
    transition: var(--transition);
}

.faq-number {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--orange);
    font-weight: 700;
    min-width: 30px;
}

.faq-item .accordion-body {
    color: var(--gray-muted);
    padding: 0 25px 25px 70px;
    line-height: 1.8;
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    position: relative;
    z-index: 1;
}

.contact-info-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
}

.contact-icon {
    width: 55px;
    height: 55px;
    min-width: 55px;
    background: rgba(240, 74, 0, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--orange);
    transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
    background: var(--orange);
    color: var(--white);
}

.contact-info-card h5 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.contact-info-card p {
    color: var(--gray-muted);
    font-size: 0.9rem;
    margin: 0;
}

.contact-form {
    padding: 40px;
}

.form-floating-custom {
    position: relative;
}

.form-floating-custom .form-control {
    background: rgba(6, 27, 78, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--white);
    padding: 16px 20px;
    font-size: 0.95rem;
    transition: var(--transition);
    height: auto;
}

.form-floating-custom .form-control:focus {
    background: rgba(6, 27, 78, 0.7);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(240, 74, 0, 0.1);
    color: var(--white);
}

.form-floating-custom .form-control::placeholder {
    color: transparent;
}

.form-floating-custom label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: var(--gray-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-floating-custom .form-control:focus ~ label,
.form-floating-custom .form-control:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.75rem;
    color: var(--orange);
    background: var(--navy-dark);
    padding: 0 8px;
}

.form-floating-custom select.form-control {
    appearance: none;
    cursor: pointer;
}

.form-floating-custom select.form-control option {
    background: var(--navy-dark);
    color: var(--white);
}

.form-floating-custom textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

.invalid-feedback {
    display: none;
    color: #ff6b6b;
    font-size: 0.8rem;
    margin-top: 5px;
    padding-left: 5px;
}

.form-control.is-invalid {
    border-color: #ff6b6b !important;
}

.form-control.is-invalid ~ .invalid-feedback {
    display: block;
}

.form-success {
    text-align: center;
    padding: 60px 40px;
    background: var(--glass-bg);
    border: 1px solid rgba(240, 74, 0, 0.3);
    border-radius: var(--border-radius);
}

.success-animation i {
    font-size: 4rem;
    color: #28CA41;
    animation: successPop 0.6s ease;
}

@keyframes successPop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.form-success h4 {
    margin: 20px 0 10px;
    color: #28CA41;
}

.form-success p {
    color: var(--gray-muted);
}

.map-wrapper {
    overflow: hidden;
    border-radius: var(--border-radius);
    padding: 0;
}

.map-wrapper iframe {
    display: block;
    filter: grayscale(0.3) contrast(1.1);
    border-radius: var(--border-radius);
}

/* ============================================
   Footer
   ============================================ */
.footer-section {
    position: relative;
    z-index: 1;
    background: rgba(6, 27, 78, 0.5);
    padding-top: 0;
}

.footer-wave {
    position: relative;
    margin-top: -1px;
}

.footer-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

.wave-path {
    fill: rgba(6, 27, 78, 0.5);
}

.footer-content {
    padding: 60px 0 30px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-desc {
    color: var(--gray-muted);
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.8;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--orange-glow);
}

.footer-title {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--orange);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-links a:hover {
    color: var(--orange);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    color: var(--gray-muted);
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--orange);
    margin-top: 4px;
    min-width: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    margin-top: 50px;
    border-top: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 15px;
}

.footer-bottom p {
    color: var(--gray-muted);
    font-size: 0.9rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 25px;
}

.footer-bottom-links a {
    color: var(--gray-muted);
    font-size: 0.9rem;
}

.footer-bottom-links a:hover {
    color: var(--orange);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (min-width: 992px) {
    .step-connector {
        display: block;
    }
}

@media (max-width: 1199px) {
    .process-timeline {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }

    .step-connector {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    :root {
        --section-padding: 80px;
    }

    .hero-visual {
        display: none;
    }

    .hero-stats {
        justify-content: center;
    }

    .navbar-collapse {
        background: rgba(6, 27, 78, 0.95);
        backdrop-filter: blur(20px);
        padding: 20px;
        border-radius: var(--border-radius);
        margin-top: 15px;
        border: 1px solid var(--glass-border);
    }

    .nav-cta {
        margin-top: 10px;
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    :root {
        --section-padding: 60px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat .stat-number,
    .hero-stat .stat-suffix {
        font-size: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .stat-card .stat-number,
    .stat-card .stat-suffix {
        font-size: 2rem;
    }

    .process-timeline {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .portfolio-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 250px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.2rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}
