* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', Arial, sans-serif;
    color: #b3b8c5;
    background: #0a0a0a;
    line-height: 1.6;
}

.mono { font-family: 'Fira Mono', 'Consolas', monospace; }
.text-primary { color: #00ff88; }
.text-white { color: #fff; }
.text-gray { color: #b3b8c5; }
.text-muted { color: #888; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.card {
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
    padding: 30px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    border-color: #00ff88;
}

.section-header {
    margin-bottom: 2.5rem;
}

.section-label {
    color: #00ff88;
    font-family: 'Fira Mono', monospace;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.2rem;
    font-family: 'Fira Mono', monospace;
    font-weight: bold;
    color: #fff;
    line-height: 1.1;
}

.tag {
    background: #333;
    color: #00ff88;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin: 4px;
}

.btn-primary {
    color: #00ff88;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: 1px solid #00ff88;
    padding: 12px 24px;
    border-radius: 8px;
    display: inline-block;
}

.btn-primary:hover {
    background: #00ff88;
    color: #0a0a0a;
}

header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1200px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 20px;
    z-index: 1000;
    border: 1px solid #00ff88;
    border-radius: 15px;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo a {
    color: #00ff88;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo span { color: #fff; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-links a:hover { color: #00ff88; }

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: color 0.3s;
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

.hero-section {
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.webgl-fluid-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.webgl-fluid-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
    mix-blend-mode: normal;
    isolation: isolate;
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
    align-items: center;
}

.profile-container {
    width: 320px;
    height: 320px;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    padding: 4px;
    margin: 0 auto;
}

.profile-image {
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.hero-text h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #00ff88, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.tech-icons {
    display: flex;
    gap: 15px;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.icon-tooltip {
    position: relative;
    display: inline-block;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    background: #181818;
    color: #00ff88;
    text-align: center;
    border-radius: 6px;
    padding: 6px 14px;
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.2s;
    border: 1px solid #222;
    font-size: 0.9rem;
    white-space: nowrap;
    z-index: 10;
}

.icon-tooltip:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.stats-section {
    padding: 60px 0;
    background: #111;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-item .icon {
    font-size: 2rem;
    color: #00ff88;
    margin-bottom: 10px;
}

.stat-item h3 {
    font-size: 3rem;
    color: #fff;
    margin-bottom: 0.2rem;
    font-family: 'Fira Mono', monospace;
}

.contact-info {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.contact-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #00ff88;
    flex-shrink: 0;
}

.contact-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    color: #00ff88;
    width: 20px;
    flex-shrink: 0;
}

.timeline-container {
    border-left: 2px solid #00ff88;
    position: relative;
}

.timeline-item {
    margin-bottom: 25px;
    position: relative;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    position: absolute;
    left: -6px;
    top: 2px;
}

.services-section {
    padding: 80px 0;
    background: #181818 !important;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #181818;
    z-index: -1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    text-align: center;
    position: relative;
    z-index: 1;
}

.service-card .icon {
    font-size: 2.1rem;
    color: #b3b8c5;
    margin-bottom: 18px;
}

.experience-section {
    padding: 80px 0;
}

.experience-content {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 60px;
}

.education-section {
    padding: 80px 0;
    background: #111;
}

.education-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.research-section {
    padding: 80px 0;
}

.projects-section {
    padding: 80px 0;
    background: #0a0a0a;
}

.projects-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.projects-grid {
    overflow: hidden;
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
}

.project-card {
    display: none;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: stretch;
    background: #1a1a1a;
    border-radius: 15px;
    padding: 30px;
    border: 1px solid #333;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateX(50px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 700px;
    box-sizing: border-box;
}

.project-card.active {
    display: grid;
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.project-card.slide-out-left {
    transform: translateX(-50px);
    opacity: 0;
}

.project-card.slide-out-right {
    transform: translateX(50px);
    opacity: 0;
}

.project-image {
    width: 100%;
    height: 100%;
    min-width: 350px;
    max-height: 700px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    flex-shrink: 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.project-placeholder {
    color: #666;
    font-size: 4rem;
    text-align: center;
}

.project-details {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 700px;
    overflow: hidden;
    padding: 0;
}

.project-details h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.project-details p {
    margin-bottom: 20px;
    line-height: 1.6;
    flex: 1 1 auto;
    overflow: hidden;
    min-height: 100px;
    max-height: 160px;
}

.project-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 20px 0;
    padding: 20px;
    background: #0f0f0f;
    border-radius: 8px;
    border: 1px solid #222;
    flex-shrink: 0;
    min-height: 120px;
}

.project-info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #222;
}

.project-info-item:last-child {
    border-bottom: none;
}

.project-info-label {
    color: #888;
    font-size: 0.9rem;
}

.project-info-value {
    color: #00ff88;
    font-weight: 500;
}

.project-details > div[style*="margin:20px 0"] {
    flex-shrink: 0;
    min-height: 50px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
}

.project-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
    flex-shrink: 0;
    min-height: 50px;
    align-items: flex-start;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 255, 136, 0.1);
    border: 2px solid #00ff88;
    color: #00ff88;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    background: rgba(0, 255, 136, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: -70px;
}

.carousel-next {
    right: -70px;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.indicator:hover {
    background: rgba(0, 255, 136, 0.5);
}

.skills-section {
    padding: 80px 0;
    background: #111;
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 40px;
    padding: 48px 30px;
    background: #1a1a1a;
    border-radius: 15px;
    border: 1px solid #333;
    justify-content: center;
    align-items: center;
}

.skills-grid i {
    font-size: 3rem;
    transition: transform 0.3s;
}

.skills-grid i:hover {
    transform: scale(1.1);
}

.skills-description ul {
    list-style: none;
    padding: 0;
}

.skills-description li {
    margin-bottom: 18px;
    padding-left: 20px;
    position: relative;
}

.skills-description li::before {
    content: '\25b6';
    color: #00ff88;
    position: absolute;
    left: 0;
}

footer {
    background: #0a0a0a;
    padding: 60px 0 30px;
    text-align: center;
    border-top: 1px solid #333;
}

footer .nav-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

footer .social-icons {
    justify-content: center;
    margin-bottom: 30px;
}

footer .social-icons a {
    font-size: 1.8rem;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover { color: #00ff88; }

@media (max-width: 768px) {
  header, nav, .nav-links, .mobile-menu-toggle { display: none !important; }

  .container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
  }

  .hero-content {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    text-align: center;
  }
  
  .profile-container {
    width: 180px;
    height: 180px;
    margin: 0 auto 18px auto;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .tech-icons {
    justify-content: center;
  }

  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center !important;
    justify-items: center !important;
    align-items: center !important;
  }

  .projects-section {
    padding: 60px 0;
  }

  .projects-carousel {
    position: relative;
    padding: 0 50px;
  }

  .projects-grid {
    height: auto !important;
    min-height: auto;
    position: relative;
  }
  
  .project-card {
    display: none;
    grid-template-columns: 1fr !important;
    gap: 25px !important;
    padding: 20px !important;
    height: auto !important;
    min-height: auto;
    position: relative;
    text-align: center;
  }

  .project-card.active {
    display: block !important;
  }
  
  .project-image {
    width: 100% !important;
    min-width: auto !important;
    height: 200px !important;
    max-height: 200px !important;
    margin-bottom: 20px;
    border-radius: 12px;
  }

  .project-details {
    height: auto !important;
    max-height: none !important;
    text-align: center;
  }

  .project-details h3 {
    font-size: 1.3rem !important;
    margin-bottom: 15px;
    text-align: center;
  }

  .project-details p {
    max-height: none !important;
    min-height: auto !important;
    margin-bottom: 20px;
    text-align: center;
  }

  .project-info-grid {
    margin: 20px 0;
    padding: 15px;
    min-height: auto;
  }

  .project-info-item {
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 5px;
    padding: 10px 0;
  }

  .project-links {
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
  }

  .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    text-align: center;
  }

  .carousel-arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    background: rgba(0, 255, 136, 0.25);
    border-width: 2px;
    z-index: 20;
  }
  
  .carousel-prev {
    left: -8px !important;
  }
  
  .carousel-next {
    right: -8px !important;
  }

  .carousel-indicators {
    margin-top: 30px;
    gap: 10px;
  }

  .indicator {
    width: 10px;
    height: 10px;
  }

  .skills-content {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  .skills-grid {
    flex-wrap: wrap;
    gap: 18px 10px;
    padding: 24px 15px;
    justify-content: center;
    order: 1;
  }
  
  .skills-grid i {
    font-size: 2.1rem;
  }

  .skills-description {
    min-width: auto !important;
    max-width: 100% !important;
    width: 100% !important;
    order: 2;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  .skills-section {
    padding: 60px 0 !important;
    background: #111;
  }

  .skills-description.card {
    padding: 20px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .section-title {
    font-size: 1.8rem;
    text-align: center;
  }

  .section-label {
    font-size: 1rem;
    text-align: center;
  }

  .card {
    padding: 20px;
    margin-bottom: 20px;
  }

  .tag {
    padding: 5px 12px;
    font-size: 0.8rem;
    margin: 3px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .skills-content {
    gap: 15px !important;
  }

  .skills-grid {
    padding: 20px 10px !important;
    gap: 15px 8px !important;
  }

  .skills-description.card {
    padding: 15px !important;
  }

  .skills-description li {
    margin-bottom: 15px !important;
    font-size: 0.9rem;
  }

  .projects-carousel {
    padding: 0 35px;
  }

  .project-card {
    padding: 15px !important;
  }

  .project-image {
    height: 150px !important;
  }

  .project-details h3 {
    font-size: 1.2rem !important;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .carousel-arrow {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
}