/* =============================================
   PAVINCE — Design & Code Portfolio
   Colors from the superhero capes:
   - Red Cape:     #C0392B (Pavi / design side)
   - Blue Cape:    #2656A8 (Vince / code side)
   - Dark Navy:    #1A1F3A
   - Accent Glow:  #4FC3F7
   ============================================= */

:root {
    --coral: #DC2626;
    --coral-dark: #B91C1C;
    --coral-light: #EF4444;
    --teal: #3A8AD4;
    --teal-dark: #2B6FB5;
    --teal-light: #5AACF0;
    --accent: #5ACDFF;
    --navy: #1E2A4A;
    --navy-dark: #141D34;
    --navy-light: #2A3B62;
    --off-white: #F5F7FA;
    --dark-subtle-bg: #F0F2F5;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    overflow-x: hidden;
}

.ls-wide {
    letter-spacing: 3px;
}

.text-accent {
    color: var(--accent) !important;
}

.text-coral {
    color: var(--coral) !important;
}

.text-teal {
    color: var(--teal) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75);
}

.bg-coral {
    background-color: var(--coral) !important;
}

.bg-teal {
    background-color: var(--teal) !important;
}

.bg-dark-subtle {
    background-color: var(--dark-subtle-bg) !important;
}

.py-6 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.z-1 {
    z-index: 1;
}

/* Buttons */
.btn-accent {
    background: linear-gradient(135deg, var(--teal), var(--accent));
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent), var(--teal));
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 212, 255, 0.5);
}

.btn-outline-light {
    border-radius: 50px;
    font-weight: 600;
    border-width: 2px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* Navbar */
#mainNav {
    background: transparent;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

#mainNav.scrolled {
    background: rgba(30, 42, 74, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.nav-link {
    font-weight: 500;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent) !important;
}

/* Hero */
.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-bg-split {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--coral) 0%, var(--coral-dark) 45%, var(--teal-dark) 55%, var(--teal) 100%);
    z-index: 0;
}

.hero-bg-split::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(232, 101, 74, 0.3) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(26, 159, 217, 0.3) 0%, transparent 50%);
}

.hero-title {
    font-size: 5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.hero-image {
    max-width: 520px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Floating Icons */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.floating-icon {
    position: absolute;
    color: rgba(255, 255, 255, 0.15);
    font-size: 2rem;
    animation: floatRandom 8s ease-in-out infinite;
}

.icon-1 { top: 15%; left: 5%; animation-delay: 0s; font-size: 2.5rem; }
.icon-2 { top: 20%; right: 8%; animation-delay: 1s; font-size: 3rem; }
.icon-3 { bottom: 25%; left: 12%; animation-delay: 2s; }
.icon-4 { top: 40%; left: 3%; animation-delay: 3s; font-size: 2.2rem; }
.icon-5 { bottom: 15%; right: 5%; animation-delay: 4s; font-size: 2.8rem; }
.icon-6 { top: 10%; right: 30%; animation-delay: 5s; }

@keyframes floatRandom {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(15px, -10px) rotate(3deg); }
}

/* About */
.about-visual {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.about-card {
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    flex: 1;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-8px);
}

.about-card-design {
    background: linear-gradient(135deg, rgba(232, 101, 74, 0.1), rgba(232, 101, 74, 0.05));
    border: 2px solid rgba(232, 101, 74, 0.2);
    color: var(--coral);
}

.about-card-code {
    background: linear-gradient(135deg, rgba(26, 159, 217, 0.1), rgba(26, 159, 217, 0.05));
    border: 2px solid rgba(26, 159, 217, 0.2);
    color: var(--teal);
}

.stat-box {
    padding: 1rem;
}

/* Services */
.service-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.service-card-design .service-icon {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
}

.service-card-code .service-icon {
    background: linear-gradient(135deg, var(--teal), var(--teal-light));
}

.service-card-design:hover {
    border-color: var(--coral-light);
}

.service-card-code:hover {
    border-color: var(--teal-light);
}

/* Team */
.team-card {
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.team-card-pavi {
    background: linear-gradient(180deg, rgba(232, 101, 74, 0.08), #fff);
    border: 2px solid rgba(232, 101, 74, 0.15);
}

.team-card-pavi::before {
    background: linear-gradient(90deg, var(--coral), var(--coral-light));
}

.team-card-vince {
    background: linear-gradient(180deg, rgba(26, 159, 217, 0.08), #fff);
    border: 2px solid rgba(26, 159, 217, 0.15);
}

.team-card-vince::before {
    background: linear-gradient(90deg, var(--teal), var(--accent));
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.team-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-card-pavi .team-avatar {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: #fff;
}

.team-card-vince .team-avatar {
    background: linear-gradient(135deg, var(--teal), var(--accent));
    color: #fff;
}

.team-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.skill-tag {
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    color: #555;
}

.team-card-pavi .skill-tag {
    background: rgba(232, 101, 74, 0.1);
    color: var(--coral-dark);
}

.team-card-vince .skill-tag {
    background: rgba(26, 159, 217, 0.1);
    color: var(--teal-dark);
}

/* Portfolio */
.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-thumb {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.portfolio-thumb-1 { background: linear-gradient(135deg, var(--coral), var(--teal)); }
.portfolio-thumb-2 { background: linear-gradient(135deg, var(--coral-light), var(--coral-dark)); }
.portfolio-thumb-3 { background: linear-gradient(135deg, var(--teal), var(--navy)); }
.portfolio-thumb-4 { background: linear-gradient(135deg, var(--accent), var(--teal-dark)); }
.portfolio-thumb-5 { background: linear-gradient(135deg, var(--navy), var(--teal)); }
.portfolio-thumb-6 { background: linear-gradient(135deg, var(--coral), var(--navy)); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: rgba(30, 42, 74, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.portfolio-info {
    padding: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy), var(--navy-light));
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(232, 101, 74, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 70% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 40%);
    animation: ctaPulse 8s ease-in-out infinite;
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Contact */
.contact-form .form-control,
.contact-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    transition: border-color 0.3s ease;
    background: #fff;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 4px rgba(26, 159, 217, 0.15);
}

/* Footer */
.footer {
    background: var(--navy-dark);
    color: #fff;
}

.footer-brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -1px;
}

.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.footer-social:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-image {
        max-width: 400px;
    }

    .py-6 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-image {
        max-width: 300px;
    }

    .about-visual {
        flex-direction: column;
    }
}

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

/* Selection */
::selection {
    background: var(--accent);
    color: #fff;
}
