body {
    font-family: 'Open Sans', sans-serif;
}

h2, h3 {
    text-align: center;
}

p .pt-2 {
    border: 1px solid steelblue;
}

.btn {
    font-weight: 700;
    border-radius: 300px;
    text-transform: uppercase;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: orange }
}

/* Particles background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #000;
    background-image: url('');
    background-size: cover;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

.hero-section {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

/* Timeline */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #007bff;
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
}

.timeline-marker {
    position: absolute;
    left: -22px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #007bff;
    border: 2px solid #fff;
}

.timeline-content {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
}

/* Card hover effects */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Fade in animation */
.fade-in {
    animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Skill Cards */
.skill-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
}

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

.skill-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
}

.skill-card .card-body ul li {
    margin-bottom: 5px;
    font-weight: 500;
}

@media (max-width: 300px) {
    .btn-primary {
        color: cornflowerblue;
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }
    .hero-section {
        height: 300px !important;
    }
    .timeline::before {
        left: 10px;
    }
    .timeline-marker {
        left: -17px;
    }
}

@media (max-width: 576px) {
    .typewriter {
        font-size: 1.2rem;
    }
    .card {
        margin-bottom: 1rem;
    }
}

/* Footer newsletter layout */
.footer-newsletter {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 0;
}
.footer-newsletter p {
    margin: 0;
    font-weight: 600;
}
.footer-newsletter .btn {
    min-width: 180px;
    padding: 0.6rem 1.1rem;
}

@media (max-width: 576px) {
    .footer-newsletter {
        flex-direction: column;
    }
    .footer-newsletter .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Social button color variants */
.social-facebook { background-color: #3b5998; }
.social-x { background-color: #55acee; }
.social-youtube { background-color: #dd4b39; }
.social-instagram { background-color: #ac2bac; }
.social-linkedin { background-color: #0082ca; }
.social-github { background-color: #333333; }

.footer-copy { background-color: rgba(0, 0, 0, 0.05); }

/* Small accessibility: ensure icon-only links have discernible focus */
.btn-floating:focus { outline: 2px solid rgba(0,0,0,0.15); outline-offset: 2px; }