/* Custom Styles for Portfolio Website */

/* Import Google Fonts if not already in HTML */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Root variables for colors */
:root {
    --primary-color: #0056b3; /* Darker Blue */
    --secondary-color: #1e7e34; /* Darker Green */
    --light-bg: #333333;
    --dark-text: #ffffff;
    --muted-text: #cccccc;
}

/* Global Styles */
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #1a1a1a;
}

/* Navigation */
.navbar-brand {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link {
    color: #212529 !important;
    font-weight: 500;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
    animation: gradientShift 10s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animate-fade-in {
    animation: fadeIn 2s ease-in-out;
}

.animate-slide-up {
    animation: slideUp 2s ease-in-out 0.5s both;
}

.animate-fade-in-delay {
    animation: fadeIn 2s ease-in-out 1s both;
}

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

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

.hero-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.shape1 {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape2 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.shape3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Projects Section */
.projects .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
}

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

.projects .card-img-top {
    border-radius: 10px 10px 0 0;
    height: 400px;
    object-fit: cover;
}

.projects .badge {
    background-color: var(--secondary-color);
    color: white;
}

/* About Section */
.about .lead {
    font-size: 1.2rem;
}

.about ul li {
    font-size: 1.1rem;
}

/* Contact Section */
.contact .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 8px;
    padding: 10px 20px;
}

.contact .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.social-links a {
    color: var(--primary-color);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

/* Footer */
footer {
    background-color: var(--light-bg);
    padding: 20px 0;
    text-align: center;
    color: var(--muted-text);
}

footer a {
    color: #ffffff;
    font-weight: 500;
}

footer a:hover {
    color: #6ea8ff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .projects .col-md-6 {
        margin-bottom: 20px;
    }
}