/* CSS Variables */
:root {
    /* Colors */
    --primary-bg: #0a0e1a;
    --secondary-bg: #1a1f2e;
    --accent-bg: #2d3748;
    --primary-text: #ffffff;
    --secondary-text: #a0aec0;
    --accent-text: #4fd1c7;
    --neon-green: #00ff88;
    --neon-blue: #00d4ff;
    --neon-purple: #b794f6;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 2rem;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-normal: 0.5s ease;
    --transition-slow: 0.8s ease;

    /* Shadows */
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 20px rgba(79, 209, 199, 0.3);
    --glow-secondary: 0 0 30px rgba(0, 255, 136, 0.2);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.animated-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    opacity: 0.1;
    animation: floatingShapes 20s infinite linear;
}

.shape-1 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--neon-green), transparent);
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--neon-blue), transparent);
    border-radius: 50%;
    top: 20%;
    right: 20%;
    animation-delay: 2s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--neon-purple), transparent);
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    bottom: 30%;
    left: 15%;
    animation-delay: 4s;
}

.shape-4 {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-text), transparent);
    transform: rotate(45deg);
    top: 60%;
    right: 30%;
    animation-delay: 6s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: linear-gradient(45deg, var(--neon-green), transparent);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    top: 40%;
    left: 50%;
    animation-delay: 8s;
}

.shape-6 {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, var(--neon-blue), transparent);
    border-radius: 50% 10% 50% 10%;
    bottom: 10%;
    right: 10%;
    animation-delay: 10s;
}

.shape-7 {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, var(--neon-purple), transparent);
    clip-path: circle(40% at 50% 50%);
    top: 70%;
    left: 70%;
    animation-delay: 12s;
}

.shape-8 {
    width: 75px;
    height: 75px;
    background: linear-gradient(45deg, var(--accent-text), transparent);
    clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
    bottom: 50%;
    left: 30%;
    animation-delay: 14s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(79, 209, 199, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 209, 199, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

.particle-field {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--accent-text);
    border-radius: 50%;
    animation: particleFloat 15s infinite linear;
}

.particle:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.particle:nth-child(2) { top: 30%; left: 80%; animation-delay: 2s; }
.particle:nth-child(3) { top: 50%; left: 10%; animation-delay: 4s; }
.particle:nth-child(4) { top: 70%; left: 60%; animation-delay: 6s; }
.particle:nth-child(5) { top: 20%; left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { top: 80%; left: 30%; animation-delay: 10s; }
.particle:nth-child(7) { top: 15%; left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { top: 60%; left: 90%; animation-delay: 14s; }
.particle:nth-child(9) { top: 90%; left: 15%; animation-delay: 16s; }
.particle:nth-child(10) { top: 40%; left: 40%; animation-delay: 18s; }

/* Preloader Styles */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
    position: relative;
}

.cyber-computer {
    width: 200px;
    height: 150px;
    margin: 0 auto 40px;
    perspective: 1000px;
}

.screen {
    width: 180px;
    height: 110px;
    background: linear-gradient(145deg, #1a1f2e, #2d3748);
    border-radius: 8px;
    border: 2px solid var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
    position: relative;
    transform: rotateX(-10deg);
    animation: computerFloat 3s ease-in-out infinite alternate;
}

.screen-lines {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 136, 0.1) 2px,
            rgba(0, 255, 136, 0.1) 4px
        );
    border-radius: 4px;
}

.terminal {
    position: absolute;
    bottom: 20px;
    left: 15px;
    right: 15px;
    color: var(--neon-green);
    font-family: 'Orbitron', monospace;
    font-size: 12px;
}

.prompt {
    color: var(--neon-blue);
}

.command {
    color: var(--neon-green);
}

.cursor {
    animation: blink 1s infinite;
}

.keyboard {
    width: 200px;
    height: 20px;
    background: linear-gradient(145deg, #2d3748, #4a5568);
    border-radius: 10px;
    margin-top: 10px;
    transform: rotateX(20deg);
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 30px auto;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-blue), var(--neon-green));
    border-radius: 2px;
    animation: loadingProgress 6s ease-in-out infinite;
}

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.3;
}

.circuit-line {
    position: absolute;
    background: var(--neon-green);
    animation: circuitFlow 3s linear infinite;
}

.circuit-line:nth-child(1) {
    width: 2px;
    height: 100px;
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.circuit-line:nth-child(2) {
    width: 80px;
    height: 2px;
    top: 50%;
    right: 10%;
    animation-delay: 1s;
}

.circuit-line:nth-child(3) {
    width: 2px;
    height: 60px;
    bottom: 20%;
    left: 60%;
    animation-delay: 2s;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(79, 209, 199, 0.2);
    z-index: 1000;
    transition: var(--transition-fast);
}

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

.nav-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-text);
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    margin-right: 10px;
    font-size: 1.8rem;
    filter: drop-shadow(0 0 10px var(--neon-green));
}

.logo-text {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-link {
    color: var(--secondary-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-text);
    text-shadow: 0 0 10px var(--accent-text);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transition: width var(--transition-fast);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-text);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Home Section */
.home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
    width: 100%;
    position: relative;
    z-index: 2;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    opacity: 0.6;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.floating-element:nth-child(3) {
    top: 30%;
    right: 20%;
    animation-delay: 2s;
}

.floating-element:nth-child(4) {
    bottom: 30%;
    left: 15%;
    animation-delay: 3s;
}

.floating-element:nth-child(5) {
    bottom: 60%;
    right: 10%;
    animation-delay: 4s;
}

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

.hero-text {
    z-index: 2;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.title-line {
    display: block;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

.title-subtitle {
    display: block;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--accent-text);
    margin-top: 0.5rem;
}

.typing-container {
    margin: 2rem 0;
    font-size: 1.5rem;
    font-weight: 500;
}

.typing-text {
    color: var(--secondary-text);
}

.typed-text {
    color: var(--neon-green);
    font-weight: 700;
}

.typing-cursor {
    color: var(--neon-blue);
    animation: blink 1s infinite;
}

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

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Button Styles */
.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition-fast);
    transform-style: preserve-3d;
}

.btn-primary {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: var(--primary-bg);
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 10px 30px rgba(79, 209, 199, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-text);
    border: 2px solid var(--accent-text);
}

.btn-secondary:hover {
    background: var(--accent-text);
    color: var(--primary-bg);
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 10px 30px rgba(79, 209, 199, 0.2);
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-heavy);
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    filter: brightness(0.8) contrast(1.1);
    transition: var(--transition-normal);
}

.slide:hover img {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.fade {
    animation: fadeIn 1s ease-in-out;
}

.slideshow-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: var(--transition-fast);
}

.dot.active,
.dot:hover {
    background-color: var(--accent-text);
    box-shadow: 0 0 10px var(--accent-text);
    transform: scale(1.2);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid var(--accent-text);
    border-bottom: 3px solid var(--accent-text);
    transform: rotate(45deg);
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

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

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

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    margin: 0 auto;
    border-radius: 2px;
    box-shadow: var(--glow-primary);
}

/* About Section */
.about {
    background: var(--secondary-bg);
}

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

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-text);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(79, 209, 199, 0.2);
    backdrop-filter: blur(10px);
    flex: 1;
    transition: var(--transition-fast);
}

.stat:hover {
    transform: translateY(-5px) rotateY(5deg);
    box-shadow: var(--glow-secondary);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--neon-green);
    font-family: 'Orbitron', sans-serif;
}

.stat-label {
    color: var(--secondary-text);
    font-size: 1rem;
    margin-top: 0.5rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Square Profile Photo Styles */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.profile-image {
    position: relative;
    width: 400px;
    height: 400px;
    border-radius: 15px; /* Changed from 50% to 15px for square shape */
    overflow: hidden;
    box-shadow: var(--glow-primary);
    transition: var(--transition-normal);
    transform-style: preserve-3d;
}

.profile-image:hover {
    transform: rotateY(10deg) rotateX(10deg);
    box-shadow: 0 20px 50px rgba(79, 209, 199, 0.4);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px; /* Changed from 50% to 15px for square shape */
    transition: var(--transition-normal);
    filter: brightness(0.9) contrast(1.1);
}

.profile-image:hover .profile-photo {
    filter: brightness(1) contrast(1.2);
    transform: scale(1.05);
}

.profile-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px; /* Changed from 50% to 15px for square shape */
    pointer-events: none;
}

.profile-border {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 15px; /* Changed from 50% to 15px for square shape */
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue), var(--neon-purple));
    background-size: 400% 400%;
    animation: gradientBorder 4s ease infinite;
    z-index: -1;
}

/* Resume Download Button */
.resume-download {
    display: flex;
    justify-content: center;
}

.btn-resume {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--glow-primary);
    transition: var(--transition-fast);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.btn-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-resume:hover::before {
    left: 100%;
}

.btn-resume:hover {
    transform: translateY(-3px) rotateX(10deg);
    box-shadow: 0 15px 40px rgba(79, 209, 199, 0.4);
}

.resume-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.resume-text {
    font-weight: 600;
}

/* Skills Section */
.skills {
    background: var(--primary-bg);
}

.skills-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 2rem;
    border-radius: 25px;
    border: 1px solid rgba(79, 209, 199, 0.1);
    backdrop-filter: blur(15px);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 199, 0.1), transparent);
    transition: left 0.8s ease;
}

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-secondary);
    border-color: rgba(79, 209, 199, 0.3);
}

.category-title {
    font-size: 1.8rem;
    color: var(--accent-text);
    margin-bottom: 2.5rem;
    font-weight: 600;
    text-align: center;
    font-family: 'Orbitron', sans-serif;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 209, 199, 0.1);
    transition: var(--transition-fast);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: left;
}

.skill-card:hover::before {
    transform: scaleX(1);
}

.skill-card:hover {
    transform: translateY(-5px) rotateX(5deg);
    box-shadow: 0 15px 40px rgba(79, 209, 199, 0.2);
    border-color: rgba(79, 209, 199, 0.3);
}

/* Skill Logo Styles */
.skill-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
    height: 60px;
    align-items: center;
}

.logo-img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(79, 209, 199, 0.3));
    transition: var(--transition-fast);
}

.skill-card:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(79, 209, 199, 0.5));
}

.skill-card h4 {
    font-size: 1.3rem;
    color: var(--accent-text);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-align: center;
}

.skill-card p {
    color: var(--secondary-text);
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
}

/* Projects Section */
.projects {
    background: var(--secondary-bg);
}

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

.project-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(79, 209, 199, 0.1);
    transition: var(--transition-normal);
    transform-style: preserve-3d;
    position: relative;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-secondary);
    border-color: rgba(79, 209, 199, 0.3);
}

.project-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(45deg, var(--accent-bg), var(--secondary-bg));
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    transition: var(--transition-fast);
}

.project-icon {
    font-size: 4rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(79, 209, 199, 0.3));
    transition: var(--transition-fast);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-icon {
    opacity: 0.3;
    transform: scale(0.8);
}

.btn-view {
    padding: 15px 25px;
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: var(--primary-bg);
    border: none;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    transform: translateY(20px);
    animation: slideUpFade 0.3s ease forwards;
    box-shadow: 0 10px 30px rgba(79, 209, 199, 0.3);
}

.project-card:hover .btn-view {
    transform: translateY(0) scale(1.05);
    box-shadow: 0 15px 40px rgba(79, 209, 199, 0.4);
}

.btn-view:hover {
    transform: translateY(-2px) scale(1.1);
    box-shadow: 0 20px 50px rgba(79, 209, 199, 0.5);
}

.btn-icon {
    font-size: 1.1rem;
}

.project-content {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.3rem;
    color: var(--accent-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.tag {
    padding: 4px 12px;
    background: rgba(79, 209, 199, 0.1);
    color: var(--accent-text);
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid rgba(79, 209, 199, 0.3);
    transition: var(--transition-fast);
}

.tag:hover {
    background: rgba(79, 209, 199, 0.2);
    transform: translateY(-1px);
}

/* Experience Section */
.experience {
    background: var(--primary-bg);
}

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--neon-green), var(--neon-blue));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--neon-green);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px var(--neon-green);
    z-index: 2;
    border: 3px solid var(--primary-bg);
}

.timeline-content {
    width: 45%;
    position: relative;
    transition: var(--transition-fast);
}

.timeline-inner {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 209, 199, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.timeline-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--neon-green), var(--neon-blue));
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.timeline-content:hover .timeline-inner::before {
    transform: scaleX(1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 5%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 5%;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-content:hover .timeline-inner {
    box-shadow: var(--glow-secondary);
    border-color: rgba(79, 209, 199, 0.3);
}

.timeline-inner h3 {
    color: var(--accent-text);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.timeline-inner h4 {
    color: var(--neon-green);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.timeline-date {
    color: var(--secondary-text);
    font-size: 0.9rem;
    font-style: italic;
    display: block;
    margin-bottom: 1rem;
}

.timeline-inner p {
    color: var(--secondary-text);
    line-height: 1.6;
}

.certifications {
    margin-top: 4rem;
    text-align: center;
}

.certifications h3 {
    color: var(--accent-text);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-family: 'Orbitron', sans-serif;
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(79, 209, 199, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition-fast);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cert-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(79, 209, 199, 0.1), transparent);
    transition: left 0.5s ease;
}

.cert-item:hover::before {
    left: 100%;
}

.cert-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-secondary);
    border-color: rgba(79, 209, 199, 0.3);
}

.cert-icon {
    font-size: 2rem;
    filter: drop-shadow(0 0 10px var(--neon-green));
    flex-shrink: 0;
}
.icon-img {
    width: 40px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(79, 209, 199, 0.3));
    transition: var(--transition-fast);
}

.cert-item:hover .icon-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(79, 209, 199, 0.5));
}
.cert-info {
    flex: 1;
    text-align: left;
}

.cert-name {
    display: block;
    color: var(--accent-text);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.cert-issuer {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.cert-view {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--neon-green);
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition-fast);
}

.cert-item:hover .cert-view {
    opacity: 1;
    transform: translateX(5px);
}

.view-icon {
    font-size: 1.2rem;
}

/* Contact Section */
.contact {
    background: var(--secondary-bg);
}

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

.contact-info h3 {
    color: var(--accent-text);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

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

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.contact-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 0 10px var(--neon-green));
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(79, 209, 199, 0.2);
    color: var(--accent-text);
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-link:hover {
    transform: translateY(-3px) rotateZ(10deg);
    box-shadow: var(--glow-secondary);
    border-color: var(--accent-text);
}

.social-icon {
    font-size: 1.5rem;
}

.social-img {
  width: 30px; /* or desired size */
  height: 30px;
  object-fit: contain;
  display: block;
}


/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(79, 209, 199, 0.1);
    backdrop-filter: blur(10px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(79, 209, 199, 0.2);
    border-radius: 10px;
    color: var(--primary-text);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-text);
    box-shadow: 0 0 10px rgba(79, 209, 199, 0.2);
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: var(--secondary-text);
    transition: var(--transition-fast);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    color: var(--accent-text);
    background: var(--secondary-bg);
    padding: 0 5px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--secondary-bg);
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(79, 209, 199, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.7);
    opacity: 0;
    transition: var(--transition-normal);
}

.modal.show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    background: linear-gradient(45deg, var(--neon-green), var(--neon-blue));
    color: var(--primary-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: var(--primary-bg);
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* Project Modal Actions */
.project-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.btn-demo {
    padding: 12px 24px;
    background: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    color: var(--primary-text);
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
}

.btn-demo:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(183, 148, 246, 0.3);
}

.demo-icon {
    font-size: 1.1rem;
}

/* Certificate Modal Specific */
.cert-modal-content {
    text-align: center;
    color: var(--primary-text);
}

.cert-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(145deg, var(--accent-bg), var(--secondary-bg));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent-text);
    margin-bottom: 1.5rem;
}

.cert-placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px var(--neon-green));
}

.cert-placeholder-text {
    font-size: 1.2rem;
    color: var(--accent-text);
    margin-bottom: 0.5rem;
}

.cert-placeholder-desc {
    color: var(--secondary-text);
    max-width: 300px;
}

/* Keyframe Animations */
@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatingShapes {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.1;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0.1;
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes computerFloat {
    0% { transform: rotateX(-10deg) translateY(0px); }
    100% { transform: rotateX(-10deg) translateY(-10px); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

@keyframes loadingProgress {
    0% { width: 0%; }
    50% { width: 100%; }
    100% { width: 0%; }
}

@keyframes circuitFlow {
    0% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
    100% { opacity: 0.3; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes titleGlow {
    0% { text-shadow: 0 0 10px rgba(79, 209, 199, 0.5); }
    100% { text-shadow: 0 0 20px rgba(79, 209, 199, 0.8), 0 0 30px rgba(0, 255, 136, 0.3); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Animation for elements entering viewport */
.animate-in {
    animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-item {
        flex-direction: row !important;
        padding-left: 70px;
    }

    .timeline-marker {
        left: 30px;
    }

    .timeline-content {
        width: 100% !important;
        margin: 0 !important;
    }

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

    .profile-image {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 14, 26, 0.95);
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: var(--transition-fast);
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        border-top: 1px solid rgba(79, 209, 199, 0.2);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .title-subtitle {
        font-size: 1.4rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 10% auto;
    }

    .slideshow-container {
        max-width: 90%;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .title-subtitle {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .slideshow-wrapper {
        height: 250px;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .btn-resume {
        padding: 12px 20px;
        font-size: 1rem;
    }

    .project-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Modal Content Styles */
.project-modal-content {
    color: var(--primary-text);
}

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

.project-modal-section {
    margin-bottom: 2rem;
}

.project-modal-section h4 {
    color: var(--accent-text);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--secondary-text);
    line-height: 1.6;
}

.feature-list li::before {
    content: '🔹';
    position: absolute;
    left: 0;
    color: var(--neon-green);
}

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

.tech-tag {
    padding: 0.5rem 1rem;
    background: rgba(79, 209, 199, 0.1);
    color: var(--accent-text);
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(79, 209, 199, 0.3);
}
@media (max-width: 768px) {
  .about-image.mobile-profile {
    display: block;
    margin: 0 auto 2rem auto;
  }
  .about-content .about-image {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .about-image.mobile-profile {
    display: none !important;
  }
}
@media(max-width: 768px) {
  /* Make home content a column */
  .home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  /* Order slideshow container first */
  .slideshow-container {
    order: 0;
    width: 90%;
  }
  
  /* Order hero text second */
  .hero-text {
    order: 1;
    text-align: center;
    width: 90%;
  }
}
body, a, button, input, textarea {
  cursor: none;
}

#holo-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 36px;
  height: 36px;
  margin-left: -10px;
  margin-top: -10px;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 4px #0ff) drop-shadow(0 0 10px #08f);
}

.holo-pointer {
  position: relative;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 12px 20px 12px;
  border-color: transparent transparent #00faff transparent;
  filter: drop-shadow(0 0 3px #0ff);
  background: linear-gradient(180deg, #3f9fff, #008ca9);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  animation: holo-glow 3s ease-in-out infinite;
}

/* Glow animation */
@keyframes holo-glow {
  0%, 100% {
    filter: drop-shadow(0 0 3px #0ff);
  }
  50% {
    filter: drop-shadow(0 0 15px #0ff);
  }
}

/* Enlarge slightly on hover */
a:hover ~ #holo-cursor .holo-pointer,
button:hover ~ #holo-cursor .holo-pointer {
  border-width: 0 16px 26px 16px;
  animation-duration: 1s;
  filter: drop-shadow(0 0 18px #00faff);
}

/* Hide on mobile */
@media (max-width: 767px) {
  #holo-cursor {
    display: none;
  }
}

.footer-basic {
  background: #101626;
  color: #b3f0ff;
  text-align: center;
  padding: 1.2rem 0;
  border-top: 1px solid #183056;
  margin-top: 3rem;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-text div:first-child {
  margin-bottom: 0.3rem;
}
