/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --text-color: #2c3e50;
    --light-bg: #f8f9fa;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    padding-top: 76px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.profile-img-container {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.profile-img-container::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), #2ecc71);
    opacity: 0;
    transition: var(--transition);
}

.profile-img-container:hover::before {
    opacity: 0.3;
}

.profile-img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 8px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    animation: profileFadeIn 1s ease-out;
}

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

.profile-img:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

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

/* Education & Experience */
.education-item, .experience-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

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

.company {
    color: var(--secondary-color);
    font-weight: 500;
}

/* Training List */
.training-list {
    list-style: none;
    padding: 0;
}

.training-list li {
    background: white;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
    padding-left: 2.5rem;
}

.training-list li::before {
    content: '✓';
    position: absolute;
    left: 1rem;
    color: var(--secondary-color);
}

.training-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact-info {
    text-align: center;
}

.contact-item {
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

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

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

/* Skills Section */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.progress {
    height: 10px;
    border-radius: 5px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.progress-bar {
    background-color: var(--secondary-color);
    transition: width 1s ease-in-out;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
}

.contact-form .form-control {
    border: none;
    border-bottom: 2px solid #eee;
    border-radius: 0;
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-form .form-control:focus {
    box-shadow: none;
    border-color: var(--secondary-color);
}

.contact-form textarea.form-control {
    min-height: 120px;
    border: 2px solid #eee;
}

.contact-form .btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: var(--transition);
}

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

/* Button Styles */
.btn-primary {
    background-color: var(--secondary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 5px;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--secondary-color);
}

.timeline-item {
    margin-bottom: 2rem;
    position: relative;
    width: 50%;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    margin-left: auto;
    padding-right: 0;
    padding-left: 2rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    right: -10px;
    top: 20px;
    width: 20px;
    height: 20px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.timeline-item:nth-child(even) .timeline-content::before {
    right: auto;
    left: -10px;
}

.timeline-date {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Project Cards */
.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.project-image {
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-tags {
    margin-top: 1rem;
}

.project-tags .badge {
    margin-right: 0.5rem;
    padding: 0.5rem 1rem;
}

/* Testimonials */
.testimonial-item {
    padding: 2rem;
}

.testimonial-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    position: relative;
}

.testimonial-img::after {
    content: '"';
    position: absolute;
    right: -5px;
    bottom: -5px;
    width: 30px;
    height: 30px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-family: serif;
}

.testimonial-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-name {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.8;
    top: 50%;
    transform: translateY(-50%);
}

.carousel-control-prev {
    left: -50px;
}

.carousel-control-next {
    right: -50px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        padding: 100px 0;
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .section-padding {
        padding: 60px 0;
    }

    .contact-form {
        margin-top: 2rem;
    }
    
    .skill-item {
        margin-bottom: 1rem;
    }

    .timeline::before {
        left: 0;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 2rem;
        padding-right: 0;
    }
    
    .timeline-item:nth-child(even) {
        padding-left: 2rem;
    }
    
    .timeline-content::before {
        left: -10px;
        right: auto;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: var(--transition);
}

.scroll-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

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

/* Typing Text Animation */
.typing-text {
    border-right: 3px solid var(--secondary-color);
    animation: typing 3.5s steps(40, end), blink-caret .75s step-end infinite;
    white-space: nowrap;
    overflow: hidden;
}

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

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--secondary-color); }
}

/* Counter Section */
.counter-item {
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.counter-item:hover {
    transform: translateY(-5px);
}

.counter-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 1rem 0;
}

/* Circular Progress */
.circular-progress {
    width: 200px;
    height: 200px;
    margin: 0 auto;
    position: relative;
}

.circular-progress-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
    transform: rotate(-90deg);
}

.circular-progress-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 10px solid #f0f0f0;
    border-top-color: var(--secondary-color);
    animation: progress 1.5s ease-out forwards;
}

.circular-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(90deg);
    text-align: center;
}

.circular-progress-text strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.circular-progress-text span {
    font-size: 0.9rem;
    color: var(--text-color);
}

@keyframes progress {
    to {
        transform: rotate(var(--progress-value));
    }
}

/* Blog Cards */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

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

.blog-image {
    position: relative;
    overflow: hidden;
}

.blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary-color);
    color: white;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

.blog-date .day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.blog-date .month {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more i {
    transition: var(--transition);
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .circular-progress {
        width: 150px;
        height: 150px;
        margin-bottom: 2rem;
    }

    .counter-item {
        margin-bottom: 1.5rem;
    }

    .blog-card {
        margin-bottom: 2rem;
    }

    .scroll-to-top {
        bottom: 20px;
        right: 20px;
    }
} 