/* Define Color Variables */
:root {
    --primary-color: #0047AB ;
    --secondary-color: #97c8dc;
    --accent-color: #003153;
    --text-color: #333;
    --bg-color: #edf2f7;
    --bg-color-2: #d1dce5;
}

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

/* Body Styling */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Header and Navigation */
header {
    position: -webkit-sticky; /* For Safari */
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--primary-color);
    padding: 1rem 0;
    text-align: center;
}

nav a {
    color: var(--bg-color-2);
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 700;
    font-size: 1rem;
}

@media (max-width:600px) {
    nav a {
        margin: 0 0.5rem;   
    }
}

nav a:hover {
    color: white;
}

/* Hero Section */
#hero {
    text-align: center;
    background-color: var(--secondary-color);
    color: white;
    margin: 0 auto;
}

#hero h1 {
    font-size: 2rem;
    font-weight: 700;
}

#hero p {
    font-size: 1.2rem;
}

.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
}

.hero-contact a {
    font-size: 1.2rem;
    color: white;
    margin: 0 0.5rem;
    text-decoration: none;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 5px;
}

.btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-align: center;
    color: white;
    background-color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: var(--primary-color);
}

/* Sections */
section {
    padding: 2rem;
    margin: 1rem auto;
    max-width: 1200px;
    background: white;
    border-radius: 8px;
}

h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
}

/* Projects and Skills*/
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.skills-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: var(--bg-color);
    padding: 1rem;
}

.skills-item h3 {
    background: var(--primary-color);
    color: #fff;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    margin: -1rem -1rem 1rem -1rem;
}

.skills-item ul {
    list-style-type: none;
    padding: 0;
}

.skills-item ul li {
    padding: 5px 0;
}

.box {
    background: var(--bg-color);
    padding: 1rem;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: transform 0.2s, background-color 0.2s;
}

.projects-flex {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (min-width:768px){
.projects-flex .box{
    width: 48%;
    }
}

.projects-flex .box {
    display: flex;
    /* flex-basis: calc(50% - 1rem); */
    min-width: 320px;
    align-items: flex-start;
}

.projects-flex .box img {
    width: 33%;
    min-width:100px;
    height: auto;
    border-radius: 8px;
    margin-right: 1rem;
}

.projects-flex .box .content {
    flex: 1;
    text-align: left;
}

.box:hover {
    transform: scale(1.02);
    background-color: var(--bg-color-2);
}

/* Contact */
#contact {
    text-align: center;
}

#contact h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#contact p {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    padding: 0;
}

.contact-list li {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

.contact-list a {
    color: (--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-list a:hover {
    color: (--accent-color);
}

/*Outside Work*/
.outside-work-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.outside-work-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.outside-work-item:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}


/* Footer */
footer {
    text-align: center;
    padding: 1.5rem 0;
    background: var(--primary-color);
    color: white;
}

.view-more {
    text-align: center;
    margin-top: 2rem;
}

.view-more .btn {
    padding: 0.7rem 1.5rem;
    border: none;
    border-radius: 5px;
    text-align: center;
    color: white;
    background-color: var(--accent-color);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.view-more .btn:hover {
    background-color: var(--primary-color);
}