/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
}

body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    line-height: 1.6;
    padding-top: 56px; /* For fixed navbar */
}

section {
    padding: 80px 0;
}

.section-title {
    font-weight: 700;
    margin-bottom: 20px;
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto 40px;
    opacity: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.8), rgba(0, 0, 0, 0.8)), 
                url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?q=80&w=1470&auto=format&fit=crop') center/cover no-repeat;
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="2"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    right: -50%;
    bottom: -50%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 15s infinite;
    z-index: 0;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.2;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
}

.social-icons a {
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-5px);
}

/* About Section */
#about {
    background-color: #fff;
}

/* Skills Section */
.skill-item {
    margin-bottom: 20px;
}

.skill-item h5 {
    font-size: 16px;
    margin-bottom: 8px;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

/* Certificates Section */
.certificate-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background-color: #f8f9fa;
    border: 8px solid #fff;
    outline: 1px solid #ddd;
    position: relative;
    overflow: hidden;
}

.certificate-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMDAiIGhlaWdodD0iMTAwIj48cmVjdCB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjZjBmMGYwIiBzdHJva2Utd2lkdGg9IjIiLz48L3N2Zz4=');
    opacity: 0.1;
    z-index: 0;
}

.certificate-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.certificate-card .card-header {
    border-bottom: 2px solid #0d6efd;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.certificate-card .card-body {
    position: relative;
    z-index: 1;
    background-color: #fff;
}

.certificate-logo {
    max-width: 100%;
    max-height: 80px;
    margin-top: 15px;
}

.certificate-content {
    border: 1px solid #0d6efd;
    border-radius: 4px;
    padding: 10px 8px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    position: relative;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.certificate-title {
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    color: #0d6efd;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.certificate-name {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 2px;
    color: #333;
}

.certificate-description {
    font-size: 9px;
    color: #666;
    margin-bottom: 2px;
}

.certificate-course {
    font-size: 12px;
    font-weight: bold;
    color: #0d6efd;
    margin-bottom: 2px;
}

.certificate-issuer {
    font-size: 9px;
    font-style: italic;
    color: #666;
    margin-bottom: 0;
}

.certificate-seal {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 70px;
    height: 70px;
    opacity: 0.2;
    z-index: 0;
}

.certificate-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    overflow: hidden;
    z-index: 2;
}

.certificate-ribbon::before {
    content: 'Certified';
    position: absolute;
    display: block;
    width: 180px;
    padding: 5px 0;
    background-color: #0d6efd;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
    transform: rotate(45deg);
    right: -45px;
    top: 30px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Projects Section */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Contact Section */
.contact-item {
    padding: 20px;
    border-radius: 5px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

/* Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 1s ease-in;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }
    
    .profile-img {
        width: 150px;
        height: 150px;
    }
    
    section {
        padding: 60px 0;
    }
}

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