:root {
    --steel-grey: #2d3436;
    --dark-grey: #1e272e;
    --orange: #ff7f50;
    --orange-light: #ff9f43;
    --black: #000000;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-grey);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
}

/* Particle Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(135deg, var(--steel-grey) 0%, var(--black) 100%);
}

/* Cursor Trail Effect */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 127, 80, 0.5);
    pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    z-index: 9999;
    transition: transform 0.1s ease;
}

/* Header Styles */
header {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden;
}

.header-content {
    z-index: 2;
    max-width: 800px;
}

.title-gradient {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--orange), var(--white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
}

.scroll-indicator span {
    display: block;
    width: 10px;
    height: 10px;
    border: 2px solid var(--orange);
    border-radius: 50%;
    margin: 0 5px;
    animation: bounce 1.5s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Certificate Sections */
.cert-section {
    padding: 4rem 2rem;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.section-header h2 i {
    color: var(--orange);
}

.divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Certificates Container */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* Certificate Box */
.certificate-box {
    background: rgba(45, 52, 54, 0.7);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 127, 80, 0.2);
    backdrop-filter: blur(5px);
}

.certificate-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 127, 80, 0.1) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: var(--transition);
}

.certificate-box:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 127, 80, 0.5);
}

.certificate-box:hover::before {
    opacity: 1;
}

.certificate-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.certificate-box:hover .certificate-img {
    transform: scale(1.05);
}

.certificate-name {
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    position: relative;
    z-index: 2;
    background: rgba(30, 39, 46, 0.7);
    transition: var(--transition);
}

.certificate-box:hover .certificate-name {
    background: rgba(30, 39, 46, 0.9);
}

/* Modal Styles */
.certificate-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow: auto;
}

.modal-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    z-index: -1;
}

.modal-content {
    display: block;
    margin: 60px auto;
    max-width: 90%;
    max-height: 80vh;
    animation: zoom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 30px rgba(255, 127, 80, 0.3);
    border-radius: 8px;
}

@keyframes zoom {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: fixed;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.close-btn:hover {
    color: var(--orange);
    transform: rotate(90deg);
}

.caption {
    color: var(--white);
    text-align: center;
    padding: 20px 0;
    font-size: 1.3rem;
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
}

/* Footer Styles */
footer {
    background: var(--steel-grey);
    padding: 3rem 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    color: var(--white);
    font-size: 1.5rem;
    transition: var(--transition);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
}

.social-icon:hover {
    color: var(--orange);
    background: rgba(255, 127, 80, 0.2);
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .title-gradient {
        font-size: 2.8rem;
    }
    
    .certificates-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .title-gradient {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .certificates-container {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        margin: 80px auto;
    }
    
    .close-btn {
        top: 20px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .title-gradient {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}