/* Global Styles */
:root {
    --primary-color: #3b82f6;
    --secondary-color: #10b981;
    --background-color: #f0f4f8;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --nav-bg-color: #1a237e;
    --nav-hover-color: #283593;
    --nav-active-color: #3949ab;
    --nav-gradient-start: #1a237e;
    --nav-gradient-end: #283593;
}

/* Favicon Styles */
link[rel="icon"] {
    border-radius: 50%;
    object-fit: cover;
    width: 32px;
    height: 32px;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--nav-gradient-start) 0%, var(--nav-gradient-end) 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand:hover {
    color: #64b5f6 !important;
    transform: translateY(-1px);
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9) !important;
    position: relative;
    margin: 0 0.2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #64b5f6;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

.nav-link:hover::after {
    width: 80%;
}

.nav-link.active {
    color: white !important;
    font-weight: 600;
}

.nav-link.active::after {
    width: 80%;
    background-color: #64b5f6;
}

/* Typography Adjustments */
.display-4 {
    font-size: 2.5rem;
}

.display-5 {
    font-size: 2rem;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 1.8rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

.lead {
    font-size: 1.1rem;
}

p {
    font-size: 0.95rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-color);
}

.hero-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.tech-stack .badge {
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 2rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, var(--nav-gradient-start) 0%, var(--nav-gradient-end) 100%) !important;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-right: 0.8rem;
    margin-bottom: 0.8rem;
}

.tech-stack .badge:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, var(--nav-hover-color) 0%, var(--nav-active-color) 100%) !important;
    border-color: #64b5f6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
    perspective: 1000px;
    position: relative;
}

.profile-image-placeholder {
    width: 500px;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
    z-index: 1;
}

.profile-image-placeholder::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(
        45deg,
        #3b82f6,
        #10b981,
        #3b82f6,
        #10b981
    );
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: gradientBG 15s ease infinite;
}

.profile-image-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    opacity: 0;
    transition: opacity 0.5s ease;
}

.profile-image-placeholder:hover::after {
    opacity: 1;
}

.profile-image-placeholder img {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: white;
    padding: 8px;
}

/* Profile Image Animation */
.animate-profile {
    animation: gentleFloat 6s ease-in-out infinite;
}

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

.animate-profile:hover img {
    transform: scale(1.02);
}

@keyframes gentleFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

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

/* Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.slide-in {
    opacity: 0;
    transform: translateX(50px);
    animation: slideIn 1s ease forwards;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-image-placeholder {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        text-align: center;
        padding: 4rem 0;
    }

    .profile-image-container {
        margin-top: 2rem;
    }

    .profile-image-placeholder {
        width: 400px;
        height: 400px;
    }

    .cta-buttons {
        justify-content: center;
    }

    .display-4 {
        font-size: 2.2rem;
    }

    .display-5 {
        font-size: 1.8rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero-section h1 {
        font-size: 3rem;
    }
    
    .hero-section h2 {
        font-size: 1.8rem;
    }
    
    .tech-stack .badge {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 767.98px) {
    .profile-image-placeholder {
        width: 350px;
        height: 350px;
    }

    .display-4 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.6rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .lead {
        font-size: 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section h2 {
        font-size: 1.6rem;
    }
    
    .tech-stack .badge {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}

@media (max-width: 575.98px) {
    .profile-image-placeholder {
        width: 300px;
        height: 300px;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }
    
    .hero-section h2 {
        font-size: 1.4rem;
    }
}

/* About Section */
.about-section {
    background-color: white;
    padding: 6rem 0;
}

.py-16 {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.mb-8 {
    margin-bottom: 4rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.75rem;
    border: none;
    margin-bottom: 1rem;
}

.card-body {
    padding: 1.2rem;
}

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

.timeline-item {
    position: relative;
    padding-left: 1.2rem;
    border-left: 2px solid var(--primary-color);
    margin-bottom: 1rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--primary-color);
}

.list-unstyled li {
    transition: transform 0.3s ease;
}

.list-unstyled li:hover {
    transform: translateX(5px);
}

.about-section .card-body h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.about-section .timeline-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.about-section p {
    font-size: 0.9rem;
}

/* Responsive adjustments for About section */
@media (max-width: 767.98px) {
    .about-section {
        padding: 4rem 0;
    }

    .py-16 {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .mb-8 {
        margin-bottom: 2rem;
    }
}

/* Skills Section */
.skills-section {
    background-color: var(--background-color);
}

.skill-card {
    background: white;
    padding: 1.2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 95%;
    margin: 0 auto;
}

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

.skill-icon {
    width: 45px;
    height: 45px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.skill-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.skill-card .badge {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    margin-bottom: 0.4rem;
    margin-right: 0.4rem;
}

.skill-card .badge:hover {
    transform: scale(1.05);
}

/* Responsive adjustments for Skills section */
@media (max-width: 767.98px) {
    .skill-card {
        padding: 1.5rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.8rem;
    }
}

/* Projects Section */
.projects-section {
    background-color: white;
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background-color: #f8f9fa;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.project-content {
    padding: 1.2rem;
    background: white;
}

.project-content h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
}

.project-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--light-text);
    line-height: 1.5;
}

.tech-stack {
    margin-bottom: 1rem;
}

.tech-stack .badge {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
    border-radius: 2rem;
}

.project-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    max-width: 90%;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

/* Project section responsive adjustments */
@media (max-width: 991.98px) {
    .project-card {
        max-width: 95%;
    }
    
    .project-image {
        height: 180px;
    }
}

@media (max-width: 767.98px) {
    .project-card {
        max-width: 100%;
    }
    
    .project-image {
        height: 160px;
    }
    
    .project-content {
        padding: 1rem;
    }
}

/* Contact Section */
.contact-section {
    background-color: var(--background-color);
}

.contact-form-card,
.contact-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    height: 100%;
    max-width: 90%;
    margin: 0 auto;
}

.form-control {
    padding: 0.6rem 0.8rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.form-label {
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-item {
    margin-bottom: 1.2rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background-color: rgba(59, 130, 246, 0.05);
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.contact-info-item p {
    font-size: 0.85rem;
    margin-bottom: 0;
}

.contact-info-item a {
    color: var(--text-color);
    transition: color 0.3s ease;
    text-decoration: none;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

/* Contact Form Button */
.contact-form-card .btn {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Responsive adjustments for Contact section */
@media (max-width: 767.98px) {
    .contact-form-card,
    .contact-info-card {
        padding: 1.2rem;
        max-width: 100%;
    }

    .contact-icon {
        width: 35px;
        height: 35px;
    }

    .contact-info-item {
        margin-bottom: 1rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--nav-gradient-start) 0%, var(--nav-gradient-end) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent 100%
    );
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    margin: 0;
    position: relative;
    z-index: 1;
}

.footer p::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: #64b5f6;
    border-radius: 2px;
    opacity: 0.5;
}

/* Form validation styles */
.was-validated .form-control:invalid {
    border-color: #dc3545;
}

.was-validated .form-control:valid {
    border-color: #198754;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .card, .skill-card, .project-card {
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .card-body, .skill-card, .project-content {
        padding: 1rem;
    }

    .skill-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 0.8rem;
    }

    .project-image {
        height: 180px;
    }
} 