/* ===== CUSTOM CSS STYLES ===== */

/* Root Variables */
:root {
    --primary-color: #007bff;
    --primary-dark: #0056b3;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --white: #ffffff;
    --black: #000000;
    
    --font-family: 'Poppins', 'Inter', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --transition-slow: all 0.6s ease;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--dark-color);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

/* Navigation */
.navbar {
    background: rgba(0, 0, 0, 0.1) !important;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: var(--box-shadow-lg);
    padding: 0.5rem 0;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 115px;
    height: 45px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
}

.logo-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Białe logo na ciemnym tle */
}

.logo-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

/* Efirst Group Logo */
.efirst-logo {
    position: relative;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #4A509B 0%, #5C62B0 100%);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(74, 80, 155, 0.3);
}

.e-letter {
    color: #007bff;
    font-size: 1.3rem;
    margin-right: 1px;
    font-weight: 800;
}

.first-text {
    color: var(--white);
    font-size: 1.1rem;
    margin-right: 4px;
}

.group-text {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 600;
}

.group-bubble {
    position: absolute;
    top: -6px;
    right: -8px;
    background: #007bff;
    color: var(--white);
    padding: 3px 6px;
    border-radius: 8px;
    font-size: 0.6rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.4);
    z-index: 2;
}

.group-bubble::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 6px;
    width: 0;
    height: 0;
    border-left: 3px solid transparent;
    border-right: 3px solid transparent;
    border-top: 3px solid #007bff;
}

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

.brand-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.brand-tagline {
    font-size: 0.75rem;
    color: var(--primary-color);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: var(--transition);
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 6px;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: rgba(0, 123, 255, 0.1);
}

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

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    border-radius: 25px !important;
    padding: 0.5rem 1.5rem !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    transition: var(--transition) !important;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: var(--white) !important;
}

.dropdown-menu {
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    backdrop-filter: blur(15px);
    box-shadow: var(--box-shadow-lg);
}

.dropdown-item {
    color: var(--white) !important;
    transition: var(--transition);
    border-radius: 6px;
    margin: 0.25rem;
}

.dropdown-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="100" fill="url(%23a)"/><circle cx="800" cy="300" r="150" fill="url(%23a)"/><circle cx="400" cy="700" r="120" fill="url(%23a)"/><circle cx="600" cy="100" r="80" fill="url(%23a)"/><circle cx="100" cy="600" r="90" fill="url(%23a)"/></svg>');
    opacity: 0.4;
    animation: particles 20s linear infinite;
    pointer-events: none;
}

.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes particles {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
    pointer-events: none;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 0.5rem 1rem;
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.hero-badge i {
    color: var(--warning-color);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(135deg, #00d4ff, #00a8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
}

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

.hero-stats .stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.hero-stats .stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    /* Fix clickability */
    pointer-events: auto !important;
    z-index: 9999 !important;
    position: relative !important;
    display: inline-block !important;
    width: auto !important;
    height: auto !important;
}

.hero-buttons .btn-primary:hover,
.hero-section .hero-buttons .btn-primary:hover,
.hero-section .container .hero-buttons .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    opacity: 1 !important;
}

.hero-buttons .btn-primary:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3) !important;
}

.hero-buttons .btn-primary:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5) !important;
}

.hero-buttons .btn-primary:focus-visible {
    outline: 2px solid white !important;
    outline-offset: 2px !important;
}

/* Force hover styles to work */
.hero-section .hero-buttons .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    opacity: 1 !important;
    border: none !important;
}

/* Even more specific selector */
.hero-section .container .row .col-lg-6 .hero-buttons .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    opacity: 1 !important;
    border: none !important;
}

/* Ultra specific selector to override Bootstrap */
.hero-section .container .row .col-lg-6 .hero-buttons .btn.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    opacity: 1 !important;
    border: none !important;
}

/* Force hover with ID selector */
#home .hero-buttons .btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    opacity: 1 !important;
    border: none !important;
}

/* Force hover with attribute selector */
.hero-buttons .btn-primary[href="#services"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
    background: linear-gradient(135deg, #0056b3, #004085) !important;
    color: white !important;
    opacity: 1 !important;
    border: none !important;
}

/* Touch device styles */
@media (hover: none) and (pointer: coarse) {
    .hero-buttons .btn-primary:active {
        transform: scale(0.95) !important;
        background: linear-gradient(135deg, #0056b3, #004085) !important;
    }
}

.hero-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.hero-buttons .btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 3;
}

.hero-image-container {
    position: relative;
    height: 500px;
}

.main-hero-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--box-shadow-lg);
    height: 100%;
}

.main-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

/* Ensure buttons inside floating elements are clickable */
.floating-elements .btn,
.hero-buttons .btn {
    pointer-events: auto !important;
    z-index: 1000 !important;
    position: relative !important;
}

/* Force hero-buttons to be clickable */
.hero-buttons {
    pointer-events: auto !important;
    z-index: 1001 !important;
    position: relative !important;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--box-shadow-lg);
    animation: float 6s ease-in-out infinite;
    min-width: 200px;
}

.floating-card .card-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.floating-card .card-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.floating-card .card-content h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0;
    line-height: 1.2;
}

.floating-card .card-content p {
    font-size: 0.8rem;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.2;
}

.card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -15%;
    animation-delay: 2s;
}

.card-3 {
    bottom: 10%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 3;
    animation: bounce 2s infinite;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    margin: 0 auto 0.5rem;
    position: relative;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* About Section */
.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.feature-content p {
    color: var(--secondary-color);
    margin: 0;
}

/* Stats */
.about-stats {
    background: var(--light-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.stat-item {
    text-align: center;
    margin-bottom: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--secondary-color);
    font-weight: 500;
    margin: 0;
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    text-align: center;
    height: 100%;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-card p {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

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

.service-features li {
    padding: 0.25rem 0;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.service-features li::before {
    content: '✓';
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Portfolio Section */
.portfolio-filter {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    margin: 0 0.5rem;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.portfolio-item {
    margin-bottom: 2rem;
    opacity: 1;
    transition: var(--transition);
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    background: var(--white);
}

.portfolio-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow-lg);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.9), rgba(0, 86, 179, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.portfolio-content h5 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portfolio-content p {
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.9rem;
}

.portfolio-tech {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
}


/* Contact Section */
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

.contact-form .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
}

.contact-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form .form-control:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: var(--white);
}

.contact-info {
    padding: 1.5rem;
}

.contact-info i {
    color: var(--primary-color);
}

.contact-info h5 {
    font-weight: 600;
    margin: 1rem 0 0.5rem;
    color: var(--white);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.9);
}

.footer-info h6 {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
}

.footer-info p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
}

.social-links a {
    display: inline-block;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 32px;
    transition: var(--transition);
    font-size: 0.9rem;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
        margin-top: 1rem;
        cursor: pointer !important;
    }
    
    .hero-buttons .btn-primary:hover,
    .hero-buttons .btn-primary:active,
    .hero-buttons .btn-primary:focus {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
        background: linear-gradient(135deg, #0056b3, #004085) !important;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-stats .stat-item {
        text-align: center;
    }
    
    .hero-stats .stat-number {
        font-size: 2rem;
    }
    
    .floating-card {
        position: relative;
        margin: 0.5rem 0;
        animation: none;
        min-width: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-image-container {
        height: 300px;
        margin-top: 2rem;
        overflow: hidden;
    }
    
    .floating-elements {
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        margin-top: 1rem;
    }
    
    .floating-card .card-icon {
        width: 35px;
        height: 35px;
    }
    
    .floating-card .card-icon i {
        font-size: 1rem;
    }
    
    .floating-card .card-content h6 {
        font-size: 0.9rem;
    }
    
    .floating-card .card-content p {
        font-size: 0.8rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    .brand-logo {
        gap: 0.5rem;
    }
    
    .logo-icon {
        width: 100px;
        height: 40px;
    }
    
    .efirst-logo {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .e-letter {
        font-size: 1.1rem;
    }
    
    .first-text {
        font-size: 1rem;
    }
    
    .group-bubble {
        top: -5px;
        right: -6px;
        padding: 2px 5px;
        font-size: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
    
    .hero-buttons .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        cursor: pointer !important;
    }
    
    .hero-buttons .btn-primary:hover,
    .hero-buttons .btn-primary:active,
    .hero-buttons .btn-primary:focus {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4) !important;
        background: linear-gradient(135deg, #0056b3, #004085) !important;
    }
    
    .hero-stats .stat-number {
        font-size: 1.8rem;
    }
    
    .logo-icon {
        width: 90px;
        height: 35px;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        height: auto;
        display: block;
        align-items: stretch;
        padding-bottom: 0.5rem;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        min-height: auto;
    }
    
    /* Ultra compact spacing for small mobile */
    #about, #portfolio, #contact {
        padding-top: 0 !important;
        padding-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }
    
    #services {
        padding-top: 100px !important; /* Account for fixed navbar */
        padding-bottom: 0.5rem !important;
        margin-top: 0 !important;
    }
    
    /* Remove any margin between hero and about */
    .hero-section + #about {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Force remove all spacing */
    .hero-section {
        margin-bottom: 0 !important;
    }
    
    #about {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    .py-5 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    .py-4 {
        padding-top: 0.125rem !important;
        padding-bottom: 0.125rem !important;
    }
    
    .py-3 {
        padding-top: 0.125rem !important;
        padding-bottom: 0.125rem !important;
    }
    
    .mb-5 {
        margin-bottom: 0.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.375rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.25rem !important;
    }
    
    .mt-5 {
        margin-top: 0.5rem !important;
    }
    
    .mt-4 {
        margin-top: 0.375rem !important;
    }
    
    /* Ultra compact container spacing for small mobile */
    .container {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .row {
        margin-left: -0.125rem !important;
        margin-right: -0.125rem !important;
    }
    
    .col-lg-8, .col-lg-6, .col-lg-4, .col-md-6 {
        padding-left: 0.125rem !important;
        padding-right: 0.125rem !important;
    }
    
    .efirst-logo {
        padding: 5px 8px;
        font-size: 0.8rem;
    }
    
    .e-letter {
        font-size: 1rem;
    }
    
    .first-text {
        font-size: 0.9rem;
    }
    
    .group-bubble {
        top: -4px;
        right: -5px;
        padding: 1px 4px;
        font-size: 0.45rem;
    }
    
    .navbar {
        padding: 0.5rem 0;
    }
    
    .hero-section {
        padding-top: 80px;
        min-height: auto;
        height: auto;
        display: block;
        align-items: stretch;
        padding-bottom: 1rem;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        min-height: auto;
    }
    
    .floating-elements {
        padding: 0.25rem;
        margin: 0;
        margin-top: 0.5rem;
    }
    
    /* About section mobile spacing */
    #about {
        padding-top: 0 !important;
        padding-bottom: 1rem !important;
        margin-top: 0 !important;
    }
    
    /* Remove any margin between hero and about */
    .hero-section + #about {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Force remove all spacing */
    .hero-section {
        margin-bottom: 0 !important;
    }
    
    #about {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    
    /* Services section mobile spacing */
    #services {
        padding-top: 100px !important; /* Account for fixed navbar */
        padding-bottom: 1rem !important;
    }
    
    /* General section spacing on mobile */
    .py-5 {
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .py-4 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    .py-3 {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
    }
    
    /* Reduce margins on mobile */
    .mb-5 {
        margin-bottom: 1rem !important;
    }
    
    .mb-4 {
        margin-bottom: 0.75rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.5rem !important;
    }
    
    .mt-5 {
        margin-top: 1rem !important;
    }
    
    .mt-4 {
        margin-top: 0.75rem !important;
    }
    
    /* Reduce container and row spacing */
    .container {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }
    
    .row {
        margin-left: -0.25rem !important;
        margin-right: -0.25rem !important;
    }
    
    .col-lg-8, .col-lg-6, .col-lg-4, .col-md-6 {
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }
    
    .floating-card {
        padding: 0.6rem;
        margin: 0.25rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .floating-card .card-icon {
        width: 30px;
        height: 30px;
    }
    
    .floating-card .card-icon i {
        font-size: 0.9rem;
    }
    
    .floating-card .card-content h6 {
        font-size: 0.8rem;
    }
    
    .floating-card .card-content p {
        font-size: 0.7rem;
    }
    
    .floating-card {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        padding: 0.6rem;
        margin: 0.25rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Ensure services section is visible under fixed navbar */
#services {
    padding-top: 100px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
}

.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.border-radius-custom {
    border-radius: var(--border-radius);
}
