/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5 {
    font-family: 'Poppins', sans-serif;
    color: #222;
}

a {
    text-decoration: none;
    color: #0066cc;
    transition: all 0.3s ease;
}

a:hover {
    color: #004c99;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #0066cc;
    color: white;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #004c99;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

section {
    padding: 80px 20px;
}

/* Header & Navigation */
header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

nav {
    display: flex;
    justify-content: center;
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin: 0 20px;
}

nav a {
    color: #333;
    font-weight: 500;
    padding: 8px 15px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
    position: relative;
}

nav a:hover {
    color: #0066cc;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                       url('https://images.unsplash.com/photo-1555099962-4199c345e5dd?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 0;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.5s ease;
}

/* Updated profile image size */
.profile-image {
    width: 250px;  /* Increased from 200px */
    height: 250px; /* Increased from 200px */
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
}

.hero-text h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.8);
}

.social-links {
    margin-top: 30px;
}

.social-links a {
    display: inline-block;
    margin: 0 12px;
    color: white;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: #0066cc;
    transform: translateY(-5px);
}

/* About Section */
.about {
    background-color: white;
    text-align: center;
}

.about h2 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

.about h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.about p {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Skills Section */
.skills {
    background-color: #f8f9fa;
    text-align: center;
}

.skills h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

.skills h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.skill-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 130px;
    height: 130px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

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

.skill i {
    font-size: 3.5rem;
    margin-bottom: 10px;
    color: #0066cc;
}

.skill i.colored {
    color: inherit;
}

.skill span {
    font-weight: 500;
}

/* Projects Section - Updated to remove images */
.projects {
    background-color: white;
    text-align: center;
}

.projects h2 {
    font-size: 2.8rem;
    margin-bottom: 40px;
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

.projects h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding: 25px;
}

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

.project-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #0066cc;
}

.project-info p {
    color: #666;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.project-tags span {
    background-color: rgba(0, 102, 204, 0.1);
    color: #0066cc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.project-links {
    margin-top: auto;
    text-align: center;
}

/* Contact Section */
.contact {
    background-color: #f8f9fa;
    text-align: center;
}

.contact h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    color: #0066cc;
    position: relative;
    padding-bottom: 15px;
}

.contact h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: #0066cc;
}

.contact > p {
    max-width: 700px;
    margin: 0 auto 40px;
    color: #666;
    font-size: 1.1rem;
}

/* Updated contact info section - horizontal layout */
.contact-info-centered {
    display: flex;
    flex-direction: row; /* Changed from column to row */
    flex-wrap: wrap; /* Added to handle smaller screens */
    justify-content: center; /* Center items horizontally */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: white;
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: calc(33.333% - 20px); /* Set width to approximately 1/3 minus gap */
    min-width: 250px; /* Minimum width to ensure readability */
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.contact-item i {
    font-size: 2.5rem;
    color: #0066cc;
    margin-bottom: 15px;
    display: block;
}

.contact-item h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #333;
}

.contact-item a {
    color: #0066cc;
    font-weight: 500;
    font-size: 1.1rem;
}

.contact-item p {
    color: #666;
    font-size: 1.1rem;
}

.contact-social {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    width: 100%;
}

.contact-social a {
    color: #0066cc;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.contact-social a:hover {
    color: #004c99;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

footer p {
    margin-bottom: 10px;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {    
    .hero-text h1 {
        font-size: 3rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .about h2,
    .skills h2,
    .projects h2,
    .contact h2 {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 5px 10px;
    }
    
    .skill {
        width: 100px;
        height: 100px;
        padding: 15px;
    }
    
    .skill i {
        font-size: 2.5rem;
    }

    .contact-item {
        padding: 20px;
        width: calc(50% - 20px); /* 2 items per row on medium screens */
    }
}

@media screen and (max-width: 576px) {
    .profile-image {
        width: 200px;  /* Adjusted for mobile */
        height: 200px;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text h2 {
        font-size: 1.2rem;
    }
    
    .about h2,
    .skills h2,
    .projects h2,
    .contact h2 {
        font-size: 2rem;
    }
    
    .contact-item {
        width: 100%; /* Full width on small screens */
    }
}