*{
    margin: 0;
    padding: 0;
}

/* Page background color (fallback if image missing or for quicker load) */
body{
    background-color: #e4e4e4; /* soft light-gray - change to any hex you prefer */
}

.main{
    width: 100%;
    background: url(images/bg.png);
    background-color: rgba(150, 165, 197, 0.95); /* subtle fallback/overlay color */
    background-position: center;
    background-size: cover;
    height: 100vh;
    position: relative;
    font-family: sans-serif;
}

/* center hero content */
.main .info{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 720px;
}

.navbar{
    width: 86%;
    display: flex;
    margin: 0 auto;
    padding: 10px 0;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(6px);
    background: rgba(255,255,255,0.65); /* semi-opaque so hero can show through */
    box-shadow: 0 6px 18px rgba(20,30,50,0.06);
}

.navbar .logo {
    width: 160px;
    cursor: pointer;
    /* avoid large negative offsets; adjust in HTML if needed */
    margin-top: 0;
    margin-left: 0;
}

.profile-photo {
    width: 80px; /* increased from 64 */
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 480px) {
    .profile-photo {
        width: 56px; /* increased from 40 */
        height: 56px;
    }
}


ul{
    margin-top: 0;
}

ul li{
    list-style: none;
    display: inline-block;
    padding: 10px 16px;
}

ul li a{
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    color: darkslategray;
    margin: 0;
   
}

ul li a:hover{
    color: rgb(230, 104, 59);
}

.info{
    margin-left: 0;
    margin-top: 0;
    text-align: left;
}

.info h1{
    font-size: 65px;
    color: rgb(36, 32, 30);
}

.info h3{
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1.6;
}

.info span{
    color: rgb(230, 104, 59);
}

.info a{
   text-decoration: none;
   color: #fff;
   background: rgb(36, 32, 30);
   margin: 26px 0;
   padding: 10px 18px;
   border-radius: 10px;
   display: inline-block;
    transition: background 180ms ease, transform 120ms ease;
}

.info a:hover{
    background: rgb(59, 174, 209);
    transition: 0.3s;
}

.icons{
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.icons a{
    text-decoration: none;
    color: #111;
}

.icons ion-icon{
    font-size: 28px;
    color: #111;
}

.icons ion-icon:hover{
    color: rgb(59, 174, 209);
    transition: 0.24s;
}

@media (max-width: 720px){
  .main .info{ position: static; transform: none; padding: 28px 6%; }
  .icons{ position: static; flex-direction: row; gap: 10px; padding: 8px 6%; }
}

/* Projects grid and card styles (re-added) */
.projects-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 20px;
    place-items: center; /* center grid items horizontally */
}

.project-card{
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    padding: 12px;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 520px; /* prevent project card from getting too wide */
    align-items: center;
}

.project-media{
    width: 100%;
    aspect-ratio: 16 / 10; /* keeps a consistent proportional box */
    max-height: 320px; /* prevents it from being too tall on large screens */
    background: #f5f5f7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-media img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 240ms ease;
}

.project-card:hover .project-media img{ transform: scale(1.03); }

.project-card h3{
    margin: 12px 0 6px;
    font-size: 18px;
}

.project-card p{
    flex: 1;
    font-size: 14px;
    color: #444;
}

.project-link{
    display: inline-block;
    margin-top: 10px;
    color: #222; /* dark text on white button */
    background: #ffffff; /* white button */
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    border: 1px solid rgba(0,0,0,0.08);
    transition: background 180ms ease, color 160ms ease, transform 120ms ease;
}

.project-link:hover{
    background: rgb(202, 242, 254); /* blue */
    color: #000000;
    transform: translateY(-2px);
}

.project-link:focus{        
    outline: 3px solid rgba(59,174,209,0.18);
    outline-offset: 3px;
}

/* Section card appearance */
.section .section-inner{
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(20,30,50,0.06);
}

.section h2{
    font-size: 24px;
    margin-bottom: 12px;
    color: #222;
}

/* Skills as badges */
.skills-list{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.skills-list li{
    list-style: none;
}
.skill-badge{
    background: linear-gradient(90deg, rgba(36,32,30,0.95), rgba(59,174,209,0.95));
    color: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
}

/* Experience and education lists */
.section ul{
    padding-left: 18px;
    margin-top: 8px;
}
.section ul li{
    margin-bottom: 8px;
    color: #333;
}

/* Contact area tweaks */
.section a{ color: rgb(36,32,30); text-decoration: underline; }

@media (max-width: 720px){
    .section .section-inner{ padding: 18px; }
    .project-media{ aspect-ratio: 4 / 3; max-height: 220px; }
}

/* Per-section color variants */
#about .section-inner{ background: linear-gradient(180deg,#fff8f1,#fffdfb); border-left: 6px solid #ffb774; }
#about .section-inner h2{ color: #b85a00; }

#skills, #about #skills{ background: linear-gradient(180deg,#f7fbff,#f2fbff); border-left: 6px solid #5aa0ff; }
#skills h3, #about #skills h3{ color: #1a6fbf; }

#experience, #about #experience{ background: linear-gradient(180deg,#f8fff6,#f2fff0); border-left: 6px solid #6ac48a; }
#experience h3, #about #experience h3{ color: #1f7a48; }

#education, #about #education{ background: linear-gradient(180deg,#fff8ff,#fff3ff); border-left: 6px solid #c07acc; }
#education h3, #about #education h3{ color: #6b2d6b; }

#works .section-inner{ background: linear-gradient(180deg,#f7fbff,#eef6ff); border-left: 6px solid #90a8ff; }
#works .section-inner h2{ color: #2a4fbf; }

#contact .section-inner{ background: linear-gradient(180deg,#fffdf5,#fffaf0); border-left: 6px solid #ffcf6b; }
#contact .section-inner h2{ color: #8a5b00; }

/* Slight variation for project cards to stand out on works section */
#works .project-card{ box-shadow: 0 12px 30px rgba(45,60,120,0.06); }

@media (max-width: 720px){
    #about .section-inner, #works .section-inner, #contact .section-inner{ border-left-width: 4px; }
}

/* Make the embedded about-blocks look like cards */
.about-block{
    margin-top: 18px;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(30,40,60,0.04);
}

.about-block h3{ margin-bottom: 8px; }

@media (max-width: 720px){
    .about-block{ padding: 12px; }
}