/* Basic Reset & Typography */
:root {
    --primary-color: #5aceeb; /* A nice blue */
    --secondary-color: #6c757d; /* Grey */
    --accent-color: #28a745; /* Green for highlights/success */
    --background-color: #f8f9fa; /* Light background */
    --card-background: #ffffff;
    --text-color: #343a40;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Montserrat', sans-serif; /* Modern sans-serif */
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 1em;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #6f42c1 100%); /* Gradient background */
    color: white;
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh; /* Make it take up half the viewport height */
    position: relative;
    overflow: hidden; /* For potential background animations */
}

.hero-content {
    z-index: 1; /* Ensure content is above any background effects */
}

.hero-section h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: white;
}

.hero-section .highlight {
    color: var(--accent-color); /* Highlight your name */
}

.hero-section .tagline {
    font-size: 1.5em;
    margin-top: 0;
    font-family: 'Roboto Mono', monospace; /* Monospace for code-like feel */
    min-height: 1.5em; /* Prevent layout shift during typing effect */
}

.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    margin-bottom: 20px;
    box-shadow: var(--box-shadow);
}

.social-links {
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

.social-links img {
    width: 30px;
    height: 30px;
    filter: invert(1); /* Make icons white */
}

/* Sections */
.section {
    padding: 60px 20px;
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.section:nth-of-type(even) {
    background-color: var(--card-background); /* Alternate background for readability */
}

.section h2 {
    font-size: 2.5em;
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.skill-item {
    background-color: var(--card-background);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-5px);
}

.skill-item h3 {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.skill-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-item li {
    padding: 8px 0;
    border-bottom: 1px dotted #eee;
}

.skill-item li:last-child {
    border-bottom: none;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.project-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.project-card h3 {
    color: var(--primary-color);
    margin: 20px 20px 10px;
    font-size: 1.5em;
}

.project-card .project-description,
.project-card .project-tech {
    padding: 0 20px;
    margin-bottom: 15px;
    font-size: 0.95em;
}

.project-card .project-links {
    margin-top: auto; /* Pushes links to the bottom */
    padding: 0 20px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

.button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    white-space: nowrap; /* Prevent breaking button text */
}

.button:hover {
    background-color: var(--accent-color);
}

.button.secondary {
    background-color: var(--secondary-color);
}

.button.secondary:hover {
    background-color: #5a6268;
}

/* Contact Section */
.contact-info {
    font-size: 1.1em;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5em;
    }

    .hero-section .tagline {
        font-size: 1.2em;
    }

    .section {
        padding: 40px 15px;
    }

    .section h2 {
        font-size: 2em;
    }

    .skills-grid, .projects-grid {
        grid-template-columns: 1fr; /* Stack columns on small screens */
    }

    .project-image {
        height: 180px;
    }
}