:root {
  /* Color Palette - Blue Theme */
  --primary-blue: #1a73e8;
  --secondary-blue: #4285f4;
  --dark-blue: #0d47a1;
  --light-blue: #bbdefb;
  --accent-blue: #03a9f4;
  
  /* Neutral Colors */
  --dark: #202124;
  --gray: #5f6368;
  --light-gray: #dadce0;
  --white: #ffffff;
  
  /* Shadows for 3D Effects */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.14);
  --shadow-xl: 0 12px 24px rgba(0, 0, 0, 0.16);
  
  /* Font Families */
  --font-main: 'Inter', 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', monospace;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700&family=Fira+Code&display=swap');

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%; /* 10px = 1rem */
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  margin-bottom: 2rem;
  color: var(--dark-blue);
  line-height: 1.2;
}

h1 {
  font-size: 4.8rem;
  font-weight: 700;
}

h2 {
  font-size: 3.6rem;
  font-weight: 600;
}

h3 {
  font-size: 2.4rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.6rem;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--dark-blue);
}

.section-description {
  font-size: 1.8rem;
  max-width: 80rem;
  margin: 0 auto 4rem;
  text-align: center;
  color: var(--gray);
}

/* Layout Components */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.logo {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-blue);
  background: linear-gradient(45deg, var(--primary-blue), var(--accent-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.5rem;
  position: relative;
  z-index: 1;
}

.logo::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: var(--light-blue);
  border-radius: 0.5rem;
  transform: rotate(-3deg);
  z-index: -1;
  opacity: 0.5;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 3rem;
}

nav ul li a {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--gray);
  padding: 0.8rem 1.6rem;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 80%;
}

nav ul li a.active {
  color: var(--primary-blue);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  font-size: 2.4rem;
  color: var(--primary-blue);
  cursor: pointer;
}

main {
  min-height: 80vh;
  padding: 5rem 5%;
}

section {
  margin-bottom: 8rem;
}

footer {
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 4rem 5%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 2rem;
}

.social-links a {
  color: var(--white);
  font-size: 2.2rem;
  transition: all 0.3s ease;
}

.social-links a:hover {
  color: var(--light-blue);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  border-radius: 0.8rem;
  font-weight: 600;
  transition: all 0.3s ease;
  gap: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%) rotate(45deg);
  transition: all 0.4s ease;
}

.btn:hover::before {
  transform: translateX(100%) rotate(45deg);
}

.btn.primary {
  background: linear-gradient(45deg, var(--primary-blue), var(--secondary-blue));
  color: var(--white);
}

.btn.primary:hover {
  background: linear-gradient(45deg, var(--dark-blue), var(--primary-blue));
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn.secondary {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
}

.btn.secondary:hover {
  background: var(--light-blue);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cta-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 3rem;
}

/* Home Page Specific Styles */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  padding: 6rem 0;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 6.4rem;
  margin-bottom: 1.6rem;
  color: var(--dark-blue);
}

.hero-content h2 {
  font-size: 2.8rem;
  margin-bottom: 2.4rem;
  color: var(--primary-blue);
}

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

.shape-3d {
  width: 35rem;
  height: 35rem;
  background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  box-shadow: var(--shadow-xl);
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(10deg) rotateY(-20deg);
  transition: all 0.5s ease;
}

.shape-3d:hover {
  transform: rotateX(0deg) rotateY(0deg);
}

.shape-3d::before {
  content: '';
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: inherit;
  z-index: 2;
}

.skills {
  text-align: center;
  padding: 5rem 0;
}

.skills h2 {
  margin-bottom: 4rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 3rem;
}

.skill-card {
  background-color: var(--white);
  padding: 3rem 2rem;
  border-radius: 1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 0.5rem;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, var(--primary-blue), var(--accent-blue));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-lg);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card i {
  font-size: 4.8rem;
  margin-bottom: 1.6rem;
  color: var(--primary-blue);
}

.skill-card h3 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

/* About Page Specific Styles */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  height: 100%;
}

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

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26, 115, 232, 0.2), rgba(3, 169, 244, 0.2));
  z-index: 2;
}

.about-text {
  font-size: 1.8rem;
}

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.detail i {
  font-size: 2.4rem;
  color: var(--primary-blue);
}

.detail h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

/* Portfolio Page Specific Styles */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(35rem, 1fr));
  gap: 4rem;
}

.project-card {
  background-color: var(--white);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--shadow-xl);
}

.project-image {
  height: 25rem;
  overflow: hidden;
  position: relative;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-info {
  padding: 2.4rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.6rem 0;
}

.project-tech span {
  padding: 0.6rem 1.2rem;
  background-color: var(--light-blue);
  color: var(--dark-blue);
  border-radius: 5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.project-links {
  margin-top: auto;
  display: flex;
  gap: 1.6rem;
}

/* Resume Page Specific Styles */
.resume-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  margin-bottom: 6rem;
}

.resume-download {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.resume-download p {
  font-size: 1.8rem;
  margin-bottom: 2.4rem;
}

.resume-preview {
  height: 50rem;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.resume-preview iframe {
  width: 100%;
  height: 100%;
}

.resume-sections {
  margin-top: 6rem;
}

.resume-section {
  margin-bottom: 6rem;
}

.resume-section h2 {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  border-bottom: 2px solid var(--light-blue);
  padding-bottom: 1.2rem;
}

.resume-section h2 i {
  color: var(--primary-blue);
}

.timeline {
  position: relative;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 2px;
  background-color: var(--light-blue);
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.5rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background-color: var(--primary-blue);
  box-shadow: 0 0 0 4px var(--light-blue);
}

.timeline-date {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--primary-blue);
  margin-bottom: 0.8rem;
}

.timeline-content {
  background-color: var(--white);
  padding: 2.4rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-lg);
}

.timeline-content h3 {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}

.timeline-location {
  font-size: 1.6rem;
  color: var(--gray);
  margin-bottom: 1.6rem;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  gap: 3rem;
}

.skill-group {
  background-color: var(--white);
  padding: 2.4rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
}

.skill-group h3 {
  font-size: 2rem;
  margin-bottom: 1.6rem;
  color: var(--primary-blue);
}

.skill-group ul {
  list-style-type: none;
}

.skill-group ul li {
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 1.2rem;
}

.skill-group ul li::before {
  content: '⚡';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

/* Contact Page Specific Styles */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.contact-item i {
  font-size: 2.4rem;
  color: var(--primary-blue);
}

.contact-item h3 {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
}

.contact-social {
  display: flex;
  gap: 1.6rem;
}

.contact-social a {
  font-size: 2.4rem;
  color: var(--primary-blue);
  transition: all 0.3s ease;
}

.contact-social a:hover {
  color: var(--dark-blue);
  transform: translateY(-5px);
}

.contact-form {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}

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

.form-group label {
  display: block;
  font-size: 1.6rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--dark-blue);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1.2rem;
  font-family: var(--font-main);
  font-size: 1.6rem;
  border: 1px solid var(--light-gray);
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Media Queries for Responsiveness */
@media (max-width: 1200px) {
  html {
    font-size: 58%;
  }
  
  .hero-content h1 {
    font-size: 5.6rem;
  }
}

@media (max-width: 992px) {
  html {
    font-size: 56%;
  }
  
  .hero {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image {
    order: 1;
    margin-bottom: 4rem;
  }
  
  .cta-buttons {
    justify-content: center;
  }
  
  .about-grid,
  .resume-container,
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    order: -1;
    max-width: 40rem;
    margin: 0 auto 4rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 54%;
  }
  
  header {
    padding: 2rem 5%;
  }
  
  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  nav.active {
    right: 0;
  }
  
  nav ul {
    flex-direction: column;
    align-items: center;
  }
  
  nav ul li a {
    font-size: 2rem;
    padding: 1.5rem;
  }
  
  .menu-toggle {
    display: block;
    z-index: 200;
  }
  
  .hero-content h1 {
    font-size: 4.8rem;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  }
}

@media (max-width: 576px) {
  html {
    font-size: 52%;
  }
  
  .hero-content h1 {
    font-size: 4.2rem;
  }
  
  .hero-content h2 {
    font-size: 2.4rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1.6rem;
  }
  
  .skills-grid,
  .skills-container {
    grid-template-columns: 1fr 1fr;
  }
  
  .project-tech {
    display: none;
  }
  
  .project-links {
    flex-direction: column;
    gap: 1.2rem;
  }
}