
/* Root Variables: Theme Colors, Layout & Effects.
Description: Centralized custom properties for consistent styling across the application. */
:root {
--primary: #141414;
--bg-color: #121212;
--text-color: #ffffff;
--accent: #e50914;
--accent-hover: #ff1f2d;
--bg-light: #1f1f1f;
--bg-white: #2a2a2a;
--text-dark: #ffffff;
--text-muted: #b3b3b3;
--radius: 10px;
--shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
--transition: all 0.3s ease-in-out;
--gradient-accent: linear-gradient(45deg, #e50914, #ff1f2d);
}

/* Fixed Wrapper for Consistent Width and Centering. */
.fixed-wrapper {
width: 1024px;
max-width: 100%;
margin: 0 auto;
padding: 0 20px;
}

/* Global Box Sizing. */
*, *::before, *::after {
box-sizing: border-box;
}

/* Basic responsive layout */
body, html {
margin: 0;
padding: 0;
width: 100%;
overflow-x: hidden;
}

/* Base Body Styles */
body {
font-family: 'georgia', sans-serif;
margin: 0;
background-color: var(--bg-color);
color: var(--text-color);
scroll-behavior: smooth;
transition: background-color 0.3s, color 0.3s;
}

/* GENERAL NAV STYLE */
nav {
  background-color: #2a2a2a;
  padding: 0.8rem 1.2rem;
  border-radius: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;

  position: fixed;
  top: 20px;
  left: 50%; 
  transform: translateX(-50%); 

  width: fit-content; 
  z-index: 1000;
}

body {
  position: relative;
}

html {
  scroll-behavior: smooth;
}

/* COMMON STYLE FOR BOTH ULs */
nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

/* DESKTOP MODE LINKS */
.desktop li a span {
  background-color: #2a2a2a;
  color: rgb(255, 0, 0);
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  display: inline-block;
  transition: all 0.3s ease;
  border: 1px solid #ffffff26;
}

.desktop li a:hover span,
.desktop li a.active span {
  background-color: #383c3f;
  border: 1px solid #ff0000;
  box-shadow: 0 0 5px #b00610;
}

/* MOBILE ICONS */
.mobile {
  display: none;
}

.mobile li a i {
  background-color: #2a2a2a;
  color: rgb(255, 0, 0);
  font-size: 0.5rem;
  padding: 0.5rem 0.7rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.mobile li a:hover i,
.mobile li a.active i {
  background-color: #383c3f;
  border: 1px solid #ff0000;
  box-shadow: 0 0 5px #b00610;
}

/* RESPONSIVE BEHAVIOR */
@media (max-width: 768px) {
  .desktop {
    display: none;
  }

  .mobile {
    display: flex;
  }

  nav {
    width: auto;
    padding: 0.5rem 1rem;
  }

  nav ul {
    gap: 0.5rem;
  }
}


/* Hero Section Styling */
.hero {
  position: relative;
  width: 100%;
  max-width: 1475px;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: center;
  font-family: 'Garamond', serif;
  padding: 20px;
  color: #ffffff;
  margin: 20px auto 0 auto;
  margin-top: 100px;
  overflow: hidden;
  box-sizing: border-box;
  border-radius: 20px;
}

/* Fixed wrapper padding */
.hero .fixed-wrapper {
  padding: 60px 0;
}

/* Background video styling */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  border-radius: 20px;
}

/* Hero Text */
.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: 2.5rem;
  color: #ffffff;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
  .hero {
    max-width: 90%;
    padding: 10px;
    border-radius: var(--radius);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero h2 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 1.25rem;
  }
}


/* Resume Button Styles */
.hero-buttons {
margin-top: 20px;
text-align: center;
}

.btn-gradient {
display: inline-block;
padding: 12px 28px;
margin: 0 12px;
font-size: 1rem;
font-weight: 600;
border-radius: 50px;
color: #fff;
text-decoration: none;
background: linear-gradient(135deg, var(--accent), var(--accent));
transition: background 0.3s ease, transform 0.3s ease;
}

.btn-gradient:hover {
background: linear-gradient(135deg, #ff0000, #b00610);
transform: translateY(-3px);
}

/* General Card & Section Styles */
.card,
.section {
background: var(--bg-white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 20px;
margin: 20px;
transition: var(--transition);
}

.card:hover,
.section:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.section h2 {
font-size: 2rem;
margin-bottom: 20px;
color: var(--accent);
}

.section h2 i {
margin-right: 0.5rem;
transition: transform 0.3s, color 0.3s;
}

.section:hover h2 i {
transform: scale(1.2);
color: var(--accent);
}

.section p {
font-size: 1.1rem;
color: var(--text-muted);
}

/* ==============================
   About Section
============================== */
.about-section {
background: var(--bg-white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 40px;
margin: 40px;
transition: var(--transition);
}

.about-section:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

.about-card {
padding: 24px;
margin-bottom: 24px;
background-color: var(--bg-light);
border-radius: var(--radius);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border: 1px solid #333;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.about-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

.about-card h3 {
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.about-card p {
color: var(--text-muted);
font-size: 1rem;
}

@media (max-width: 768px) {
.about-card {
flex-direction: column;
}

.about-card img,
.about-content {
flex: 1 1 100%;
}
}


/* ==============================
   Education Section
============================== */
.education-section {
background: var(--bg-white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 40px;
margin: 40px;
transition: var(--transition);
}

.education-section:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.education-card {
padding: 24px;
margin-bottom: 24px;
background-color: var(--bg-light);
border-radius: var(--radius);
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
border: 1px solid #333;
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.education-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

.education-card h3 {
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.education-card p {
color: var(--text-muted);
font-size: 1rem;
}

@media (max-width: 768px) {
.education-card {
flex-direction: column;
}

.education-card img,
.education-content {
flex: 1 1 100%;
}
}

.github-link:hover {
background-color: #444;
}


/* ==============================
   Experience Section
============================== */
.experience-section {
background: var(--bg-white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 40px;
margin: 40px;
transition: var(--transition);
}

.experience-section:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.experience-card {
padding: 24px;
margin-bottom: 24px;
background-color: var(--bg-light);
border-radius: var(--radius);
border: 1px solid #333;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.experience-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}


.experience-card h3 {
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.experience-card p {
color: var(--text-muted);
font-size: 1rem;
}

@media (max-width: 768px) {
.experience-card {
flex-direction: column;
}

.experience-card img,
.experience-content {
flex: 1 1 100%;
}
}

.github-link:hover {
background-color: #444;
}


/* ==============================
   Skills Section
============================== */
.skills-section {
background: var(--bg-white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 40px;
margin: 40px;
transition: var(--transition);
}

.skills-section:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.skill-tag {
background: #e50914;
color: #fff;
font-size: 13px;
padding: 6px 12px;
border-radius: 9999px;
display: inline-block;
transition: 0.3s ease;
}

.skill-tag:hover {
background: #a10000;
}

.card:hover,
.skill-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

@media (max-width: 768px) {
.skill-card {
flex-direction: column !important;
width: 80%;
}
}


/* ==============================
   Certifications Section
============================== */
.certifications-section {
background: var(--bg-white);
border-radius: var(--radius);
box-shadow: var(--shadow);
padding: 40px;
margin: 40px;
transition: var(--transition);
}

.certifications-section:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.certification-card {
padding: 24px;
margin-bottom: 24px;
background-color: var(--bg-light);
border-radius: var(--radius);
border: 1px solid #333;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.certification-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

.certification-card h3 {
color: var(--text-dark);
margin-bottom: 0.5rem;
}

.certification-card p {
color: var(--text-muted);
font-size: 1rem;
}

@media (max-width: 768px) {
.certifications-section {
padding: 20px;
margin: 20px 10px;
}

.certification-card {
padding: 16px;
}

.certification-card h3 {
font-size: 1.2rem;
}

.certification-card p {
font-size: 0.9rem;
}
}


/* ==============================
   Projects Section
============================== */
.project-grid {
display: flex;
flex-direction: column;
gap: 2rem;
margin-top: 20px;
}

.project-card {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
gap: 2rem;
padding: 24px;
background: var(--bg-light);
border-radius: var(--radius);
border: 1px solid #333;
transition: transform 0.3s ease, box-shadow 0.3s ease;
color: var(--text-dark);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.project-content {
flex: 1 1 55%;
}

.project-card img {
width: 50%;                 
max-width: 250px;          
height: auto;
border-radius: var(--radius);
object-fit: cover;
align-self: center;
margin-left: auto;          
}

.project-card h3 {
margin-bottom: 1rem;
}

.project-card ul {
padding-left: 1.2rem;
}

.project-card ul li {
margin-bottom: 0.5rem;
list-style: none;
position: relative;
padding-left: 1.2rem;
}

.project-card ul li::before {
content: "➤";
position: absolute;
left: 0;
color: white;
font-weight: bold;
}

.card:hover,
.project-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

.github-link {
display: inline-flex;
align-items: center;
margin-top: 1rem;
color: white;
background-color: #24292e;
padding: 8px 12px;
border-radius: 6px;
text-decoration: none;
font-weight: bold;
gap: 0.5rem;
}

.github-link:hover {
background-color: #444;
}

@media (max-width: 768px) {
.project-card {
flex-direction: column;
}

.project-card img,
.project-content {
flex: 1 1 100%;
}
}
.github-link:hover {
background-color: #444;
}


/* ==============================
   Testimonials Section
============================== */
.testimonials-section {
background-color: var(--bg-light); /* Match project section background */
padding: 100px 30px;
font-family: 'Segoe UI', sans-serif;
}

.section-header {
text-align: left;
margin-bottom: 40px;
}

.section-header h2,
.testimonials-section h2 {
font-size: 36px;
color: var(--text-dark); /* Match project section text */
display: flex;
align-items: center;
gap: 12px;
margin-bottom: 12px;
}

.section-header h2 i,
.testimonials-section h2 i {
color: #d63031;
font-size: 28px;
}

.section-underline {
width: 60px;
height: 4px;
background-color: #c40000;
border-radius: 2px;
}

.subtitle {
color: #636e72;
font-size: 18px;
margin-bottom: 48px;
}

.container {
max-width: 1100px;
margin: 0 auto;
}

.testimonial-grid {
display: flex;
flex-direction: column;
gap: 2rem;
margin-top: 20px;
}

.testimonial-card {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-between;
gap: 2rem;
padding: 24px;
background: var(--bg-light);
border-radius: var(--radius);
border: 1px solid #333;
transition: transform 0.3s ease, box-shadow 0.3s ease;
color: var(--text-dark);
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover,
.testimonial-card:hover {
transform: scale(1.02);
box-shadow: 0 12px 30px #ffffff33;
}

.testimonial-content {
flex: 1;
display: flex;
flex-direction: column;
}

.stars {
color: #d63031;
font-size: 22px;
margin-bottom: 14px;
}

.testimonial-text {
color: var(--text-dark);
font-style: italic;
font-size: 16px;
line-height: 1.7;
margin-bottom: 14px;
}

.testimonial-text.full {
display: none;
margin-top: 14px;
}

.testimonial-text.full p {
margin-bottom: 18px;
}

.read-more-btn {
display: inline-block;
margin-top: 12px;
padding: 12px 24px;
background-color: #d63031;
color: #ffffff;
font-weight: 600;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 15px;
transition: background-color 0.3s ease, transform 0.3s ease;
align-self: start;
}

.read-more-btn:hover {
background-color: #c0392b;
transform: translateY(-2px);
}

.testimonial-author {
margin-top: 24px;
padding-top: 16px;
border-top: 1px solid #ccc;
display: flex;
flex-direction: column;
gap: 6px;
font-size: 15px;
color: var(--text-dark);
}

.testimonial-author i {
margin-right: 10px;
color: #d63031;
}


/* ==============================
   Contact Section
============================== */
.contact-top {
display: flex;
flex-wrap: wrap;
gap: 2rem;
margin-bottom: 2rem;
}

/* Get In Touch */
.contact-info h3,
.contact-form h3 {
color: red;
font-size: 1.8rem;
margin-bottom: 1rem;
}

/* Google Map */
.contact-info,
.contact-map {
flex: 1 1 45%;
padding: 2rem;
border-radius: 20px;
background-color: #333;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
min-height: 400px;
}

.contact-map iframe {
width: 100%;
height: 100%;
border-radius: 20px;
}

/* Send a Message */
.contact-form {
padding: 2rem;
border-radius: 20px;
background-color: #333;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-item {
display: flex;
align-items: center;
margin-bottom: 1rem;
}

.contact-icon {
font-size: 1.5rem;
color: red;
margin-right: 1rem;
}

.contact-form form input,
.contact-form form textarea {
width: 100%;
margin-bottom: 1rem;
padding: 1rem;
border: 1px solid #ccc;
border-radius: 10px;
font-size: 1rem;
box-sizing: border-box;
}

.contact-form form button {
width: 100%;
background-color: red;
color: white;
padding: 1rem;
border: none;
border-radius: 10px;
cursor: pointer;
font-size: 1.1rem;
transition: background-color 0.3s;
}

.contact-form form button:hover {
background-color: darkred;
}

@media (max-width: 768px) {
.contact-section {
width: 80%;
padding: 20px;
margin: 20px auto;
}

.contact-info {
padding: 1rem;
min-height: auto;
width: 80%;
}

.contact-map {
padding: 1rem;
min-height: auto;
}

.contact-form {
padding: 1rem;
}

.contact-info h3,
.contact-form h3 {
font-size: 1.4rem;
}

.contact-form form button {
font-size: 1rem;
}
}

/* Footer */
footer {
text-align: center;
padding: 2rem;
background: var(--primary);
color: var(--text-muted);
font-size: 0.9rem;
}

/* Back to Top Button */
#backToTop {
position: fixed;
bottom: 30px;
right: 30px;
background: var(--accent);
color: white;
border: none;
padding: 12px;
border-radius: 50%;
cursor: pointer;
display: none;
z-index: 1000;
box-shadow: var(--shadow);
transition: transform 0.3s ease;
}

#backToTop:hover {
transform: translateY(-3px);
}

/* Social Icons */
.social-icons {
margin-top: 20px;
}

.social-icons a {
margin: 0 10px;
font-size: 30px;
color: #ff0000;
text-decoration: none;
transition: color 0.3s ease;
}

.social-icons a:hover {
color: #ffffff;
}
