/* ==========================================
   CSS VARIABLES - COLOR PALETTE
   ========================================== */
:root {
    /* Primary Colors */
    --color-cyan: #00ffff;
    --color-cyan-dark: #00cccc;
    --color-purple: #a855f7;
    --color-blue: #3b82f6;

    /* Background Colors */
    --color-bg-dark: #0a0a0f;
    --color-bg-darker: #050508;
    --color-bg-card: #151520;
    --color-bg-card-hover: #1a1a2e;

    /* Text Colors */
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0b0;
    --color-text-muted: #6b6b80;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-purple) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--color-blue) 0%, var(--color-purple) 100%);
    --gradient-dark: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 255, 255, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 255, 255, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 255, 255, 0.2);
    --shadow-glow: 0 0 30px rgba(0, 255, 255, 0.3);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 1rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

::selection {
    background: var(--color-cyan);
    color: var(--color-bg-darker);
}

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
    min-height: 100vh;
    background: var(--gradient-dark);
    position: relative;
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

#particlesCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.badge-tech {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--color-cyan);
    border-radius: var(--radius-full);
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    line-height: 1.7;
}

.hero-stats {
    margin-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn-primary-custom {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: var(--color-bg-darker);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
    color: var(--color-bg-darker);
}

.btn-outline-custom {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--color-cyan);
    border-radius: var(--radius-md);
    color: var(--color-cyan);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: all var(--transition-normal);
}

.btn-outline-custom:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--color-cyan);
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 255, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-cyan);
    box-shadow: var(--shadow-glow);
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal);
}

.hero-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.5);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--color-cyan);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   SECTION STYLES
   ========================================== */
section {
    padding: 5rem 0;
}

.bg-dark {
    background: var(--color-bg-darker);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

.section-header {
    margin-bottom: 3rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid var(--color-cyan);
    border-radius: var(--radius-full);
    color: var(--color-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   TECH STACK SECTION
   ========================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-category {
    background: var(--color-bg-card);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    transition: all var(--transition-normal);
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-cyan);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    height: 280px;
    overflow: hidden;
    position: relative;
}

.tech-items::before,
.tech-items::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    z-index: 2;
    pointer-events: none;
}

.tech-items::before {
    top: 0;
    background: linear-gradient(to bottom, var(--color-bg-card) 0%, transparent 100%);
}

.tech-items::after {
    bottom: 0;
    background: linear-gradient(to top, var(--color-bg-card) 0%, transparent 100%);
}

.tech-items-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: scrollVertical 20s linear infinite;
}

.tech-category:hover .tech-items-wrapper {
    animation-play-state: paused;
}

.tech-carousel:nth-child(even) .tech-items-wrapper {
    animation-name: scrollVerticalReverse;
}

@keyframes scrollVertical {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

@keyframes scrollVerticalReverse {
    0% {
        transform: translateY(-50%);
    }
    100% {
        transform: translateY(0);
    }
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    cursor: default;
}

.tech-badge:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: var(--color-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.tech-badge i {
    font-size: 1.125rem;
    color: var(--color-cyan);
}

/* ==========================================
   EXPERTISE SECTION
   ========================================== */
.expertise-card {
    background: var(--color-bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    text-align: center;
}

.expertise-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-lg);
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.expertise-card:hover::before {
    transform: scaleX(1);
}

.card-shine {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    pointer-events: none;
}

.expertise-card:hover .card-shine {
    animation: shine 1.5s ease;
}

@keyframes shine {
    0% {
        transform: rotate(45deg) translateX(-100%);
    }
    100% {
        transform: rotate(45deg) translateX(100%);
    }
}

.icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.expertise-card:hover .icon-wrapper {
    transform: rotateY(360deg);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--color-bg-darker);
}

.expertise-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--color-text-primary);
}

.expertise-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */
.credential-card {
    background: var(--color-bg-card);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    height: 100%;
    text-align: center;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.credential-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-normal);
}

.credential-card:hover::before {
    transform: scaleX(1);
}

.credential-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-lg);
}

.credential-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.credential-card:hover .credential-icon {
    transform: scale(1.1) rotate(10deg);
}

.credential-icon i {
    font-size: 2rem;
    color: var(--color-bg-darker);
}

.credential-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--color-text-primary);
}

.credential-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.credential-list li {
    padding: 0.5rem 0;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    position: relative;
    padding-left: 1.5rem;
}

.credential-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-cyan);
    font-weight: bold;
}

/* ==========================================
   IMPACT SECTION
   ========================================== */
.impact-card {
    background: var(--color-bg-card);
    padding: 3rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 255, 255, 0.1);
    text-align: center;
    height: 100%;
    transition: all var(--transition-normal);
}

.impact-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-cyan);
    box-shadow: var(--shadow-lg);
}

.impact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all var(--transition-normal);
}

.impact-card:hover .impact-icon {
    transform: scale(1.1) rotate(10deg);
}

.impact-icon i {
    font-size: 2.5rem;
    color: var(--color-bg-darker);
}

.impact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.impact-card p {
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin: 0;
}

.impact-card strong {
    color: var(--color-cyan);
    font-weight: 700;
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-md);
    color: #ffffff;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
    border: 2px solid transparent;
}

.contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow);
    color: #ffffff;
}

.contact-btn i {
    font-size: 2rem;
}

/* LinkedIn Button */
.contact-btn .bi-linkedin {
    color: #ffffff;
}

.contact-btn:has(.bi-linkedin) {
    background: linear-gradient(135deg, #0077b5 0%, #005885 100%);
}

.contact-btn:has(.bi-linkedin):hover {
    background: linear-gradient(135deg, #0096dc 0%, #0077b5 100%);
    border-color: #0077b5;
    box-shadow: 0 8px 32px rgba(0, 119, 181, 0.4);
}

/* WhatsApp Button */
.contact-btn .bi-whatsapp {
    color: #ffffff;
}

.contact-btn:has(.bi-whatsapp) {
    background: linear-gradient(135deg, #25d366 0%, #1ea952 100%);
}

.contact-btn:has(.bi-whatsapp):hover {
    background: linear-gradient(135deg, #2fe673 0%, #25d366 100%);
    border-color: #25d366;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.4);
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
    background: var(--color-bg-darker);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
}

footer p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.text-cyan {
    color: var(--color-cyan);
}

.text-muted {
    color: var(--color-text-secondary) !important;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    /* Disable carousel on tablet landscape and show as flex-wrap */
    .tech-items {
        height: auto;
        overflow: visible;
    }

    .tech-items::before,
    .tech-items::after {
        display: none;
    }

    .tech-items-wrapper {
        flex-wrap: wrap;
        animation: none !important;
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    .tech-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }

    .expertise-card,
    .impact-card {
        padding: 2rem 1.5rem;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    /* Disable carousel on tablet and show as flex-wrap */
    .tech-items {
        height: auto;
        overflow: visible;
    }

    .tech-items::before,
    .tech-items::after {
        display: none;
    }

    .tech-items-wrapper {
        flex-wrap: wrap;
        animation: none !important;
    }
}

@media (max-width: 576px) {
    /* Hero Section Mobile Layout */
    #hero .row {
        flex-direction: row !important;
        align-items: center !important;
    }

    #hero .col-lg-6 {
        width: auto !important;
        flex: 0 0 auto !important;
    }

    #hero .col-lg-6.order-2 {
        order: 1 !important;
        flex: 0 0 35% !important;
        padding-right: 0.5rem !important;
    }

    #hero .col-lg-6.order-1 {
        order: 2 !important;
        flex: 1 !important;
        padding-left: 0.5rem !important;
    }

    .hero-image-wrapper {
        margin: 0 !important;
    }

    .hero-image {
        max-width: 120px !important;
        width: 120px !important;
        height: 120px !important;
    }

    .hero-content {
        text-align: left !important;
    }

    .badge-tech {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }

    .hero-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }

    .hero-stats {
        margin-top: 1rem !important;
        gap: 1rem !important;
    }

    .stat-number {
        font-size: 1.25rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    .hero-cta {
        margin-top: 1rem !important;
        flex-direction: column !important;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .tech-category {
        padding: 1.25rem;
    }

    .category-title {
        font-size: 1.125rem;
    }

    /* Disable carousel on mobile and show as flex-wrap */
    .tech-items {
        height: auto;
        overflow: visible;
    }

    .tech-items::before,
    .tech-items::after {
        display: none;
    }

    .tech-items-wrapper {
        flex-wrap: wrap;
        animation: none !important;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
