* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
}
body {
 font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
 background-color: #0f172a;
 color: #e2e8f0;
 line-height: 1.6;
}

body.bodyo {
    margin: 2em;
}

a {
 text-decoration: none;
}
img {
 max-width: 100%;
 display: block;
}

.hero {
 min-height: 100vh;
 display: flex;
 align-items: center;
 justify-content: center;
 padding: 4rem 0;
}

.hero-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 2rem; /* Balanced spacing between photo and text */
 align-items: center;
 max-width: 1100px;
 width: 100%;
 padding: 0 2rem;
}

.headshot {
 width:  375px;     
 height: 375px;
 margin: 0 auto;
 border-radius: 50%;
 object-fit: cover;    
 object-position: center 55%;
 border: 5px solid #334155;
 box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

    .headicon {
	width : 100px;     
	height: 100px;
    }

.hero-text {
 text-align: left;
 display: flex;
 flex-direction: column;
 justify-content: center;
}

.hero h1 {
 font-size: 2.8rem;
 font-weight: 700;
 margin-bottom: 0.5rem;
}

h1.h1o {
    text-align: center; 
}

.hero .title {
 font-size: 2.3rem;
 color: #60a5fa;
 margin-bottom: 1.5rem;
}
.hero .tagline {
 font-size: 1.4rem;
 margin-bottom: 2.5rem;
}

.btn {
 display: inline-block;
 padding: 1rem 2rem;
 font-size: 1.1rem;
 font-weight: 600;
 border-radius: 8px;
 margin: 0.5rem 0.5rem 0.5rem 0;
 transition: all 0.3s ease;
}
.btn-primary {
 background-color: #60a5fa;
 color: #0f172a;
}
.btn-primary:hover {
 background-color: #3b82f6;
}
.btn-secondary {
 border: 2px solid #e2e8f0;
 color: #e2e8f0;
}
.btn-secondary:hover {
 background-color: #e2e8f0;
 color: #0f172a;
}

.liin {
   height: 60px;
   width : 60px;
}

.homeicon {
    text-align: center;
	margin-top: 1em;
	margin-bottom: 1em;
}

/* All of this is for mobile; logical pixels, not physical */

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr; /* Stack vertically into one column */
    text-align: center;        /* Center everything in the stack */
    gap: 3rem;                 /* Increase vertical spacing between photo and text */
  }

  .hero-text {
    text-align: center;        /* Center the heading, title, tagline, and buttons */
  }

  .headshot {
    width: 300px;              /* Slightly smaller on mobile for better fit */
    height: 300px;
    margin: 0 auto;            /* Ensure it's centered (you already have this) */
  }

  /* Center the photo + LinkedIn icon group */
  .hero-grid > div:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .liin {
    margin-top: 1.5rem;         /* Add breathing room between photo and LinkedIn icon */
  }

  /* Optional: slightly smaller text on mobile for better readability */
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .title {
    font-size: 2rem;
  }

  .hero .tagline {
    font-size: 1.3rem;
  }
}