:root {
  --primary: #181c2f;
  --secondary: #232946;
  --accent: #f7c873;
  --accent2: #3ddad7;
  --text: #eaeaea;
  --card: #232946;
  --border: #393e5c;
  --modal-bg: rgba(24,28,47,0.95);
  --blur: blur(16px);
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: 'Segoe UI', sans-serif;
}

:root {
  --accent: #f7c873;
  --accent2: #3ddad7;
  --primary: #181c2f;
}

.navbar {
  width: 100%;
  background: rgba(35, 41, 70, 0.85);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  z-index: 1000;
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--accent, #f7c873);
  letter-spacing: 1px;
  margin-right: 2rem;
  margin-left: 16px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  margin-left: auto; 
  transition: transform 0.4s cubic-bezier(.4,2,.3,1);
}

.nav-links li a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  transition: background 0.3s, color 0.3s;
  display: block;
}

.nav-links li a:hover,
.nav-links li a.active {
  background: var(--accent2);
  color: var(--primary);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle .bar {
  width: 28px;
  height: 3px;
  background: var(--accent2);
  border-radius: 2px;
  margin: 4px 0;
  transition: all 0.3s;
  display: block;
}

@media (max-width: 900px) {
  .navbar {
    padding: 1rem 1rem;
    position: relative;
    z-index: 1000;
  }
  .nav-links {
    position: fixed;
    top: 0;
    left: auto;
    right: 0;
    height: 100vh;
    width: 70vw;
    background: rgba(35, 41, 70, 0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem 2rem;
    gap: 2rem;
    box-shadow: -2px 0 16px rgba(0,0,0,0.12);
    z-index: 2000;
    margin-left: 0;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(.4,2,.3,1);
    display: none;
  }
  .nav-links.open {
    transform: translateX(0);
    display: flex;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
    z-index: 2100;
  }
  .nav-links li a {
    font-size: 1.1rem;
    padding: 0.8rem 1.2rem;
    width: 100%;
    border-radius: 12px;
    transition: all 0.3s ease;
  }
  .nav-links li a:hover,
  .nav-links li a.active {
    background: var(--accent2);
    color: var(--primary);
    transform: translateX(8px);
  }
  .section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .section-title {
    font-size: 2rem;
  }
  .hero-left h1 {
    font-size: 2.1rem;
  }
  .hero-role {
    font-size: 1.1rem;
  }
  .about-title {
    font-size: 1.2rem;
  }
  .stat-card span {
    font-size: 1.5rem;
  }
  .skill-card h3, .service-card h4, .cert-card h4 {
    font-size: 1.1rem;
  }
  ul {
    font-size: 0.95rem;
  }
  .about-card {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }
  .about-card .icon {
    font-size: 1.1rem;
  }
  .stat-card {
    font-size: 1rem;
    padding: 1rem 0.5rem;
  }
  .hero-left p {
    font-size: 0.95rem;
  }
  .btn {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
  }
  .contact-card {
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
  }
  .contact-card i {
    font-size: 1.1rem;
  }
  .contact-info-box, .contact-form-box {
    padding: 1.2rem 0.8rem;
  }
  .project-img, .cert-img {
    height: 120px;
  }
  .carousel {
    width: 90vw;
    height: 120px;
  }
  .carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
  #home.hero.section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

@media (max-width: 700px) {
  .section {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  
  
  .navbar {
    padding: 0.8rem 1rem;
  }
  
  .nav-links {
    width: 80vw; 
    padding: 4rem 1.5rem 2rem 1.5rem;
  }
  
  .nav-links li a {
    font-size: 1rem;
    padding: 0.7rem 1rem;
  }
  
  .nav-toggle {
    width: 40px;
    height: 40px;
  }
  
  .nav-toggle .bar {
    width: 24px;
    height: 2px;
  }
  #home.hero.section {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  max-width: 98vw;         /* Use almost the full viewport width */
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem;      /* More padding for larger screens */
  border-radius: 24px;
  box-sizing: border-box;
}

.section-title {
  text-align: center;
  color: var(--accent);
  font-size: 2.8rem;     
  margin-bottom: 3rem;
  letter-spacing: 1px;
}

.hero {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-grid-bg {
  position: absolute;
  width: 100vw;
  height: 100%;
  left: 0; top: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

.hero-flex {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  z-index: 1;
  position: relative;
  padding: 4rem 2rem;
}

.hero-left {
  flex: 1.2;
  min-width: 300px;
}

.hero-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 7px solid var(--accent2);
  box-shadow: 0 8px 32px rgba(61,218,215,0.15);
  background: var(--secondary);
}

@media (max-width: 900px) {
  .hero-photo {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 600px) {
  .hero-photo {
    width: 200px;
    height: 200px;
  }
  #home.hero.section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }
}

.hero-left h1 {
  font-size: 3.2rem;  
  margin-bottom: 0.8rem;  
}

.hero-left .accent {
  color: var(--accent);
}

.hero-role {
  color: var(--accent2);
  font-size: 1.6rem; 
  margin-bottom: 1.5rem;  
}

.hero-left p {
  margin-bottom: 2.5rem;  
  font-size: 1.1rem;      
}

.hero-btns {
  display: flex;
  gap: 1rem;
}


.btn {
  background: var(--accent2);
  color: var(--primary);
  padding: 0.9rem 2.5rem;  
  border: none;
  border-radius: 25px;
  font-size: 1.1rem;  
  cursor: pointer;
  transition: background 0.4s, color 0.4s, transform 0.4s;
  text-decoration: none;
  display: inline-block;
  margin: 0.2rem 0.2rem;
  box-shadow: 0 2px 8px rgba(61,218,215,0.08);
  will-change: transform;
}

.btn:hover, .accent-bg:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-6px) scale(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--accent2);
  border: 1.5px solid var(--accent2);
}

.btn-outline:hover {
  background: var(--accent2);
  color: var(--primary);
  transform: translateY(-6px) scale(1.05);
}

.section .section-btn {
  display: block;
  margin: 2rem auto 0 auto;
  text-align: center;
}


.about-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
}

.about-left {
  flex: 2;
  min-width: 300px;
}

.about-right {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-title {
  color: var(--accent2);
  font-size: 1.8rem;  
  font-weight: bold;
  margin-bottom: 0.8rem;  
}

.about-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.stat-card span {
  display: block;
  font-size: 2.5rem;  
  color: var(--accent);
  margin-bottom: 0.5rem;  
}

.about-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;  
  font-size: 1.1rem;  
  border-radius: 10px;
  padding: 1.2rem 1.5rem;  
}

.about-card .icon {
  color: var(--accent2);
  font-size: 1.5rem;  
}

.stat-card {
  text-align: center;
  font-size: 1.4rem;  
  font-weight: bold;
  border-radius: 10px;
  padding: 1.5rem 1rem;  
}


.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}


.animate-from-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-right {
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-top {
  opacity: 0;
  transform: translateY(-100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-from-bottom {
  opacity: 0;
  transform: translateY(100px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}


.animate-from-left.in-view {
  opacity: 1;
  transform: translate(0, 0);
  animation: bounceInLeft 0.8s ease-out;
}

.animate-from-right.in-view {
  opacity: 1;
  transform: translate(0, 0);
  animation: bounceInRight 0.8s ease-out;
}

.animate-from-top.in-view {
  opacity: 1;
  transform: translate(0, 0);
  animation: bounceInDown 0.8s ease-out;
}

.animate-from-bottom.in-view {
  opacity: 1;
  transform: translate(0, 0);
  animation: bounceInUp 0.8s ease-out;
}


@keyframes bounceInLeft {
  0% {
    opacity: 0;
    transform: translateX(-100px);
  }
  60% {
    opacity: 1;
    transform: translateX(10px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bounceInRight {
  0% {
    opacity: 0;
    transform: translateX(100px);
  }
  60% {
    opacity: 1;
    transform: translateX(-10px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes bounceInDown {
  0% {
    opacity: 0;
    transform: translateY(-100px);
  }
  60% {
    opacity: 1;
    transform: translateY(10px);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes bounceInUp {
  0% {
    opacity: 0;
    transform: translateY(100px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}


.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.5s; }
.delay-4 { transition-delay: 0.7s; }
.delay-5 { transition-delay: 0.9s; }
.delay-6 { transition-delay: 1.1s; }
.delay-7 { transition-delay: 1.3s; }
.delay-8 { transition-delay: 1.5s; }
.delay-9 { transition-delay: 1.7s; }
.delay-10 { transition-delay: 1.9s; }


.animate-from-left:hover,
.animate-from-right:hover,
.animate-from-top:hover,
.animate-from-bottom:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 15px 35px rgba(247, 200, 115, 0.3);
}


.skill-card, .project-card, .service-card, .cert-card, .about-card, .stat-card {
  transition: all 0.3s ease;
}

.skill-card:hover, .project-card:hover, .service-card:hover, .cert-card:hover, .about-card:hover, .stat-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(247, 200, 115, 0.25);
}


.service-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.service-card h4 {
  margin-bottom: 1rem;
  color: var(--accent2);
  font-size: 1.4rem;
}

.service-card p {
  margin-bottom: 2rem;
  line-height: 1.6;
  flex-grow: 1;
}

.service-card .btn {
  align-self: flex-start;
  margin-top: auto;
}


.section {
  opacity: 0;
  transform: translateY(30px);
  animation: sectionEntrance 1s ease-out forwards;
}

@keyframes sectionEntrance {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.skills-grid, .projects-grid, .services-grid, .certifications-grid {
  animation: gridEntrance 1.2s ease-out 0.3s both;
}

@keyframes gridEntrance {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.skills-grid, .projects-grid, .services-grid, .certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));  
  gap: 2.5rem;  
  margin: 3rem 0;  
}

.skill-card h3, .service-card h4, .cert-card h4 {
  color: var(--accent2);
  margin-bottom: 1rem;  
  font-size: 1.4rem;    
}

ul {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;  
  font-size: 1.1rem;      
}

.project-card, .cert-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.project-img {
  width: 100%;
  height: 200px;  
  background: var(--accent2);
}

.project-content, .cert-card > div {
  padding: 1.8rem;  
}

.cert-card {
  cursor: pointer;
  position: relative;
}

.cert-card .cert-date {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: var(--accent2);
  color: var(--primary);
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: bold;
  
}

.cert-img {
  width: 100%;
  height: 200px;  
  object-fit: cover;
  background: var(--secondary);
  cursor: pointer;
}


.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: var(--modal-bg);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--card);
  color: var(--text);
  padding: 2rem 2.5rem;
  border-radius: 16px;
  min-width: 320px;
  max-width: 90vw;
  position: relative;
  box-shadow: 0 8px 32px rgba(61,218,215,0.15);
  animation: popIn 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-btn {
  position: absolute;
  top: 1rem; right: 1.2rem;
  font-size: 2rem;
  color: var(--accent2);
  cursor: pointer;
  font-weight: bold;
}

#modal-cert-img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(61,218,215,0.15);
}


.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.carousel {
  width: 400px;  
  height: 250px;  
  overflow: hidden;
  position: relative;
  border-radius: 16px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 16px;
}

.carousel-img.active {
  display: block;
}

.carousel-btn {
  background: var(--accent2);
  color: var(--primary);
  border: none;
  border-radius: 50%;
  width: 50px;  
  height: 50px;  
  font-size: 1.8rem;  
  cursor: pointer;
  transition: background 0.2s;
}

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


.contact-flex {
  display: flex;
  gap: 3.5rem;  
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact-info-box {
  flex: 1;
  min-width: 320px;  
  background: rgba(35,41,70,0.7);
  border-radius: 16px;
  padding: 2.5rem 2rem;  
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
}

.contact-info-box h3 {
  color: var(--accent2);
  margin-bottom: 0.5rem;
}

.contact-info-box p {
  margin-bottom: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;  
  font-size: 1.1rem;  
  margin-bottom: 1.2rem;  
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.contact-card i {
  color: var(--accent2);
  font-size: 1.5rem;  
}

.contact-socials {
  margin-top: 1.2rem;
  display: flex;
  gap: 1rem;
}

.contact-socials a {
  color: var(--accent2);
  font-size: 1.3rem;
  background: var(--card);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.contact-socials a:hover {
  background: var(--accent2);
  color: var(--primary);
  transform: translateY(-4px) scale(1.08);
}

.contact-form-box {
  flex: 1;
  min-width: 320px;  
  background: rgba(35,41,70,0.7);
  border-radius: 16px;
  padding: 2.5rem 2rem;  
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;  
}

.contact-form-box input,
.contact-form-box textarea {
  padding: 1rem;  
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1.1rem;  
  background: var(--secondary);
  color: var(--text);
  resize: none;
}

.contact-form-box button {
  align-self: flex-start;
}


.form-message {
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
  display: none;
}

.form-message.success {
  background: rgba(61, 218, 215, 0.2);
  border: 1px solid var(--accent2);
  color: var(--accent2);
  display: block;
}

.form-message.error {
  background: rgba(255, 107, 107, 0.2);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
  display: block;
}


footer {
  background: var(--secondary);
  color: var(--text);
  text-align: center;
  padding: 1.2rem 0;
  border-top: 1px solid var(--border);
  font-size: 1rem;
  margin-top: 2rem;
}


@media (max-width: 900px) {
  .about-flex, .hero-flex, .contact-flex {
    flex-direction: column;
    gap: 2rem;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-photo {
    width: 180px;
    height: 180px;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .carousel {
    width: 90vw;
    height: 150px;
  }
}

.skill-card, .project-card, .service-card, .cert-card, .about-card, .stat-card, .contact-card {
  background: transparent !important;
  border: 4px solid var(--border); 
  border-radius: 14px;
  padding: 1.2rem;
  box-shadow: 0 2px 8px rgba(61,218,215,0.05);
  text-align: left;
  color: #fff !important;
  transition: 
    color 0.4s, 
    transform 0.4s, 
    border-color 0.4s, 
    box-shadow 0.4s;
  will-change: transform, border-color;
}

.skill-card:hover, .project-card:hover, .service-card:hover, .cert-card:hover, .about-card:hover, .stat-card:hover, .contact-card:hover {
  background: transparent !important;
  color: #fff !important;
  transform: translateY(-10px) scale(1.05);
  border-color: var(--accent2);
  box-shadow: 0 8px 32px rgba(61,218,215,0.25), 0 2px 8px rgba(61,218,215,0.05);
}

.certification-date{
  color: black;
  background-color:#3ddad7 ;
  width: 100%;
  font-size: 15px;
  margin-top: 20px;
  padding: 10px;
  font-weight: bold;
  border-radius: 50px;

}

#achievements.section {
  padding: 6rem 2rem;
}

#achievements .section-title {
  font-size: 3rem;
  margin-bottom: 2.5rem;
}

.carousel-container {
  gap: 2.5rem;
  margin: 3rem 0;
}

.carousel {
  width: 800px;      
  height: 500px;     
  border-radius: 32px;
  background: var(--secondary, #232946);
  box-shadow: 0 12px 48px rgba(61,218,215,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  border-radius: 32px;
}

.carousel-img.active {
  display: block;
}

.carousel-btn {
  background: var(--accent2, #3ddad7);
  color: var(--primary, #181c2f);
  border: none;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  font-size: 2.5rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(61,218,215,0.10);
}

.carousel-btn:hover {
  background: var(--accent, #f7c873);
  color: var(--primary, #181c2f);
}


@media (max-width: 1000px) {
  .carousel {
    width: 98vw;
    height: 250px;
  }
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  #achievements .section-title {
    font-size: 2rem;
  }
}
.contact-socials a {
  text-decoration: none !important;
}
.contact-socials a svg {
  vertical-align: middle;
  display: inline-block;
  margin-top: 2px;
  width: 24px;
  height: 24px;
}

.leetcode-icon svg:hover path,
.leetcode-icon svg:focus path {
  stroke: #ffb800;
}

.hackerrank-icon svg:hover polygon,
.hackerrank-icon svg:focus polygon {
  fill: #1ba94c;
}
.trailhead-icon svg:hover circle,
.trailhead-icon svg:focus circle {
  fill: #0070d2;
}
.contact-socials a {
  text-decoration: none !important;
  font-size: 1.8rem;  
  margin: 0 0.3em;  
  transition: transform 0.2s, color 0.2s, background 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;  
  border-radius: 50%;
  background: transparent;
}

.contact-socials a i {
  transition: color 0.2s;
  font-size: 1.8rem;  
}


.contact-socials a[href*="linkedin"] i { color: #0077b5; }
.contact-socials a[href*="linkedin"]:hover, .contact-socials a[href*="linkedin"]:focus { background: #0077b5; }
.contact-socials a[href*="linkedin"]:hover i, .contact-socials a[href*="linkedin"]:focus i { color: #fff; }


.contact-socials a[href*="github"] i { color: #181717; }
.contact-socials a[href*="github"]:hover, .contact-socials a[href*="github"]:focus { background: #181717; }
.contact-socials a[href*="github"]:hover i, .contact-socials a[href*="github"]:focus i { color: #fff; }


.contact-socials a[href*="twitter"] i { color: #1da1f2; }
.contact-socials a[href*="twitter"]:hover, .contact-socials a[href*="twitter"]:focus { background: #1da1f2; }
.contact-socials a[href*="twitter"]:hover i, .contact-socials a[href*="twitter"]:focus i { color: #fff; }


.contact-socials a[href*="instagram"] i {
  color: #e1306c;
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.contact-socials a[href*="instagram"]:hover, .contact-socials a[href*="instagram"]:focus {
  background: linear-gradient(45deg, #f9ce34 0%, #ee2a7b 50%, #6228d7 100%);
}
.contact-socials a[href*="instagram"]:hover i, .contact-socials a[href*="instagram"]:focus i {
  color: #fff;
  -webkit-text-fill-color: #fff;
  background: none;
}
.hero-photo {
  transition: 
    transform 0.4s cubic-bezier(.4,2,.3,1),
    box-shadow 0.4s cubic-bezier(.4,2,.3,1);
  
}

.hero-photo:hover,
.hero-photo:focus {
  transform: translateY(-16px) scale(1.07) rotate(-2deg);
  box-shadow: 0 16px 48px rgba(61,218,215,0.18), 0 2px 8px rgba(61,218,215,0.05);
  cursor: pointer;
}

.project-button-area{
  padding: 1rem;
}

.project-button{
  width: 65%;
  height: 50%;
  margin: 10px;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: transparent !important;
  border: 4px solid var(--border);
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  color: #fff !important;
  transition: 
    transform 0.4s cubic-bezier(.4,2,.3,1),
    border-color 0.4s cubic-bezier(.4,2,.3,1),
    box-shadow 0.4s cubic-bezier(.4,2,.3,1);
  will-change: transform, border-color;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--accent2);
  box-shadow: 0 12px 32px rgba(61,218,215,0.15);
}

.project-img {
  width: 100%;
  height: 200px;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px 10px 0 0;
  overflow: hidden;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  color: var(--accent);
  margin-bottom: 0.8rem;
  font-size: 1.3rem;
}

.project-content p {
  color: #fff;
  margin-bottom: 0.8rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

.project-content p strong {
  color: var(--accent2);
}

.project-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--primary);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin: 0.5rem 0.5rem 0.5rem 0;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
}

.project-button:hover {
  background: transparent;
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(247,200,115,0.3);
}

.project-button i {
  font-size: 1rem;
}


@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .project-content {
    padding: 1rem;
  }
  
  .project-button {
    width: 100%;
    justify-content: center;
    margin: 0.3rem 0;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 2.5rem 1rem;
    max-width: 100vw;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 1.5rem 0.5rem;
    max-width: 100vw;
  }
}

@media (max-width: 600px) {
  .section-title {
    font-size: 2rem;
  }
  .about-card, .stat-card, .skill-card, .project-card {
    font-size: 1.1rem;
    padding: 1.2rem 1rem;
  }
}

@media (max-width: 600px) {
  /* Only add padding to main content containers, not navbar/footer */
  .container, .content, main, section:not(.navbar):not(.footer):not(nav):not(footer) {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  h1, h2, h3, p, button, .social-icons, .profile-img {
    text-align: left;
    margin-left: 0;
  }

  .buttons {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .social-icons {
    justify-content: flex-start;
    gap: 16px;
  }

  .profile-img {
    width: 100%;
    max-width: 220px;
    margin: 0 auto 24px auto;
    display: block;
  }

  /* Navbar and footer: no side padding, full width */
  nav, .navbar, footer, .footer {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Navbar: full width, no negative margins, no 100vw */
nav, .navbar {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  box-sizing: border-box;
}

/* Main content: add left/right padding for mobile */
@media (max-width: 600px) {
  .container, .content, main, section:not(.navbar):not(.footer):not(nav):not(footer) {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
    width: 100%;
    margin: 0 auto;
  }
}

nav, .navbar {
  width: 100vw !important;
  max-width: 100vw !important;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar li:last-child, .navbar .nav-links li:last-child, nav li:last-child {
  margin-right: 16px;
}

footer, .footer {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.menu-icon {
  margin-right: 16px; /* Optional: for a little breathing room */
}

.home-profile-img {
  max-width: 320px; /* or whatever max you want */
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}










