:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111;
    --bg-card: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #999;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --border: #333;
    --shadow: rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    background: transparent;
    color: #ffffff;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s, color 0.3s;
    position: relative;
    font-weight: 400;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: -1;
    transition: background 0.5s ease;
    pointer-events: none;
}

[data-theme="dark"] body::before {
    background: rgba(0, 0, 0, 0);
}

[data-theme="dark"] body {
    color: #e0e0e0;
}

.logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    font-size: clamp(3rem, 10vw, 5.5rem);
    font-weight: 800;
    color: #000000;
    background: rgba(128, 128, 128, 0.4);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 15px;
    letter-spacing: -0.02em;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
}

.menu-btn {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.4s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
}

.menu-btn span {
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    transition: all 0.4s ease;
    pointer-events: none;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.menu-btn:hover span {
    background: rgba(255, 255, 255, 1);
}

#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border: none;
    filter: brightness(1.2) contrast(1.1);
    transition: filter 0.5s ease;
}

[data-theme="dark"] #canvas3d {
    filter: brightness(0.6) contrast(1.3) grayscale(0.2);
}

#canvas3d + div[style*="position: absolute"] {
    display: none !important;
}

canvas + div {
    display: none !important;
}

.dropdown-menu {
    position: fixed;
    top: -100%;
    right: 2rem;
    width: 150px;
    max-height: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    z-index: 9999;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    overflow: hidden;
}

.dropdown-menu.active {
    top: 5rem;
    max-height: 400px;
    animation: fallDown 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes fallDown {
    0% {
        top: -100%;
        opacity: 0;
        transform: translateY(-20px) rotateX(-15deg);
    }
    60% {
        transform: translateY(10px) rotateX(5deg);
        opacity: 0.9;
    }
    100% {
        top: 5rem;
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}



.nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 1.2rem;
    padding: 5rem 1rem 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    pointer-events: auto;
}

.nav-links a:hover {
    color: #667eea;
    transform: translateX(10px);
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    cursor: pointer;
    font-size: 1.3rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem 1.5rem;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    pointer-events: none;
}

.hero-content * {
    pointer-events: auto;
}



.hero-content h1 {
    font-size: clamp(3rem, 10vw, 5.5rem);
    margin-bottom: 1rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: clamp(1.2rem, 4vw, 1.8rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.cta-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
}

.cta-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

section {
    padding: 5rem 1.5rem;
    background: transparent;
    position: relative;
    z-index: 1;
    pointer-events: none;
}

section * {
    pointer-events: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    pointer-events: none;
}

.container * {
    pointer-events: auto;
}

h2 {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.01em;
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.about-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent);
    flex-shrink: 0;
    transition: transform 0.3s;
    box-shadow: 0 10px 30px var(--shadow);
}

.about-img:hover {
    transform: scale(1.05);
}



.about-text {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
}

.about-text p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1.1rem, 2.5vw, 1.25rem);
    line-height: 1.9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.skill-card:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

.skill-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.skill-card p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.05rem;
}

.coming-soon {
    text-align: center;
    padding: 4rem 2rem;
}

.coming-soon .blink {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: #ffffff;
    font-weight: 600;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    animation: softBlink 3s ease-in-out infinite;
}

@keyframes softBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s;
    box-shadow: 0 4px 15px var(--shadow);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.project-card:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 8px 25px var(--shadow);
    border-color: var(--accent);
}

.project-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.project-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.project-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.project-link:hover {
    transform: translateX(5px);
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-btn {
    padding: 1rem 2rem;
    background: var(--bg-card);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s;
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    box-shadow: 0 4px 15px var(--shadow);
}

.contact-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow);
}

footer {
    text-align: center;
    padding: 2rem 1rem;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
    pointer-events: none;
}

footer * {
    pointer-events: auto;
}

@media (max-width: 768px) {
    .about-img {
        width: 180px;
        height: 180px;
    }
    
    .nav-container {
        padding: 0.8rem 1rem;
    }
    
    .logo {
        font-size: 1.2rem;
        top: 1rem;
        left: 1rem;
        padding: 0.3rem 1rem;
    }
    
    .menu-btn {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
        z-index: 10001;
    }
    
    .menu-btn span {
        width: 22px;
    }
    
    .dropdown-menu {
        width: 250px;
        right: 1rem;
    }
    
    .nav-links {
        padding: 6rem 2rem 2rem;
        gap: 2rem;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }
    
    .nav-right {
        gap: 0.8rem;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 60px;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: calc(100vh - 60px);
        background: var(--bg-primary);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        box-shadow: -2px 0 10px var(--shadow);
        transition: right 0.3s ease;
        border-left: 1px solid var(--border);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        font-size: 1rem;
        border-bottom: 1px solid var(--border);
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    section {
        padding: 3rem 1rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-img {
        width: 180px;
        height: 180px;
    }
    
    .skills-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .skills-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Project Cards Styling */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
  border-color: var(--accent);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-header h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.3rem;
}

.project-link {
  font-size: 1.5rem;
  color: var(--accent);
  text-decoration: none;
  transition: transform 0.3s ease;
}

.project-link:hover {
  transform: translateX(5px);
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-secondary);
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--accent);
}
