/* * --- Global Resets & Base Styles (Taken from the first block) --- 
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background: #fdfdfd;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

/* * --- Main Content Sections (Hero, Section, Cards) --- 
 */
section {
    padding: 40px 20px;
}

h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #ff5722; /* Retained color from the first block */
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px; /* Detailed margin from second block */
    color: #333; /* Overwritten by general h2 style from second block, but main sections use #ff5722 */
}
/* Re-applying the desired h2 color based on context */
section h2 {
    color: #ff5722;
}
.top-skills-heading {
    color: #ff5722;
}


/* Hero Section (Retained specific colors and structure from the first block for visual identity) */
.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(to right, #ff9800, #ff5722);
    color: #fff;
    padding: 80px 20px; /* Enhanced padding from second block */
}

.hero h1 {
    font-size: 2em;
    margin-bottom: 15px;
    font-size: 36px; /* Detailed font size from second block */
}

.hero p {
    margin-bottom: 25px;
    font-size: 1.1em;
    font-size: 18px;
    margin-bottom: 30px;
}

.hero a {
    display: inline-block;
    padding: 12px 25px;
    background: #fff;
    color: #ff5722;
    font-weight: bold;
    border-radius: 25px;
    text-decoration: none;
    transition: .3s;
    border-radius: 5px; /* Changed from 25px to 5px based on the second block's appearance */
    background-color: #e74c3c; /* Overwriting white background with red-orange */
    color: white;
}

.hero a:hover {
    background: #ffe0b2;
    background-color: #c0392b;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Min size from first block */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Overwritten by second block's min size */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: .3s;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Slightly different shadow */
    text-align: center;
    font-size: 16px;
    color: #555;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* Detailed hover shadow */
}

/* About Section */
.about-text {
    text-align: center;
    color: #666;
    font-size: 16px;
}


/* * --- Header, Sidebar & Navigation (Taken primarily from the second, more detailed block) --- 
 */

/* Header */
.header {
    width: 100%;
    background: #1a1a1a; /* Dark background */
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed; /* Use fixed for proper overlay */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
}

.syist {
    font-size: 26px; /* Larger font size */
    font-weight: bold;
    color: #ff5722;
}

.search-icon {
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
}

/* Search Container */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    justify-content: center;
    align-items: flex-start;
    padding-top: 50px;
    z-index: 1010;
}

.search-input {
    width: 80%;
    max-width: 500px;
    padding: 15px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    outline: none;
}

.search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -260px; /* Hidden position */
    width: 250px; /* Wider sidebar */
    height: 100%;
    background-color: #2c3e50;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    transition: left 0.3s ease;
    z-index: 1005;
    overflow-y: auto;
    padding-top: 60px;
}

.side-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.menu-item {
    padding: 15px 20px;
    color: white;
    border-bottom: 1px solid #34495e;
    cursor: pointer;
    line-height: 1.3;
    transition: background-color 0.2s;
}

.menu-item:hover {
    background-color: #34495e;
}

/* Submenu Styling */
.submenu-box {
    position: fixed;
    top: 0;
    left: -500px;
    width: 250px; /* Wider submenu */
    height: 100%;
    background-color: #ecf0f1;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.3);
    padding: 60px 0 20px 0;
    transition: left 0.3s ease;
    z-index: 1006;
    display: none;
    overflow-y: auto;
}

.submenu-box a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #bdc3c7;
    transition: background-color 0.2s;
}

.submenu-box a:hover {
    background-color: #bdc3c7;
}

.submenu-box div {
    font-weight: bold;
    padding: 15px 20px;
    color: white; /* Base color for submenu headings */
    margin-bottom: 5px;
}

/* Submenu Color Blocks (Kept the colors from the second block) */
.top-blue { background-color: #3498db; }
.red { background-color: #e74c3c; }
.green { background-color: #2ecc71; }
.orange { background-color: #f39c12; }
.blue { background-color: #3498db; }
.yellow { background-color: #f1c40f; }


/* * --- Marquee Section --- 
 */
.marquee {
    margin: 40px 0; /* Margin from first block */
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #1e1e2f, #3f3d56); /* Background from first block */
    padding: 20px 0;
    background-color: #ecf0f1; /* Overwriting linear gradient with a solid color from second block */
    padding: 15px 0; /* Smaller padding */
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: scroll 25s linear infinite; /* Animation duration from first block */
    display: flex; /* Display from first block */
    gap: 25px; /* Gap from first block */
    animation: marquee-slide 15s linear infinite; /* Overwritten by 15s animation from second block */
    padding-left: 100%;
}

@keyframes marquee-slide { /* Keeping the second block's animation name and keyframes */
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.circle {
    min-width: 60px; /* Smaller width from second block */
    height: 60px; /* Smaller height from second block */
    border-radius: 50%;
    background: #3498db; /* Blue background from second block */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: .9em;
    font-weight: bold;
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    margin: 0 15px; /* Margin from second block */
}


/* * --- Skill Card Specific Styles (Retained structure from second block) --- 
 */
.top-skills-section {
    padding: 40px 10px;
}

.skill-box-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
    padding-bottom: 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab; 
}

.skill-card {
    flex: 0 0 80%;
    max-width: 80%;
    background: #fff;
    padding: 25px 20px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    scroll-snap-align: center;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid #eee;
}

.skill-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.skill-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #222;
}

.skill-description {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.5;
}

/* Skill Card Media Queries */
@media (min-width: 600px) {
    .skill-card {
        flex: 0 0 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (min-width: 900px) {
    .skill-card {
        flex: 0 0 calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
    }
}

@media (min-width: 1200px) {
    .skill-card {
        flex: 0 0 calc(25% - 15px);
        max-width: calc(25% - 15px);
    }
}

/* * --- Footer & Social --- 
 */
footer {
    background: #1e1e2f;
    color: #fff;
    text-align: center;
    padding: 30px;
    margin-top: auto;
    background: #0066ff; /* Overwritten by social-footer-container background */
    padding-top: 10px; /* Adjusted padding from second block */
    padding-bottom: 10px; /* Added padding from second block */
}

.social-footer-container {
    background: dimgray; /* Blue background for the entire social/footer area */
    padding-bottom: 10px;
    text-align: center;
    color: white;
}

.contact-info {
    margin-bottom: 20px;
    font-size: 20px;
    padding: 20px 10px 0;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info span {
    margin-right: 40px;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    padding: 10px;
}

.social-icons-container svg {
    fill: white;
    transition: fill 0.2s;
}

.social-icons-container a:hover svg {
    fill: #f1c40f;
}

footer p {
    margin: 5px 0;
    font-size: 14px;
}

footer a {
    color: white;
    text-decoration: underline;
    color: #ff9800; /* Orange links from the first block */
    margin: 0 10px;
}

/* Specific footer link style adjustment */
.social-footer-container footer a {
    color: white; /* Maintain white color for links in the blue social block */
}
.social-footer-container footer a:hover {
    text-decoration: underline;
}

/* *{margin:0;padding:0;box-sizing:border-box;font-family:Arial, sans-serif;
      
    }

    body{
      background:#fdfdfd;color:#333;line-height:1.6;
      
      margin: 0;
    }


    .hero {
      text-align:center;
      padding:60px 20px;
      background:linear-gradient(to right,#ff9800,#ff5722);
      color:#fff;
    }
    .hero h1{font-size:2em;margin-bottom:15px;}
    .hero p{margin-bottom:25px;font-size:1.1em;}
    .hero a{
      display:inline-block;padding:12px 25px;
      background:#fff;color:#ff5722;font-weight:bold;
      border-radius:25px;text-decoration:none;transition:.3s;
    }
    .hero a:hover{background:#ffe0b2;}

    
    section {padding:40px 20px;}
    h2 {margin-bottom:20px;text-align:center;color:#ff5722;}

    
    .card-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px;}
    .card {
      background:#fff;padding:20px;border-radius:10px;
      box-shadow:0 4px 15px rgba(0,0,0,0.1);
      transition:.3s;
    }
    .card:hover {transform:translateY(-5px);}

    
    .marquee {
      margin:40px 0;overflow:hidden;position:relative;
      background:linear-gradient(135deg,#1e1e2f,#3f3d56);
      padding:20px 0;
    }
    .marquee-content {display:flex;gap:25px;animation:scroll 25s linear infinite;}
    @keyframes scroll{0%{transform:translateX(100%);}100%{transform:translateX(-100%);}}
    .circle {
      min-width:80px;height:80px;border-radius:50%;
      background:#ff9800;display:flex;justify-content:center;align-items:center;
      font-size:.9em;font-weight:bold;color:#fff;
      box-shadow:0 4px 10px rgba(0,0,0,0.2);flex-shrink:0;
    }

    
    footer {
    background:#1e1e2f;
    color:#fff;
    text-align:center;
    padding:30px;
    margin-top: auto;
}
    footer a{color:#ff9800;text-decoration:none;margin:0 10px;}

    
    .header {
  width: 100%;
  background: #111;
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0; 
  z-index: 1000;
}
.syist {
  font-size: 20px;
  font-weight: bold;
  letter-spacing: 1px;
  margin-left: 10px; 
}

.search-icon {
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
  margin-right: 16px; 
}


.search-container {
  position: absolute;
  left: 0;
  top: 0; 
  width: 100%;
  height: 100%;
  background: #111;
  display: none;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

.search-input {
  width: 100%;
  padding: 10px;
  font-size: 17px;
  border: none;
  outline: none;
  border-radius: 6px;
}


.search-close {
  font-size: 26px;
  cursor: pointer;
  color: white;
}


.hamburger {
  font-size: 23px;
  cursor: pointer;
}


.sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 150px;
  height: 100vh; 
  background: #222;
  color: white;
  overflow-y: auto; 
  transition: 0.3s;
  padding-top: 60px; 
  z-index: 999;
}


.side-close {
  position: absolute;
  right: 10px;
  top: 12px;
  font-size: 30px;
  cursor: pointer;
  color: #ff4444;
}


.menu-item {
  padding: 15px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  position: relative;
}

.menu-item:hover {
    background: #333;
}
.submenu-box {
  position: fixed;
  top: 0; 
  left: -500px; 
  width: 150px; 
  height: 100vh; 
  background: #333;
  transition: left 0.3s; 
  z-index: 998; 
  display: none; 
  overflow-y: auto;
  padding-top: 20px;
}

.submenu-box a {
  display: block;
  padding: 8px 15px;
  text-decoration: none;
  color: #ddd;
}

.submenu-box a:hover {
  background: #444;
}


.top-blue, .red, .green, .orange, .blue, .yellow { 
    font-weight: bold; 
    padding: 6px 12px; 
    margin-top: 10px;
}
.top-blue { color: #00bcd4; }
.red { color: #f44336; }
.green { color: #4caf50; }
.orange { color: #ff9800; }
.blue { color: #2196f3; }
.yellow { color: #ffeb3b; }

/* MAIN CONTENT AREA STYLING (For body scrolling) */
