body { margin:0; font-family:Arial; }
/* 
header {
  display:flex;
  justify-content:space-between;
  padding:20px;
} */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
}
header {
  padding: 25px 60px;
  background: #0a192f; /* dark blue theme */
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home {
    width: 100%;
    min-height: 100vh;
    background-color: #071a33;
    display: flex;
    align-items: center;
    justify-content: center;
}
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.logo {
  font-size: 48px;
  font-weight: bold;
  color: white;
}
img {
  width: 100%;
  max-width: 300px;   /* control size */
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}
section { padding:60px; }

.card {
  background:#112240;
  padding:20px;
  border-radius:10px;
}

.icons i {
  font-size:25px;
  margin:10px;
}
.about-section {
    background-color: #0a1a2f;
    color: white;
    min-height: 100vh;
    padding: 60px 40px;
}

.about-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1200px;
    margin: auto;
}


.about-img img {
    width: 300px;      /* keep same size */
    height: 300px;     /* make height equal to width */
    border-radius: 50%; 
    object-fit: cover; /* prevents stretching */
}
.about-content {
    flex: 1;
}

.about-content h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.about-content p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 15px;
}
.about-text {
    max-width: 650px;
    line-height: 1.6;   /* improves readability */
}

.about-text h2 {
    margin-bottom: 15px;
}

.about-text p {
    margin-bottom: 10px;
}
#about h2 {
    font-size: 32px;   /* increase size */
    font-weight: bold;
}
.resume-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 20px;
    background-color: #f6fcfd;
    color: rgb(52, 49, 49);
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.resume-btn:hover {
    background-color: #ecf0f1;
}
input, textarea {
  display:block;
  margin:10px 0;
  padding:10px;
  width:100%;
}
.slide-text {
    animation: slideIn 2s ease-in-out;
}
.social-icons a {
    font-size: 22px;
    margin-right: 15px;
    color: #00e6e6;
    transition: 0.3s;
}

.social-icons a:hover {
    color: white;
    transform: scale(1.2);
}
@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
/*skill*/

/* Skills Section Title */
#skills h2 {
    font-size: 32px;        /* same as About Me */
    font-weight: bold;
    margin-bottom: 25px;
}

/* Skills Container */
#skillsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 22px;
    padding: 10px 0;
}

/* Skill Card */
.card {
    background-color: #0f2a44;
    border-radius: 14px;
    padding: 20px;

    height: 150px;          /* equal size boxes */

    display: flex;
    flex-direction: column; /* icon up, text down */
    align-items: center;
    justify-content: center;

    text-align: center;

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover Effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}

/* Skill Icon */
.card img {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    object-fit: contain;
}

/* Skill Name */
.card p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    line-height: 1.3;
}
#skillsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

#skillsContainer .card {
  width: 120px;
  text-align: center;
  padding: 10px;
}

#skillsContainer img {
  width: 40px;     /* 🔥 control icon size */
  height: 40px;
  object-fit: contain;
  margin-bottom: 5px;
}
/* Responsive Layout */
@media (max-width: 992px) {
    #skillsContainer {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    #skillsContainer {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    #skillsContainer {
        grid-template-columns: 1fr;
    }
}

/* EXPERIENCE SECTION */
#experience {
  padding: 60px;
  background-color: #071a33;
  color: white;
}

/* TITLE */
#experience h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 30px;
}

/* CARD (same as education) */
.exp-card {
  display: flex;
  align-items: center;
  gap: 30px;

  background-color: #102a4d;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

/* IMAGE (FIXED SIZE — IMPORTANT) */
.exp-card img {
  width: 260px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;   /* prevents stretching */
  flex-shrink: 0;      /* prevents shrinking */
}

/* TEXT SIDE */
.exp-details {
  flex: 1;
}

/* TITLE */
.exp-details h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

/* COMPANY */
.exp-details h4 {
  font-size: 15px;
  margin-bottom: 5px;
  opacity: 0.9;
}

/* DATE */
.exp-details span {
  font-weight: bold;
  color: #00e6e6;
}

/* DESCRIPTION */
.exp-details p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.5;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .exp-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-card img {
    width: 100%;
    height: auto;
  }
}

/* GLOBAL SPACING (keep this) */
section {
  margin-bottom: 60px;
}
#education h2 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 32px; /* more space */
  display: block;
}

#education {
  padding: 60px;
}

.edu-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: #102a4d;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.edu-card img {
  width: 260px;
  height: 180px;
  border-radius: 10px;
  object-fit: cover;
}

.education-details {
  flex: 1;
  min-width: 250px;
}

.education-details h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.education-details p {
  margin: 6px 0;
  font-size: 15px;
}

.education-details span {
  font-weight: bold;
  color: #00e6e6;
}

/* MOBILE */
@media (max-width: 768px) {
  .edu-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .edu-card img {
    width: 100%;
    height: auto;
  }
}


/* COMMON SECTION STYLE */
#projects, #certifications {
  padding: 60px;
  background-color: #071a33;
  color: white;
}

#projects h2,
#certifications h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 30px;
}

/* GRID LAYOUT */
.carousel-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

/* CARD DESIGN */
.project-card {
  background-color: #102a4d;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  transition: 0.3s;
  height: 100%; /* equal height */
}

.project-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.project-card img {
  width: 200px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 15px;
}

/* TITLE */
.project-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* BUTTONS */
.btn-group {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  padding: 6px 12px;
  background-color: #00e6e6;
  color: #071a33;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: 0.3s;
}

.btn:hover {
  background-color: white;
}

/* CERTIFICATE IMAGE BIGGER */
.cert-card img {
  width: 3000px;
  height: 150px;
  object-fit: cover;
}

nav a {
  text-decoration: none;
  padding: 8px 16px;
  margin: 5px;
  background: #f9f4f5;   
  color: black;
  border-radius: 20px;
  font-size: 14px;
  transition: 0.3s;
}

nav a:hover {
  background: #f9f5f7; 
  color: white;
}
#languages {
  padding: 60px;
  background-color: #071a33;
  color: white;
}

#languages h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 25px;
}

/* FULL WIDTH BUTTON CONTAINER */
.lang-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* BUTTON STYLE */
.lang-btn {
  flex: 1; /* makes them expand */
  text-align: center;
  padding: 12px;
  background-color: #102a4d;
  border-radius: 8px;
  font-weight: bold;
  min-width: 120px;
  transition: 0.3s;
}

.lang-btn:hover {
  background-color: #00e6e6;
  color: #071a33;
}
#languages h2,
#contact h2 {
  font-size: 40px;
  font-weight: bold;
  margin-bottom: 30px;
}
/* COMMON BUTTON STYLE */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: linear-gradient(135deg, #00e6e6, #007bff);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #00b3b3, #0056b3);
  transform: scale(1.05);
}
/* .contact-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 18px;
    background-color: #5a00ff;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.contact-btn:hover {
    background-color: #3d00b3;
} */
.footer {
    background-color: #02023a;
    color: white;
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    padding: 20px;
}

.footer-box {
    width: 300px;
    margin: 10px;
}

.footer-box h2 {
    margin-bottom: 15px;
}

.footer-box p {
    margin: 8px 0;
    line-height: 1.6;
}

.footer-box a {
    display: block;
    color: white;
    text-decoration: none;
    margin: 6px 0;
}

.footer-box a:hover {
    color: #00ffff;
}

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    font-size: 18px;
    margin-right: 10px;
    color: white;
    transition: 0.3s;
}

.social-icons a:hover {
    color: #00ffff;
    transform: scale(1.2);
}