/* --- Import Fonts and Icons --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

/* --- Color Palette Variables --- */
:root {
    --bg-primary: #0A192F;
    --bg-secondary: #112240;
    --text-primary: #CCD6F6;
    --text-secondary: #8892B0;
    --accent: #64FFDA;
    --card-bg: #1A324E;
}

/* --- Global Styles & Typography --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

h1, h2, h3 {
    color: var(--text-primary);
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

p {
    color: var(--text-secondary);
    font-size: 1rem;
}

a {
    text-decoration: none;
    color: var(--accent);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Header & Navigation --- */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    margin-right: 2rem;
}

.nav-links li {
    margin: 0 1.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 600;
}

.nav-links a:hover {
    color: var(--accent);
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: rgba(100, 255, 218, 0.1);
}

.cta-button.primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    background-color: var(--accent);
    box-shadow: 0 4px 10px rgba(100, 255, 218, 0.3);
}

.cta-button.secondary {
    background: none;
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
}

.cta-button.secondary:hover {
    transform: translateY(-3px);
    background-color: var(--text-primary);
    color: var(--bg-primary);
}

/* --- Section Styling --- */
section {
    padding: 8rem 5%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Hero Section --- */
.hero-section {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
    padding-top: 10rem;
    min-height: 100vh;
}

.hero-content {
    flex: 1;
}

.hero-image {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    border: 3px solid var(--accent);
}

.experience-badge {
    position: absolute;
    top: -20px;
    right: 20px;
    background-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-align: center;
    line-height: 1.2;
}

.tagline {
    font-size: 1rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    align-items: center;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-item span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-item p {
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* --- About Section --- */
.about-section {
    display: flex;
    justify-content: center;
    text-align: center;
}

.about-container {
    display: flex;
    gap: 4rem;
    align-items: center;
    flex-direction: column;
}

.about-text {
    text-align: left;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 900px;
}

.about-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.about-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* --- Skills Section --- */
.skills-section {
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-group {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skill-group i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.skill-group ul {
    list-style: none;
    padding-top: 1rem;
    text-align: left;
    display: inline-block;
}

.skill-group li {
    margin: 0.5rem 0;
    color: var(--text-secondary);
}

/* --- Projects Section --- */
.projects-section {
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    position: relative;
    border-top: 5px solid transparent;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
    border-top-color: var(--accent);
}

.project-btn {
    display: inline-block; /* Allows padding, margin, etc. */
    background-color: #2c3e50; /* A dark color for the button background */
    color: white;
    padding: 8px 16px; /* Adjusts the size of the button */
    border-radius: 5px; /* Adds rounded corners */
    text-decoration: none; /* Removes the default underline */
    margin-right: 10px; /* Adds space between buttons */
    transition: background-color 0.3s ease; /* Adds a smooth hover effect */
}

.project-btn:hover {
    background-color: #34495e; /* Changes color on hover */
}

.project-links a {
  text-decoration: none; /* Removes the underline from the link */
  color: #fff; /* Sets the default link color to white or another light color */
}

.project-links a:hover {
  text-decoration: underline; /* Adds an underline on hover for visual feedback */
  color: #00bcd4; /* Changes the link color to a light blue on hover */
}

.project-type {
    display: flex; /* Make the container a flexbox */
    justify-content: center; /* Center content horizontally */
    align-items: center; /* Center content vertically */
    
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    
    /* The following properties are crucial for the positioning */
    position: absolute;
    top: -15px; /* Adjust as needed to position above the card */
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.project-tech-stack span {
    display: inline-block;
    background-color: rgba(100, 255, 218, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-top: 1rem;
}

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

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-message {
    text-align: left;
    padding: 2rem;
}

.contact-message h3 {
    margin-bottom: 1rem;
}

.contact-message p {
    margin-bottom: 2rem;
}

.contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem;
}

.contact-link-card {
    background-color: var(--bg-secondary);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-link-card i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
}

.contact-link-card span {
    font-weight: 600;
}

.contact-link-card:hover {
    transform: translateY(-5px);
    background-color: #233855;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 2rem 5%;
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* --- Media Queries --- */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
        margin-bottom: 2rem;
    }
    
    .experience-badge {
        top: 0;
        right: 0;
        transform: translate(20%, -50%);
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }

    .nav-links {
        display: none; /* Hide nav links on smaller screens */
    }
    
    nav {
        justify-content: space-around;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-message {
        text-align: center;
    }
}