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

body {
    font-family: Arial, sans-serif;
    background-color: #0a0e14;
    color: white;
    line-height: 1.6;
}

/* --- Header & Navigation --- */
.navbar {
    background-color: #111923;
    padding: 20px;
    text-align: center;
}

.navbar h1 {
    color: #00ff88;
    margin-bottom: 5px;
}

.navbar .subtitle {
    color: #00d4ff;
    margin-bottom: 15px;
}

.navbar nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar nav a:hover {
    color: #00ff88;
}

/* --- Home / Hero Section --- */
.hero-section {
    padding: 60px 20px;
    text-align: center;
}

.hero-section h2 {
    color: #00ff88;
    margin-top: 20px;
    margin-bottom: 10px;
}

.hero-section p {
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Portfolio Photo Fixes --- */
.photo-container {
    width: 180px;
    height: 220px;
    margin: 0 auto;
    border: 3px solid #00ff88;
    border-radius: 15px;
    overflow: hidden; /* Clips image corners perfectly to match container radius */
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-photo {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents squishing, crops image gracefully */
    object-position: center; /* Keeps focus on the center of your photo */
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background-color: #00ff88;
    color: #0a0e14;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #00cc6e;
}

/* --- Sections Layout --- */
.section {
    padding: 50px 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section h2 {
    color: #00ff88;
    margin-bottom: 15px;
}

.alt-bg {
    background-color: #111923;
    max-width: 100%;
    padding-left: calc((100% - 800px) / 2 + 20px);
    padding-right: calc((100% - 800px) / 2 + 20px);
}

/* --- Projects --- */
.project-card {
    background-color: #131a22;
    padding: 20px;
    margin: 15px 0;
}

.border-green {
    border-left: 4px solid #00ff88;
}

.border-blue {
    border-left: 4px solid #00d4ff;
}

.project-card h3 {
    margin-bottom: 5px;
}

/* --- Skills Layout --- */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px;
}

.skills-grid span {
    background: #131a22;
    border: 1px solid #00ff88;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

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

.contact-section a {
    color: #00d4ff;
    text-decoration: none;
}

.contact-section a:hover {
    text-decoration: underline;
}

footer {
    background-color: #111923;
    padding: 20px;
    text-align: center;
    color: #8b949e;
    font-size: 14px;
}
