/* style.css — copied from your single page (no changes to visuals) */
* { margin:0; padding:0; box-sizing:border-box; font-family:"Poppins",sans-serif; scroll-behavior:smooth;}
body { background:#0a0a0a; color:#fff; overflow-x:hidden;}

/* 3D Background Effect */
.background-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: radial-gradient(circle at 20% 80%, rgba(157, 78, 221, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(255, 0, 110, 0.1) 0%, transparent 50%);
}

header { 
  display: flex;
  align-items: center;
  padding: 20px 5%; 
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.8), rgba(157, 78, 221, 0.8), rgba(255, 0, 110, 0.8));
  position: relative;
  overflow: hidden;
  min-height: 180px;
}

header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

header img { 
  width:120px; 
  animation: float 6s ease-in-out infinite, spin 15s linear infinite; 
  filter: drop-shadow(0 0 15px rgba(255, 183, 3, 0.7));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotateY(0deg); }
  50% { transform: translateY(-10px) rotateY(180deg); }
}

@keyframes spin { 
  from{transform:rotateY(0deg);} 
  to{transform:rotateY(360deg);} 
}

.header-text {
  text-align: center;
  flex: 1;
  padding: 0 40px;
}

header h1{ 
  font-size:2.8em; 
  margin-bottom:10px;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.7);
  background: linear-gradient(90deg, #ff006e, #9d4edd, #00b4d8, #ffb703);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 5s ease infinite;
  background-size: 400% 400%;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header h3{ 
  font-weight:300; 
  font-size:1.3em; 
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 15px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(255, 183, 3, 0.3);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.2);
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 0.9em;
  color: rgba(255, 255, 255, 0.9);
}

.contact-item i {
  font-size: 1.1em;
  color: #ffb703;
  width: 20px;
  text-align: center;
}

.contact-item a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.contact-item a:hover {
  color: #ffb703;
  text-shadow: 0 0 5px rgba(255, 183, 3, 0.7);
}

nav{ 
  display:flex; 
  justify-content:center; 
  gap:20px; 
  background:rgba(0,0,0,0.8); 
  padding:15px; 
  position:sticky; 
  top:0; 
  z-index:10;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 183, 3, 0.3);
}

nav a{ 
  color:#00b4d8; 
  text-decoration:none; 
  font-weight:600; 
  transition:0.3s;
  padding: 8px 15px;
  border-radius: 25px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 5px;
}

nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 183, 3, 0.3), transparent);
  transition: 0.5s;
}

nav a:hover::before {
  left: 100%;
}

nav a:hover{ 
  color:#ffb703;
  background: rgba(255, 183, 3, 0.1);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.5);
}

nav a.active {
  color:#ffb703;
  background: rgba(255, 183, 3, 0.1);
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
}

section{ 
  padding:50px 10%; 
  min-height:80vh; 
  transition:all 0.5s;
  position: relative;
  overflow: hidden;
}

h2{ 
  font-size:2.5em; 
  color:#ffb703; 
  margin-bottom:30px; 
  border-left:5px solid #00b4d8; 
  padding-left:15px;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
  transform: perspective(500px) rotateX(10deg);
  transition: transform 0.5s;
}

h2:hover {
  transform: perspective(500px) rotateX(0deg);
}

.grid{ 
  display:grid; 
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); 
  gap:20px;
}

.card{ 
  background: rgba(0,0,0,0.5); 
  padding:25px; 
  border-radius:15px; 
  text-align:center; 
  transition:0.5s; 
  cursor:pointer; 
  box-shadow:0 0 15px rgba(0,180,216,0.3);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateY(0deg);
  border: 1px solid rgba(255, 183, 3, 0.2);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(157, 78, 221, 0.2), rgba(255, 0, 110, 0.2));
  opacity: 0;
  transition: 0.5s;
  z-index: -1;
}

.card:hover{ 
  transform: perspective(1000px) rotateY(10deg) scale(1.05); 
  box-shadow:0 0 25px rgba(255,183,3,0.7);
  z-index: 2;
}

.card:hover::before {
  opacity: 1;
}

.card-content {
  position: relative;
  z-index: 1;
}

.card-icon {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}

.pagination{ 
  text-align:center; 
  margin-top:30px;
}

.pagination button{ 
  margin:5px; 
  padding:10px 18px; 
  border:none; 
  border-radius:8px; 
  cursor:pointer; 
  background:linear-gradient(135deg, #00b4d8, #9d4edd);
  color:#fff; 
  font-weight:bold; 
  transition:0.3s;
  transform: perspective(500px) rotateX(5deg);
}

.pagination button:hover{ 
  background:linear-gradient(135deg, #ffb703, #ff006e);
  transform: perspective(500px) rotateX(0deg) scale(1.1);
  box-shadow: 0 5px 15px rgba(255, 183, 3, 0.5);
}

.pagination button.active {
  background:linear-gradient(135deg, #ffb703, #ff006e);
  box-shadow: 0 0 15px rgba(255, 183, 3, 0.7);
}

form{ 
  max-width:500px; 
  margin:0 auto; 
  display:flex; 
  flex-direction:column;
  background: rgba(0,0,0,0.5);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.5s;
}

form:hover {
  transform: perspective(1000px) rotateX(0deg);
}

input,textarea{ 
  padding:12px 18px; 
  margin-bottom:20px; 
  border:none; 
  border-radius:8px; 
  background:rgba(255,255,255,0.1); 
  color:#fff; 
  font-size:1em;
  transition: 0.3s;
  border: 1px solid transparent;
}

input:focus, textarea:focus {
  outline: none;
  border: 1px solid #ffb703;
  box-shadow: 0 0 10px rgba(255, 183, 3, 0.5);
  background: rgba(255,255,255,0.15);
}

button{ 
  background:linear-gradient(90deg,#00b4d8,#ff006e); 
  color:white; 
  border:none; 
  padding:15px; 
  border-radius:25px; 
  font-weight:bold; 
  cursor:pointer; 
  transition:0.3s;
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover{ 
  transform:scale(1.05); 
  box-shadow:0 0 20px rgba(255,183,3,0.7);
}

footer{
  text-align:center; 
  background:rgba(0,0,0,0.8); 
  padding:25px; 
  color:#aaa;
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 183, 3, 0.3);
}

footer a{
  color:#00b4d8; 
  text-decoration:none;
  transition: 0.3s;
}

footer a:hover{
  color:#ffb703;
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.7);
}

/* 3D Floating Elements */
.floating-elements {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: -1;
}

.floating-element {
  position: absolute;
  width: 40px;
  height: 40px;
  background: rgba(255, 183, 3, 0.1);
  border-radius: 50%;
  animation: float-around 20s infinite linear;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.3);
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  background: rgba(0, 180, 216, 0.1);
}

.floating-element:nth-child(2) {
  top: 60%;
  left: 80%;
  animation-delay: -5s;
  background: rgba(157, 78, 221, 0.1);
}

.floating-element:nth-child(3) {
  top: 80%;
  left: 20%;
  animation-delay: -10s;
  background: rgba(255, 0, 110, 0.1);
}

.floating-element:nth-child(4) {
  top: 40%;
  left: 70%;
  animation-delay: -15s;
  background: rgba(255, 183, 3, 0.1);
}

@keyframes float-around {
  0% {
    transform: translate(0, 0) rotate(0deg) scale(1);
  }
  25% {
    transform: translate(100px, 100px) rotate(90deg) scale(1.2);
  }
  50% {
    transform: translate(200px, 0) rotate(180deg) scale(1);
  }
  75% {
    transform: translate(100px, -100px) rotate(270deg) scale(0.8);
  }
  100% {
    transform: translate(0, 0) rotate(360deg) scale(1);
  }
}

/* Section-specific backgrounds */
#about {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

#software-section {
  background: linear-gradient(135deg, #0f3460, #1a1a2e);
}

#hardware-section {
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
}

#contact {
  background: linear-gradient(135deg, #222831, #393e46);
}

/* Home Button Styles */
.home-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00b4d8, #ff006e);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 0 20px rgba(255, 183, 3, 0.7);
  transition: all 0.3s ease;
  transform: perspective(500px) rotateY(0deg);
}

.home-btn:hover {
  transform: perspective(500px) rotateY(15deg) scale(1.1);
  box-shadow: 0 0 30px rgba(255, 183, 3, 0.9);
}

/* Contact Section Styles */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-details {
  flex: 1;
  min-width: 300px;
  background: rgba(0,0,0,0.5);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 180, 216, 0.3);
}

.contact-details h3 {
  color: #ffb703;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.contact-details .contact-item {
  margin-bottom: 20px;
  font-size: 1.1em;
  justify-content: flex-start;
}

.contact-details .contact-item i {
  font-size: 1.3em;
  margin-right: 15px;
  width: 25px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .logo-container {
    margin-bottom: 20px;
  }
  
  .header-text {
    padding: 0;
    margin-bottom: 20px;
  }
  
  .contact-info {
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
  }
  
  .contact-item {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px;
  }
  
  header h1 {
    font-size: 2.2em;
  }
  
  nav {
    flex-wrap: wrap;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  h2 {
    font-size: 2em;
  }
  
  .home-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
  
  .contact-container {
    flex-direction: column;
  }
  
  .contact-info {
    padding: 10px;
  }
  
  .contact-item {
    font-size: 0.85em;
  }
}
