/* style.css - Consolidated Styles for Dr. Inder Singh Website */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

* {box-sizing: border-box;}

/* 1. APPLY GLOBAL FONT (Poppins) & SMOOTH FADE IN */
body {
    margin: 0; 
    font-family: "Poppins", sans-serif; 
    line-height: 1.6; 
    color: #333; 
    background: #fff;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

input, textarea, button, select {
    font-family: "Poppins", sans-serif;
}

a {text-decoration: none; color: inherit; transition: 0.3s;}

/* === NAVBAR (Desktop) === */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; 
  background: #000;
  padding: 10px 40px; 
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  height: 110px;
}

/* 1. LOGO IMAGE (Left Aligned) */
.brand-logo-left {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 1002; 
}

.logo-img { 
  height: 90px; 
  width: auto; 
  border-radius: 0; /* FIXED: Removed rounding */
  transition: transform 0.3s;
}
.logo-img:hover { transform: scale(1.1); }

/* 2. SIGNATURE TEXT (Absolute Center) */
.brand-center-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%); /* Perfect Center */
  text-align: center;
  white-space: nowrap;
  pointer-events: none; 
}

.signature-logo {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem; 
  line-height: 1.8; 
  background-image: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  background-clip: text; 
  -webkit-background-clip: text; 
  color: transparent;
  font-weight: 600; 
  padding: 10px 5px;
  display: block;
}

/* 3. MENU ICON (Right Aligned) */
.menu-icon {
  font-size: 35px; 
  color: #fff; 
  cursor: pointer; 
  z-index: 1002; 
  transition: all 0.3s ease; 
}

.menu-icon:hover {
  background-image: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  background-clip: text; 
  -webkit-background-clip: text; 
  color: transparent;
  transform: scale(1.2);
}

/* === FLOATING SOCIAL SIDEBAR === */
.social-sidebar {
  position: fixed;
  top: 140px; 
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.social-sidebar a {
  font-size: 22px;
  color: #333; 
  width: 40px; height: 40px;
  background: rgba(255, 255, 255, 0.9); 
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.social-sidebar a:hover {
  background: #000;
  background-image: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  background-clip: text; -webkit-background-clip: text; color: transparent;
  transform: scale(1.1);
}

/* === SLIDING SIDE MENU === */
.side-menu {
    position: fixed; top: 0; right: -320px; height: 100%; width: 300px;
    background: rgba(0, 0, 0, 0.95); backdrop-filter: blur(10px);
    transition: right 0.4s ease; padding: 60px 30px; z-index: 2000;
}
.side-menu.open { right: 0; }

.side-menu a { 
  display: block; margin: 18px 0; color: #fff; font-size: 18px; font-weight: 700; 
  transition: all 0.3s ease; width: fit-content; 
}
.side-menu a:hover {
  background-image: linear-gradient(to right, #BF953F, #FCF6BA, #B38728, #FBF5B7, #AA771C);
  background-clip: text; -webkit-background-clip: text; color: transparent;
  transform: scale(1.2); transform-origin: left;
}
.close-btn { position: absolute; top: 20px; right: 25px; font-size: 24px; cursor: pointer; color: #BF953F; }

/* === HERO SECTION === */
.hero { 
  background: linear-gradient(to right, #007bff, #00c6ff); 
  color: white; 
  text-align: center; 
  margin-top: 110px; 
  padding: 120px 20px 210px; 
}

.hero h1 { font-size: 2.4rem; margin-bottom: 16px; }
.hero p { max-width: 950px; margin: 0 auto 24px; font-size: 1.75rem; }

.btn-primary {
  background: white; color: #007bff; padding: 12px 28px; border-radius: 25px;
  font-weight: 600; transition: 0.25s; display: inline-block;
}
.btn-primary:hover { transform: translateY(-3px); }
.btn-primary1 {
  background: #007bff; color: #fff; padding: 12px 28px; border-radius: 25px;
  font-weight: 600; transition: 0.25s; display: inline-block; margin-top: 20px;
}

/* === SECTIONS === */
#about { scroll-margin-top: 110px; background-color: #fff; }

.about-content { 
    display: flex; align-items: flex-start; justify-content: center; gap: 50px; 
    padding: 60px 20px; max-width: 1200px; margin: 0 auto; 
}
.profile-photo { 
    width: 100%; height: auto; border-radius: 15px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); 
    max-width: 400px; flex-shrink: 0; 
}
.about-text { flex: 1; }

.blog {background: #f9faff; padding: 60px 20px; text-align: center;}
.blog-grid {display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; max-width: 1100px; margin: auto;}
.blog-card {background: #fff; border-radius: 12px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: hidden; text-align: left; transition: transform 0.28s ease;}
.blog-card:hover {transform: translateY(-8px);}
.blog-card img {width: 100%; height: 180px; object-fit: cover; display:block;}
.blog-card h3 {margin: 16px; font-size: 1.15rem;}
.blog-card p {margin: 0 16px 16px; color: #555;}
.read-more { display: block; margin: 0 16px 16px; color: #007bff; font-weight: 600; }

.cta {padding: 60px 20px; background: #fff; text-align: center;}
.cta form {max-width: 640px; margin: 18px auto 0; display: flex; flex-direction: column; gap: 12px;}
.cta input, .cta textarea { padding: 12px; border: 1px solid #e0e0e0; border-radius: 8px; font-size: 1rem; }
.cta button { background: #007bff; color: #fff; border: none; padding: 12px; border-radius: 8px; font-weight: 600; cursor: pointer; }
.form-success {color: green; font-weight: 600;}
.form-error {color: #b00020; font-weight: 600;}

footer {text-align: center; padding: 24px; background: #000; color: #fff; font-size: 0.95rem;}

/* === RESPONSIVE MEDIA QUERIES === */
@media (max-width: 900px) {
    /* 1. Mobile Header */
    .navbar { 
        height: auto; 
        min-height: 80px;
        padding: 10px 15px; 
    }

    /* 2. Brand Positioning on Mobile */
    .brand-center-text {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: 100%; 
    }

    .signature-logo { 
        font-size: 3rem; 
        line-height: 2; 
        padding-top: 5px;
        padding-bottom: 5px;
    }
    .logo-img { height: 50px; }
    
    /* 3. Social Icons */
    .social-sidebar { 
        right: 10px; 
        top: 100px; 
        gap: 10px; 
    }
    .social-sidebar a { width: 35px; height: 35px; font-size: 18px; }

    /* 4. Reset Layouts */
    .hero { margin-top: 80px; padding: 100px 20px; }
    #about { scroll-margin-top: 80px; }
}

@media (max-width: 768px) { 
    .about-content { flex-direction: column; text-align: center; } 
    .profile-photo { max-width: 300px; margin-bottom: 20px; } 
    
    .signature-logo { font-size: 2.5rem; }
}

@media (max-width: 480px) {
    .signature-logo { font-size: 2.25rem; }
    .hero { padding-top: 100px; }
}