/* General Styles */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #3f51b5, #5c6bc0);
    color: white;
    padding: 100px 0 70px;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.05) 10px,
        rgba(255,255,255,0.05) 20px
    );
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(70px, 70px); }
}

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

header h1 {
    font-size: 4rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 0.5rem;
}

header p.lead {
    font-size: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255,255,255,0.9);
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
    background-color: transparent;
}

.navbar.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: 700;
    color: #ffffff !important;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.navbar.scrolled .navbar-brand {
    color: #3f51b5 !important;
}

.nav-link {
    font-weight: 500;
    color: #ffffff !important;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
}

.navbar.scrolled .nav-link {
    color: #333 !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-link::after {
    background-color: #3f51b5;
}

.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
    left: 0;
}

/* Section Styles */
section {
    padding: 100px 0;
    background-color: #ffffff;
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, #3f51b5, #5c6bc0);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #3f51b5;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 70px;
    height: 3px;
    background-color: #3f51b5;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    background-color: #ffffff;
}

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

.card-body {
    padding: 1rem;
}

.card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #3f51b5;
}
#skills .card-title {
    font-size: 1.1rem;
}
#skills .list-group-item {
    padding: 0.5rem 1rem;
}
#skills .card {
    min-height: 200px;
}
/* Button Styles */
.btn {
    border-radius: 30px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: #3f51b5;
    border-color: #3f51b5;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #5c6bc0;
    border-color: #5c6bc0;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63,81,181,0.4);
}

.btn-outline-primary {
    color: #3f51b5;
    border-color: #3f51b5;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: #3f51b5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(63,81,181,0.4);
}

/* Footer Styles */
footer {
    background-color: #3f51b5;
    color: white;
    padding: 2rem 0;
}

footer p {
    margin-bottom: 0;
}

footer a {
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: #c5cae9;
    text-decoration: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 80px 0 50px;
    }

    header h1 {
        font-size: 2.5rem;
    }
    
    header p.lead {
        font-size: 1.2rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .card {
        margin-bottom: 20px;
    }

    .navbar-nav {
        background-color: #ffffff;
        padding: 1rem;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }

    .navbar-nav .nav-link {
        color: #333 !important;
    }

    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.75rem;
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }

    .navbar.scrolled .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2863, 81, 181, 0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    }
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}