/* ===== CSS RESET & GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0a0a14;
    color: #f0f0f0;
    overflow-x: hidden;
    position: relative;
}

:root {
    --gradient-company: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    --gradient-type: linear-gradient(135deg, #2c3e50, #3498db);
    --gradient-primary: linear-gradient(90deg, #00f3ff, #3b9eff);
    --glow-color: rgba(0, 243, 255, 0.3);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== ANIMATED BACKGROUND ELEMENTS ===== */
.bg-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(16, 16, 32, 0.7) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 16, 32, 0.7) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    opacity: 0.3;
}

.neon-circle {
    position: fixed;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    animation: float 15s infinite ease-in-out;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 255, 0.1);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: rgba(147, 51, 234, 0.1);
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
}

.circle-3 {
    width: 350px;
    height: 350px;
    background: rgba(16, 185, 129, 0.08);
    top: 50%;
    right: 20%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    33% {
        transform: translateY(-30px) translateX(30px);
    }
    66% {
        transform: translateY(20px) translateX(-20px);
    }
}

/* ===== TYPOGRAPHY & NEON EFFECTS ===== */
.neon-text {
    background: linear-gradient(90deg, #00f7ff, #9f35ff, #00ff9d);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.3);
}

/* Logo image styles */
.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    max-height: 50px;
    width: auto;
    display: block;
}

/* ===== HEADER ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 0;
    z-index: 100;
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 247, 255, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #f0f0f0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00f7ff, #9f35ff);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: #00f7ff;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #f0f0f0;
    cursor: pointer;
}

/* ===== FLOATING BUTTONS ===== */
.floating-btn {
    position: fixed;
    bottom: 30px;
    z-index: 99;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
    overflow: hidden;
}

.floating-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s;
}

.floating-btn:hover::before {
    transform: translateY(0);
}

.call-btn {
    right: 30px;
    background: linear-gradient(135deg, #00f7ff, #008cff);
    border: 2px solid rgba(0, 247, 255, 0.5);
}

.whatsapp-btn {
    right: 30px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    border: 2px solid rgba(37, 211, 102, 0.5);
    bottom: 105px;
}

.btn-tooltip {
    position: absolute;
    top: 50%;
    right: 70px;
    transform: translateY(-50%);
    background: rgba(10, 10, 20, 0.9);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    border: 1px solid rgba(0, 247, 255, 0.2);
}

.floating-btn:hover .btn-tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 160px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-line {
    display: block;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #b0b0c0;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #00f7ff, #9f35ff);
    color: #0a0a14;
    box-shadow: 0 5px 20px rgba(0, 247, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 247, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #f0f0f0;
    border: 2px solid rgba(0, 247, 255, 0.5);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(0, 247, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 247, 255, 0.2);
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-3d {
    width: 250px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(-15deg) rotateY(-15deg);
    animation: rotateCube 20s infinite linear;
}

@keyframes rotateCube {
    0% {
        transform: rotateX(-15deg) rotateY(0deg);
    }
    100% {
        transform: rotateX(-15deg) rotateY(360deg);
    }
}

.cube-face {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 247, 255, 0.05);
    border: 2px solid rgba(0, 247, 255, 0.3);
    box-shadow: inset 0 0 30px rgba(0, 247, 255, 0.1), 0 0 30px rgba(0, 247, 255, 0.1);
}

.cube-face.front {
    transform: translateZ(125px);
}

.cube-face.back {
    transform: translateZ(-125px) rotateY(180deg);
}

.cube-face.left {
    transform: translateX(-125px) rotateY(-90deg);
}

.cube-face.right {
    transform: translateX(125px) rotateY(90deg);
}

.cube-face.top {
    transform: translateY(-125px) rotateX(90deg);
}

.cube-face.bottom {
    transform: translateY(125px) rotateX(-90deg);
}

/* ===== PORTFOLIO CARDS SECTION (REDESIGNED) ===== */
.categories {
    background-color: rgba(10, 10, 15, 0.7);
    position: relative;
    padding: 100px 0;
}

.categories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(67, 97, 238, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.section-subtitle {
    color: #b0b0c0;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

/* Portfolio Card Styles - Exactly matching the provided design */
.portfolio-card {
    position: relative;
    background: rgba(15, 21, 37, 0.7);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(0, 243, 255, 0.15);
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: #00f3ff;
    box-shadow: 0 20px 35px -12px rgba(0, 243, 255, 0.3), 0 0 15px rgba(0, 243, 255, 0.3);
}

/* Glow effect behind card (pseudo-element) */
.portfolio-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
    filter: blur(12px);
    pointer-events: none;
}

.portfolio-card:hover::after {
    opacity: 0.35;
}

/* Image section – top rounded corners only, landscape (16:9) */
.portfolio-image {
    width: 100%;
    height: 210px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    background: #111;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    display: block;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

/* Company name section – bold, centered, gradient background */
.portfolio-company {
    background: var(--gradient-company);
    text-align: center;
    padding: 1rem 1.2rem;
}

.company-name {
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
    line-height: 1.3;
}

/* Business type section – smaller font, different gradient */
.portfolio-business {
    background: var(--gradient-type);
    text-align: center;
    padding: 0.75rem 1rem;
}

.business-type {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
    color: #fffef7;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.95;
}

/* Button section – full width, original gradient + hover effects */
.portfolio-action {
    padding: 1.25rem 1.5rem 1.5rem 1.5rem;
    margin-top: auto;
}

.btn-visit-project {
    display: inline-block;
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: #0a0a0f;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.2);
    letter-spacing: 0.5px;
}

.btn-visit-project:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 243, 255, 0.6);
    background: linear-gradient(135deg, #1fe6ff, #3b9eff);
}

/* ===== FOOTER ===== */
.footer {
    background: rgba(10, 10, 20, 0.95);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 247, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-desc {
    color: #b0b0c0;
    line-height: 1.6;
    max-width: 300px;
}

.footer-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #f0f0f0;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: #b0b0c0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: #00f7ff;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #b0b0c0;
}

.contact-info i {
    color: #00f7ff;
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(30, 30, 50, 0.7);
    color: #f0f0f0;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.social-link:hover {
    background: linear-gradient(135deg, #00f7ff, #9f35ff);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #8a8aa0;
    font-size: 0.9rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 247, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 247, 255, 0.8);
    }
}

.pulse {
    animation: pulse 2s infinite;
}