/* Enhanced Global Styles */
    :root {
      --primary-blue: #0b5394;
      --secondary-blue: #587385;
      --accent-gold: #ffd700;
      --light-bg: #f8f9fa;
      --card-bg: #ffffff;
      --text-dark: #2c3e50;
      --text-light: #6c757d;
      --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      --shadow-soft: 0 8px 30px rgba(0,0,0,0.08);
      --shadow-hover: 0 15px 40px rgba(0,0,0,0.15);
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.7;
      background: var(--light-bg);
      color: var(--text-dark);
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* Page Management */
    .page {
      display: none;
      animation: fadeIn 0.8s ease-in;
    }

    .page.active {
      display: block;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(20px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Enhanced Navigation */
    nav {
      background: var(--gradient-primary);
      padding: 1rem 2rem;
      display: flex;
      justify-content: center;
      gap: 2.5rem;
      flex-wrap: wrap;
      position: sticky;
      top: 0;
      z-index: 1000;
      box-shadow: var(--shadow-soft);
      backdrop-filter: blur(10px);
    }

    .nav-btn {
      color: white;
      text-decoration: none;
      font-weight: 600;
      padding: 0.5rem 1rem;
      border-radius: 25px;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      background: none;
      border: none;
      font-size: 1rem;
    }

    .nav-btn::before {
      content: '';
      position: absolute;
      top: 0;
      left: -100%;
      width: 100%;
      height: 100%;
      background: rgba(255,255,255,0.1);
      transition: left 0.3s ease;
    }

    .nav-btn:hover::before {
      left: 100%;
    }

    .nav-btn:hover {
      color: var(--accent-gold);
      transform: translateY(-2px);
    }

    .nav-btn.active {
      background: rgba(255,255,255,0.2);
      color: var(--accent-gold);
    }

    /* Enhanced Header with Clip-path */
    header {
      background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
        url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.1&auto=format&fit=crop&w=1920&q=80');
      background-size: cover;
      background-position: center;
      background-attachment: fixed;
      color: white;
      padding: 4rem 1rem;
      text-align: center;
      position: relative;
      overflow: hidden;
      clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
    }

    header::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="1000,0 1000,100 0,100"/></svg>');
      background-size: cover;
    }

    header h1 {
      font-size: clamp(1.8rem, 4vw, 3rem);
      margin-bottom: 1rem;
      text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
      position: relative;
    }

    header h1:last-child {
      font-size: clamp(1.2rem, 2.5vw, 1.8rem);
      font-weight: 300;
      opacity: 0.9;
    }

    /* Enhanced Grid Layout */
    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
      gap: 2rem;
      padding: 3rem 2rem;
      max-width: 1400px;
      margin: 0 auto;
    }

    /* Enhanced Sections with Advanced Effects */
    section {
      background: var(--card-bg);
      padding: 2rem;
      border-radius: 20px;
      box-shadow: var(--shadow-soft);
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      position: relative;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.2);
    }

    section::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: var(--gradient-secondary);
      transform: scaleX(0);
      transition: transform 0.3s ease;
    }

    section:hover::before {
      transform: scaleX(1);
    }

    section:hover {
      transform: translateY(-8px) scale(1.02);
      box-shadow: var(--shadow-hover);
    }

    section h2 {
      color: var(--primary-blue);
      margin-bottom: 1rem;
      font-size: 1.4rem;
      position: relative;
      padding-bottom: 0.5rem;
       z-index: 2;
    }

    section h2::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 50px;
      height: 3px;
      background: var(--gradient-secondary);
      border-radius: 2px;
    }

    section p {
      color: var(--text-light);
      margin-bottom: 1rem;
      line-height: 1.6;
       z-index: 2;
      flex-grow: 1;
    }

    /* Enhanced Iframes */
    iframe {
      width: 100%;
      height: 250px;
      border: none;
      border-radius: 12px;
      margin-top: 1rem;
      background: var(--light-bg);
      box-shadow: inset 0 2px 10px rgba(0,0,0,0.1);
      transition: all 0.3s ease;
      z-index: 2;
    }

    iframe:hover {
      box-shadow: inset 0 4px 20px rgba(0,0,0,0.15);
    }

    /* Enhanced WhatsApp Button */
    .whatsapp-button {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      width: 70px;
      height: 70px;
      background: linear-gradient(135deg, #25D366, #128C7E);
      border-radius: 50%;
      box-shadow: var(--shadow-soft);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 1000;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      animation: pulse 2s infinite;
    }

    .whatsapp-button:hover {
      transform: scale(1.15) rotate(5deg);
      box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    }

    .whatsapp-button svg {
      width: 35px;
      height: 35px;
      filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    }

    .whatsapp-tooltip {
      position: absolute;
      bottom: 85px;
      right: 0;
      background: rgba(51, 51, 51, 0.95);
      color: white;
      padding: 0.8rem 1.2rem;
      border-radius: 12px;
      font-size: 0.9rem;
      white-space: nowrap;
      opacity: 0;
      transform: translateY(10px);
      transition: all 0.3s ease;
      pointer-events: none;
      backdrop-filter: blur(10px);
    }

    .whatsapp-button:hover .whatsapp-tooltip {
      opacity: 1;
      transform: translateY(0);
    }

    @keyframes pulse {
      0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
      }
      70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
      }
      100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
      }
    }

    /* Responsive Design */
    @media (max-width: 768px) {
      nav {
        gap: 1rem;
        padding: 1rem;
      }

      .grid {
        grid-template-columns: 1fr;
        padding: 2rem 1rem;
        gap: 1.5rem;
      }

      section {
        padding: 1.5rem;
      }

      header {
        padding: 3rem 1rem;
        clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
      }

      .social-icons {
        gap: 1rem;
      }

      .social-icons a {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
      }

      .whatsapp-button {
        width: 60px;
        height: 60px;
        bottom: 1.5rem;
        right: 1.5rem;
      }
            .profile-image {
        width: 150px;
        height: 150px;
      }

      .profile-card h1 {
        font-size: 2rem;
      }
    }


    /* Loading animation for iframes */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    section {
      animation: fadeInUp 0.6s ease-out;
    }

    section:nth-child(even) {
      animation-delay: 0.1s;
    }

    section:nth-child(odd) {
      animation-delay: 0.2s;
    }

     /* Contact Page Styles */
    .contact-container {
      max-width: 800px;
      margin: 0 auto;
      padding: 3rem 2rem;
    }

    .contact-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      margin-top: 2rem;
    }

    .contact-info {
      background: white;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: var(--shadow-soft);
    }

    .contact-item {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
      padding: 1rem;
      border-radius: 10px;
      transition: background 0.3s ease;
    }

    .contact-item:hover {
      background: var(--light-bg);
    }

    .contact-icon {
      width: 50px;
      height: 50px;
      background: var(--gradient-primary);
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.2rem;
    }

    .contact-form {
      background: white;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: var(--shadow-soft);
    }

        .contact-success {
      background: #d4edda;
      color: #155724;
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      border: 1px solid #c3e6cb;
      display: none;
    }

    .contact-error {
      background: #f8d7da;
      color: #721c24;
      padding: 1rem;
      border-radius: 8px;
      margin-bottom: 1rem;
      border: 1px solid #f5c6cb;
      display: none;
    }

    .form-group {
      position: relative;
    }

    .loading {
      display: none;
      text-align: center;
      padding: 1rem;
    }

    .spinner {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #667eea;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 2s linear infinite;
      margin: 0 auto;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    .form-group {
      margin-bottom: 1.5rem;
    }

    .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      color: var(--text-dark);
      font-weight: 600;
    }

    .form-group input,
    .form-group textarea {
      width: 100%;
      padding: 0.8rem;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      font-size: 1rem;
      transition: border-color 0.3s ease;
    }

    .form-group input:focus,
    .form-group textarea:focus {
      outline: none;
      border-color: var(--primary-blue);
    }

    .form-group-dropdown select {
      /*width: 100%;
      padding: 0.8rem;
      border: 2px solid #e9ecef;
      border-radius: 8px;
      font-size: 1rem;
      transition: border-color 0.3s ease;
      background: white;
      appearance: none;
      -webkit-appearance: none;
      -moz-appearance: none;
      background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20viewBox%3D%220%200%204%205%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M2%200L0%202h4L2%200zm0%205l2-2H0l2%202z%22/%3E%3C/svg%3E');
      background-repeat: no-repeat;
      background-position: right 10px center;
      background-size: 10px;*/
      /* Match dropdowns to the input field style */
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 14px;
  color: #333;
  appearance: none; /* Removes default arrow styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path fill="%23333" d="M0 0l5 6 5-6z"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  cursor: pointer;
    }

/* Optional: Add hover/focus states for better UX */
select:hover, 
select:focus {
  border-color: #0078d4;
  box-shadow: 0 0 3px rgba(0, 120, 212, 0.3);
  outline: none;
    }
.dropdown-box {
  width: 70px;
  padding: 6px;
  border-radius: 5px;
  transform: translateX(10px);
  background-color: #d419ac;
}

    .submit-btn {
      background: var(--gradient-primary);
      color: white;
      border: none;
      padding: 1rem 2rem;
      border-radius: 25px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      width: 100%;
    }

    .submit-btn:hover {
      transform: translateY(-2px);
      box-shadow: var(--shadow-hover);
    }

     /* About Me Portfolio Styles */
    .portfolio-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 3rem 2rem;
    }

    .profile-card {
      text-align: center;
      margin-bottom: 3rem;
    }

    .profile-image {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      margin: 0 auto 2rem;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      padding: 5px;
      box-shadow: var(--shadow-hover);
      position: relative;
      overflow: hidden;
    }

    .profile-image img {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      border: 4px solid white;
    }

    .profile-card h1 {
      font-size: 2.5rem;
      color: var(--primary-blue);
      margin-bottom: 0.5rem;
    }

    .profile-card .title {
      font-size: 1.3rem;
      color: var(--text-light);
      margin-bottom: 1.5rem;
    }

    .skills-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 2rem;
      margin: 3rem 0;
    }

    .skill-category {
      background: white;
      padding: 2rem;
      border-radius: 15px;
      box-shadow: var(--shadow-soft);
      transition: transform 0.3s ease;
    }

    .skill-category:hover {
      transform: translateY(-5px);
    }

    .skill-category h3 {
      color: var(--primary-blue);
      margin-bottom: 1rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .skill-list {
      list-style: none;
    }

    .skill-list li {
      padding: 0.5rem 0;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .skill-level {
      width: 100px;
      height: 6px;
      background: #e9ecef;
      border-radius: 3px;
      overflow: hidden;
    }

    .skill-level-fill {
      height: 100%;
      background: var(--gradient-primary);
      border-radius: 3px;
    }

        /* Enhanced Footer */
    footer {
      background: var(--gradient-primary);
      color: white;
      text-align: center;
      padding: 3rem 2rem;
      margin-top: 4rem;
      clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    }

    .social-icons {
      display: flex;
      justify-content: center;
      gap: 2rem;
      margin: 1.5rem 0;
      flex-wrap: wrap;
    }

    .social-icons a {
      color: white;
      text-decoration: none;
      font-weight: 600;
      padding: 0.8rem 1.5rem;
      border: 2px solid rgba(255,255,255,0.3);
      border-radius: 25px;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .social-icons a:hover {
      background: rgba(255,255,255,0.2);
      border-color: var(--accent-gold);
      color: var(--accent-gold);
      transform: translateY(-3px);
    }
