

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

html, body {
    height: 100%;
}
html {
    scroll-behavior: smooth;
}


body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: url("images/bgg.jpeg") no-repeat center center fixed;
  background-size: cover;
  color: white;
}



/* remove or edit overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* remove white overlay */
    z-index: -1;
}
.highlight {
  color: #0078D7;         /* Professional blue */
  font-weight: bold;      /* Emphasis */
}


header {
    position: fixed;       
    top: 0;               
    left: 0;
    width: 100%;          
    background-color: rgba(0, 120, 215, 0.9);

    z-index: 1000;         
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 1rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}


body {
    padding-top: 70px; 
}


.container {
    max-width: 900px;
    margin: auto;
    padding: 2rem 1rem;
}

h1, h2,h3 {
    color: #0078D7;
    margin-bottom: 1rem;
}

p {
    line-height: 1.6;
}
/* Section Title */
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #00c8ff;
}

/* Grid Layout */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns */
  gap: 25px;
  justify-items: center; /* centers items horizontally */
}

/* Normal project cards */
.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease-in-out;
  color: white;
  width: 100%;
  max-width: 450px;
}

/* 3rd project in center */
.center-project {
  grid-column: span 2;   /* Take full row */
  justify-self: center;  /* Center itself */
}


.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    margin-top: 20px;
    margin-bottom: 15px;
}

.skill-card {
    background-color: #0078D7; 
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 100px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: transform 0.2s ease, background-color 0.3s ease;
    cursor: default;
}

.skill-card img {
    width: 20px;
    height: 20px;
}

.skill-card:hover {
    transform: translateY(-4px);
    background-color: #005fa3; 
}
.resume-btn {
    display: inline-block;
    background-color: #0078D7;
    color: white;
    padding: 5px 5px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.resume-btn:hover {
    background-color: #005fa3;
}
.moving-text {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    font-size: 2.5rem;
    text-align: center;
    margin-top: 20px;
    color:#0078D7;
    overflow: hidden;
    white-space: nowrap;
    animation: slideText 5s linear infinite;
}

.moving-text span {
    color:#0078D7;
}


@keyframes slideText {
    0% { transform: translateX(-100%); opacity: 0; }
    25% { transform: translateX(0); opacity: 1; }
    75% { transform: translateX(0); opacity: 1; }
    100% { transform: translateX(100%); opacity: 0; }
}
.skill-card i {
    margin-right: 1px;
    font-size: 1.2rem;
}
.skill-card {
    display: inline-flex; 
    align-items: center; 
    gap: 8px; 
    background-color: #0078D7;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    margin: 5px;
}

.skill-card i {
    font-size: 1.2rem;
}

/* Layout */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 50px;
  color: #fff;
}

.hero-image img {
  width: 350px;
  height: 350px;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.5);
}

.hero-text {
  max-width: 600px;
}

/* Creative Name Styling */
.creative-name {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 2.8rem;
  color: #0078D7;
  display: inline-block;
  position: relative;
  animation: typing 4s steps(15, end) infinite alternate, blink 0.7s infinite;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid #0078D7;
}

/* Typing Effect */
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}

/* Cursor Blink */
@keyframes blink {
  50% { border-color: transparent }
}

h1, h2 {
  margin-bottom: 15px;
}

p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ddd;
}
/* Timeline Container */
.timeline {
  position: relative;
  margin: 40px auto;
  padding-left: 30px;
  border-left: 3px solid #00c3ff;
}

/* Each Item */
.timeline-item {
  position: relative;
  margin-bottom: 40px;
  padding-left: 40px;
}

/* Icon */
.timeline-icon {
  position: absolute;
  left: -20px;
  top: 0;
  background: #0a192f;
  border: 2px solid #00c3ff;
  color: #00c3ff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0,195,255,0.6);
}

/* Content */
.timeline-content {
  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  border-color: #00c3ff;
  box-shadow: 0 0 15px rgba(0,195,255,0.4);
}

/* Title */
.timeline-content h3 {
  margin: 0 0 5px;
  font-size: 1.2rem;
  color: #00c3ff;
}

.timeline-content span {
  color: #ddd;
  font-weight: normal;
}

/* Date */
.timeline-content small {
  display: block;
  margin-bottom: 10px;
  color: #bbb;
}
/* Contact Section */
.contact-section {
  text-align: center;
  padding: 50px 20px;
  background: rgba(255, 255, 255, 0.05); /* semi-transparent */
  border-radius: 12px;
  margin-top: 40px;
  color: #fff;
}

.contact-section h1 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #00c3ff; /* glowing blue */
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

.contact-item i {
  font-size: 1.4rem;
  color: #00c3ff;
}

.contact-item a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-4px);
  color: #00c3ff;
}

.contact-item a:hover {
  color: #00c3ff;
}

.exp-btn {
  background: #0078d7;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  position: absolute;
  right: 20px;
  bottom: 20px;
}

.exp-btn:hover {
  background: #00c3ff;
}
.view-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 14px;
  background: #0078d7;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s ease;
}

.view-btn:hover {
  background: #00c3ff;
}
html {
  scroll-behavior: smooth;
}




footer {
    background-color: rgba(0, 120, 215, 0.9);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* ================== RESPONSIVENESS ================== */

/* For tablets (768px and below) */
@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 30px 15px;
    gap: 20px;
  }

  .hero-image img {
    width: 250px;
    height: 250px;
  }

  .hero-text {
    max-width: 100%;
  }

  .projects-grid {
    grid-template-columns: 1fr; /* stack projects */
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* For mobile phones (480px and below) */
@media (max-width: 480px) {
  nav {
    flex-direction: column;
    padding: 0.5rem;
  }

  nav a {
    padding: 8px 0;
    font-size: 0.9rem;
  }

  .hero-image img {
    width: 180px;
    height: 180px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .hero-text h2 {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .project-card,
  .timeline-content {
    padding: 15px;
    font-size: 0.9rem;
  }

  .skill-card {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
}

/* Navbar default layout */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: white;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}

/* Mobile view */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 120, 215, 0.95);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 8px 8px;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  }

  .nav-links.show {
    display: flex;
  }

  .hamburger {
    display: block;
  }
}

