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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fafafa;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}



/*
======================================================
STRUCTURAL CSS
======================================================
*/

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
}

.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    color: #333;
}

/*
======================================================
STRUCTURAL BADGE
=====================================================
*/
.slider {
  width: 100%;
  overflow: hidden;
  padding: 15px 0;
  height: 60px;
 
}

.slide-track {
  background-color: #fff;  
  display: flex;
  padding: 0 2rem;
  gap: 15px;
  width: max-content;
  box-sizing: border-box;
  box-shadow: inset 0 0.03px 6px rgba(0, 0, 0, 0.03); 
  animation: scroll 30s linear infinite;

}
.slide-track h2{
    color : #9c9a9a;
    margin: 0 20px;
    text-align: center;
    justify-content: center;
}

.badge {
  color:inherit;
  padding: 10px 18px;
  font-weight: 600;
  white-space: nowrap;
  transition: 0.3s;
  box-sizing: border-box;
}

.badge:hover {
  border-radius: 5px;  
  background: #fff;
  transform: scale(1.05);
  color:#111;
  font-weight: 600;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.05);
}

.slider:hover .slide-track {
  animation-play-state: paused;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}


/* 
======================================================
HEADER
======================================================
*/
.logo img {
    width: 7rem;
    transition: transform 0.5s ease;
}

.logo img:hover {
    /* transform: rotateY(360deg); */
    transform: scale(1.1);
}

.site-header {
     background-color: #ffff;
     box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.03);
     padding: 1.4rem 0;
     position: sticky;
     top: 0;
     z-index: 100;
     box-sizing: border-box;
     
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    display: flex;

}

.main-nav ul {
    display: flex;
    justify-content: flex-end;
    gap: 25px;
}

.main-nav li {
    margin-right: 20px;
    list-style-type: none;
}

.main-nav a {
    font-weight: 600;
    color: #555;
    font-size: clamp(1.3rem, 1.2vw, 0.9rem);
}

.main-nav a:hover {
    color: rgb(197, 195, 199);

}

/* ============================================
SECTION (ABOUT ME)
============================================ */
.btn {
    display: inline-block;
    padding: 12px 24px;
    color: #fff;
    background-color: #000;
    font-weight: 600;
    border-radius: 5px;
    align-self: flex-start;
}

.btn:hover {
    background-color: #a4cbf5;;

}

.section-container {
      background-color: #fff;
          /* I want to hero section to be completed size of screen fully
     */
    min-height: calc(100vh - 160px);
}

.about-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    padding: 1.4rem;
}

.about-section-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-section img {
    width: clamp(120px, 25vw, 350px);
    height: auto;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 5px solid #fff;
    transition: transform 0.3s ease;
}

.about-section img:hover {
    transform: scale(1.05);
}

.about-section-left {
    flex: 1;
}

.about-section-left h2 {
    text-align:start;
    font-size: 3rem;
    color: #444;
    margin:1rem;
}

.about-section-left p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;

}

/* ============================================
SECTION (PROJECTS)
============================================ */
.projects-section {
    background-color: #fafafa;
    min-height: calc(100vh-140px);
}



.projects-grid {
    display: flex;
    gap: 1.8rem;
    /* justify-content: space-between; */
    flex-wrap: wrap;

}

.project-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    flex: 1 1 16rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-8px);
}

.project-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.project-info {
    padding: 1.2rem;
}

.project-info h3 {
    font-size: 1.2rem;
    margin-bottom:0.8rem;
    color: #222;
}

.project-info p {
    color:#666;
    font-size: 0.9rem;
}
/* ==================================================================================================
SECTION (BLOG)
================================================================================================== */
.blog-section {
    background-color: #ffffff;
}

.blog-item { 
    display: flex;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden ;
    margin-bottom: 1.9rem;
    transition: box-shadow 0.3s ease;
}

.blog-item:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}

.blog-image {
    display: flex;
    flex: 1;
    overflow: hidden;
    
    
}

.blog-image img { 
    width:100%;
    height: auto;
    min-height: 250px;
    object-fit:fill;
}

.blog-text {
    flex: 2;
     padding: 40px;
     display: flex;
     flex-direction: column;
     justify-content: center;
     font-size: 0.9rem;
     line-height: 1.6rem;
}

.blog-text .date {
    color:#7ca6b9;
    font-weight: 600;
    font-size:0.9rem;
    margin-bottom: 0.5rem;
}
.blog-text h3 {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
    color:#111;
}

.blog-text p {
    color:#555;
}
.blog-section-edit {

}
.blog-text a {
    margin: 20px 0px;
}


/* ===================================================================================================
CONTACT SECTION
================================================================================================== */
.connection-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffff;
    gap:50px;
    padding: 1rem 4rem;
    color: inherit;
    margin: 20px 0px;
    transition: box-shadow 0.3ms ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
    box-sizing: border-box;
    min-height: calc(100vh - 200px);
    
}

.connection-section:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
}
.connection-left {
    flex: 1;
    
}
.connection-right {
    padding: 30px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.04);
    border-radius: 15px;
    flex:1;
}
.connection-tools {
    padding: 15px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.04);
    margin: 13px 0 ;
    border-radius: 15px;
}

.contact-address {
    display:flex;
    gap:15px; 
    align-items:center;
    margin-bottom: 10px;
}

/* =========================================================================
   BLOG-DETAIL CSS STRUCTURE
   ========================================================================= */
.single-post-section {
    padding-top: 50px;
    padding-bottom: 50px;
    max-width: 800px;
}

.post-header {
    text-align: center;
    margin-bottom: 40px;
}

.post-date {
    color: #888;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.post-title {
    font-size: 38px;
    color: #111;
    margin: 15px 0 30px;
}

.post-cover-image {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 30px;
}
.post-cover-image p {
    margin-bottom: 0;
}

.post-body p li {
    font-size: 18px;
    color: #444;
    
}
.post-body ul {
    padding: 20px;
}
hr {
    margin-top: 1rem;
    font-weight: 600;
}

.post-body h2 {
    font-size: 28px;
    color: #333;
    margin: 40px 0 20px;
}

.post-body blockquote {
    border-left: 5px solid #0ea5e9;
    padding-left: 20px;
    font-size: 22px;
    font-style: italic;
    color: #555;
    margin: 40px 0;
    background-color: #f0f9ff;
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/*===============================================================================================
 FOOTER
================================================================================================= */
.footer {
   background-color: #111;
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    margin-top: auto;
}


.footer p {
    color:#fff;
    font-weight: 600;
}
/* ==========================
   Contact SUCCESS.HTML 
   ========================== */

.success {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 160px);
    margin: 0;
    background-color: #f4f4f4;

}

.success-message {
    text-align: center;
    padding: 20px;
    border: 2px solid #4caf50;
    border-radius: 5px;
    background-color: #effbec;
    color: #3c763d;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.03);
    transition: transform 0.5s ease;

}

.success-message:hover {
    transform: scale(1.02);
}


/* ==========================
   RESPONSIVE (MOBILE FIRST)
   ========================== */

/* Make images fluid */
img, .post-cover-image, .project-card img, .blog-image img, .about-section img {
    max-width: 100%;
    height: auto;
}

/* Medium screens (tablets) */
@media (max-width: 1024px) {
    .section-title{ font-size: 2.4rem; }
    .about-section { gap: 30px; padding: 1rem; }
    .project-card { flex: 1 1 45%; }
    .slide-track { padding: 0 1rem; }
}

/* Small screens (phones) */
@media (max-width: 768px) {
    .section-title{ font-size: 2rem; }
    .nav-container { padding: 1rem; height: auto; align-items: center; }
    .logo img { width: 4.5rem; }
    .main-nav ul { gap: 12px; flex-wrap: wrap; justify-content: center; }
    .about-section {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        min-height: auto;
        padding: 1.2rem;
    }
    .about-section-right, .about-section-left { width: 100%; }
    .about-section img { width: clamp(100px, 40vw, 220px); }

    .projects-grid { gap: 1rem; }
    .project-card { flex: 1 1 100%; }

    .blog-item { flex-direction: column; }
    .blog-image { width: 100%; height: auto; }
    .blog-image img { height: 220px; object-fit: cover; }
    .blog-text a p h2 h3 { padding: 20px; }

    .connection-section { flex-direction: column; padding: 1rem; gap: 20px; }
    .connection-right { width: 100%; padding: 20px; }

    .slider { height: auto; padding: 12px 0; }
    .slide-track h2 { margin: 0 12px; font-size: 0.95rem; }
    .success-message h1 { font-size: 1.3rem; }
    .success-message p { font-size: 1rem; }
}

/* Extra small (very small phones) */
@media (max-width: 480px) {
    .main-nav ul { gap: 8px; }
    .section-title { font-size: 1.3rem; }
    .about-section-left p, .post-body p { font-size: 1rem; }
    .project-info h3 { font-size: 1rem; }
    .post-title { font-size: 28px; }
    .blog-text a p h3 h2  .date { font-size: 0.85rem; }
    .blog-image img { height: 160px; }
    .container { width: 95%; }
    .success-message h1 { font-size: 1rem; }
    .success-message p { font-size: 0.82rem; }

}
