/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Dark Theme Colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #1a1a2e;
    --bg-tertiary: #16213e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-accent: #64ffda;
    --accent-primary: #64ffda;
    --accent-secondary: #bb86fc;
    --accent-gradient: linear-gradient(135deg, #64ffda 0%, #bb86fc 100%);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Typography */
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-padding: 0 2rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(100, 255, 218, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(187, 134, 252, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(100, 255, 218, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 4rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 400;
}

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

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

#hero-canvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(50px);
}

.title-line {
    display: block;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    border: 1px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.3);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.scroll-line {
    width: 1px;
    height: 30px;
    background: var(--accent-primary);
    animation: scrollPulse 2s infinite;
}

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

/* About Section */
.about {
    padding: var(--section-padding);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    opacity: 0;
    transform: translateX(-50px);
}

.about-description {
    font-size: 1rem;
    color: whitesmoke;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-description p {
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--accent-primary);
    font-weight: 600;
}

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

.skill-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.skill-item:hover {
    transform: translateY(-2px);
    border-color: var(--accent-primary);
}

.skill-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.about-visual {
    flex: 0 0 420px;
    display: flex;
    justify-content: center;
}

.about-grid-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr; 
    gap: 1.5rem;
}

.left-column {
    display: grid;
    gap: 1.5rem;
}

.intro-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.intro-text {
    flex: 1;
}
.intro-avatar {
    flex-shrink: 0; 
}
.intro-avatar img {
    width: 150px; 
    height: auto;
}

.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr; 
    gap: 1.5rem;
}

.right-column .tech-stack-box {
    height: 100%; 
}

@media (max-width: 1024px) {
    .about-grid-asymmetric {
        grid-template-columns: 1fr; 
    }
}

@media (max-width: 600px) {
    .bottom-row, .intro-box {
        grid-template-columns: 1fr; 
        flex-direction: column; 
    }
}
.grid-box {
    position: relative; 
    overflow: hidden;  
    padding: 2rem;
    border-radius: 15px;
    background: rgba(40, 40, 60, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    background-image: radial-gradient(circle at center, transparent, transparent);
    transition: transform 0.3s ease, background-image 0.2s ease-out;
}

.grid-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px);
    background-size: 10px 10px; 
    
    z-index: -1; 
}

.grid-box:hover {
    transform: translateY(-5px);
    background-image: radial-gradient(
        circle at var(--mouse-x) var(--mouse-y),
        rgba(100, 255, 218, 0.15),
        transparent 250px
    );
}

.bg-logo {
    position: absolute; 
    opacity: 0.25; 
    user-select: none;
    transform: none; 
}



/* -- Top Row -- */
.bg-logo:nth-child(1) {
    top: 59%;
    left: 10%;
    width: 75px;
}

.bg-logo:nth-child(2) {
    top: 60%;
    left: 50%;
    transform: translateX(-50%); 
    width: 55px;
}

.bg-logo:nth-child(3) {
    top: 59%;
    right: 8%;
    width: 100px;
}

/* -- Bottom Row -- */
.bg-logo:nth-child(4) {
    bottom: 10%;
    left: 10%;
    width: 60px;
}

.bg-logo:nth-child(5) {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
}

.bg-logo:nth-child(6) {
    bottom: 10%;
    right: 10%;
    width: 70px;
}
.grid-box h3 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.5rem;
}

.grid-box p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.contact-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-primary);
    color: #0a0a0f;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-button:hover {
    background-color: #fff;
}
@media (max-width: 768px) {
    .bg-logo {
        width: 55px;
    }
 
    .bg-logo:nth-child(1) {
        top: 20%;
        left: 10%;;
    }
    .bg-logo:nth-child(2) { 
        top: 20%;
        left: 50%;
    }
    .bg-logo:nth-child(3) { 
        top: 20%;
        right: 10%;;
    }

   
    .bg-logo:nth-child(4) { 
        top: 60%;
        left: 15%;
    }
    .bg-logo:nth-child(5) { 
        top: 60%;
        left: 50%;
    }
    .bg-logo:nth-child(6) { 
        top: 60%;
        right: 10%;
    }
}
/* Services Section */
.services {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.02) 0%, rgba(187, 134, 252, 0.02) 100%);
}

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

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    background: rgba(25, 25, 40, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);


    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(0, 0, 0, 0.2) 10px,
        rgba(0, 0, 0, 0.2) 12px
    );
}


.interactive-glow:hover {
    background-image:
        radial-gradient(
            circle at var(--mouse-x) var(--mouse-y),
            rgba(100, 255, 218, 0.15), 
            transparent 250px 
        ),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.2) 10px,
            rgba(0, 0, 0, 0.2) 12px
        );
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(100, 255, 218, 0.1);
    border-radius: 16px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: rgba(100, 255, 218, 0.1);
    color: var(--accent-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(100, 255, 218, 0.2);
}

/* Projects Section */
.projects {
    padding: var(--section-padding);
}

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

.project-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(50px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

.project-image {
    margin-bottom: 1.5rem;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.project-preview {
    height: 200px;
    position: relative;
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 16px;
  background: #0cc8197d;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.project-link:hover {
  background: #07f767c5;
}

.preview-header {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-dots {
    display: flex;
    gap: 0.5rem;
}

.preview-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.preview-content {
    height: calc(100% - 40px);
    padding: 1rem;
}

.project-video {
  width: 100%;
  height: 220px;       
  object-fit: contain; 
  object-position: center;
  display: block;
  background: #000;    
  border-radius: 12px; 
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

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

.project-tech span {
    background: rgba(187, 134, 252, 0.1);
    color: var(--accent-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid rgba(187, 134, 252, 0.2);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: linear-gradient(135deg, rgba(100, 255, 218, 0.02) 0%, rgba(187, 134, 252, 0.02) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info {
    opacity: 0;
    transform: translateX(-50px);
}

.contact-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-icon {
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links {
    display: flex;
    justify-content: center; 
    gap: 1rem;
    margin-top: 0.6rem;
}

.social-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: rgba(40, 40, 60, 0.4);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.social-link:hover {
    background: whitesmoke;
    transform: translateY(-3px);
}


.social-link img {
    width: 60px;
    height: 40px;
    flex-shrink: 0;
    filter: none;
    transition: filter 0.3s ease;
}

.social-link:hover img {
    filter: none;
}

.contact-form-container {
    opacity: 0;
    transform: translateX(50px);
}

.contact-form {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 3rem 0 2rem;
    border-top: 1px solid var(--glass-border);
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
        border-top: 1px solid var(--glass-border);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-visual,
    .contact-form-container {
        transform: none;
    }
    
    .services-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    :root {
        --container-padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(50px);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
}

/* Utility Classes */
.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}