
/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    padding-top: 80px; /* To account for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2rem;
}

/* Hero Section */
/* Hero with Background */
.hero {
    position: relative;
    height: 90vh;
    background: 
        #e9f0f9 
        /* Image with gradient overlay */
        url('./Images/bg-picture1.jpg') 
        center/cover no-repeat;
        display: flex;
        align-items: center; /* Vertical centering */
        justify-content: center;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: white;
    padding:20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    background-color: #4a6fa5;
    color: white;
    padding: 10px 25px;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #c3ef25;
}


/* About Section - Improved Layout */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    flex: 1;
    min-width: 300px;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1.5;
}

/* About Section */
.intro-statement {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 25px;
    color: #2c3e50;
}

.personal-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 25px 0;
}

.detail-block h3 {
    color: #4a6fa5;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.hobbies-list {
    list-style: none;
    padding-left: 0;
}

.hobbies-list li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.hobbies-list i {
    position: absolute;
    left: 0;
    top: 3px;
    color: #4a6fa5;
    width: 20px;
    text-align: center;
}

@media (max-width: 600px) {
    .personal-details {
        grid-template-columns: 1fr;
    }
    
    .intro-statement {
        font-size: 1.1rem;
    }
}



/* Projects Section - Enhanced Carousel */
.projects-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0 50px; /* Increased padding for arrows */
    overflow: hidden;
}

.projects-grid {
    display: flex;
    transition: transform 0.4s ease-out;
    will-change: transform; /* Optimizes animations */
    padding: 10px 0;
}

.project-card {
    flex: 0 0 calc(33.333% - 20px); /* Exactly 3 projects */
    min-width: 300px;
    margin-right: 30px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 15px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #4a6fa5;
    opacity: 0.9;
}

.carousel-btn:hover {
    background: #4a6fa5;
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.carousel-btn.hidden {
    visibility: hidden;
    opacity: 0;
}

.prev-btn {
    left: 5px;
}

.next-btn {
    right: 5px;
}

/* Project Card Elements */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.project-image {
    height: 200px;
    background-color: #f5f7fa;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    transition: color 0.3s ease;
}

.project-card:hover .project-info h3 {
    color: #4a6fa5;
}



/* Blog Preview Section */
.blog-preview {
    background: #f8f9fa;
    padding: 80px 0;
}

.blog-teasers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-teaser {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}



.post-meta {
    color: #666;
    font-size: 0.9rem;
    margin: 10px 0;
}

.post-excerpt {
    margin-bottom: 15px;
}

.read-more {
    color: #4a6fa5;
    font-weight: 500;
}

.view-all {
    text-align: center;
    margin-top: 30px;
}

/* Button Styles */
.btn-outline {
    background: transparent;
    border: 2px solid #4a6fa5;
    color: #4a6fa5;
    margin-left: 15px;
}

.btn-outline:hover {
    background: #4a6fa5;
    color: white;
}