/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Base Styles */
:root {
    --primary-color: #4e54c8;
    --secondary-color: #8f94fb;
    --text-color: #333;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --transition: all 0.3s ease;
}

/* Fluid Animation Canvas */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto;
    opacity: 0.3;
    background: transparent;
}

/* Ensure content is above the animation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.section,
.hero,
footer {
    position: relative;
    z-index: 1;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

.highlight {
    color: var(--primary-color);
}

.btn {
    transition: var(--transition);
}

.custom-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.custom-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    font-weight: 700;
}

.section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin: 15px auto 0;
}

/* Navigation */
.navbar {
    padding: 20px 0;
}

.navbar.scrolled .navbar-brand,
.navbar.scrolled .nav-link {
    color: var(--dark-color) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 24px;
    color: white !important;
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 15px;
    position: relative;
}

.nav-link:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover:after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(78, 84, 200, 0.8), rgba(143, 148, 251, 0.8)), url('hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Add padding to account for fixed navbar */
}

.hero .content h1 {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease-out;
}

.hero .content h2 {
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 20px;
}

.hero .content p {
    font-size: 18px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.social-icons {
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.social-icons a {
    display: inline-block;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin-right: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.profile-image {
    position: relative;
    width: 550px;
    height: 550px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    overflow: hidden;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: morphing 10s linear infinite;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes morphing {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%;
    }
    50% {
        border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
    }
    75% {
        border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
    }
    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: white;
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about-text .lead {
    font-size: 15px;
    margin-bottom: 20px;
}

.info-list {
    margin: 30px 0;
}

.info-item {
    margin-bottom: 15px;
}

.info-label {
    display: inline-block;
    min-width: 100px;
    color: var(--primary-color);
    font-weight: 400;
}

.service-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-item .icon {
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 20px;
    border-radius: 50%;
    margin-bottom: 20px;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
}

.timeline:before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--primary-color);
}

.timeline-item {
    margin-bottom: 60px;
    position: relative;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: calc(50% - 50px);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-right: auto;
}

.timeline-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Skills Section */
.skill-category {
    margin-bottom: 50px;
}

.skill-category h3 {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.skill-category h3 i {
    margin-right: 10px;
    color: var(--primary-color);
}

.skill-item {
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
    margin-bottom: 30px;
}

.skill-item:hover {
    background: rgb(223, 221, 221);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.skill-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    font-size: 30px;
    color: var(--primary-color);
    margin: 0 auto 15px;
    transition: var(--transition);
}

.skill-item:hover .skill-icon {
    transform: rotateY(180deg);
}

/* Projects Section */
.project-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
    height: 240px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
    background: white;
}

.project-tags {
    margin: 15px 0;
}

.project-tags span {
    display: inline-block;
    font-size: 12px;
    background: #eef1f6;
    padding: 5px 10px;
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.project-link {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.project-link i {
    margin-left: 5px;
    transition: var(--transition);
}

.project-link:hover i {
    transform: translateX(5px);
}

/* Education Section */
.education-container {
    max-width: 800px;
    margin: 0 auto 50px;
}

.education-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.education-item .icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.education-item .content h3 {
    margin-bottom: 5px;
}

.subsection-title {
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
}

.certification-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: var(--transition);
}

.certification-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.certification-item .icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 24px;
    border-radius: 50%;
    margin: 0 auto 20px;
}

/* Contact Section */
.contact-info h3 {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item .icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-form .form-control {
    border: none;
    border-radius: 15px;
    padding: 15px 20px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.nova-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.nova-form-title {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 24px;
}

.nova-input-group {
    margin-bottom: 20px;
    position: relative;
}

.nova-form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
}

.nova-form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background-color: #f8fafc;
    color: #1a202c;
}

.nova-form-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
    background-color: #ffffff;
}

.nova-form-textarea {
    min-height: 120px;
    resize: vertical;
}

.nova-submit-button {
    display: inline-block;
    background-color: #3b82f6;
    color: white;
    font-weight: 500;
    font-size: 16px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.nova-submit-button:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.nova-submit-button:active {
    transform: translateY(0);
}

/* Add some responsive adjustments */
@media (max-width: 640px) {
    .nova-form-container {
        padding: 20px;
        margin: 20px auto;
    }
}



/* Footer */
footer {
    background: var(--dark-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    position: relative;
}

.copyright {
    margin-bottom: 0;
}

.back-to-top {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
}

.back-to-top a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    transition: var(--transition);
}

.back-to-top a:hover {
    background: var(--secondary-color);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero .content h1 {
        font-size: 40px;
    }
    
    .profile-image {
        width: 280px;
        height: 280px;
    }
    
    .timeline:before {
        left: 30px;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px !important;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 70px 0;
    }
    
    .hero .content h1 {
        font-size: 34px;
    }
    
    .hero .content p {
        font-size: 16px;
    }
    
    .profile-image {
        width: 240px;
        height: 240px;
        margin-top: 30px;
    }
    
    .back-to-top {
        position: static;
        margin-top: 20px;
        transform: none;
    }
    
    .back-to-top a {
        margin: 0 auto;
    }
}

@media (max-width: 575px) {
    .hero .content h1 {
        font-size: 28px;
    }
    
    .custom-btn {
        padding: 8px 20px;
        font-size: 12px;
    }
}