/* ===== VARIABLES ===== */
:root {
  --bg-color: #ffffff;
  --text-color: #121212;
  --accent-color: #3b9180;
  --section-bg: #f5f5f5;
}

body.dark {
  --bg-color: #121212;
  --text-color: #f5f5f5;
  --section-bg: #1a1a1a;
}

html {
  scroll-behavior: smooth;
}


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

body {
  font-family: "Open Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background 0.3s, color 0.3s;
    padding-top: 70px; 
}

h1, h2, h3 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}


/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgb(0, 184, 148, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
}


.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: var(--accent-color);
}

/* Theme toggle */
#theme-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  margin-left: 1rem;
  color: var(--text-color);
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
}

#date-time {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 5px;
  color: var(--text-color);
}

.resume-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--section-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.profile-pic {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: -3rem auto 1rem;
  display: block;
  border: 3px solid var(--accent-color);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0;
}

#typing-text {
  border-right: 2px solid var(--accent-color);
  padding-right: 15px;
  padding-left: 15px;
  white-space: nowrap;
  overflow: hidden;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  background: var(--accent-color);
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #019875;
}

/* ===== SECTIONS ===== */
.about {
  background: var(--section-bg);
  margin-top: 1rem;
  border-radius: 10px;
  padding: 3rem 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

section {
  padding: 4rem 2rem;
  text-align: center;
}

.projects, .skills, .contact {
  background: var(--section-bg);
  margin-top: 1rem;
  border-radius: 10px;
  padding: 3rem 2rem;
}
.projects h3{
  color: #3b9180;
  margin-bottom: 15px;
}
.projects p {
  margin-bottom: 10px;
}
.project-card {
  background: #2a2a2a;
  margin: 1rem auto;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 500px;
  color: #fff;
  transition: background 0.3s;
}
body:not(.dark) .project-card {
  background: #e0e0e0;
  color: #121212;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 400px;   
  margin: auto;
  overflow: hidden;   
  border-radius: 8px; 
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.carousel-images {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-images img {
  width: 100%;
  flex-shrink: 0;
}

.carousel button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 50%;
}

.carousel .prev {
  left: 10px;
}
.carousel .next {
  right: 10px;
}

.tech-used {
  font-size: 0.9rem;
  color: var(--accent-color);
  margin-top: 0.5rem;
  display: none;
}



.skills ul {
  list-style-position: outside;  
  display: table;                
  margin: 0 auto;                
  text-align: left;              
  padding-left: 1.5rem;          
}


@media (min-width: 768px) {
  .skills ul {
    display: grid;                
    grid-template-columns: repeat(2, auto);
    gap: 0.5rem 2rem;            
    justify-content: center;      
    padding-left: 0;              
  }
}

@media (min-width: 1024px) {
  .skills ul {
    grid-template-columns: repeat(3, auto);
  }
}



/* ===== CONTACT ===== */
.contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, textarea {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background: var(--bg-color);
  color: var(--text-color);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 5px var(--accent-color);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: #3b9180;
  margin-top: 2rem;
  border-top: 1px solid #444;
}

/* ==== SOCIAL SECTION ===== */

.note {
  font-size: 0.9rem;
  color: gray;
  margin-bottom: 10px;
}

.socials {
  background: var(--section-bg);
  margin-top: 1rem;
  border-radius: 10px;
  padding: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.socials h2 {
  margin-bottom: 1rem;
}

.socials ul {
  list-style: none;
  padding: 0;
}

.socials li {
    margin: 10px 0;
}

.socials a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--text-color); 
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: color 0.3s;
}

.socials a:hover {
  color: var(--accent-color);
}

.socials ul {
  list-style: none;
  padding: 0;
}

.socials li {
  margin: 10px 0;
}

.socials a {
  text-decoration: none;
  font-size: 1.1rem;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.socials a:hover {
  color: var(--accent-color);
}


.twitter { color: #1DA1F2; }  
.linkedin { color: #0077B5; }  
.github { color: #333; }       
.email { color: #e26054; }    
.whatsapp { color: #25D366; }  



@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: var(--section-bg);
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    padding: 1rem;
    border-radius: 0 0 0 10px;
  }

  .logo {
  font-size: 1.2rem;

}

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

  .hamburger {
    display: flex;
  }
}

.hero h1 {
  font-size: 1.5rem;
    margin-bottom: 0;}

footer p {
font-size: 0.9rem;
}

.resume-section {
  padding: 1.5rem;
}

.resume-frame {
  width: 100%;
  height: 85vh;
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .resume-section {
    padding: 1rem;
  }

  .resume-frame {
    height: 70vh;             
    transform: none;          
    max-width: 100%;
    border-radius: 6px;
  }
}


.resume-section {
  overflow: hidden;
  position: relative;
}

.resume-frame {
  width: 100%;
  height: 90vh;
  border: none;
  border-radius: 8px;
  display: block;
  background: #fff;
}

@media (max-width: 768px) {
  .resume-frame {
    height: 85vh;
    transform: none;
  }
}

.dev-card {
  background: #1e1e1e;
  color: #d4d4d4;
  font-family: 'Fira Code', 'JetBrains Mono', monospace;
  border-radius: 12px;
  padding: 24px 28px;
  line-height: 1.45;
  font-size: 16px;
  max-width: 90%;
  width: 680px;
  margin: 2rem auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
  text-align: left;
}


.dev-card .header {
  color: #6a9955;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
}


.dev-card .keyword { color: #569cd6; }
.dev-card .variable { color: #9cdcfe; }
.dev-card .string { color: #ce9178; }


.dev-card .indent {
  display: block;
  padding-left: 1.5rem;
  margin: 0.12rem 0;   
}


.dev-card .indent + .indent {
  margin-top: 0.12rem;
  margin-bottom: 0.12rem;
}


@media (max-width: 768px) {
  .dev-card { font-size: 14px; padding: 20px; line-height: 1.4; }
  .dev-card .header { font-size: 0.6rem; margin-bottom: 0.6rem; }
  .dev-card .indent { padding-left: 1.2rem; margin: 0.12rem 0; }
}

@media (max-width: 480px) {
  .dev-card { font-size: 0.5rem; padding: 16px; border-radius: 10px; line-height: 1.4; }
  .dev-card .header { margin-bottom: 0.6rem; }
  .dev-card .indent { margin: 0.12rem 0; }
}

/* Typing animation for dev-card */
.dev-card {
  display: block;
  white-space: pre-wrap;
  font-family: "Fira Code", monospace;
  color: #e5e5e5;
  background: #1e1e1e;
  padding: 1rem;
  border-radius: 10px;
  max-width: 90%;
  margin: 1rem auto;
  overflow: hidden;
  position: relative;
}

/* Optional blinking cursor effect */
.dev-card::after {
  content: "|";
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: #00ff99;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
