/* ===== Custom CSS for Jia Kaur Portfolio ===== */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
}

/* ===== GENERAL STYLES ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #1a1a1a;
}

a {
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ===== NAVBAR ===== */
.navbar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff !important;
    letter-spacing: 1px;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #10231f 0%, #1d4a43 46%, #6f5f7e 100%);
    color: #fff;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(180deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    opacity: 0.22;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 13, 12, 0.68) 0%, rgba(5, 13, 12, 0.42) 48%, rgba(5, 13, 12, 0.18) 100%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 3px 22px rgba(0, 0, 0, 0.28);
    animation: fadeInUp 0.8s ease-out;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.96);
    font-size: 1.25rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero p {
    color: rgba(255, 255, 255, 0.92);
}

.hero .btn-light {
    color: #17352f;
    border-color: #fff;
}

.hero .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.82);
    color: #fff;
}

.hero .btn-outline-light:hover {
    background: #fff;
    color: #17352f;
}

.profile-image-wrapper {
    animation: fadeInDown 0.8s ease-out;
}

.profile-image {
    border-radius: 50%;
    overflow: hidden;
    object-fit: cover;
    object-position: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    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 100 100"><path d="M0,50 Q25,30 50,50 T100,50" stroke="white" stroke-width="0.5" fill="none" opacity="0.1"/></svg>');
    pointer-events: none;
}

.page-header h1 {
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.15rem;
}

/* ===== HIGHLIGHTS SECTION ===== */
.highlight-card {
    padding: 2rem;
    border-radius: 10px;
    background: #fff;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.highlight-card .icon-box {
    display: inline-block;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.highlight-card h5 {
    color: #1a1a1a;
    margin-top: 1rem;
}

/* ===== CARDS ===== */
.card {
    border-radius: 10px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.card-body {
    padding: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    color: #fff;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    background-color: #fff;
    color: var(--primary-color);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* ===== SKILL BARS ===== */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-item .progress {
    background-color: #f0f0f0;
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    transition: width 0.5s ease;
}

/* ===== TIMELINE ===== */
.timeline-item {
    position: relative;
    padding: 2rem 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -9px;
    top: 30px;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    z-index: 10;
}

/* ===== FOOTER ===== */
.site-footer {
    background: linear-gradient(135deg, #111816 0%, #172421 52%, #242130 100%);
    color: #f7f4ec;
    border-top: 4px solid #caa46a;
    position: relative;
    overflow: hidden;
}

.site-footer h5 {
    color: #fffaf0;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

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

.footer-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(202, 164, 106, 0.16);
    color: #f3d49a;
    border: 1px solid rgba(243, 212, 154, 0.32);
}

.footer-text,
.footer-bottom {
    color: rgba(247, 244, 236, 0.72);
}

.site-footer a,
.footer-links a {
    color: rgba(247, 244, 236, 0.72);
    text-decoration: none;
    transition: all 0.3s ease;
}

.site-footer a:hover,
.footer-links a:hover {
    color: #f3d49a;
    text-decoration: none;
}

.footer-links li + li {
    margin-top: 0.55rem;
}

.footer-bottom {
    border-top: 1px solid rgba(247, 244, 236, 0.16);
}

.site-footer .social-links .btn {
    padding: 0;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(247, 244, 236, 0.28);
    color: rgba(247, 244, 236, 0.82);
    background: rgba(255, 255, 255, 0.04);
}

.site-footer .social-links .btn:hover {
    border-color: #f3d49a;
    background: rgba(243, 212, 154, 0.12);
    color: #f3d49a;
    transform: translateY(-3px);
}

.footer-admin-link {
    color: rgba(247, 244, 236, 0.62);
    font-size: 0.95rem;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.contact-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-width: 112px;
    min-height: 40px;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(26, 26, 26, 0.12);
}

.contact-social-link:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.16);
}

.contact-social-linkedin {
    background: #0a66c2;
}

.contact-social-twitter {
    background: #0f7f9f;
}

.contact-social-email {
    background: #8f2d56;
}

/* ===== FORM STYLES ===== */
.form-control,
.form-select {
    border: 2px solid #f0f0f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== BADGE STYLES ===== */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    border-radius: 20px;
}

/* ===== ALERT STYLES ===== */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .profile-image {
        width: 200px !important;
        height: 200px !important;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.5rem;
    }
}

/* ===== MODAL STYLES ===== */
.modal-content {
    border: none;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
    background-color: #f8f9fa;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 2px solid #f0f0f0;
    background-color: #f8f9fa;
}

/* ===== TABLE STYLES ===== */
.table {
    margin-bottom: 0;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: #333;
}

.table td {
    vertical-align: middle;
    padding: 1rem;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.border-top-gradient {
    border-top: 3px solid var(--primary-color);
}

.shadow-lg {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1) !important;
}

.rounded-20 {
    border-radius: 20px;
}

/* ===== PRINT STYLES ===== */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }

    body {
        background: white;
    }
}
