/* ========================================
   PROFESSIONAL PORTFOLIO - GOLD & BLACK THEME
   ======================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    color: #d4af37;
    min-height: 100vh;
    line-height: 1.6;
}

/* ========================================
   CONTAINER & LAYOUT
   ======================================== */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* ========================================
   HEADER & TYPOGRAPHY
   ======================================== */

.header {
    text-align: center;
    margin-bottom: 4rem;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.subtitle {
    font-size: 1.2rem;
    color: #b8860b;
    font-weight: 300;
    letter-spacing: 0.05em;
}

/* ========================================
   STATS BAR
   ======================================== */

.stats-bar {
    display: flex;
    justify-content: space-around;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 4rem;
    backdrop-filter: blur(10px);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #d4af37;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #b8860b;
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ========================================
   CARDS GRID & LAYOUT
   ======================================== */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

/* ========================================
   CARD CONTAINER & 3D EFFECTS
   ======================================== */

.card {
    width: 350px;
    height: 450px;
    perspective: 1000px;
    position: relative;
    margin: 0 auto;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s ease;
    transform-style: preserve-3d;
}

/* 3D Flip Effect */
.card:hover .card-inner {
    transform: rotateY(180deg);
}

/* Card Faces */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.3);
    background: linear-gradient(145deg, #1a1a1a, #0f0f0f);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ========================================
   FRONT FACE STYLING
   ======================================== */

.card-front {
    display: flex;
    flex-direction: column;
}

.card-image {
    flex: 1;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(184, 134, 11, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .image-overlay {
    opacity: 1;
}

.tech-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(212, 175, 55, 0.9);
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

/* Card Content */
.card-content {
    padding: 2rem;
    color: #d4af37;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
}

.card-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #d4af37;
}

.card-content p {
    font-size: 0.95rem;
    color: #b8860b;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #b8860b);
    border-radius: 3px;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

/* ========================================
   BACK FACE STYLING
   ======================================== */

.card-back {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-back .card-content {
    text-align: center;
    padding: 2.5rem;
}

.card-back .card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #d4af37;
}

.card-back .card-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #b8860b;
}

/* Tech Stack Tags */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tech-tag {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.3);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.tech-tag:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.2);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(45deg, #d4af37, #b8860b);
    color: #000;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(45deg, #b8860b, #d4af37);
}

/* ========================================
   FOOTER
   ======================================== */

.footer {
    margin-top: 4rem;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    background: rgba(212, 175, 55, 0.03);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer p {
    color: #b8860b;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-link {
    color: #d4af37;
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
    position: relative;
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.social-link:hover::after {
    width: 100%;
}

.social-link:hover {
    color: #b8860b;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .card {
        width: 320px;
        height: 420px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .card {
        width: 300px;
        height: 400px;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .card-back .card-content {
        padding: 2rem;
    }
}

/* ========================================
   PROGRESS BAR ANIMATIONS
   ======================================== */

.progress-fill[data-progress="95"] { width: 95%; }
.progress-fill[data-progress="90"] { width: 90%; }
.progress-fill[data-progress="85"] { width: 85%; }
.progress-fill[data-progress="92"] { width: 92%; }
.progress-fill[data-progress="88"] { width: 88%; }
.progress-fill[data-progress="82"] { width: 82%; }

/* ========================================
   SMOOTH TRANSITIONS
   ======================================== */

* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8860b;
}

/* ========================================
   ACCESSIBILITY & FOCUS STATES
   ======================================== */

.cta-button:focus,
.social-link:focus {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

/* ========================================
   PERFORMANCE OPTIMIZATIONS
   ======================================== */

.card-image img {
    will-change: transform;
}

.card-inner {
    will-change: transform;
}

.cta-button {
    will-change: transform;
}